[Openstack] [Ironic] Ironic-conductor fails to start - "AttributeError"

Devananda van der Veen devananda.vdv at gmail.com
Fri Dec 5 21:29:24 UTC 2014


Hi Lohit,

It's not immediately clear what the problem is, but I will venture a guess
that this error is being caused by a missing or incorrect library
dependency.

ConductorManager._keepalive_evt is created in ironic/conductor/manager.py at

 192     def init_host(self):
 ...
 222         # Spawn a dedicated greenthread for the keepalive
 223         try:
 224             self._keepalive_evt = threading.Event()

If that fails, it will call del_host(), which is where you're seeing the
traceback come from.

Hope that helps,
Devananda


On Fri Dec 05 2014 at 1:12:58 PM Lohit Valleru <lohitv at gwmail.gwu.edu>
wrote:

> Hello All,
>
> I am trying to deploy bare-metal nodes using openstack-ironic. It is a 2 -
> node architecture with controller/keystone/mysql on a virtual machine, and
> cinder/compute/nova network on a physical machine on a CentOS 7 environment.
>
> openstack-ironic-common-2014.2-2.el7.centos.noarch
> openstack-ironic-api-2014.2-2.el7.centos.noarch
> openstack-ironic-conductor-2014.2-2.el7.centos.noarch
>
> I have followed this document,
>
> http://docs.openstack.org/developer/ironic/deploy/install-guide.html#ipmi-support
>
> and installed ironic. But when i start ironic-conductor, i get the below
> error :
>
> ironic-conductor[15997]: 2014-12-05 15:38:12.457 15997 TRACE
> ironic.common.service
>  ironic-conductor[15997]: 2014-12-05 15:38:12.457 15997 ERROR
> ironic.common.service [-] Service error occurred when cleaning up the RPC
> manager. Error: 'ConductorManager' object has no attribute '_keepalive_evt'
>  ironic-conductor[15997]: 2014-12-05 15:38:12.457 15997 TRACE
> ironic.common.service Traceback (most recent call last):
>  ironic-conductor[15997]: 2014-12-05 15:38:12.457 15997 TRACE
> ironic.common.service   File
> "/usr/lib/python2.7/site-packages/ironic/common/service.py", line 91, in
> stop
>  ironic-conductor[15997]: 2014-12-05 15:38:12.457 15997 TRACE
> ironic.common.service     self.manager.del_host()
> ironic-conductor[15997]: 2014-12-05 15:38:12.457 15997 TRACE
> ironic.common.service   File
> "/usr/lib/python2.7/site-packages/ironic/conductor/manager.py", line 235,
> in del_host
>  ironic-conductor[15997]: 2014-12-05 15:38:12.457 15997 TRACE
> ironic.common.service     self._keepalive_evt.set()
>  hc004 ironic-conductor[15997]: 2014-12-05 15:38:12.457 15997 TRACE
> ironic.common.service AttributeError: 'ConductorManager' object has no
> attribute '_keepalive_evt'
>  hc004 ironic-conductor[15997]: 2014-12-05 15:38:12.457 15997 TRACE
> ironic.common.service
>  hc004 ironic-conductor[15997]: 2014-12-05 15:38:12.457 15997 INFO
> ironic.common.service [-] Stopped RPC server for service
> ironic.conductor_manager on host hc004.
>
> Also, I do not see any logs being created with respect to ironic.
> Do i have to explicitly enable the logging properties in ironic.conf, or
> are they expected to be working by default?
>
> Here is the configuration from ironic.conf
>
> #############################
>
> [DEFAULT]
> verbose=true
> rabbit_host=172.18.246.104
> auth_strategy=keystone
> debug=true
>
> [keystone_authtoken]
> auth_host=172.18.246.104
> auth_uri=http://172.18.246.104:5000/v2.0
> admin_user=ironic
> admin_password=xxxx
> admin_tenant_name=service
>
> [database]
> connection = mysql://ironic:xxxxx@172.18.246.104/ironic?charset=utf8
>
> [glance]
> glance_host=172.18.246.104
>
> #############################
>
> I understand that i did not give neutron URL as required by the
> documentation. The reason : that i have architecture limitations to install
> neutron networking and would like to experiment if nova-network and dhcp
> pxe server will server the purpose although i highly doubt that.
>
> However, i wish to know if the above issue is anyway related to
> non-existent neutron network, or if it is related to something else.
>
> Please do let me know.
>
> Thank you,
>
> Lohit
> _______________________________________________
> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/
> openstack
> Post to     : openstack at lists.openstack.org
> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/
> openstack
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20141205/03119e39/attachment.html>


More information about the Openstack mailing list