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

Lohit Valleru lohitv at gwmail.gwu.edu
Fri Dec 5 23:27:59 UTC 2014


Thank you Devananda.

I just remember, that I had a package dependency issue when i tried to sync
the database for ironic as below:

ironic-dbsync --config-file /etc/ironic/ironic.conf create_schema

Traceback (most recent call last):
  File "/usr/bin/ironic-dbsync", line 6, in <module>
    from ironic.cmd.dbsync import main
  File "/usr/lib/python2.7/site-packages/ironic/cmd/dbsync.py", line
26, in <module>
    from ironic.common import service
  File "/usr/lib/python2.7/site-packages/ironic/common/service.py",
line 25, in <module>
    from ironic.common import config
  File "/usr/lib/python2.7/site-packages/ironic/common/config.py",
line 21, in <module>
    from ironic import version
  File "/usr/lib/python2.7/site-packages/ironic/version.py", line 16,
in <module>
    import pbr.version
ImportError: No module named pbr.version

I felt, that a python module - pbr , might be missing and installed
the below package:

python-pbr 0.8.0-1.el7 from epel7
Once i Installed the above package, I did not receive any traceback
errors as above.

Is it possible that, Installing the above package is causing the previous error?
or Do you suggest that it might be something else?

Also - Do you know of any other solution to the traceback error in
this email, and which dependency package
would i need to install to correct the same.


Thank you,

Lohit


On Fri, Dec 5, 2014 at 4:29 PM, Devananda van der Veen <
devananda.vdv at gmail.com> wrote:

>
>
> 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/0377a8bf/attachment.html>


More information about the Openstack mailing list