Openstack / Nova CLI returning "Unknown Error HTTP 500"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
High
|
Luan Nunes Utimura |
Bug Description
Brief Description
-----------------
STX-Openstack sanity is constantly having failed test cases due to the openstack cli returning "Unknown Error HTTP 500". system cli is also returning this error in some cases.
test cases:
lock/unlock: intermittent
live-migrate: constant
pause/unpause: constant
suspend/resume: constant
Severity
--------
Major: System/Feature is usable but degraded
Steps to Reproduce
------------------
Issue openstack cli commands on VMs.
Expected Behavior
------------------
Command is executed as expected
Actual Behavior
----------------
Command returns "Unknown Error HTTP 500"
Reproducibility
---------------
100% reproducible
System Configuration
-------
Two node system - AIO Duplex
Branch/Pull Time/Commit
-------
/mirror/
Last Pass
---------
Never passed on Debian
Timestamp/Logs
--------------
[sysadmin@
[sysadmin@
Test Activity
-------------
Sanity
Workaround
----------
N/A
Changed in starlingx: | |
assignee: | nobody → Thales Elero Cervi (tcervi) |
tags: | added: stx.8.0 stx.distro.openstack |
Changed in starlingx: | |
assignee: | Thales Elero Cervi (tcervi) → Luan Nunes Utimura (lutimura) |
Changed in starlingx: | |
importance: | Undecided → High |
Collected a nova client live-migration call with debug flag:
DEBUG (session:944) GET call to compute for http:// nova.openstack. svc.cluster. local/v2. 1/xyz/servers/ xyz used request id req-xyz nova.openstack. svc.cluster. local/v2. 1/xyz/servers/ xyz/action -H "Accept: application/json" -H "Content-Type: application/json" -H "OpenStack- API-Version: compute 2.87" -H "User-Agent: python-novaclient" -H "X-Auth-Token: {SHA256}xyz" -H "X-OpenStack- Nova-API- Version: 2.87" -d '{"os-migrateLive": {"host": null, "block_migration": "auto"}}' :452) http:// nova.openstack. svc.cluster. local:80 "POST /v2.1/xyz/ servers/ xyz/action HTTP/1.1" 500 0 python3/ dist-packages/ novaclient/ shell.py" , line 819, in main mputeShell( ).main( argv) python3/ dist-packages/ novaclient/ shell.py" , line 741, in main func(self. cs, args) python3/ dist-packages/ novaclient/ v2/shell. py", line 3680, in do_live_migration server( cs, args.server) .live_migrate( args.host, args.block_migrate, python3/ dist-packages/ novaclient/ api_versions. py", line 393, in substitution -1].func( obj, *args, **kwargs) python3/ dist-packages/ novaclient/ v2/servers. py", line 507, in live_migrate live_migrate( self, host, block_migration) python3/ dist-packages/ novaclient/ api_versions. py", line 393, in substitution -1].func( obj, *args, **kwargs) python3/ dist-packages/ novaclient/ v2/servers. py", line 1892, in live_migrate migrate( server, host, python3/ dist-packages/ novaclient/ v2/servers. py", line 1830, in _live_migrate 'os-migrateLive ', server, body) python3/ dist-packages/ novaclient/ v2/servers. py", line 2115, in _action return_ resp_and_ body(action, server, python3/ dist-packages/ novaclient/ v2/servers. py", line 2127, in _action_ return_ resp_and_ body client. post(url, body=body) python3/ dist-packages/ keystoneauth1/ adapter. py", line 401, in post python3/ dist-packages/ novaclient/ client. py", line 78, in request from_response( resp, body, url, method) exceptions. ClientException : Unknown Error (HTTP 500)
DEBUG (session:517) REQ: curl -g -i -X POST http://
DEBUG (connectionpool
DEBUG (session:548) RESP: [500] Connection: keep-alive Content-Length: 0 Content-Type: text/plain Date: Tue, 24 Jan 2023 20:33:34 GMT
DEBUG (session:580) RESP BODY: Omitted, Content-Type is set to text/plain. Only application/json responses have their bodies logged.
DEBUG (shell:821) Unknown Error (HTTP 500)
Traceback (most recent call last):
File "/usr/lib/
OpenStackCo
File "/usr/lib/
args.
File "/usr/lib/
_find_
File "/usr/lib/
return methods[
File "/usr/lib/
return self.manager.
File "/usr/lib/
return methods[
File "/usr/lib/
return self._live_
File "/usr/lib/
return self._action(
File "/usr/lib/
resp, body = self._action_
File "/usr/lib/
return self.api.
File "/usr/lib/
return self.request(url, 'POST', **kwargs)
File "/usr/lib/
raise exceptions.
novaclient.
ERROR (ClientException): Unknown Error (HTTP 500)