Bug 1551617

Summary: nova boot image results in ERROR state
Product: Red Hat OpenStack Reporter: Mike Abrams <mabrams>
Component: python-novaclientAssignee: OSP DFG:Compute <osp-dfg-compute>
Status: CLOSED DUPLICATE QA Contact: OSP DFG:Compute <osp-dfg-compute>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 13.0 (Queens)CC: awaugama, berrange, bkopilov, cschwede, dasmith, dschoenb, eglynn, jhakimra, jomurphy, jruzicka, kchamart, lyarwood, sbauza, scohen, sferdjao, sgordon, srevivo, tbarron, vromanso
Target Milestone: rc   
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-03-12 10:35:12 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:

Description Mike Abrams 2018-03-05 14:31:13 UTC
Description of problem:
nova boot image results in ERROR state

Version-Release number of selected component (if applicable):
rhos13
(overcloud) [stack@undercloud-0 ~]$ rpm -qf `which nova`
python-novaclient-9.1.1-1.el7ost.noarch
(overcloud) [stack@undercloud-0 ~]$

How reproducible:
always

Steps to Reproduce:
1. glance image-create --name cirros-test --disk-format qcow2 --container-format bare --file ./cirros-0.3.5-x86_64-disk.img
2. nova boot --nic net-id=7cd63b77-8562-4f78-b101-640517ee700a --flavor m2.tiny --image f8c8c0cf-d522-48b1-a8f7-8b8a782016c4 test01
3.

Actual results:
(overcloud) [stack@undercloud-0 ~]$ nova boot --nic net-id=7cd63b77-8562-4f78-b101-640517ee700a --flavor m2.tiny --image f8c8c0cf-d522-48b1-a8f7-8b8a782016c4 test01
+--------------------------------------+----------------------------------------------------+
| Property                             | Value                                              |
+--------------------------------------+----------------------------------------------------+
| OS-DCF:diskConfig                    | MANUAL                                             |
| OS-EXT-AZ:availability_zone          |                                                    |
| OS-EXT-SRV-ATTR:host                 | -                                                  |
| OS-EXT-SRV-ATTR:hostname             | test01                                             |
| 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-m5ejk9ne                                         |
| 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                            | 7kUSJbKznBQz                                       |
| config_drive                         |                                                    |
| created                              | 2018-03-05T14:19:04Z                               |
| 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                                   | 814670ee-652b-486a-913c-61aa4f6dff83               |
| image                                | cirros-test (f8c8c0cf-d522-48b1-a8f7-8b8a782016c4) |
| key_name                             | -                                                  |
| locked                               | False                                              |
| metadata                             | {}                                                 |
| name                                 | test01                                             |
| os-extended-volumes:volumes_attached | []                                                 |
| progress                             | 0                                                  |
| security_groups                      | default                                            |
| status                               | BUILD                                              |
| tags                                 | []                                                 |
| tenant_id                            | b9e315380452484eba568c686bf8ff18                   |
| updated                              | 2018-03-05T14:19:04Z                               |
| user_id                              | c90880b3f8434f75aa6fb7592556a4d1                   |
+--------------------------------------+----------------------------------------------------+
(overcloud) [stack@undercloud-0 ~]$ 

(overcloud) [stack@undercloud-0 ~]$ nova list
+--------------------------------------+--------+--------+------------+-------------+----------+
| ID                                   | Name   | Status | Task State | Power State | Networks |
+--------------------------------------+--------+--------+------------+-------------+----------+
| 814670ee-652b-486a-913c-61aa4f6dff83 | test01 | ERROR  | -          | NOSTATE     |          |
+--------------------------------------+--------+--------+------------+-------------+----------+
(overcloud) [stack@undercloud-0 ~]$

Expected results:
image gets set to ACTIVE

Additional info:

(overcloud) [stack@undercloud-0 ~]$ glance image-create --name cirros-test --disk-format qcow2 --container-format bare --file ./cirros-0.3.5-x86_64-disk.img
+------------------+-----------------------------------------------+
| Property         | Value                                         |
+------------------+-----------------------------------------------+
| checksum         | f8ab98ff5e73ebab884d80c9dc9c7290              |
| container_format | bare                                          |
| created_at       | 2018-03-05T14:17:08Z                          |
| direct_url       | cinder://7881bd8c-8254-42b0-b42a-791aa14b9413 |
| disk_format      | qcow2                                         |
| id               | f8c8c0cf-d522-48b1-a8f7-8b8a782016c4          |
| min_disk         | 0                                             |
| min_ram          | 0                                             |
| name             | cirros-test                                   |
| owner            | b9e315380452484eba568c686bf8ff18              |
| protected        | False                                         |
| size             | 13267968                                      |
| status           | active                                        |
| tags             | []                                            |
| updated_at       | 2018-03-05T14:17:36Z                          |
| virtual_size     | None                                          |
| visibility       | shared                                        |
+------------------+-----------------------------------------------+
(overcloud) [stack@undercloud-0 ~]$ for i in `cat controllers`; do echo "=== $i"; ssh -t heat-admin@$i "sudo docker exec -it glance_api sh -c 'grep ^stores /etc/glance/glance-api.conf'"; done
=== 192.168.24.12
stores=http,cinder
Connection to 192.168.24.12 closed.
=== 192.168.24.16
stores=http,cinder
Connection to 192.168.24.16 closed.
=== 192.168.24.17
stores=http,cinder
Connection to 192.168.24.17 closed.
(overcloud) [stack@undercloud-0 ~]$ for i in `cat controllers`; do echo "=== $i"; ssh -t heat-admin@$i "sudo docker exec -it glance_api sh -c 'grep ^default_store /etc/glance/glance-api.conf'"; done
=== 192.168.24.12
default_store=cinder
Connection to 192.168.24.12 closed.
=== 192.168.24.16
default_store=cinder
Connection to 192.168.24.16 closed.
=== 192.168.24.17
default_store=cinder
Connection to 192.168.24.17 closed.
(overcloud) [stack@undercloud-0 ~]$ 

*** happens with cinder as a backend to glance AND swift as a backend to glance ***

Comment 10 Lee Yarwood 2018-03-12 10:35:12 UTC

*** This bug has been marked as a duplicate of bug 1543914 ***