| Summary: | The volumes will be deleted when creating a virtual machine fails with the parameter delete_on_termination being set true, which causes that the rescheduling fails Edit | |||
|---|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Vladik Romanovsky <vromanso> | |
| Component: | openstack-nova | Assignee: | Vladik Romanovsky <vromanso> | |
| Status: | CLOSED ERRATA | QA Contact: | Prasanth Anbalagan <panbalag> | |
| Severity: | urgent | Docs Contact: | ||
| Priority: | urgent | |||
| Version: | 5.0 (RHEL 7) | CC: | berrange, dasmith, dmaley, eglynn, kchamart, mflusche, ndipanov, panbalag, sbauza, sferdjao, sgordon, vromanso, yeylon | |
| Target Milestone: | async | Keywords: | ZStream | |
| Target Release: | 5.0 (RHEL 7) | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | openstack-nova-2014.1.5-27.el7ost | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1305066 (view as bug list) | Environment: | ||
| Last Closed: | 2016-03-08 17:08:56 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: | ||
| Bug Depends On: | ||||
| Bug Blocks: | 1305066 | |||
|
Description
Vladik Romanovsky
2016-01-27 22:23:02 UTC
Following Block device mapping invalid exception with delete-on-terminate set to
1, the volume does not get deleted.
***************
Version
***************
[root@rhos-compute-node-02 ~(keystone_admin)]# yum list installed | grep openstack-nova
openstack-nova-api.noarch 2014.1.5-27.el7ost @rhelosp-5.0-el7-puddle
openstack-nova-cert.noarch 2014.1.5-27.el7ost @rhelosp-5.0-el7-puddle
openstack-nova-common.noarch 2014.1.5-27.el7ost @rhelosp-5.0-el7-puddle
openstack-nova-compute.noarch 2014.1.5-27.el7ost @rhelosp-5.0-el7-puddle
openstack-nova-conductor.noarch 2014.1.5-27.el7ost @rhelosp-5.0-el7-puddle
openstack-nova-console.noarch 2014.1.5-27.el7ost @rhelosp-5.0-el7-puddle
openstack-nova-novncproxy.noarch 2014.1.5-27.el7ost @rhelosp-5.0-el7-puddle
openstack-nova-scheduler.noarch 2014.1.5-27.el7ost @rhelosp-5.0-el7-puddle
[root@rhos-compute-node-02 ~(keystone_admin)]#
****************
Logs
****************
[root@rhos-compute-node-02 ~(keystone_admin)]# cinder create --display-name vol1 1
+---------------------+--------------------------------------+
| Property | Value |
+---------------------+--------------------------------------+
| attachments | [] |
| availability_zone | nova |
| bootable | false |
| created_at | 2016-03-01T21:08:40.346666 |
| display_description | None |
| display_name | vol1 |
| encrypted | False |
| id | d52baabc-f7ed-4da3-9cff-387d4d27e39b |
| metadata | {} |
| size | 1 |
| snapshot_id | None |
| source_volid | None |
| status | creating |
| volume_type | None |
+---------------------+--------------------------------------+
[root@rhos-compute-node-02 ~(keystone_admin)]# cinder list
+--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
| ID | Status | Display Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
| d52baabc-f7ed-4da3-9cff-387d4d27e39b | available | vol1 | 1 | None | false | |
+--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
[root@rhos-compute-node-02 ~(keystone_admin)]#
[root@rhos-compute-node-02 ~(keystone_admin)]# cinder reset-state --state error vol1
[root@rhos-compute-node-02 ~(keystone_admin)]# cinder list
+--------------------------------------+--------+--------------+------+-------------+----------+-------------+
| ID | Status | Display Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+--------+--------------+------+-------------+----------+-------------+
| d52baabc-f7ed-4da3-9cff-387d4d27e39b | error | vol1 | 1 | None | false | |
+--------------------------------------+--------+--------------+------+-------------+----------+-------------+
[root@rhos-compute-node-02 ~(keystone_admin)]#
[root@rhos-compute-node-02 ~(keystone_admin)]#
[root@rhos-compute-node-02 ~(keystone_admin)]# nova boot --image cirros --flavor 2 --block-device-mapping vdc=d52baabc-f7ed-4da3-9cff-387d4d27e39b:::1 vm1
ERROR: Block Device Mapping is Invalid: failed to get volume d52baabc-f7ed-4da3-9cff-387d4d27e39b. (HTTP 400) (Request-ID: req-94cd257a-751e-463c-a808-b9e043c5112a)
[root@rhos-compute-node-02 ~(keystone_admin)]# cinder list
+--------------------------------------+--------+--------------+------+-------------+----------+-------------+
| ID | Status | Display Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+--------+--------------+------+-------------+----------+-------------+
| d52baabc-f7ed-4da3-9cff-387d4d27e39b | error | vol1 | 1 | None | false | |
+--------------------------------------+--------+--------------+------+-------------+----------+-------------+
[root@rhos-compute-node-02 ~(keystone_admin)]#
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://rhn.redhat.com/errata/RHBA-2016-0361.html |