Bug 1409820
Summary: | Creating Encrypted Volumes with Cinder(Ceph backend) gives false positive | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Eric Harney <eharney> | ||||
Component: | openstack-cinder | Assignee: | Eric Harney <eharney> | ||||
Status: | CLOSED ERRATA | QA Contact: | Tzach Shefi <tshefi> | ||||
Severity: | low | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 7.0 (Kilo) | CC: | eharney, jdurgin, jobernar, jomurphy, lhh, lkuchlan, mshetty, nlevine, pgrist, srevivo, tshefi | ||||
Target Milestone: | async | Keywords: | Triaged, ZStream | ||||
Target Release: | 7.0 (Kilo) | ||||||
Hardware: | x86_64 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | openstack-cinder-2015.1.3-12.el7ost | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | 1401587 | Environment: | |||||
Last Closed: | 2017-02-15 23:00:25 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: | 1380842, 1401587 | ||||||
Bug Blocks: | |||||||
Attachments: |
|
Description
Eric Harney
2017-01-03 14:23:56 UTC
Verified, I did however need to update rpms manually. As the deployment I had installed (7-p 2017-02-03.1 ) this morning still had these un"fixed-in" versions: python-cinderclient-1.2.1-1.el7ost.noarch python-cinder-2015.1.2-5.el7ost.noarch openstack-cinder-2015.1.2-5.el7ost.noarch # cinder type-create LUKS # cinder encryption-type-create --cipher aes-xts-plain64 --key_size 512 --control_location front-end LUKS nova.volume.encryptors.luks.LuksEncryptor # cinder create --display-name 'encrypted volume' --volume-type LUKS 1 Cinder debug=true Cinder volume log didn't mention any expected errors like: ERROR cinder.volume.manager VolumeDriverException: Volume driver reported an error: Encryption is not yet supported. Also volume status is available. +--------------------------------------+-----------+------------------+------+-------------+----------+-------------+ | ID | Status | Display Name | Size | Volume Type | Bootable | Attached to | +--------------------------------------+-----------+------------------+------+-------------+----------+-------------+ | 22b49d44-3b70-4022-97e2-4d18922a2ebe | available | - | 1 | - | false | | | 7242be38-0e6a-43c3-9266-838017e78544 | available | encrypted volume | 1 | LUKS | false | | +--------------------------------------+-----------+------------------+------+-------------+----------+-------------+ Following update of rpms: openstack-cinder-2015.1.3-12.el7ost.noarch.rpm openstack-cinder-doc-2015.1.3-12.el7ost.noarch.rpm python-cinder-2015.1.3-12.el7ost.noarch.rpm python-oslo-concurrency-1.8.2-2.el7ost.noarch.rpm Reboot controller # rpm -qa | grep cinder -> now the corrected fixed-in versions. python-cinderclient-1.2.1-1.el7ost.noarch python-cinder-2015.1.3-12.el7ost.noarch openstack-cinder-2015.1.3-12.el7ost.noarch openstack-cinder-doc-2015.1.3-12.el7ost.noarch Retry to create another encrypted volume which as expected failed as can be seen below: [stack@undercloud-0 ~]$ cinder list +--------------------------------------+-----------+-------------------+------+-------------+----------+-------------+ | ID | Status | Display Name | Size | Volume Type | Bootable | Attached to | +--------------------------------------+-----------+-------------------+------+-------------+----------+-------------+ | 22b49d44-3b70-4022-97e2-4d18922a2ebe | available | - | 1 | - | false | | | 7242be38-0e6a-43c3-9266-838017e78544 | available | encrypted volume | 1 | LUKS | false | | | dab5fc3b-af12-4786-b631-ad758e25bec2 | error | encrypted volume2 | 1 | LUKS | false | | +--------------------------------------+-----------+-------------------+------+-------------+----------+-------------+ Cinder volume.log reported expected error. 2017-02-05 16:29:11.632 8001 TRACE cinder.volume.manager VolumeDriverException: Volume driver reported an error: Encryption is not yet supported. 2017-02-05 16:29:11.633 8001 DEBUG taskflow.engines.action_engine.runner [req-99288110-89b6-48f9-8478-9589d06153fd d6cfc699c71e44d3a311dc1ea6bbfb91 cb16460318b84d9bb3f8956fe113144c - - -] Discarding failure 'Failure: cinder.exception.VolumeDriverException: Volume driver reported an error: Encryption is not yet supported.' (in response to event 'executed') under completion units request during completion of node 'cinder.volume.flows.manager.create_volume.CreateVolumeFromSpecTask;volume:create==1.0' (intention is to REVERT) analyze /usr/lib/python2.7/site-packages/taskflow/engines/action_engine/runner.py:181 2017-02-05 16:29:11.671 8001 DEBUG cinder.volume.flows.manager.create_volume [req-99288110-89b6-48f9-8478-9589d06153fd d6cfc699c71e44d3a311dc1ea6bbfb91 cb16460318b84d9bb3f8956fe113144c - - -] Volume dab5fc3b-af12-4786-b631-ad758e25bec2: re-scheduling SchedulerAPI.create_volume attempt 3 due to Volume driver reported an error: Encryption is not yet supported. _reschedule /usr/lib/python2.7/site-packages/cinder/volume/flows/manager/create_volume.py:108 2017-02-05 16:29:11.744 8001 ERROR oslo_messaging.rpc.dispatcher [req-99288110-89b6-48f9-8478-9589d06153fd d6cfc699c71e44d3a311dc1ea6bbfb91 cb16460318b84d9bb3f8956fe113144c - - -] Exception during message handling: Volume driver reported an error: Encryption is not yet supported. 2017-02-05 16:29:11.744 8001 TRACE oslo_messaging.rpc.dispatcher VolumeDriverException: Volume driver reported an error: Encryption is not yet supported. Created attachment 1247822 [details]
Cinder verification volume.log
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/RHSA-2017-0282.html |