Fix key manager service endpoints in devstack Nova ephemeral
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Using a Devstack setup to configure Nova ephemeral with Barbican key manager failed, when creating an instance.
Detailed description:
1. Version of Nova/Barbican we are using:
- stable/Liberty
2. Relevant log files:
- n-api.log Relevant section of the log file is attached with the bug report.
3. Reproduce steps:
a) Install via devstack, with following nova post-configuration in local.conf (complete local.conf is attached)
#...
[keymgr]
api_class = nova.keymgr.
[libvirt]
images_type = lvm
cipher = aes-xts-plain64
enabled = True
key_size = 256
#...
b) Launch an instance from Horizon or using the following command line:
<prompt>$ nova boot --flavor m1.tiny --image cirros-
c) Launch instance failed with following error:
ERROR (ClientException): Unexpected API Error. Please report this at http://
<class 'barbicanclient
4) Possible issue:
-After analyzing the log files, the issue seems to be in nova key manager version discovery.
Changed in nova: | |
assignee: | nobody → Max (max-abidi) |
Changed in nova: | |
assignee: | Max (max-abidi) → Arun Kant (arunkant-uws) |
Changed in nova: | |
assignee: | Arun Kant (arunkant-uws) → nobody |
Changed in nova: | |
status: | Confirmed → Fix Released |
complete local.conf file:
[[local|localrc]]
DEST=/opt/stack /git.openstack. org
GIT_BASE=https:/
LOGFILE= $DEST/logs/ stack.sh. log LOGDIR= $DEST/logs/ screen
VERBOSE=True
LOG_COLOR=False
SCREEN_
IP_VERSION=4
ADMIN_PASSWORD= openstack openstack PASSWORD= openstack PASSWORD= openstack PASSWORD= openstack TOKEN=tokentoke n
MYSQL_PASSWORD=
DATABASE_
RABBIT_
SERVICE_
SERVICE_
GLANCE_ BRANCH= stable/ liberty BRANCH= stable/ liberty BRANCH= stable/ liberty stable/ liberty BRANCH= stable/ liberty stable/ liberty BRANCH= stable/ liberty BRANCH= stable/ liberty
HORIZON_
KEYSTONE_
NOVA_BRANCH=
NEUTRON_
HEAT_BRANCH=
CELIOMETER_
BARBICAN_
DISABLED_ SERVICES= n-net SERVICES+ =,q-svc, q-agt,q- dhcp,q- l3,q-meta, q-metering, neutron
ENABLED_
#ENABLED_ SERVICES+ =,q-lbass SERVICES+ =,heat, h-api,h- api-cfn, h-api-cw, h-eng E=True
#ENABLED_
#HEAT_STANDALON
#ENABLED_ SERVICES+ =,ceilometer- acompute, ceilometer- acentral, ceilometer- collector, ceilometer- api SERVICES+ =,ceilometer- alarm-notify, ceilometer- alarm-eval
#ENABLED_
ENABLED_ SERVICES+ =,barbican
[[post- config| $NOVA_CONF] ] barbican. BarbicanKeyMana ger
[keymgr]
api_class = nova.keymgr.
[libvirt] default
images_type = lvm
images_volume_group = stack-volumes-
[ephemeral_ storage_ encryption]
cipher = aes-xts-plain64
enabled = True
key_size = 256