Bug 1327868

Summary: All VMs cannot be started.
Product: Red Hat OpenStack Reporter: Masaki Furuta ( RH ) <mfuruta>
Component: openstack-cinderAssignee: Gorka Eguileor <geguileo>
Status: CLOSED ERRATA QA Contact: lkuchlan <lkuchlan>
Severity: medium Docs Contact:
Priority: high    
Version: 6.0 (Juno)CC: eharney, mflusche, sgotliv, skinjo, srevivo
Target Milestone: asyncKeywords: ZStream
Target Release: 6.0 (Juno)   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: openstack-cinder-2014.2.4-7.el7ost Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-23 18:37:34 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:

Comment 8 Sergey Gotliv 2016-04-18 18:59:37 UTC
This bug is a dup of [1] which is fixed in [2]. Automatic restore [3][4] is the  only missing part in OSP 6.0, which we'll try to back port from upstream stable Liberty.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1152264
[2] openstack-cinder-2014.2.3-3.el7ost
[3] https://review.openstack.org/#/c/271424/
[4] https://review.openstack.org/#/c/283085/

Comment 12 lkuchlan 2016-06-23 08:28:18 UTC
Tested using:
openstack-cinder-2014.2.4-7.el7ost.noarch

Verification flow:

[root@dhcp162-21 ~(keystone_admin)]# nova boot --flavor 1 --image be863887-bf30-4b04-b682-2a265d6fd6db --nic net-id=7f6d8c6b-f52d-4bcc-bfe2-f8594e7fc2f3 vm1
+--------------------------------------+-----------------------------------------------+
| Property                             | Value                                         |
+--------------------------------------+-----------------------------------------------+
| OS-DCF:diskConfig                    | MANUAL                                        |                                                                                                                           
| OS-EXT-AZ:availability_zone          |                                               |                                                                                                                           
| OS-EXT-SRV-ATTR:host                 | -                                             |                                                                                                                           
| OS-EXT-SRV-ATTR:hypervisor_hostname  | -                                             |                                                                                                                           
| OS-EXT-SRV-ATTR:instance_name        | instance-00000001                             |                                                                                                                           
| 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                            | rzEHY834KyMz                                  |                                                                                                                           
| config_drive                         |                                               |                                                                                                                           
| created                              | 2016-06-23T07:46:43Z                          |                                                                                                                           
| flavor                               | m1.tiny (1)                                   |                                                                                                                           
| hostId                               |                                               |                                                                                                                           
| id                                   | 345eb2ba-3075-45b5-bac5-f98301c97734          |
| image                                | cirros (be863887-bf30-4b04-b682-2a265d6fd6db) |
| key_name                             | -                                             |
| metadata                             | {}                                            |
| name                                 | vm1                                           |
| os-extended-volumes:volumes_attached | []                                            |
| progress                             | 0                                             |
| security_groups                      | default                                       |
| status                               | BUILD                                         |
| tenant_id                            | a5270b5b26084d68b8d7ea42fd84af78              |
| updated                              | 2016-06-23T07:46:44Z                          |
| user_id                              | 3130582ed9314cdbb64c2425e96d3981              |
+--------------------------------------+-----------------------------------------------+

[root@dhcp162-21 ~(keystone_admin)]# nova list
+--------------------------------------+------+--------+------------+-------------+---------------------+
| ID                                   | Name | Status | Task State | Power State | Networks            |
+--------------------------------------+------+--------+------------+-------------+---------------------+
| 345eb2ba-3075-45b5-bac5-f98301c97734 | vm1  | ACTIVE | -          | Running     | public=172.24.4.227 |
+--------------------------------------+------+--------+------------+-------------+---------------------+

[root@dhcp162-21 ~(keystone_admin)]# cinder create 1
+---------------------+--------------------------------------+
|       Property      |                Value                 |
+---------------------+--------------------------------------+
|     attachments     |                  []                  |
|  availability_zone  |                 nova                 |
|       bootable      |                false                 |
|      created_at     |      2016-06-23T08:03:17.779810      |
| display_description |                 None                 |
|     display_name    |                 None                 |
|      encrypted      |                False                 |
|          id         | 36788ad9-29b3-4a1f-9f9c-ec1c4d1496af |
|       metadata      |                  {}                  |
|         size        |                  1                   |
|     snapshot_id     |                 None                 |
|     source_volid    |                 None                 |
|        status       |               creating               |
|     volume_type     |                 None                 |
+---------------------+--------------------------------------+

[root@dhcp162-21 ~(keystone_admin)]# cinder list
+--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
|                  ID                  |   Status  | Display Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
| 36788ad9-29b3-4a1f-9f9c-ec1c4d1496af | available |     None     |  1   |     None    |  false   |             |
+--------------------------------------+-----------+--------------+------+-------------+----------+-------------+

[root@dhcp162-21 ~(keystone_admin)]# nova volume-attach 345eb2ba-3075-45b5-bac5-f98301c97734 36788ad9-29b3-4a1f-9f9c-ec1c4d1496af
+----------+--------------------------------------+
| Property | Value                                |
+----------+--------------------------------------+
| device   | /dev/vdb                             |
| id       | 36788ad9-29b3-4a1f-9f9c-ec1c4d1496af |
| serverId | 345eb2ba-3075-45b5-bac5-f98301c97734 |
| volumeId | 36788ad9-29b3-4a1f-9f9c-ec1c4d1496af |
+----------+--------------------------------------+

[root@dhcp162-21 ~(keystone_admin)]# cinder list
+--------------------------------------+--------+--------------+------+-------------+----------+--------------------------------------+
|                  ID                  | Status | Display Name | Size | Volume Type | Bootable |             Attached to              |
+--------------------------------------+--------+--------------+------+-------------+----------+--------------------------------------+
| 36788ad9-29b3-4a1f-9f9c-ec1c4d1496af | in-use |     None     |  1   |     None    |  false   | 345eb2ba-3075-45b5-bac5-f98301c97734 |
+--------------------------------------+--------+--------------+------+-------------+----------+--------------------------------------+

[root@dhcp162-21 ~(keystone_admin)]# systemctl restart target.service

[root@dhcp162-21 ~(keystone_admin)]# iscsiadm -m session
tcp: [1] 10.35.162.21:3260,1 iqn.2010-10.org.openstack:volume-36788ad9-29b3-4a1f-9f9c-ec1c4d1496af (non-flash)

[root@dhcp162-21 ~(keystone_admin)]# cinder list
+--------------------------------------+--------+--------------+------+-------------+----------+--------------------------------------+
|                  ID                  | Status | Display Name | Size | Volume Type | Bootable |             Attached to              |
+--------------------------------------+--------+--------------+------+-------------+----------+--------------------------------------+
| 36788ad9-29b3-4a1f-9f9c-ec1c4d1496af | in-use |     None     |  1   |     None    |  false   | 345eb2ba-3075-45b5-bac5-f98301c97734 |
+--------------------------------------+--------+--------------+------+-------------+----------+--------------------------------------+

[root@dhcp162-21 ~(keystone_admin)]# nova list
+--------------------------------------+------+--------+------------+-------------+---------------------+
| ID                                   | Name | Status | Task State | Power State | Networks            |
+--------------------------------------+------+--------+------------+-------------+---------------------+
| 345eb2ba-3075-45b5-bac5-f98301c97734 | vm1  | ACTIVE | -          | Running     | public=172.24.4.227 |
+--------------------------------------+------+--------+------------+-------------+---------------------+

Comment 14 errata-xmlrpc 2016-06-23 18:37:34 UTC
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, 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-2016:1315