-
-
Save anteaya/ff02308305ac9018eb3c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
====================================================================== | |
ERROR: test_boot_hints (tests.v1_1.test_shell.ShellTest) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/opt/stack/python-novaclient/tests/v1_1/test_shell.py", line 164, in test_boot_hints | |
self.run_command('boot --image 1111 --flavor 1 --hint a=b=c some-server ') | |
File "/opt/stack/python-novaclient/tests/v1_1/test_shell.py", line 68, in run_command | |
self.shell.main(cmd.split()) | |
File "/opt/stack/python-novaclient/novaclient/shell.py", line 491, in main | |
args.func(self.cs, args) | |
File "/opt/stack/python-novaclient/novaclient/v1_1/shell.py", line 237, in do_boot | |
boot_args, boot_kwargs = _boot(cs, args) | |
File "/opt/stack/python-novaclient/novaclient/v1_1/shell.py", line 59, in _boot | |
image = _find_image(cs, args.image) | |
File "/opt/stack/python-novaclient/novaclient/v1_1/shell.py", line 1218, in _find_image | |
return utils.find_resource(cs.images, image) | |
File "/opt/stack/python-novaclient/novaclient/utils.py", line 184, in find_resource | |
return manager.get(int(name_or_id)) | |
File "/opt/stack/python-novaclient/novaclient/v1_1/images.py", line 45, in get | |
raise exceptions.CommandError("You must use the image id with get(). You passed '%s'." % (image)) | |
CommandError: You must use the image id with get(). You passed '1111'. | |
====================================================================== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
108 def test_boot(self): | |
109 self.run_command('boot --flavor 1 --image 11111111-1111-1111-1111-111111111111 some-server') | |
110 self.assert_called_anytime( | |
111 'POST', '/servers', | |
112 {'server': { | |
113 'flavorRef': '1', | |
114 'name': 'some-server', | |
115 'imageRef': '1', | |
116 'min_count': 1, | |
117 'max_count': 1, | |
118 }}, | |
119 ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
====================================================================== | |
ERROR: test_boot (tests.v1_1.test_shell.ShellTest) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/opt/stack/python-novaclient/tests/v1_1/test_shell.py", line 109, in test_boot | |
self.run_command('boot --flavor 1 --image 11111111-1111-1111-1111-111111111111 some-server') | |
File "/opt/stack/python-novaclient/tests/v1_1/test_shell.py", line 68, in run_command | |
self.shell.main(cmd.split()) | |
File "/opt/stack/python-novaclient/novaclient/shell.py", line 491, in main | |
args.func(self.cs, args) | |
File "/opt/stack/python-novaclient/novaclient/v1_1/shell.py", line 256, in do_boot | |
info['image'] = _find_image(cs, image_id).name | |
File "/opt/stack/python-novaclient/novaclient/v1_1/shell.py", line 1218, in _find_image | |
return utils.find_resource(cs.images, image) | |
File "/opt/stack/python-novaclient/novaclient/utils.py", line 184, in find_resource | |
return manager.get(int(name_or_id)) | |
File "/opt/stack/python-novaclient/novaclient/v1_1/images.py", line 45, in get | |
raise exceptions.CommandError("You must use the image id with get(). You passed '%s'." % (image)) | |
CommandError: You must use the image id with get(). You passed '2'. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment