← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1599385] Re: barbican's secret_ref created by nova misses barbican version

 

** Changed in: nova
       Status: New => Invalid

** Changed in: nova
     Assignee: Jiong Liu (liujiong) => (unassigned)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1599385

Title:
  barbican's secret_ref created by nova misses barbican version

Status in OpenStack Compute (nova):
  Invalid

Bug description:
  I created a volume in cinder which was encryped with barbican.
  Then I tried to attach this volume to a vm using command "nova volume-attach vm2 15d7b84a-9f08-4aac-9fcf-495ede08593c /dev/vdc", it failed.
  After debugging, I found the secret_ref created in nova was wrong.
  The secret_ref returned here https://github.com/openstack/nova/blob/stable/mitaka/nova/keymgr/barbican.py#L308 was "http://controller:9311/secrets/00000000-0000-0000-0000-000000000000";.
  In fact, it should contain barbican version number "v1", which means the secret_ref should be "http://controller:9311/v1/secrets/00000000-0000-0000-0000-000000000000";.
  My dev env is "stable/mitaka".
  Any further information will be attached if needed.

  nova-compute logs is as follows:
  2016-07-05 23:37:37.255 28451 ERROR oslo_messaging.rpc.dispatcher   File "nova/keymgr/barbican.py", line 284, in _get_secret_data
  2016-07-05 23:37:37.255 28451 ERROR oslo_messaging.rpc.dispatcher   File "barbicanclient/secrets.py", line 192, in payload
  2016-07-05 23:37:37.255 28451 ERROR oslo_messaging.rpc.dispatcher   File "barbicanclient/secrets.py", line 260, in _fetch_payload
  2016-07-05 23:37:37.255 28451 ERROR oslo_messaging.rpc.dispatcher   File "barbicanclient/secrets.py", line 181, in payload_content_type
  2016-07-05 23:37:37.255 28451 ERROR oslo_messaging.rpc.dispatcher   File "barbicanclient/secrets.py", line 34, in wrapper
  2016-07-05 23:37:37.255 28451 ERROR oslo_messaging.rpc.dispatcher   File "barbicanclient/secrets.py", line 416, in _fill_lazy_properties
  2016-07-05 23:37:37.255 28451 ERROR oslo_messaging.rpc.dispatcher   File "barbicanclient/client.py", line 72, in get
  2016-07-05 23:37:37.255 28451 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/keystoneclient/adapter.py", line 176, in get
  2016-07-05 23:37:37.255 28451 ERROR oslo_messaging.rpc.dispatcher     return self.request(url, 'GET', **kwargs)
  2016-07-05 23:37:37.255 28451 ERROR oslo_messaging.rpc.dispatcher   File "barbicanclient/client.py", line 65, in request
  2016-07-05 23:37:37.255 28451 ERROR oslo_messaging.rpc.dispatcher   File "barbicanclient/client.py", line 109, in _check_status_code
  2016-07-05 23:37:37.255 28451 ERROR oslo_messaging.rpc.dispatcher HTTPClientError: Not Found

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1599385/+subscriptions


References