I reproduced this issue but it sounds a cinder or cinderclient bug. horizon uses Cinder API v3.0, so the change of https://review.openstack.org/#/c/573093/ should not affect horizon.
I set the logging level of cinderclient in horizon to DEBUG and got the following log: http://paste.openstack.org/show/727200/ According to L.4, cinder API version 3.0 is used. The change of the encryption in cinder side is implemented in Cinder API version 3.53. Horizon uses cinder API version 3.0, so the API should not be changed. It sounds a cinder (or cinderclient) bug. ** Also affects: cinder Importance: Undecided Status: New -- 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): In Progress 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 [email protected][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 [email protected][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 [email protected][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 [email protected][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 [email protected][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 [email protected][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 [email protected][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 [email protected][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 -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : [email protected] Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp

