[Juno][UCA] Non default configuration sections ignored for nova.conf

Bug #1488809 reported by Bogdan Dobrelya
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Medium
Davanum Srinivas (DIMS)
Ubuntu Cloud Archive
Invalid
Undecided
Unassigned
oslo.config
Invalid
Medium
Davanum Srinivas (DIMS)

Bug Description

Non default configuration sections [glance], [neutron] ignored for nova.conf then installed from UCA packages:

How to reproduce:
1) Install and configure OpenStack Juno Nova with Neutron at compute node using UCA (http://archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages):
python-oslo.config 1:1.2.1-0ubuntu2
python-oslo.messaging 1.3.0-0ubuntu1.2
python-oslo.rootwrap 1.2.0-0ubuntu1
nova-common 1:2014.1.5-0ubuntu1.2
python-nova 1:2014.1.5-0ubuntu1.2
neutron-common 1:2014.1.5-0ubuntu1

/etc/nova/nova.conf example:
[DEFAULT]
debug=True
...
[glance]
api_servers=10.0.0.3:9292

[neutron]
admin_auth_url=http://10.0.0.3:5000/v2.0
admin_username=admin
admin_tenant_name=services
admin_password=admin
url=http://10.0.0.3:9696
...

2) From nova log, check which values has been applied:
# grep -E 'admin_auth_url\s+=|admin_username\s+=|api_servers\s+=' /var/log/nova/nova-compute.log
2015-08-26 07:34:48.193 30535 DEBUG nova.openstack.common.service [-] glance_api_servers = ['192.168.121.14:9292'] log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2015-08-26 07:34:48.210 30535 DEBUG nova.openstack.common.service [-] neutron_admin_auth_url = http://localhost:5000/v2.0 log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2015-08-26 07:34:48.211 30535 DEBUG nova.openstack.common.service [-] neutron_admin_username = None log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941

Expected:
configuration options to be applied from [glance], [neutron] sections according to the docs http://docs.openstack.org/juno/config-reference/content/list-of-compute-config-options.html

Actual:
Defaults for the deprecated options were applied from the [DEFAULT] section instead

Tags: oslo
Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :

So https://wiki.openstack.org/wiki/ReleaseNotes/2014.1.5 shows that "The 2014.1.5 release is a Icehouse bugfix update", so that's icehouse and NOT juno. If you inspect for example nova/network/neutronv2/api.py in your environment, you will see

    cfg.StrOpt('neutron_admin_username',
                          help='Username for connecting to neutron in admin context'),

and NOT

    cfg.StrOpt('admin_username',
               help='Username for connecting to neutron in admin context',
               deprecated_group='DEFAULT',
               deprecated_name='neutron_admin_username'),

Hope that helps.
Dims

Changed in oslo.config:
assignee: nobody → Davanum Srinivas (DIMS) (dims-v)
Changed in nova:
assignee: nobody → Davanum Srinivas (DIMS) (dims-v)
Changed in oslo.config:
importance: Undecided → Medium
Changed in nova:
importance: Undecided → Medium
Changed in oslo.config:
status: New → Invalid
Changed in nova:
status: New → Invalid
Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

Thank you for update. So does it seem there is no Juno packages at UCA?

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :

Bogdan,
https://wiki.ubuntu.com/ServerTeam/CloudArchive seems to indicate

"sudo add-apt-repository cloud-archive:juno"

-- Dims

Changed in cloud-archive:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.