← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1389094] Re: Can not get instance's detail info by server-name

 

I don't think this is a bug, you can not get the detail information of
an instance if the status is in ERROR status.

** Changed in: nova
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1389094

Title:
  Can not get instance's detail info by server-name

Status in OpenStack Compute (Nova):
  Invalid

Bug description:
  use 2014.2. RDO build.

  Launch one instance. But it got a error. Detail info can not be got by
  server-name.

  [root@compute_1_basefunc ~]# nova list --all-tenants
  +--------------------------------------+---------+--------+------------+-------------+----------------------+
  | ID                                   | Name    | Status | Task State | Power State | Networks             |
  +--------------------------------------+---------+--------+------------+-------------+----------------------+
  | 290455f3-ca69-46ed-97f3-20087b66646a | vm-test | ERROR  | -          | NOSTATE     | demo-net=192.168.1.2 |
  +--------------------------------------+---------+--------+------------+-------------+----------------------+

  
  [root@compute_1_basefunc ~]# nova --debug show vm-test
  REQ: curl -i 'http://controller:35357/v2.0/tokens' -X POST -H "Accept: application/json" -H "Content-Type: application/json" -H "User-Agent: python-novaclient" -d '{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "{SHA1}d033e22ae348aeb5660fc2140aec35850c4da997"}}}'
  INFO (connectionpool:187) Starting new HTTP connection (1): controller
  DEBUG (connectionpool:357) "POST /v2.0/tokens HTTP/1.1" 200 1768
  RESP: [200] {'date': 'Tue, 04 Nov 2014 03:58:20 GMT', 'content-type': 'application/json', 'content-length': '1768', 'vary': 'X-Auth-Token'}
  RESP BODY: {"access": {"token": {"issued_at": "2014-11-04T03:58:20.525598", "expires": "2014-11-04T04:58:20Z", "id": "{SHA1}02535f90545a4ba33e8a2ef492de345dd6341f40", "tenant": {"enabled": true, "description": "Admin Tenant", "name": "admin", "id": "5a4fbbd028994aaba30a6039dbcbca1b"}, "audit_ids": ["tLtROYguTmqA7uxU0IfaaA"]}, "serviceCatalog": [{"endpoints_links": [], "endpoints": [{"adminURL": "http://controller:9292";, "region": "regionOne", "publicURL": "http://controller:9292";, "internalURL": "http://controller:9292";, "id": "72379ef6c74c4113af91a32e0a7d5222"}], "type": "image", "name": "glance"}, {"endpoints_links": [], "endpoints": [{"adminURL": "http://controller:8774/v2/5a4fbbd028994aaba30a6039dbcbca1b";, "region": "regionOne", "publicURL": "http://controller:8774/v2/5a4fbbd028994aaba30a6039dbcbca1b";, "internalURL": "http://controller:8774/v2/5a4fbbd028994aaba30a6039dbcbca1b";, "id": "ab7072f893794c9eb5e54dc99c43d682"}], "type": "compute", "name": "nova"}, {"endpoints_links": [], "endpoints": [{"adminURL": "http://controller:9696";, "region": "regionOne", "publicURL": "http://controller:9696";, "internalURL": "http://controller:9696";, "id": "52dee6859db84ff598f5d11f945f65db"}], "type": "network", "name": "neutron"}, {"endpoints_links": [], "endpoints": [{"adminURL": "http://controller:35357/v2.0";, "region": "regionOne", "publicURL": "http://controller:5000/v2.0";, "internalURL": "http://controller:5000/v2.0";, "id": "24a7bc3364fa482c9170cdbf06b683ba"}], "type": "identity", "name": "keystone"}], "user": {"username": "admin", "roles_links": [], "id": "ff19b28fa8f84660824942748105fe4d", "roles": [{"name": "_member_"}, {"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles": ["158058dbe2c84403b544f563a4545c11", "8b8cf97a08fb4b4b90682900f52c1595"]}}}

  REQ: curl -i 'http://controller:8774/v2/5a4fbbd028994aaba30a6039dbcbca1b/servers?name=vm-test' -X GET -H "Accept: application/json" -H "User-Agent: python-novaclient" -H "X-Auth-Project-Id: admin" -H "X-Auth-Token: {SHA1}02535f90545a4ba33e8a2ef492de345dd6341f40"
  INFO (connectionpool:187) Starting new HTTP connection (1): controller
  DEBUG (connectionpool:357) "GET /v2/5a4fbbd028994aaba30a6039dbcbca1b/servers?name=vm-test HTTP/1.1" 200 15
  RESP: [200] {'date': 'Tue, 04 Nov 2014 03:58:20 GMT', 'content-length': '15', 'content-type': 'application/json', 'x-compute-request-id': 'req-ce7df0d9-fd76-4fc8-bc31-5bd30bb75f53'}
  RESP BODY: {"servers": []}

  REQ: curl -i 'http://controller:8774/v2/5a4fbbd028994aaba30a6039dbcbca1b/servers?name=vm-test' -X GET -H "Accept: application/json" -H "User-Agent: python-novaclient" -H "X-Auth-Project-Id: admin" -H "X-Auth-Token: {SHA1}02535f90545a4ba33e8a2ef492de345dd6341f40"
  INFO (connectionpool:187) Starting new HTTP connection (1): controller
  DEBUG (connectionpool:357) "GET /v2/5a4fbbd028994aaba30a6039dbcbca1b/servers?name=vm-test HTTP/1.1" 200 15
  RESP: [200] {'date': 'Tue, 04 Nov 2014 03:58:20 GMT', 'content-length': '15', 'content-type': 'application/json', 'x-compute-request-id': 'req-f899b52f-a13a-4b60-9d45-8d155b8ca305'}
  RESP BODY: {"servers": []}

  DEBUG (shell:803) No server with a name or ID of 'vm-test' exists.
  Traceback (most recent call last):
    File "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 800, in main
      OpenStackComputeShell().main(argv)
    File "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 730, in main
      args.func(self.cs, args)
    File "/usr/lib/python2.7/site-packages/novaclient/v1_1/shell.py", line 1663, in do_show
      _print_server(cs, args)
    File "/usr/lib/python2.7/site-packages/novaclient/v1_1/shell.py", line 1611, in _print_server
      server = _find_server(cs, args.server)
    File "/usr/lib/python2.7/site-packages/novaclient/v1_1/shell.py", line 1687, in _find_server
      return utils.find_resource(cs.servers, server)
    File "/usr/lib/python2.7/site-packages/novaclient/utils.py", line 255, in find_resource
      raise exceptions.CommandError(msg)
  CommandError: No server with a name or ID of 'vm-test' exists.
  ERROR (CommandError): No server with a name or ID of 'vm-test' exists.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1389094/+subscriptions


References