yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #74175
[Bug 1783467] Re: fail to create volume type encryption
Reviewed: https://review.openstack.org/585629
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=633897ae549257789961014afa81cf209c0e05d5
Submitter: Zuul
Branch: master
commit 633897ae549257789961014afa81cf209c0e05d5
Author: zhubx007 <zhu.boxiang@xxxxxxxxxxx>
Date: Wed Jul 25 12:12:27 2018 +0800
fix bug of fail to create volume type encryption from dashboard
Due to the commit https://review.openstack.org/#/c/573093/,
the body of create and update from dashboard for volume
type encryption does not match the schemas of it's API.
The schemas url is https://github.com/openstack/cinder/blob
/master/cinder/api/schemas/volume_type_encryption.py
So that, pop the volume_type_id and name from the data to
match the schemas.
Change-Id: I032e59251a0d54cd09ead8cf3b0ac2527d9261db
Closes-Bug: #1783467
** Changed in: horizon
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1783467
Title:
fail to create volume type encryption
Status in Cinder:
New
Status in OpenStack Dashboard (Horizon):
Fix Released
Bug description:
branch: master
deploy tool: devstack, local.conf file can be found as attachment.
os: centos7
When I try to create the volume type encryption, the msg 'Unable to
create encrypted volume type.' occurs. I find the msg from the command
'journal -f --unit devstack@c-*'.
Jul 25 10:28:30 dev devstack@c-api.service[8775]: INFO cinder.api.openstack.wsgi [None req-5b1be177-9550-422b-a7cb-c43875ae697c admin admin] GET http://172.16.140.46/volume/v3/414592cac9954402b6e34f25998d10ed/types?is_public=None
Jul 25 10:28:30 dev devstack@c-api.service[8775]: DEBUG cinder.api.openstack.wsgi [None req-5b1be177-9550-422b-a7cb-c43875ae697c admin admin] Empty body provided in request {{(pid=8777) get_body /opt/stack/cinder/cinder/api/openstack/wsgi.py:718}}
Jul 25 10:28:30 dev devstack@c-api.service[8775]: DEBUG cinder.api.openstack.wsgi [None req-5b1be177-9550-422b-a7cb-c43875ae697c admin admin] Calling method 'index' {{(pid=8777) _process_stack /opt/stack/cinder/cinder/api/openstack/wsgi.py:872}}
Jul 25 10:28:30 dev devstack@c-api.service[8775]: INFO cinder.api.openstack.wsgi [None req-5b1be177-9550-422b-a7cb-c43875ae697c admin admin] http://172.16.140.46/volume/v3/414592cac9954402b6e34f25998d10ed/types?is_public=None returned with HTTP 200
Jul 25 10:28:30 dev devstack@c-api.service[8775]: [pid: 8777|app: 0|req: 409/805] 172.16.140.46 () {64 vars in 1370 bytes} [Wed Jul 25 10:28:30 2018] GET /volume/v3/414592cac9954402b6e34f25998d10ed/types?is_public=None => generated 701 bytes in 22 msecs (HTTP/1.1 200) 7 headers in 285 bytes (1 switches on core 0)
Jul 25 10:28:30 dev devstack@c-api.service[8775]: INFO cinder.api.openstack.wsgi [None req-fae4a561-8c6b-4d34-b567-55698cbeebd0 admin admin] POST http://172.16.140.46/volume/v3/414592cac9954402b6e34f25998d10ed/types/fd1d6e02-7a50-4336-b19c-9b48671c183b/encryption
Jul 25 10:28:30 dev devstack@c-api.service[8775]: DEBUG cinder.api.openstack.wsgi [None req-fae4a561-8c6b-4d34-b567-55698cbeebd0 admin admin] Action: 'create', calling method: create, body: {"encryption": {"volume_type_id": "fd1d6e02-7a50-4336-b19c-9b48671c183b", "name": "lvmdriver-3", "control_location": "front-end", "key_size": null, "provider": "luks", "cipher": null}} {{(pid=8776) _process_stack /opt/stack/cinder/cinder/api/openstack/wsgi.py:869}}
Jul 25 10:28:30 dev devstack@c-api.service[8775]: INFO cinder.api.openstack.wsgi [None req-fae4a561-8c6b-4d34-b567-55698cbeebd0 admin admin] http://172.16.140.46/volume/v3/414592cac9954402b6e34f25998d10ed/types/fd1d6e02-7a50-4336-b19c-9b48671c183b/encryption returned with HTTP 400
But I can create the volume type encryption by the CLI command 'cinder
encryption-type-create <volume-type-id> <provider>'.
To manage notifications about this bug go to:
https://bugs.launchpad.net/cinder/+bug/1783467/+subscriptions
References