Bug 1641825

Summary: RFE: Populate authentication information in [nova] section in cinder.conf enabling migration of in-use bootable volumes between Cinder backends
Product: Red Hat OpenStack Reporter: Mark Jones <marjones>
Component: openstack-tripleo-heat-templatesAssignee: Alan Bishop <abishop>
Status: CLOSED ERRATA QA Contact: Avi Avraham <aavraham>
Severity: medium Docs Contact: Kim Nylander <knylande>
Priority: high    
Version: 13.0 (Queens)CC: abishop, cswanson, dvd, eharney, jjoyce, jschluet, knoha, lmiccini, mariel, mburns, rhos-maint, slinaber, tshefi, tvignaud
Target Milestone: z4Keywords: FutureFeature, Triaged, ZStream
Target Release: 13.0 (Queens)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-heat-templates-8.0.7-15.el7ost puppet-tripleo-8.3.6-5.el7ost puppet-cinder-12.4.1-0.20180628102254.el7ost Doc Type: Bug Fix
Doc Text:
Previously, the OpenStack Platform Director did not configure authentication for Block Storage (Cinder) to access volumes that use the Nova privileged API. This caused operations on these volumes, such as migrating an in-use volume, to fail. This bug fix adds the capability to configure Cinder with the Nova authentication data, which allows you to perform operations on volumes that use the privileged API with these credentials.
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-01-16 17:55:05 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: 1559505    

Description Mark Jones 2018-10-22 21:38:32 UTC
Description of problem:

In OSP13, the [nova] section is not populated with the appropriate authentication information. Without this information being populated, migration of in-use bootable volumes between backends will fail.


Version-Release number of selected component (if applicable):
OSP13

How reproducible:
Every time

Steps to Reproduce:
1. Attempt to retype a volume attached to an instance

Actual results:
Migration will fail

Expected results:
Migration works

Additional info:

Also see BZ#1559505

Comment 2 Mark Jones 2018-10-22 21:47:01 UTC
*** Bug 1559505 has been marked as a duplicate of this bug. ***

Comment 5 Alan Bishop 2018-11-16 13:54:22 UTC
Patches have merged on upstream master, and are currently proposed for stable/rocky. Once they merge I'll propose to stable/queens.

Comment 6 Alan Bishop 2018-11-16 13:55:03 UTC
Clearing needs-info.

Comment 7 Alan Bishop 2018-11-21 15:04:44 UTC
*** Bug 1624744 has been marked as a duplicate of this bug. ***

Comment 16 Tzach Shefi 2018-12-11 16:46:55 UTC
Verified on:
openstack-tripleo-heat-templates-8.0.7-15.el7ost.noarch
puppet-tripleo-8.3.6-5.el7ost.noarch
puppet-cinder-12.4.1-0.20180628102254.el7ost.noarch

Booted an instance, created an LVM backed volume, attached to instance

cinder list
+--------------------------------------+--------+--------------+------+-------------+----------+--------------------------------------+
| ID                                   | Status | Name         | Size | Volume Type | Bootable | Attached to                          |
+--------------------------------------+--------+--------------+------+-------------+----------+--------------------------------------+
| c56f6628-9320-4199-b6ce-532fb4630466 | in-use | Pansible_vol | 1    | -           | true     | e07f6fcb-f21a-434e-a258-800290a06a59 |
+--------------------------------------+--------+--------------+------+-------------+----------+--------------------------------------+


Added second backend netapp, retype the attached volume from lvm to netapp 
#cinder retype --migration-policy on-demand c56f6628-9320-4199-b6ce-532fb4630466 netapp

An attached volume migrated successfully:

cinder show c56f6628-9320-4199-b6ce-532fb4630466
+--------------------------------+-------------------------------------------------------------------------------------------------+
| Property                       | Value                                                                                           |
+--------------------------------+-------------------------------------------------------------------------------------------------+
| attached_servers               | ['e07f6fcb-f21a-434e-a258-800290a06a59']                                                        |
| attachment_ids                 | ['4fdb0cc0-65f4-43e4-bd23-c91e1c5a9ed4']                                                        |
| availability_zone              | nova                                                                                            |
| bootable                       | true                                                                                            |
| consistencygroup_id            | None                                                                                            |
| created_at                     | 2018-12-11T16:25:38.000000                                                                      |
| description                    | None                                                                                            |
| encrypted                      | False                                                                                           |
| id                             | c56f6628-9320-4199-b6ce-532fb4630466                                                            |
| metadata                       | attached_mode : rw                                                                              |
| migration_status               | success                                                                                         |
| multiattach                    | False                                                                                           |
| name                           | Pansible_vol                                                                                    |
| os-vol-host-attr:host          | hostgroup@tripleo_netapp#rhos_cinder                                                            |
| os-vol-mig-status-attr:migstat | success                                                                                         |
| os-vol-mig-status-attr:name_id | 37a0a967-7957-4d65-84a5-04abe702559a                                                            |
| os-vol-tenant-attr:tenant_id   | 275a1555b13a4316b09c9f02597e5129    

Looks good to verify, retype of an attached volume worked.

Comment 20 errata-xmlrpc 2019-01-16 17:55:05 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-2019:0068