nova_compute_ironic container fails to start

Bug #1706534 reported by Yotaro Konishi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
Fix Released
Undecided
Yotaro Konishi

Bug Description

When deploying nova_compute_ironic, current nova.conf.j2 generates two compute_driver options like this:

[DEFAULT]
compute_driver = ironic.IronicDriver
compute_driver = libvirt.LibvirtDriver

And the latter value is used by nova-compute service, which is not appropriate to nova_compute_ironic.

This bug was recently introduced in [1].

[1] https://github.com/openstack/kolla-ansible/commit/63314ad6dd181a0e975438de2e99409238f1b775

--

How to reproduce:

Deploy nova-compute-ironic with kolla-ansible

--

Error log messages of nova-compute service:

2017-07-26 06:48:32.045 7 ERROR oslo_service.service Traceback (most recent call last):
2017-07-26 06:48:32.045 7 ERROR oslo_service.service File "/usr/lib/python2.7/dist-packages/oslo_service/service.py", line 721, in run_service
2017-07-26 06:48:32.045 7 ERROR oslo_service.service service.start()
2017-07-26 06:48:32.045 7 ERROR oslo_service.service File "/usr/lib/python2.7/dist-packages/nova/service.py", line 143, in start
2017-07-26 06:48:32.045 7 ERROR oslo_service.service self.manager.init_host()
2017-07-26 06:48:32.045 7 ERROR oslo_service.service File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1135, in init_host
2017-07-26 06:48:32.045 7 ERROR oslo_service.service self.driver.init_host(host=self.host)
2017-07-26 06:48:32.045 7 ERROR oslo_service.service File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 457, in init_host
2017-07-26 06:48:32.045 7 ERROR oslo_service.service self._do_quality_warnings()
2017-07-26 06:48:32.045 7 ERROR oslo_service.service File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 434, in _do_quality_warnings
2017-07-26 06:48:32.045 7 ERROR oslo_service.service caps = self._host.get_capabilities()
2017-07-26 06:48:32.045 7 ERROR oslo_service.service File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/host.py", line 639, in get_capabilities
2017-07-26 06:48:32.045 7 ERROR oslo_service.service xmlstr = self.get_connection().getCapabilities()
2017-07-26 06:48:32.045 7 ERROR oslo_service.service File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/host.py", line 463, in get_connection
2017-07-26 06:48:32.045 7 ERROR oslo_service.service raise exception.HypervisorUnavailable(host=CONF.host)
2017-07-26 06:48:32.045 7 ERROR oslo_service.service HypervisorUnavailable: Connection to the hypervisor is broken on host: a1-a13-15-sv-ironic
2017-07-26 06:48:32.045 7 ERROR oslo_service.service

Changed in kolla-ansible:
assignee: nobody → Yotaro Konishi (konishi-yotaro)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (master)

Fix proposed to branch: master
Review: https://review.openstack.org/487309

Changed in kolla-ansible:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (master)

Reviewed: https://review.openstack.org/487309
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=c1ed80fe84d9160c1aa0cc10c96bc3d114795b18
Submitter: Jenkins
Branch: master

commit c1ed80fe84d9160c1aa0cc10c96bc3d114795b18
Author: Yotaro Konishi <email address hidden>
Date: Wed Jul 26 16:31:25 2017 +0900

    Fix configuration for nova_compute_ironic

    Currently nova.conf.j2 generates two compute_driver options for
    nova_compute_ironic container like this:

    compute_driver = ironic.IronicDriver
    compute_driver = libvirt.LibvirtDriver

    nova_compute_ironic container fails to start because the latter value
    overrides the former one.

    This patch fixes the issue recently introduced in [1].

    [1] 63314ad6dd181a0e975438de2e99409238f1b775

    Change-Id: Ibb661a5a594120be4195d331c38883c3b2886361
    Closes-Bug: #1706534

Changed in kolla-ansible:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 5.0.0.0b3

This issue was fixed in the openstack/kolla-ansible 5.0.0.0b3 development milestone.

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.