openstack-nova-compute doen't restart if packstack is installed with ironic support

Bug #1430388 reported by Yoann Colin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Packstack
New
Undecided
Unassigned

Bug Description

I install packstack with the ironic support in seperate compute configuration through :
packstack \
      --install-hosts=$HOSTS \
      --novanetwork-pubif=eno1 \
      --novacompute-privif=eno2 \
      --os-neutron-lbaas-install=y \
      --os-neutron-ovs-tunnel-if=eno2 \
      --cinder-volumes-size=120G \
      --os-swift-install=y \
      --os-heat-install=y \
      --os-heat-cfn-install=y \
      --os-heat-cloudwatch-install=y \
      --os-trove-install=y \
      --os-ironic-install=y \
      --provision-demo=n \
      --use-epel=y

On my compute nodes, openstack-nova-compute fail to restart with this message :
openstack-nova-compute.service start request repeated too quickly, refusing to start.

In /var/log/nova/nova-compute.log :

2015-03-10 15:23:45.257 26835 CRITICAL nova [-] ImportError: No module named ironic.nova.compute.manager
2015-03-10 15:23:45.257 26835 TRACE nova Traceback (most recent call last):
2015-03-10 15:23:45.257 26835 TRACE nova File "/usr/bin/nova-compute", line 10, in <module>
2015-03-10 15:23:45.257 26835 TRACE nova sys.exit(main())
2015-03-10 15:23:45.257 26835 TRACE nova File "/usr/lib/python2.7/site-packages/nova/cmd/compute.py", line 72, in main
2015-03-10 15:23:45.257 26835 TRACE nova db_allowed=CONF.conductor.use_local)
2015-03-10 15:23:45.257 26835 TRACE nova File "/usr/lib/python2.7/site-packages/nova/service.py", line 275, in create
2015-03-10 15:23:45.257 26835 TRACE nova db_allowed=db_allowed)
2015-03-10 15:23:45.257 26835 TRACE nova File "/usr/lib/python2.7/site-packages/nova/service.py", line 147, in __init__
2015-03-10 15:23:45.257 26835 TRACE nova manager_class = importutils.import_class(self.manager_class_name)
2015-03-10 15:23:45.257 26835 TRACE nova File "/usr/lib/python2.7/site-packages/nova/openstack/common/importutils.py", line 27, in import_class
2015-03-10 15:23:45.257 26835 TRACE nova __import__(mod_str)
2015-03-10 15:23:45.257 26835 TRACE nova ImportError: No module named ironic.nova.compute.manager
2015-03-10 15:23:45.257 26835 TRACE nova

Install openstack-ironic-common jump to another missing dependency trouble :

2015-03-10 15:34:21.034 27578 INFO nova.virt.driver [-] Loading compute driver 'nova.virt.ironic.IronicDriver'
2015-03-10 15:34:21.036 27578 ERROR nova.virt.driver [-] Unable to load the virtualization driver
2015-03-10 15:34:21.036 27578 TRACE nova.virt.driver Traceback (most recent call last):
2015-03-10 15:34:21.036 27578 TRACE nova.virt.driver File "/usr/lib/python2.7/site-packages/nova/virt/driver.py", line 1402, in load_compute_driver
2015-03-10 15:34:21.036 27578 TRACE nova.virt.driver virtapi)
2015-03-10 15:34:21.036 27578 TRACE nova.virt.driver File "/usr/lib/python2.7/site-packages/nova/openstack/common/importutils.py", line 52, in import_object_ns
2015-03-10 15:34:21.036 27578 TRACE nova.virt.driver return import_class(import_str)(*args, **kwargs)
2015-03-10 15:34:21.036 27578 TRACE nova.virt.driver File "/usr/lib/python2.7/site-packages/nova/virt/ironic/driver.py", line 163, in __init__
2015-03-10 15:34:21.036 27578 TRACE nova.virt.driver ironic = importutils.import_module('ironicclient')
2015-03-10 15:34:21.036 27578 TRACE nova.virt.driver File "/usr/lib/python2.7/site-packages/nova/openstack/common/importutils.py", line 57, in import_module
2015-03-10 15:34:21.036 27578 TRACE nova.virt.driver __import__(import_str)
2015-03-10 15:34:21.036 27578 TRACE nova.virt.driver ImportError: No module named ironicclient
2015-03-10 15:34:21.036 27578 TRACE nova.virt.driver

Install python-ironicclient solve the trouble and permit to openstack-nova-compute to restart properly.

Revision history for this message
Lukas Bezdicka (social-b) wrote :

Hi, temporary workaround would be installing openstack-ironic-common and python-ironicclient on nova compute.

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.