Skip to content

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

@YaroslavLitvinov

Description

@YaroslavLitvinov

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions