"collect-flavors-and-verify-profiles" is failing due to wrong condition

Bug #1905018 reported by Martin Schuppert
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Undecided
Martin Schuppert

Bug Description

Pre-upgarde validation[1] is for "collect-flavors-and-verify-profiles" is failing after running the command[2]

+--------------------------------------+-------------------------------------+--------+-----------------------+----------------+---------------------+-------------+
| UUID | Validations | Status | Host Group(s) | Status by Host | Unreachable Host(s) | Duration |
+--------------------------------------+-------------------------------------+--------+-----------------------+----------------+---------------------+-------------+
| 5254000f-87a1-4f3e-bcbc-000000000006 | collect-flavors-and-verify-profiles | FAILED | undercloud | undercloud | | 0:00:03.475 |
+--------------------------------------+-------------------------------------+--------+-----------------------+----------------+---------------------+-------------+

(undercloud) [stack@undercloud-0 ~]$ openstack tripleo validator show run 5254000f-87a1-4f3e-bcbc-000000000006
{
    "task": {
        "hosts": {
            "undercloud": {
                "_ansible_no_log": false,
                "action": "check_flavors",
                "changed": false,
                "failed": true,
                "invocation": {
                    "module_args": {
                        "flavors": {
                            "baremetal": {
                                "disk": 8,
                                "ephemeral": 0,
                                "id": "29b049dc-5ad1-439a-8f81-d704f051c058",
                                "is_public": true,
                                "keys": {
                                    "resources:CUSTOM_BAREMETAL": "1",
                                    "resources:DISK_GB": "0",
                                    "resources:MEMORY_MB": "0",
                                    "resources:VCPU": "0"
                                },
                                "name": "baremetal",
                                "ram": 4096,
                                "rxtx_factor": 1.0,
                                "swap": "",
                                "vcpus": 1
                            },
                            "block-storage": {
                                "disk": 40,
                                "ephemeral": 0,
                                "id": "4d0e414d-d26e-4232-b80c-f850fe8b1ae8",
                                "is_public": true,
                                "keys": {
                                    "capabilities:profile": "block-storage",
                                    "resources:CUSTOM_BAREMETAL": "1",
                                    "resources:DISK_GB": "0",
                                    "resources:MEMORY_MB": "0",
                                    "resources:VCPU": "0"
                                },
                                "name": "block-storage",
                                "ram": 4096,
                                "rxtx_factor": 1.0,
                                "swap": "",
                                "vcpus": 1
                            },
                            "ceph-storage": {
                                "disk": 40,
                                "ephemeral": 0,
                                "id": "5fdb3b4d-2867-4f7b-943d-e80ccb24fd08",
                                "is_public": true,
                                "keys": {
                                    "capabilities:profile": "ceph-storage",
                                    "resources:CUSTOM_BAREMETAL": "1",
                                    "resources:DISK_GB": "0",
                                    "resources:MEMORY_MB": "0",
                                    "resources:VCPU": "0"
                                },
                                "name": "ceph-storage",
                                "ram": 4096,
                                "rxtx_factor": 1.0,
                                "swap": "",
                                "vcpus": 1
                            },
                            "compute": {
                                "disk": 17,
                                "ephemeral": 0,
                                "id": "2e09e8ef-d5f9-45af-9abe-03b04b31775a",
                                "is_public": true,
                                "keys": {
                                    "capabilities:profile": "compute",
                                    "cpu_arch": "x86_64",
                                    "resources:CUSTOM_COMPUTE": "1",
                                    "resources:DISK_GB": "0",
                                    "resources:MEMORY_MB": "0",
                                    "resources:VCPU": "0"
                                },
                                "name": "compute",
                                "ram": 6144,
                                "rxtx_factor": 1.0,
                                "swap": "",
                                "vcpus": 1
                            },
                            "control": {
                                "disk": 40,
                                "ephemeral": 0,
                                "id": "5fcb2924-9b3f-4904-a45a-48cbdb49a383",
                                "is_public": true,
                                "keys": {
                                    "capabilities:profile": "control",
                                    "resources:CUSTOM_BAREMETAL": "1",
                                    "resources:DISK_GB": "0",
                                    "resources:MEMORY_MB": "0",
                                    "resources:VCPU": "0"
                                },
                                "name": "control",
                                "ram": 4096,
                                "rxtx_factor": 1.0,
                                "swap": "",
                                "vcpus": 1
                            },
                            "controller": {
                                "disk": 27,
                                "ephemeral": 0,
                                "id": "e65fc02c-9144-4710-b087-78540af71564",
                                "is_public": true,
                                "keys": {
                                    "capabilities:boot_option": "local",
                                    "capabilities:profile": "controller",
                                    "cpu_arch": "x86_64",
                                    "resources:CUSTOM_CONTROLLER": "1",
                                    "resources:DISK_GB": "0",
                                    "resources:MEMORY_MB": "0",
                                    "resources:VCPU": "0"
                                },
                                "name": "controller",
                                "ram": 16384,
                                "rxtx_factor": 1.0,
                                "swap": "",
                                "vcpus": 1
                            },
                            "swift-storage": {
                                "disk": 40,
                                "ephemeral": 0,
                                "id": "30ecbf84-e5ed-4a41-9f02-bdce9b3d5a6a",
                                "is_public": true,
                                "keys": {
                                    "capabilities:profile": "swift-storage",
                                    "resources:CUSTOM_BAREMETAL": "1",
                                    "resources:DISK_GB": "0",
                                    "resources:MEMORY_MB": "0",
                                    "resources:VCPU": "0"
                                },
                                "name": "swift-storage",
                                "ram": 4096,
                                "rxtx_factor": 1.0,
                                "swap": "",
                                "vcpus": 1
                            }
                        },
                        "roles_info": [
                            {
                                "count": 3,
                                "flavor": "controller",
                                "name": "Controller"
                            },
                            {
                                "count": 1,
                                "flavor": "compute",
                                "name": "Compute"
                            },
                            {
                                "count": 0,
                                "flavor": null,
                                "name": "BlockStorage"
                            },
                            {
                                "count": 0,
                                "flavor": null,
                                "name": "ObjectStorage"
                            },
                            {
                                "count": 0,
                                "flavor": null,
                                "name": "CephStorage"
                            }
                        ]
                    }
                },
                "msg": "Flavor controller has a resource class that is not offering exactly 1 resource\nFlavor controller has to have scheduling based on standard properties disabled by setting resources:VCPU=0 resources:MEMORY_MB=0 resources:DISK_GB=0 in the flavor property\nFlavor compute has a resource class that is not offering exactly 1 resource\nFlavor compute has to have scheduling based on standard properties disabled by setting resources:VCPU=0 resources:MEMORY_MB=0 resources:DISK_GB=0 in the flavor property"
            }
        },
        "name": "Collect and check the flavors",
        "status": "FAILED"
    }
}

Please note that flavor properties are seems to be correct as the stack is deployed using same properties.

~~~
(undercloud) [stack@undercloud-0 ~]$ openstack flavor show compute --fit-width
+----------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
| Field | Value |
+----------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
| OS-FLV-DISABLED:disabled | False |
| OS-FLV-EXT-DATA:ephemeral | 0 |
| access_project_ids | None |
| disk | 17 |
| id | 2e09e8ef-d5f9-45af-9abe-03b04b31775a |
| name | compute |
| os-flavor-access:is_public | True |
| properties | capabilities:profile='compute', cpu_arch='x86_64', resources:CUSTOM_COMPUTE='1', resources:DISK_GB='0', resources:MEMORY_MB='0', |
| | resources:VCPU='0' |
| ram | 6144 |
| rxtx_factor | 1.0 |
| swap | |
| vcpus | 1 |
+----------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
(undercloud) [stack@undercloud-0 ~]$ openstack flavor show control --fit-width
+----------------------------+------------------------------------------------------------------------------------------------------------------------------------+
| Field | Value |
+----------------------------+------------------------------------------------------------------------------------------------------------------------------------+
| OS-FLV-DISABLED:disabled | False |
| OS-FLV-EXT-DATA:ephemeral | 0 |
| access_project_ids | None |
| disk | 40 |
| id | 5fcb2924-9b3f-4904-a45a-48cbdb49a383 |
| name | control |
| os-flavor-access:is_public | True |
| properties | capabilities:profile='control', resources:CUSTOM_BAREMETAL='1', resources:DISK_GB='0', resources:MEMORY_MB='0', resources:VCPU='0' |
| ram | 4096 |
| rxtx_factor | 1.0 |
| swap | |
| vcpus | 1 |
+----------------------------+------------------------------------------------------------------------------------------------------------------------------------+
(undercloud) [stack@undercloud-0 ~]$
~~~

Additionally, validation is also trying to validate other available in the environment even though those flavor are not geeting used in any existing role.

~~~
(undercloud) [stack@undercloud-0 ~]$ openstack flavor list --fit-width
+--------------------------------------+---------------+-------+------+-----------+-------+-----------+
| ID | Name | RAM | Disk | Ephemeral | VCPUs | Is Public |
+--------------------------------------+---------------+-------+------+-----------+-------+-----------+
| 29b049dc-5ad1-439a-8f81-d704f051c058 | baremetal | 4096 | 8 | 0 | 1 | True | - not using for any role
| 2e09e8ef-d5f9-45af-9abe-03b04b31775a | compute | 6144 | 17 | 0 | 1 | True | - using for compute role
| 30ecbf84-e5ed-4a41-9f02-bdce9b3d5a6a | swift-storage | 4096 | 40 | 0 | 1 | True | - not using for any role
| 4d0e414d-d26e-4232-b80c-f850fe8b1ae8 | block-storage | 4096 | 40 | 0 | 1 | True | - not using for any role
| 5fcb2924-9b3f-4904-a45a-48cbdb49a383 | control | 4096 | 40 | 0 | 1 | True | - using for controller role
| 5fdb3b4d-2867-4f7b-943d-e80ccb24fd08 | ceph-storage | 4096 | 40 | 0 | 1 | True | - not using for any role
| e65fc02c-9144-4710-b087-78540af71564 | controller | 16384 | 27 | 0 | 1 | True | - not using for any role
+--------------------------------------+---------------+-------+------+-----------+-------+-----------+
~~~

[1] https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/16.1/html-single/framework_for_upgrades_13_to_16.1/index?validating-red-hat-openstack-platform-oldvernum-before-the-upgrade#validating-the-pre-upgrade-requirements
[2] openstack tripleo validator run --group pre-upgrade

Changed in tripleo:
assignee: nobody → Martin Schuppert (mschuppert)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-validations (master)

Fix proposed to branch: master
Review: https://review.opendev.org/763552

Changed in tripleo:
status: New → In Progress
Revision history for this message
Martin Schuppert (mschuppert) wrote :

Fixes merged in master, victoria, ussuri and train https://review.opendev.org/q/Ia194cebaeb7dcc40b4011e50cdde7648b4bf87b1

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-validations 13.1.0

This issue was fixed in the openstack/tripleo-validations 13.1.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-validations 14.0.0

This issue was fixed in the openstack/tripleo-validations 14.0.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-validations 12.3.3

This issue was fixed in the openstack/tripleo-validations 12.3.3 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-validations 11.4.0

This issue was fixed in the openstack/tripleo-validations 11.4.0 release.

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.