Bug 1641597
| Summary: | VM booted with nova command goes to ERROR state when testing hidden images; can't run on any compute nodes | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Mike Abrams <mabrams> |
| Component: | openstack-nova | Assignee: | OSP DFG:Compute <osp-dfg-compute> |
| Status: | CLOSED NOTABUG | QA Contact: | OSP DFG:Compute <osp-dfg-compute> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 14.0 (Rocky) | CC: | berrange, dasmith, eglynn, jhakimra, kchamart, mabrams, mbooth, sbauza, sferdjao, sgordon, vromanso |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-10-25 16:15:32 UTC | Type: | Bug |
| 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: | |||
| Bug Blocks: | 1552591 | ||
|
Description
Mike Abrams
2018-10-22 10:00:02 UTC
I was not able to reproduce the error with the given steps, my instance booted correctly and reached ACTIVE normally. Can you include more details about your deployment? * Are you running HA? Ceph? * Any particular config you should mention? * Did you leave the setup idle over long periods of time (like a weekend)? Hidden images seem to work as intended on my setup: 1. instances boot normally on an image --hidden false 2. instances cannot boot on an image --hidden true. Image won't appear on `openstack image list` 1. Using existing images ======================== (overcloud) [stack@undercloud-0 ~]$ glance image-list +--------------------------------------+----------------------------------+ | ID | Name | +--------------------------------------+----------------------------------+ | 460aef6d-d86e-4793-b7e9-e8b539206f4c | cirros | | a8b1fbac-c65a-490c-835d-2914362366b7 | cirros-0.3.5-x86_64-disk.img | | 32064eef-70be-4b3a-b8e1-243e1901dae9 | cirros-0.3.5-x86_64-disk.img_alt | | 71ba566d-bcf0-475b-887a-f547ed5337d0 | cirros-test3 | +--------------------------------------+----------------------------------+ 2. Boot on image --hidden false =============================== (overcloud) [stack@undercloud-0 ~]$ glance image-update 460aef6d-d86e-4793-b7e9-e8b539206f4c --hidden 'false' +------------------+----------------------------------------------------------------------------------+ | Property | Value | +------------------+----------------------------------------------------------------------------------+ | checksum | f8ab98ff5e73ebab884d80c9dc9c7290 | | container_format | bare | | created_at | 2018-10-23T07:58:01Z | | direct_url | swift+config://ref1/glance/460aef6d-d86e-4793-b7e9-e8b539206f4c | | disk_format | qcow2 | | id | 460aef6d-d86e-4793-b7e9-e8b539206f4c | | min_disk | 0 | | min_ram | 0 | | name | cirros | | os_hash_algo | sha512 | | os_hash_value | f0fd1b50420dce4ca382ccfbb528eef3a38bbeff00b54e95e3876b9bafe7ed2d6f919ca35d9046d4 | | | 37c6d2d8698b1174a335fbd66035bb3edc525d2cdb187232 | | os_hidden | False | | owner | e5b211383f70461486bf7a1142411ac8 | | protected | False | | size | 13267968 | | status | active | | tags | [] | | updated_at | 2018-10-23T07:58:03Z | | virtual_size | Not available | | visibility | shared | +------------------+----------------------------------------------------------------------------------+ (overcloud) [stack@undercloud-0 ~]$ openstack server create --flavor m1.micro --image cirros --nic net-id=074b3b76-ee80-45bb-8be8-bb09396ae158 test-hidden-false +-------------------------------------+-------------------------------------------------+ | Field | Value | +-------------------------------------+-------------------------------------------------+ | OS-DCF:diskConfig | MANUAL | | OS-EXT-AZ:availability_zone | | | OS-EXT-SRV-ATTR:host | None | | OS-EXT-SRV-ATTR:hypervisor_hostname | None | | OS-EXT-SRV-ATTR:instance_name | | | OS-EXT-STS:power_state | NOSTATE | | OS-EXT-STS:task_state | scheduling | | OS-EXT-STS:vm_state | building | | OS-SRV-USG:launched_at | None | | OS-SRV-USG:terminated_at | None | | accessIPv4 | | | accessIPv6 | | | addresses | | | adminPass | yQxNgV97u832 | | config_drive | | | created | 2018-10-24T13:39:43Z | | flavor | m1.micro (71df93b0-8fa7-43fd-a5d5-33971205dd2c) | | hostId | | | id | 99d532a3-5330-45cb-94d4-cb0962064a92 | | image | cirros (460aef6d-d86e-4793-b7e9-e8b539206f4c) | | key_name | None | | name | test-hidden-false | | progress | 0 | | project_id | e5b211383f70461486bf7a1142411ac8 | | properties | | | security_groups | name='default' | | status | BUILD | | updated | 2018-10-24T13:39:43Z | | user_id | a40b42e94db1401eb8419bc6daffa5e7 | | volumes_attached | | +-------------------------------------+-------------------------------------------------+ Instance boots normally ----------------------- (overcloud) [stack@undercloud-0 ~]$ openstack server show test-hidden-false | grep status | status | ACTIVE | 3. Boot instance on --hidden true image ======================================= (overcloud) [stack@undercloud-0 ~]$ glance image-update 460aef6d-d86e-4793-b7e9-e8b539206f4c --hidden 'true' +------------------+----------------------------------------------------------------------------------+ | Property | Value | +------------------+----------------------------------------------------------------------------------+ | checksum | f8ab98ff5e73ebab884d80c9dc9c7290 | | container_format | bare | | created_at | 2018-10-23T07:58:01Z | | direct_url | swift+config://ref1/glance/460aef6d-d86e-4793-b7e9-e8b539206f4c | | disk_format | qcow2 | | id | 460aef6d-d86e-4793-b7e9-e8b539206f4c | | min_disk | 0 | | min_ram | 0 | | name | cirros | | os_hash_algo | sha512 | | os_hash_value | f0fd1b50420dce4ca382ccfbb528eef3a38bbeff00b54e95e3876b9bafe7ed2d6f919ca35d9046d4 | | | 37c6d2d8698b1174a335fbd66035bb3edc525d2cdb187232 | | os_hidden | True | | owner | e5b211383f70461486bf7a1142411ac8 | | protected | False | | size | 13267968 | | status | active | | tags | [] | | updated_at | 2018-10-24T13:42:10Z | | virtual_size | Not available | | visibility | shared | +------------------+----------------------------------------------------------------------------------+ User cannot list image ----------------------- (overcloud) [stack@undercloud-0 ~]$ openstack server create --flavor m1.micro --image cirros --nic net-id=074b3b76-ee80-45bb-8be8-bb09396ae158 test-hidden-true Could not find resource cirros (overcloud) [stack@undercloud-0 ~]$ openstack image list +--------------------------------------+----------------------------------+--------+ | ID | Name | Status | +--------------------------------------+----------------------------------+--------+ | a8b1fbac-c65a-490c-835d-2914362366b7 | cirros-0.3.5-x86_64-disk.img | active | | 32064eef-70be-4b3a-b8e1-243e1901dae9 | cirros-0.3.5-x86_64-disk.img_alt | active | | 71ba566d-bcf0-475b-887a-f547ed5337d0 | cirros-test3 | active | +--------------------------------------+----------------------------------+--------+ |