Collect and verify role flavors fail

Bug #1832142 reported by Nikita Belov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ironic Dashboard
New
Undecided
Unassigned

Bug Description

I have the following flavor with custom properties.

(undercloud) [stack@service-05 ~]$ openstack flavor show baremetal
+----------------------------+----------------------------------------------------------------------------------------------------------------------+
| Field | Value |
+----------------------------+----------------------------------------------------------------------------------------------------------------------+
| OS-FLV-DISABLED:disabled | False |
| OS-FLV-EXT-DATA:ephemeral | 0 |
| access_project_ids | None |
| disk | 0 |
| id | fd3ab787-9148-49e8-831c-f20e4bde22f0 |
| name | baremetal |
| os-flavor-access:is_public | True |
| properties | baremetal='true', resources:CUSTOM_BAREMETAL='1', resources:DISK_GB='0', resources:MEMORY_MB='0', resources:VCPU='0' |
| ram | 256 |
| rxtx_factor | 1.0 |
| swap | |
| vcpus | 1 |
+----------------------------+----------------------------------------------------------------------------------------------------------------------+

When I launch validation on TripleO-UI I get:
Task 'Collect and check the flavors' failed:
Host: undercloud
Message: Flavor baremetal has a resource class that is not offering exactly 1 resource
Flavor baremetal has to have scheduling based on standard properties disabled by setting resources:VCPU=0

https://github.com/openstack/tripleo-validations/blob/master/validations/library/check_flavors.py#L141

Is it code ok? Why Maybe there is error with str/integer compare?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers