yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #09580
[Bug 1012618] Re: GET console output of server in Rebuild status is throwing 500 error
** Changed in: nova
Status: Incomplete => 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/1012618
Title:
GET console output of server in Rebuild status is throwing 500 error
Status in OpenStack Compute (Nova):
Invalid
Bug description:
GET console output of server in Rebuild status is throwing 500 error.
Actual Result:
Is throwing 500 error code.
Expected Result:
Should return the console output else should shown an appropriate error message.
LOG:
--------
[muralik@openstack27 ~]$nova list
+--------------------------------------+--------+--------+---------------------+
| ID | Name | Status | Networks |
+--------------------------------------+--------+--------+---------------------+
| 942296a6-74a1-496b-818d-491cb5084b3b | test-1 | ACTIVE | private_1=10.0.0.36 |
+--------------------------------------+--------+--------+---------------------+
[muralik@openstack27 ~]$nova rebuild 942296a6-74a1-496b-818d-491cb5084b3b bc1b9cb1-81e1-4b5c-8307-59bc1969c260
+-------------------+----------------------------------------------------------+
| Property | Value |
+-------------------+----------------------------------------------------------+
| OS-DCF:diskConfig | MANUAL |
| accessIPv4 | |
| accessIPv6 | |
| adminPass | FUFQxs4tQLce |
| config_drive | |
| created | 2012-06-13T11:57:51Z |
| flavor | m1.tiny |
| hostId | 3bfc2f6b4e561b4edffb8502d1a3c97c4c836963344a770520006e22 |
| id | 942296a6-74a1-496b-818d-491cb5084b3b |
| image | cirros-0.3-x86_64 |
| key_name | |
| metadata | {} |
| name | test-1 |
| private_1 network | 10.0.0.36 |
| progress | 0 |
| status | REBUILD |
| tenant_id | admin |
| updated | 2012-06-13T12:03:33Z |
| user_id | admin |
+-------------------+----------------------------------------------------------+
[muralik@openstack27 ~]$nova --debug console-log 942296a6-74a1-496b-818d-491cb5084b3b --length 10
connect: (10.233.52.236, 8774)
send: 'GET /v1.1 HTTP/1.1\r\nHost: 10.233.52.236:8774\r\nx-auth-project-id: admin\r\naccept-encoding: gzip, deflate\r\nx-auth-user: admin\r\nuser-agent: python-novaclient\r\nx-auth-key: testuser\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: admin:admin
header: X-Server-Management-Url: http://10.233.52.236:8774/v1.1/admin
header: Content-Type: text/plain; charset=UTF-8
header: Date: Wed, 13 Jun 2012 12:03:37 GMT
send: 'GET /v1.1/admin/servers/942296a6-74a1-496b-818d-491cb5084b3b HTTP/1.1\r\nHost: 10.233.52.236:8774\r\nx-auth-project-id: admin\r\nx-auth-token: admin:admin\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: X-Compute-Request-Id: req-8eaa7fad-668c-471e-afd2-6e6294c1e168
header: Content-Type: application/json
header: Content-Length: 1230
header: Date: Wed, 13 Jun 2012 12:03:37 GMT
send: u'GET /v1.1/admin/servers/942296a6-74a1-496b-818d-491cb5084b3b HTTP/1.1\r\nHost: 10.233.52.236:8774\r\nx-auth-project-id: admin\r\nx-auth-token: admin:admin\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: X-Compute-Request-Id: req-b6e527d3-c20c-4e18-aa9b-79f62e88199c
header: Content-Type: application/json
header: Content-Length: 1230
header: Date: Wed, 13 Jun 2012 12:03:38 GMT
send: u'POST /v1.1/admin/servers/942296a6-74a1-496b-818d-491cb5084b3b/action HTTP/1.1\r\nHost: 10.233.52.236:8774\r\nContent-Length: 41\r\nx-auth-project-id: admin\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nx-auth-token: admin:admin\r\nuser-agent: python-novaclient\r\ncontent-type: application/json\r\n\r\n{"os-getConsoleOutput": {"length": "10"}}'
reply: 'HTTP/1.1 500 Internal Server Error\r\n'
header: Content-Length: 128
header: Content-Type: application/json; charset=UTF-8
header: X-Compute-Request-Id: req-0a600e32-7d83-42ce-a475-835e234c0f02
header: Date: Wed, 13 Jun 2012 12:03:38 GMT
DEBUG (shell:416) The server has either erred or is incapable of performing the requested operation. (HTTP 500)
Traceback (most recent call last):
File "/opt/stack/python-novaclient/novaclient/shell.py", line 413, in main
OpenStackComputeShell().main(sys.argv[1:])
File "/opt/stack/python-novaclient/novaclient/shell.py", line 364, in main
args.func(self.cs, args)
File "/opt/stack/python-novaclient/novaclient/v1_1/shell.py", line 1039, in do_console_log
data = server.get_console_output(length=args.length)
File "/opt/stack/python-novaclient/novaclient/v1_1/servers.py", line 58, in get_console_output
return self.manager.get_console_output(self, length)
File "/opt/stack/python-novaclient/novaclient/v1_1/servers.py", line 584, in get_console_output
{'length': length})[1]['output']
File "/opt/stack/python-novaclient/novaclient/v1_1/servers.py", line 617, in _action
return self.api.client.post(url, body=body)
File "/opt/stack/python-novaclient/novaclient/client.py", line 139, in post
return self._cs_request(url, 'POST', **kwargs)
File "/opt/stack/python-novaclient/novaclient/client.py", line 124, in _cs_request
**kwargs)
File "/opt/stack/python-novaclient/novaclient/client.py", line 107, in request
raise exceptions.from_response(resp, body)
ClientException: The server has either erred or is incapable of performing the requested operation. (HTTP 500)
ERROR: The server has either erred or is incapable of performing the requested operation. (HTTP 500)
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1012618/+subscriptions