python-novaclient is sending wrong URL for volumes and volume-snapshots

Bug #988354 reported by Rajalakshmi Ganesan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-common
Invalid
Undecided
Unassigned

Bug Description

python-novaclient which is present in the git repository now, (Version v1.1) is sending wrong URL for volumes and volume-snapshots.

log:

FOR VOLUMES EXTENSION:
opuser@ubuntu-241:~$ nova --debug volume-list
connect: (10.233.52.171, 8774)
send: 'GET /v1.1 HTTP/1.1\r\nHost: 10.233.52.171:8774\r\nx-auth-project-id: cloudproject\r\naccept-encoding: gzip, deflate\r\nx-auth-user: cloudroot\r\nuser-agent: python-novaclient\r\nx-auth-key: e9bca108-484f-4076-bef1-1b7b5f266d7d\r\naccept: application/json\r\n\r\n'
reply: 'HTTP/1.1 204 No Content\r\n'
header: Content-Length: 0
header: X-Auth-Token: acd29b669242aebebc0254b0c3583957fd6acaec
header: X-Server-Management-Url: http://10.233.52.171:8774/v1.1/cloudproject
header: X-Storage-Url:
header: X-Cdn-Management-Url:
header: Content-Type: text/plain; charset=UTF-8
header: Date: Wed, 25 Apr 2012 19:46:04 GMT
send: 'GET /v1.1/cloudproject/volumes/detail HTTP/1.1\r\nHost: 10.233.52.171:8774\r\nx-auth-project-id: cloudproject\r\nx-auth-token: acd29b669242aebebc0254b0c3583957fd6acaec\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n'

The URI is supposed to be : os-volumes

FOR VOLUME-SNAPSHOTS EXTENSION:
opuser@ubuntu-241:/opt/stack/python-novaclient/novaclient$ nova --debug volume-snapshot-list
connect: (10.233.52.171, 8774)
send: 'GET /v1.1 HTTP/1.1\r\nHost: 10.233.52.171:8774\r\nx-auth-project-id: cloudproject\r\naccept-encoding: gzip, deflate\r\nx-auth-user: cloudroot\r\nuser-agent: python-novaclient\r\nx-auth-key: e9bca108-484f-4076-bef1-1b7b5f266d7d\r\naccept: application/json\r\n\r\n'
reply: 'HTTP/1.1 204 No Content\r\n'
header: Content-Length: 0
header: X-Auth-Token: 618a176fb8a5d93f14702bd68689b3258fe5ce9c
header: X-Server-Management-Url: http://10.233.52.171:8774/v1.1/cloudproject
header: X-Storage-Url:
header: X-Cdn-Management-Url:
header: Content-Type: text/plain; charset=UTF-8
header: Date: Wed, 25 Apr 2012 19:59:14 GMT
send: 'GET /v1.1/cloudproject/snapshots/detail HTTP/1.1\r\nHost: 10.233.52.171:8774\r\nx-auth-project-id: cloudproject\r\nx-auth-token: 618a176fb8a5d93f14702bd68689b3258fe5ce9c\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n'

The URI is supposed to be : os-snapshots

Revision history for this message
Vish Ishaya (vishvananda) wrote :

this looks like an endpoints error. Novaclient was switched over to use the new volume-api endpoint which should be listening on port 8776

You need to set up an endpoint for volume using the following url

http://10.233.52.171:8776/v1/%(tenant_id)s

Changed in openstack-common:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.