Description
===========
nova-mange placement audit command always fails because the target resource provider is not found
~~~
# nova-manage placement audit --resource_provider dbba1bf7-6e97-4dcb-8d4c-37fe36633358 --verbose
Resource provider with UUID dbba1bf7-6e97-4dcb-8d4c-37fe36633358 does not exist.
Error: non zero exit code: 127: OCI runtime error
~~~
However the resource provider record actually exists in Placement.
Steps to reproduce
==================
- Look up existing resource provider uuid
$ openstack resource provider list
- Run audit command with one of the ids specified
$ nova-manage placement audit --resource_provider <rp id>
Expected result
===============
The command succeeds without error
Actual result
=============
The command fails with the following error
Description 6e97-4dcb- 8d4c-37fe366333 58 --verbose 6e97-4dcb- 8d4c-37fe366333 58 does not exist.
===========
nova-mange placement audit command always fails because the target resource provider is not found
~~~
# nova-manage placement audit --resource_provider dbba1bf7-
Resource provider with UUID dbba1bf7-
Error: non zero exit code: 127: OCI runtime error
~~~
However the resource provider record actually exists in Placement.
~~~ 6e97-4dcb- 8d4c-37fe366333 58 --os-placement- api-version 1.14 ------- ------- ------- ------- ----+-- ------- ------- ------- -+----- ------- +------ ------- ------- ------- ------- ----+-- ------- ------- ------+ provider_ uuid | ------- ------- ------- ------- ----+-- ------- ------- ------- -+----- ------- +------ ------- ------- ------- ------- ----+-- ------- ------- ------+ 6e97-4dcb- 8d4c-37fe366333 58 | compute- 0.redhat. local | 28 | dbba1bf7- 6e97-4dcb- 8d4c-37fe366333 58 | None | ------- ------- ------- ------- ----+-- ------- ------- ------- -+----- ------- +------ ------- ------- ------- ------- ----+-- ------- ------- ------+
(overcloud) [stack@undercloud-0 ~]$ openstack resource provider list --uuid dbba1bf7-
+------
| uuid | name | generation | root_provider_uuid | parent_
+------
| dbba1bf7-
+------
~~~
Looking at placement access log, the command is sending request with &uuid=<uuid> instead of ?uuid=<uuid>
~~~ requestlog [req-a9d4942e- 411a-4901- b05e-98ec1239ef 70 31e1d736a759444 f92346daf932243 ff 91063c94413548b 695edc6a0ef1f12 52 - default default] 172.17.1.24 "GET /placement/ resource_ providers& uuid=dbba1bf7- 6e97-4dcb- 8d4c-37fe366333 58" status: 404 len: 162 microversion: 1.14
2021-07-15 02:02:28.101 24 INFO placement.
~~~
Steps to reproduce
==================
- Look up existing resource provider uuid
$ openstack resource provider list
- Run audit command with one of the ids specified
$ nova-manage placement audit --resource_provider <rp id>
Expected result
===============
The command succeeds without error
Actual result
=============
The command fails with the following error
Resource provider with UUID <id> does not exist.
Environment /bugzilla. redhat. com/show_ bug.cgi? id=1982485
===========
This issue was initially found in the following downstream bug.
https:/
Logs & Configs
==============
N/A