← Back to team overview

openstack team mailing list archive

Re: [nova client] Can't get the diagnostics command to work

 

My assumption here was actually incorrect. See my follow-up email for a suggested fix.

On Jan 24, 2012, at 9:46 AM, Brian Waldon wrote:

> The diagnostics command moved to a server action. We will need to update novaclient to support this. I went ahead and filed a bug for it: https://bugs.launchpad.net/nova/+bug/921103
> On Jan 24, 2012, at 9:03 AM, Leander Bessa wrote:
> 
>> Hello,
>> 
>> I've setup a single node configuration with keystone using the packages from https://launchpad.net/~managedit/+archive/openstack.
>> 
>> I've managed to launch an instance, however when i run the commando nova diagnostics <server> i get this:
>> 
>> REQ: curl -i http://127.0.0.1:5000/tokens -X POST -H "Content-Type: application/json" -H "User-Agent: python-novaclient"
>> 
>> REQ BODY: {"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "admin"}}}
>> 
>> RESP:{'date': 'Tue, 24 Jan 2012 16:56:24 GMT', 'status': '200', 'content-length': '1119', 'content-type': 'application/json; charset=UTF-8'} {"access": {"token": {"expires": "2015-02-05T00:00:00", "id": "999888777666", "tenant": {"id": "1", "name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://127.0.0.1:8774/v1.1/1";, "region": "RegionOne", "internalURL": "http://127.0.0.1:8774/v1.1/1";, "publicURL": "http://127.0.0.1:8774/v1.1/1"}], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL": "http://127.0.0.1:8774/v1.0";, "region": "RegionOne", "internalURL": "http://127.0.0.1:8774/v1.0";, "publicURL": "http://127.0.0.1:8774/v1.0/"}], "type": "compute", "name": "nova_compat"}, {"endpoints": [{"adminURL": "http://127.0.0.1:9292/v1.1/1";, "region": "RegionOne", "internalURL": "http://127.0.0.1:9292/v1.1/1";, "publicURL": "http://127.0.0.1:9292/v1.1/1"}], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL": "http://127.0.0.1:35357/v2.0";, "region": "RegionOne", "internalURL": "http://127.0.0.1:5000/v2.0";, "publicURL": "http://127.0.0.1:5000/v2.0"}], "type": "identity", "name": "identity"}], "user": {"id": "1", "roles": [{"tenantId": "1", "id": "1", "name": "Admin"}, {"id": "1", "name": "Admin"}], "name": "admin"}}}
>> 
>> REQ: curl -i http://127.0.0.1:8774/v1.1/1/servers/3/diagnostics -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent: python-novaclient" -H "X-Auth-Token: 999888777666"
>> 
>> REQ: curl -i http://127.0.0.1:8774/v1.1/1/servers/3/diagnostics -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent: python-novaclient" -H "X-Auth-Token: 999888777666"
>> 
>> RESP:{'date': 'Tue, 24 Jan 2012 16:56:24 GMT', 'status': '404', 'content-length': '52', 'content-type': 'text/plain; charset=UTF-8'} 404 Not Found
>> 
>> The resource could not be found.
>> 
>>    
>> 
>> RESP:{'date': 'Tue, 24 Jan 2012 16:56:24 GMT', 'status': '404', 'content-length': '52', 'content-type': 'text/plain; charset=UTF-8'} 404 Not Found
>> 
>> The resource could not be found.
>> 
>>  
>> n/a (HTTP 404)
>> 
>> 
>> Any ideas?
>> 
>> Regards,
>> 
>> Leander
>> _______________________________________________
>> Mailing list: https://launchpad.net/~openstack
>> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~openstack
>> More help   : https://help.launchpad.net/ListHelp
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp


References