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

copy-from-vm traceback a message if host to copy from is down - need to write nice message instead #748

Open
galitf opened this issue Jun 26, 2018 · 1 comment
Assignees

Comments

@galitf
Copy link
Contributor

galitf commented Jun 26, 2018

lago copy-from-vm vm-el7 /root/etc/hosts gal
Error occured, aborting
Traceback (most recent call last):
File "/home/grosenth/projects/lago/lago/cmd.py", line 969, in main
cli_plugins[args.verb].do_run(args)
File "/home/grosenth/projects/lago/lago/plugins/cli.py", line 184, in do_run
self._do_run(**vars(args))
File "/home/grosenth/projects/lago/lago/utils.py", line 505, in wrapper
return func(*args, **kwargs)
File "/home/grosenth/projects/lago/lago/utils.py", line 516, in wrapper
return func(*args, prefix=prefix, **kwargs)
File "/home/grosenth/projects/lago/lago/cmd.py", line 684, in do_copy_from_vm
'Host %s is not "running", but "%s"' % (host.name(), host.state())
RuntimeError: Host vm-el7 is not "running", but "down"

@galitf
Copy link
Contributor Author

galitf commented Jun 26, 2018

also happens with copy-to-vm when the vm is down
needs to fix as well

lago copy-from-vm vm-el7 /root/ga1 /root/gal2
Error occured, aborting
Traceback (most recent call last):
File "/home/grosenth/projects/lago/lago/cmd.py", line 969, in main
cli_plugins[args.verb].do_run(args)
File "/home/grosenth/projects/lago/lago/plugins/cli.py", line 184, in do_run
self._do_run(**vars(args))
File "/home/grosenth/projects/lago/lago/utils.py", line 505, in wrapper
return func(*args, **kwargs)
File "/home/grosenth/projects/lago/lago/utils.py", line 516, in wrapper
return func(*args, prefix=prefix, **kwargs)
File "/home/grosenth/projects/lago/lago/cmd.py", line 684, in do_copy_from_vm
'Host %s is not "running", but "%s"' % (host.name(), host.state())
RuntimeError: Host vm-el7 is not "running", but "down"

@galitf galitf self-assigned this Aug 7, 2018
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