Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zvsh can't run nexe if trying to export files #48

Open
YaroslavLitvinov opened this issue Jun 26, 2014 · 1 comment
Open

zvsh can't run nexe if trying to export files #48

YaroslavLitvinov opened this issue Jun 26, 2014 · 1 comment

Comments

@YaroslavLitvinov
Copy link
Member

trying to run:
zvsh --zvm-image export.tar,/,wo somenexe

output describes error of opening file in write only mode which expected to be created and not supposed to be exist:

Traceback (most recent call last):
  File "/home/zvm/git/zerovm-cli/zvsh", line 8, in <module>
    shell.run()
  File "/home/zvm/git/zerovm-cli/zvshlib/zvsh.py", line 1049, in run
    self._run_zvsh()
  File "/home/zvm/git/zerovm-cli/zvshlib/zvsh.py", line 1053, in _run_zvsh
    manifest_file = self.zvsh.add_arguments(self.args)
  File "/home/zvm/git/zerovm-cli/zvshlib/zvsh.py", line 864, in add_arguments
    self.add_image_args(args.zvm_image)
  File "/home/zvm/git/zerovm-cli/zvshlib/zvsh.py", line 785, in add_image_args
    tar = tarfile.open(name=imgpath)
  File "/usr/lib/python2.7/tarfile.py", line 1665, in open
    raise ReadError("file could not be opened successfully")
tarfile.ReadError: file could not be opened successfully
@YaroslavLitvinov
Copy link
Member Author

This is doesn't works even if file exist.

pkit pushed a commit to pkit/zerovm-cli that referenced this issue Jul 6, 2014
when using `--zvm-image=....,/,wo` tarfile.ReadError was raised
`zvshlib` tired to search for executable binary in all tar files
fixes issue zerovm#48
larsbutler added a commit to larsbutler/zerovm-cli that referenced this issue Jan 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant