OpenStack service reconfiguration doesn't comply documentation

Bug #1628895 reported by Domonkos Tomcsanyi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla
Invalid
Undecided
Unassigned

Bug Description

As per the documentation http://docs.openstack.org/developer/kolla/advanced-configuration.html#openstack-service-configuration-in-kolla it should be possible to define config files (overlay files) per service and per host. This feature is currently broken, kolla-ansible simply ignores the config files.

Test environment:
Ubuntu 14.04, kolla 2.0.2 installed via pip, AIO deployment

In globals.yml I added:

node_custom_config: "/etc/kolla/config"

Then created the directory:

mkdir -p /etc/kolla/config/nova-compute

Next I created a nova.conf in the above directory with just two lines to test:

[DEFAULT]
debug = True

Then run kolla-ansible reconfigure. No config files or containers were changed.
I also tried creating /etc/kolla/config/nova-compute/localhost/nova.conf and see if that works. It doesn't.

Later I tried a suggestion I got from IRC: I copied the nova.conf file to /etc/kolla/config and re-run reconfigure - this time the config files did change, but for all nova services, not only for nova-compute (I guess this is expected behavior).
I'd like kolla-ansible work as it's described in the documentation.

Revision history for this message
Jeffrey Zhang (jeffrey4l) wrote :

1. the reconfigure and deploy using the same logic to render the configure file. So if reconfigure do not work, deploy should not work too.

2. you are using the custom config in wrong, the right one is:

mkdir -p /etc/kolla/config/nova/<hostname>/nova.conf

3. are u sure the "localhost" is correct? this value should be equal to the hostname in you inventory file.

Revision history for this message
Jeffrey Zhang (jeffrey4l) wrote :

Sorry, make a typo

mkdir -p /etc/kolla/config/nova/<hostname>

cat <<EOF > /etc/kolla/config/nova/<hostname>/nova.conf
[DEFAULT]
debug = True

EOF

the related code is here[0]

[0] https://github.com/openstack/kolla/blob/master/ansible/roles/nova/tasks/config.yml#L46,L67

Changed in kolla:
status: New → Incomplete
Praveen N (praveenn)
Changed in kolla:
assignee: nobody → Praveen N (praveenn)
assignee: Praveen N (praveenn) → nobody
Revision history for this message
Domonkos Tomcsanyi (tomcsanyid) wrote :

Jeffrey,

I used the single node, AIO (all in one) deployment method for testing kolla hence the only node I have is localhost (and I'm not using the inventory file). I deployed using the default values first, then tried to alter the configuration of the running system.

If I'm using the custom config as you describe it does work, but again it changes the config of all nova services not only the config of a single service (e.g. just nova-compute).

Revision history for this message
Jeffrey Zhang (jeffrey4l) wrote :

For the single service, you can use

cat <<EOF > /etc/kolla/config/nova/nova-compute.conf
[DEFAULT]
debug = True

EOF

we do not support change the configuration file for certain hostname for certain service.

Revision history for this message
Domonkos Tomcsanyi (tomcsanyid) wrote :

That worked for me indeed. Thank you!

Revision history for this message
Jeffrey Zhang (jeffrey4l) wrote :

Cool.

Make this bug invalid.

Changed in kolla:
status: Incomplete → 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.