← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1783467] Re: fail to create volume type encryption

 

Reviewed:  https://review.openstack.org/590014
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=f41751cb04dc934c79ef7090aad23b807a7d9bbc
Submitter: Zuul
Branch:    master

commit f41751cb04dc934c79ef7090aad23b807a7d9bbc
Author: Sean McGinnis <sean.mcginnis@xxxxxxxxx>
Date:   Wed Aug 8 14:34:22 2018 -0500

    Allow extra parameters in volume_type_encryption
    
    Change I6488cc89e60a31605ddf80c7aa56ddf4871d3c1a added schema validation
    for volume type encryption, but it locked things down in a non-backwards
    compatible way by not allowing extra parameters. This has caused
    problems for at least Horizon. If we are going change this to not be
    backwards compatible it should include a microversion bump and moving
    the endpoint out of contrib to a standard endpoint.
    
    To keep some schema validation at least, this just allows extra
    parameters so existing API consumers should be unaffected. We can
    address locking things down better in a future release when we have time
    to do it right.
    
    Closes-bug: #1783467
    Closes-bug: #1786054
    
    Change-Id: I45c254eca69471509e7ae4c957df51282e2d1776
    Signed-off-by: Sean McGinnis <sean.mcginnis@xxxxxxxxx>


** Changed in: cinder
       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:
  Fix Released
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