nova-manage placement audit command always fails with --resource_provider option
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Takashi Kajinami | ||
Victoria |
Fix Released
|
Undecided
|
Unassigned | ||
Wallaby |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Description
===========
nova-mange placement audit command always fails if --resource_provider option is used 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.
~~~
(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>
~~~
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
===========
This issue was initially found in the following downstream bug.
https:/
Logs & Configs
==============
N/A
Changed in nova: | |
assignee: | nobody → Takashi Kajinami (kajinamit) |
description: | updated |
Changed in nova: | |
importance: | Undecided → Medium |
Fix proposed to branch: master /review. opendev. org/c/openstack /nova/+ /800855
Review: https:/