Bug 1929840
Summary: | Failed to create VM with watchdog by setting flavor metadata | ||
---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Cyril Roelandt <cyril> |
Component: | openstack-glance | Assignee: | Cyril Roelandt <cyril> |
Status: | CLOSED ERRATA | QA Contact: | Mike Abrams <mabrams> |
Severity: | medium | Docs Contact: | Andy Stillman <astillma> |
Priority: | high | ||
Version: | 13.0 (Queens) | CC: | athomas, ccopello, chhu, cyril, dasmith, eglynn, gfidente, jhakimra, kchamart, lyarwood, mabrams, sbauza, sgordon, smooney, vromanso |
Target Milestone: | z16 | Keywords: | Triaged, ZStream |
Target Release: | 13.0 (Queens) | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | openstack-glance-16.0.1-12.el7ost | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | 1851797 | Environment: | |
Last Closed: | 2021-06-16 10:58:58 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1851797 | ||
Bug Blocks: |
Description
Cyril Roelandt
2021-02-17 18:44:45 UTC
=== fixed in version present (undercloud) [stack@undercloud-0 ~]$ rpm -qa openstack-glance openstack-glance-16.0.1-12.el7ost.noarch (undercloud) [stack@undercloud-0 ~]$ (undercloud) [stack@undercloud-0 ~]$ rhos-release -L Installed repositories (rhel-7.9): 13 ceph-3 ceph-osd-3 rhel-7.9 (undercloud) [stack@undercloud-0 ~]$ cat /var/lib/rhos-release/latest-installed 13 -p 2021-05-13.1 (undercloud) [stack@undercloud-0 ~]$ === import image (overcloud) [stack@undercloud-0 ~]$ glance image-create-via-import --container-format ami --disk-format ami --name cirros-test --import-method web-download --uri http://download.cirros-cloud.net/0.5.1/cirros-0.5.1-x86_64-disk.img +------------------+--------------------------------------+ | Property | Value | +------------------+--------------------------------------+ | checksum | None | | container_format | ami | | created_at | 2021-06-06T06:45:32Z | | disk_format | ami | | id | d95222ba-48de-4692-ac54-fb91e5462170 | | min_disk | 0 | | min_ram | 0 | | name | cirros-test | | owner | eed49df33d8a479aa93ee001cf928cdc | | protected | False | | size | None | | status | importing | | tags | [] | | updated_at | 2021-06-06T06:45:34Z | | virtual_size | None | | visibility | shared | +------------------+--------------------------------------+ (overcloud) [stack@undercloud-0 ~]$ glance image-show d95222ba-48de-4692-ac54-fb91e5462170 | grep status | status | active | (overcloud) [stack@undercloud-0 ~]$ === set watchdog action (overcloud) [stack@undercloud-0 ~]$ glance image-update d95222ba-48de-4692-ac54-fb91e5462170 --property hw_watchdog_action=pause +--------------------+-----------------------------------------------------------------+ | Property | Value | +--------------------+-----------------------------------------------------------------+ | checksum | 1d3062cd89af34e419f7100277f38b2b | | container_format | ami | | created_at | 2021-06-06T06:45:32Z | | direct_url | swift+config://ref1/glance/d95222ba-48de-4692-ac54-fb91e5462170 | | disk_format | ami | | hw_watchdog_action | pause | | id | d95222ba-48de-4692-ac54-fb91e5462170 | | min_disk | 0 | | min_ram | 0 | | name | cirros-test | | owner | eed49df33d8a479aa93ee001cf928cdc | | protected | False | | size | 16338944 | | status | active | | tags | [] | | updated_at | 2021-06-06T06:47:08Z | | virtual_size | None | | visibility | shared | +--------------------+-----------------------------------------------------------------+ (overcloud) [stack@undercloud-0 ~]$ === boot VM to the hw_watchdog_action=pause image (overcloud) [stack@undercloud-0 ~]$ glance image-list +--------------------------------------+-------------+ | ID | Name | +--------------------------------------+-------------+ | d95222ba-48de-4692-ac54-fb91e5462170 | cirros-test | +--------------------------------------+-------------+ (overcloud) [stack@undercloud-0 ~]$ neutron net-list neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead. +--------------------------------------+--------+----------------------------------+--------------------------------------------------+ | id | name | tenant_id | subnets | +--------------------------------------+--------+----------------------------------+--------------------------------------------------+ | 6c60e560-d88e-4587-85e1-7d0517257a5f | public | eed49df33d8a479aa93ee001cf928cdc | bef7ab90-bf45-4730-add7-eef531721c9f 10.0.0.0/24 | +--------------------------------------+--------+----------------------------------+--------------------------------------------------+ (overcloud) [stack@undercloud-0 ~]$ nova flavor-list +--------------------------------------+---------+-----------+------+-----------+------+-------+-------------+-----------+-------------+ | ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public | Description | +--------------------------------------+---------+-----------+------+-----------+------+-------+-------------+-----------+-------------+ | b97f88d8-9d11-4193-8580-d18069920b3a | m2.tiny | 1024 | 10 | 0 | 2048 | 1 | 1.0 | True | - | +--------------------------------------+---------+-----------+------+-----------+------+-------+-------------+-----------+-------------+ (overcloud) [stack@undercloud-0 ~]$ nova boot --nic net-id=6c60e560-d88e-4587-85e1-7d0517257a5f --flavor m2.tiny --image d95222ba-48de-4692-ac54-fb91e5462170 cirros-test-001 +--------------------------------------+----------------------------------------------------+ | Property | Value | +--------------------------------------+----------------------------------------------------+ | OS-DCF:diskConfig | MANUAL | | OS-EXT-AZ:availability_zone | | | OS-EXT-SRV-ATTR:host | - | | OS-EXT-SRV-ATTR:hostname | cirros-test-001 | | OS-EXT-SRV-ATTR:hypervisor_hostname | - | | OS-EXT-SRV-ATTR:instance_name | | | OS-EXT-SRV-ATTR:kernel_id | | | OS-EXT-SRV-ATTR:launch_index | 0 | | OS-EXT-SRV-ATTR:ramdisk_id | | | OS-EXT-SRV-ATTR:reservation_id | r-93eov2ld | | OS-EXT-SRV-ATTR:root_device_name | - | | OS-EXT-SRV-ATTR:user_data | - | | OS-EXT-STS:power_state | 0 | | OS-EXT-STS:task_state | scheduling | | OS-EXT-STS:vm_state | building | | OS-SRV-USG:launched_at | - | | OS-SRV-USG:terminated_at | - | | accessIPv4 | | | accessIPv6 | | | adminPass | oAdeXj8krscF | | config_drive | | | created | 2021-06-06T06:53:02Z | | description | - | | flavor:disk | 10 | | flavor:ephemeral | 0 | | flavor:extra_specs | {} | | flavor:original_name | m2.tiny | | flavor:ram | 1024 | | flavor:swap | 2048 | | flavor:vcpus | 1 | | hostId | | | host_status | | | id | 10f2259a-52a1-4e02-a47b-89ec625c6561 | | image | cirros-test (d95222ba-48de-4692-ac54-fb91e5462170) | | key_name | - | | locked | False | | metadata | {} | | name | cirros-test-001 | | os-extended-volumes:volumes_attached | [] | | progress | 0 | | security_groups | default | | status | BUILD | | tags | [] | | tenant_id | eed49df33d8a479aa93ee001cf928cdc | | updated | 2021-06-06T06:53:02Z | | user_id | abb669b50d674eadaf4874e87723cdbe | +--------------------------------------+----------------------------------------------------+ (overcloud) [stack@undercloud-0 ~]$ nova list +--------------------------------------+-----------------+--------+------------+-------------+----------+ | ID | Name | Status | Task State | Power State | Networks | +--------------------------------------+-----------------+--------+------------+-------------+----------+ | 10f2259a-52a1-4e02-a47b-89ec625c6561 | cirros-test-001 | BUILD | spawning | NOSTATE | | +--------------------------------------+-----------------+--------+------------+-------------+----------+ (overcloud) [stack@undercloud-0 ~]$ nova list +--------------------------------------+-----------------+--------+------------+-------------+-------------------+ | ID | Name | Status | Task State | Power State | Networks | +--------------------------------------+-----------------+--------+------------+-------------+-------------------+ | 10f2259a-52a1-4e02-a47b-89ec625c6561 | cirros-test-001 | ACTIVE | - | Running | public=10.0.0.217 | +--------------------------------------+-----------------+--------+------------+-------------+-------------------+ (overcloud) [stack@undercloud-0 ~]$ === no errors in nova-scheduler.log (undercloud) [stack@undercloud-0 ~]$ openstack server list +--------------------------------------+----------------+--------+------------------------+----------------+------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+----------------+--------+------------------------+----------------+------------+ | 03628e93-c82a-4545-8689-a947f0a3daf5 | controller13-1 | ACTIVE | ctlplane=192.168.24.10 | overcloud-full | controller | | 7deb5f5e-bba4-4b5d-8023-3a6edbd87d98 | compute13-1 | ACTIVE | ctlplane=192.168.24.38 | overcloud-full | compute | | 225e84a6-c0fa-4c25-8f01-b1b6a1e7aaa8 | controller13-2 | ACTIVE | ctlplane=192.168.24.14 | overcloud-full | controller | | 702ad596-c84a-4176-a1c2-5e74bc7c2b0d | controller13-0 | ACTIVE | ctlplane=192.168.24.7 | overcloud-full | controller | | 9eaeccee-ee38-4b41-a2b5-84cbe54dde8c | compute13-0 | ACTIVE | ctlplane=192.168.24.16 | overcloud-full | compute | +--------------------------------------+----------------+--------+------------------------+----------------+------------+ (undercloud) [stack@undercloud-0 ~]$ for i in 7 10 14; do echo "=== 192.168.24.$i"; ssh -t heat-admin.24.$i "sudo egrep -i 'warn|err' /var/log/containers/nova/nova-scheduler.log"; done === 192.168.24.7 Warning: Permanently added '192.168.24.7' (ECDSA) to the list of known hosts. Connection to 192.168.24.7 closed. === 192.168.24.10 Warning: Permanently added '192.168.24.10' (ECDSA) to the list of known hosts. Connection to 192.168.24.10 closed. === 192.168.24.14 Warning: Permanently added '192.168.24.14' (ECDSA) to the list of known hosts. Connection to 192.168.24.14 closed. (undercloud) [stack@undercloud-0 ~]$ Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Red Hat OpenStack Platform 13.0 bug fix and enhancement advisory), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2021:2385 |