Glance command fails with new image ID

Asked by Jérôme Gallard

glance rev1079

Hi all,
I have some issues when I use Glance and the new image ID.

For instance:
glance -H p-novamaster2 --debug -A 999888777666 show a5a84448-177d-4cde-b2e1-11e7da7c54d9
->
Failed to show image. Got error:
invalid literal for int() with base 10: 'a5a84448-177d-4cde-b2e1-11e7da7c54d9'

Do you know if I made something wrong ?

Thank you very much.
Jérôme

Question information

Language:
English Edit question
Status:
Solved
For:
Glance Edit question
Assignee:
No assignee Edit question
Solved by:
Jay Pipes
Solved:
Last query:
Last reply:
Revision history for this message
Best Jay Pipes (jaypipes) said :
#1

Hi!

Looks like you just need to update to the latest Nova :)

-jay

Revision history for this message
Jérôme Gallard (jerome-gallard) said :
#2

Hello,

Thank you very much for your answer.

I use the Nova rev11316 and Glance rev1080 (Ubuntu Natty with ppa trunk).

Thanks,
Jérôme

Revision history for this message
Jérôme Gallard (jerome-gallard) said :
#3

Hello,

Just some more informations... if it can help :)

I get the same error with nova boot command.

Following is the full debug message:

root@p-novamaster:~# nova --debug boot --image a5a84448-177d-4cde-b2e1-11e7da7c54d9 --flavor 1 "test"
connect: (p-novamaster2.rd.francetelecom.fr, 5000)
send: 'GET / HTTP/1.1\r\nHost: p-novamaster2.rd.francetelecom.fr:5000\r\nx-auth-project-id: project_admin\r\nx-auth-key: admin\r\naccept-encoding: gzip, deflate\r\nx-auth-user: admin\r\nuser-agent: python-novaclient\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: Content-Type: application/json; charset=UTF-8
header: Content-Length: 1224
header: Date: Thu, 03 Nov 2011 17:55:27 GMT
send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: p-novamaster2.rd.francetelecom.fr:5000\r\nAccept-Encoding: identity\r\nContent-Length: 108\r\ncontent-type: application/json\r\nuser-agent: python-novaclient\r\n\r\n{"auth": {"tenantName": "project_admin", "passwordCredentials": {"username": "admin", "password": "admin"}}}'
reply: 'HTTP/1.1 200 OK\r\n'
header: Content-Type: application/json; charset=UTF-8
header: Content-Length: 1442
header: Date: Thu, 03 Nov 2011 17:55:27 GMT
connect: (p-novamaster.rd.francetelecom.fr, 8774)
send: u'POST /v1.1/1/servers HTTP/1.1\r\nHost: p-novamaster.rd.francetelecom.fr:8774\r\nAccept-Encoding: identity\r\nContent-Length: 130\r\nx-auth-project-id: project_admin\r\nx-auth-token: 999888777666\r\ncontent-type: application/json\r\nuser-agent: python-novaclient\r\n\r\n{"server": {"min_count": 1, "flavorRef": "1", "name": "test", "imageRef": "a5a84448-177d-4cde-b2e1-11e7da7c54d9", "max_count": 1}}'
reply: 'HTTP/1.1 400 Bad Request\r\n'
header: Content-Length: 188
header: Content-Type: application/json; charset=UTF-8
header: Date: Thu, 03 Nov 2011 17:55:20 GMT
Traceback (most recent call last):
  File "/usr/local/bin/nova", line 9, in <module>
    load_entry_point('python-novaclient==2.6.6', 'console_scripts', 'nova')()
  File "/usr/local/lib/python2.7/dist-packages/novaclient/shell.py", line 225, in main
    OpenStackComputeShell().main(sys.argv[1:])
  File "/usr/local/lib/python2.7/dist-packages/novaclient/shell.py", line 188, in main
    args.func(self.cs, args)
  File "/usr/local/lib/python2.7/dist-packages/novaclient/v1_1/shell.py", line 172, in do_boot
    key_name=key_name)
  File "/usr/local/lib/python2.7/dist-packages/novaclient/v1_1/servers.py", line 369, in create
    availability_zone=availability_zone)
  File "/usr/local/lib/python2.7/dist-packages/novaclient/v1_1/base.py", line 103, in _boot
    return_raw=return_raw)
  File "/usr/local/lib/python2.7/dist-packages/novaclient/base.py", line 83, in _create
    resp, body = self.api.client.post(url, body=body)
  File "/usr/local/lib/python2.7/dist-packages/novaclient/client.py", line 134, in post
    return self._cs_request(url, 'POST', **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/novaclient/client.py", line 118, in _cs_request
    **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/novaclient/client.py", line 101, in request
    raise exceptions.from_response(resp, body)
novaclient.exceptions.BadRequest: Cannot find requested image a5a84448-177d-4cde-b2e1-11e7da7c54d9: invalid literal for int() with base 10: 'a5a84448-177d-4cde-b2e1-11e7da7c54d9' (HTTP 400)

Thanks,
Jérôme

Revision history for this message
Jérôme Gallard (jerome-gallard) said :
#4

My bad, an old version of Glance was conflicting with the new one (probably something wrong with a very old manual installation not completly removed)...

Thank you very much for your help :)

Jérôme

Revision history for this message
Jérôme Gallard (jerome-gallard) said :
#5

Thanks Jay Pipes, that solved my question.