zerovm / zerovm-cli

ZeroVM command line utilities
Apache License 2.0
6 stars 7 forks source link

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

Open YaroslavLitvinov opened 10 years ago

YaroslavLitvinov commented 10 years ago

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 commented 10 years ago

This is doesn't works even if file exist.