Revision history [back]

click to hide/show revision 1
initial version

AttributeError: type object 'NovaObjectRegistry' has no attribute 'register_notification'

Hi All

Thanks in advance for any help, I am in the process of upgrading liberty to newton and I got stuck on nova during an upgrade with the compute_node table, so I have stopped off at mitaka for nova and my controller node is fine but on my compute node when I try and start nova-compute I get:

Oct 20 08:10:11 compute1 nova-compute[5699]: Traceback (most recent call last): Oct 20 08:10:11 compute1 nova-compute[5699]: File "/opt/nova-mitaka/bin/nova-compute", line 6, in <module> Oct 20 08:10:11 compute1 nova-compute[5699]: from nova.cmd.compute import main Oct 20 08:10:11 compute1 nova-compute[5699]: File "/opt/nova-mitaka/local/lib/python2.7/site-packages/nova/cmd/compute.py", line 25, in <module> Oct 20 08:10:11 compute1 nova-compute[5699]: from nova.conductor import rpcapi as conductor_rpcapi Oct 20 08:10:11 compute1 nova-compute[5699]: File "/opt/nova-mitaka/local/lib/python2.7/site-packages/nova/conductor/__init__.py", line 16, in <module> Oct 20 08:10:11 compute1 nova-compute[5699]: from nova.conductor import api as conductor_api Oct 20 08:10:11 compute1 nova-compute[5699]: File "/opt/nova-mitaka/local/lib/python2.7/site-packages/nova/conductor/api.py", line 22, in <module> Oct 20 08:10:11 compute1 nova-compute[5699]: from nova.conductor import manager Oct 20 08:10:11 compute1 nova-compute[5699]: File "/opt/nova-mitaka/local/lib/python2.7/site-packages/nova/conductor/manager.py", line 28, in <module> Oct 20 08:10:11 compute1 nova-compute[5699]: from nova.compute import utils as compute_utils Oct 20 08:10:11 compute1 nova-compute[5699]: File "/opt/nova-mitaka/local/lib/python2.7/site-packages/nova/compute/utils.py", line 32, in <module> Oct 20 08:10:11 compute1 nova-compute[5699]: from nova import notifications Oct 20 08:10:11 compute1 nova-compute[5699]: File "/opt/nova-mitaka/local/lib/python2.7/site-packages/nova/notifications/__init__.py", line 20, in <module> Oct 20 08:10:11 compute1 nova-compute[5699]: from nova.notifications.base import audit_period_bounds # noqa Oct 20 08:10:11 compute1 nova-compute[5699]: File "/opt/nova-mitaka/local/lib/python2.7/site-packages/nova/notifications/base.py", line 36, in <module> Oct 20 08:10:11 compute1 nova-compute[5699]: from nova.notifications.objects import base as notification_base Oct 20 08:10:11 compute1 nova-compute[5699]: File "/opt/nova-mitaka/local/lib/python2.7/site-packages/nova/notifications/objects/base.py", line 35, in <module> Oct 20 08:10:11 compute1 nova-compute[5699]: @base.NovaObjectRegistry.register_notification Oct 20 08:10:11 compute1 nova-compute[5699]: AttributeError: type object 'NovaObjectRegistry' has no attribute 'register_notification'

The compute node is currently on mikata, installed from source, the controller node is also on mitaka but seems to be working fine. I only have one compute node and I need to upgrade it before I can go to Newton and I was hoping someone might have come across this before, or maybe point me in the right direction.

Thanks

AttributeError: type object 'NovaObjectRegistry' has no attribute 'register_notification'

Hi All

Thanks in advance for any help, I am in the process of upgrading liberty to newton and I got stuck on nova during an upgrade with the compute_node table, so I have stopped off at mitaka for nova and my controller node is fine but on my compute node when I try and start nova-compute I get:

Oct 20 08:10:11 compute1 nova-compute[5699]: Traceback (most recent call last):
Oct 20 08:10:11 compute1 nova-compute[5699]: File "/opt/nova-mitaka/bin/nova-compute", line 6, in <module>
Oct 20 08:10:11 compute1 nova-compute[5699]: from nova.cmd.compute import main
Oct 20 08:10:11 compute1 nova-compute[5699]: File "/opt/nova-mitaka/local/lib/python2.7/site-packages/nova/cmd/compute.py", line 25, in <module>
Oct 20 08:10:11 compute1 nova-compute[5699]: from nova.conductor import rpcapi as conductor_rpcapi
Oct 20 08:10:11 compute1 nova-compute[5699]: File "/opt/nova-mitaka/local/lib/python2.7/site-packages/nova/conductor/__init__.py", line 16, in <module>
Oct 20 08:10:11 compute1 nova-compute[5699]: from nova.conductor import api as conductor_api
Oct 20 08:10:11 compute1 nova-compute[5699]: File "/opt/nova-mitaka/local/lib/python2.7/site-packages/nova/conductor/api.py", line 22, in <module>
Oct 20 08:10:11 compute1 nova-compute[5699]: from nova.conductor import manager
Oct 20 08:10:11 compute1 nova-compute[5699]: File "/opt/nova-mitaka/local/lib/python2.7/site-packages/nova/conductor/manager.py", line 28, in <module>
Oct 20 08:10:11 compute1 nova-compute[5699]: from nova.compute import utils as compute_utils
Oct 20 08:10:11 compute1 nova-compute[5699]: File "/opt/nova-mitaka/local/lib/python2.7/site-packages/nova/compute/utils.py", line 32, in <module>
Oct 20 08:10:11 compute1 nova-compute[5699]: from nova import notifications
Oct 20 08:10:11 compute1 nova-compute[5699]: File "/opt/nova-mitaka/local/lib/python2.7/site-packages/nova/notifications/__init__.py", line 20, in <module>
Oct 20 08:10:11 compute1 nova-compute[5699]: from nova.notifications.base import audit_period_bounds  # noqa
Oct 20 08:10:11 compute1 nova-compute[5699]: File "/opt/nova-mitaka/local/lib/python2.7/site-packages/nova/notifications/base.py", line 36, in <module>
Oct 20 08:10:11 compute1 nova-compute[5699]: from nova.notifications.objects import base as notification_base
Oct 20 08:10:11 compute1 nova-compute[5699]: File "/opt/nova-mitaka/local/lib/python2.7/site-packages/nova/notifications/objects/base.py", line 35, in <module>
Oct 20 08:10:11 compute1 nova-compute[5699]: @base.NovaObjectRegistry.register_notification
Oct 20 08:10:11 compute1 nova-compute[5699]: AttributeError: type object 'NovaObjectRegistry' has no attribute 'register_notification'

'register_notification'

The compute node is currently on mikata, installed from source, the controller node is also on mitaka but seems to be working fine. I only have one compute node and I need to upgrade it before I can go to Newton and I was hoping someone might have come across this before, or maybe point me in the right direction.

Thanks