Ask Your Question
0

AttributeError: 'module' object has no attribute 'COMPUTE_NODE'

asked 2019-12-30 12:02:19 -0500

jmora gravatar image

Fresh deployment of openstack, trying to deploy an instance and run into the following errors

On the compute node:

2019-12-30 11:45:25.526 6548 ERROR nova.compute.manager [req-2889a71b-720c-4464-9f46-76013e1db3c9 - - - - -] Error updating resources for node dc1-cmp-001: AttributeError: 'module' object has no attribute 'COMPUTE_NODE' 2019-12-30 11:45:25.526 6548 ERROR nova.compute.manager Traceback (most recent call last): 2019-12-30 11:45:25.526 6548 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 9600, in _update_available_resource_for_node 2019-12-30 11:45:25.526 6548 ERROR nova.compute.manager startup=startup) 2019-12-30 11:45:25.526 6548 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/compute/resource_tracker.py", line 844, in update_available_resource 2019-12-30 11:45:25.526 6548 ERROR nova.compute.manager self._update_available_resource(context, resources, startup=startup) 2019-12-30 11:45:25.526 6548 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 328, in inner 2019-12-30 11:45:25.526 6548 ERROR nova.compute.manager return f(*args, **kwargs) 2019-12-30 11:45:25.526 6548 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/compute/resource_tracker.py", line 929, in _update_available_resource 2019-12-30 11:45:25.526 6548 ERROR nova.compute.manager self._update(context, cn, startup=startup) 2019-12-30 11:45:25.526 6548 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/compute/resource_tracker.py", line 1178, in _update 2019-12-30 11:45:25.526 6548 ERROR nova.compute.manager self._update_to_placement(context, compute_node, startup) 2019-12-30 11:45:25.526 6548 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/retrying.py", line 68, in wrapped_f 2019-12-30 11:45:25.526 6548 ERROR nova.compute.manager return Retrying(*dargs, **dkw).call(f, *args, **kw) 2019-12-30 11:45:25.526 6548 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/retrying.py", line 223, in call 2019-12-30 11:45:25.526 6548 ERROR nova.compute.manager return attempt.get(self._wrap_exception) 2019-12-30 11:45:25.526 6548 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/retrying.py", line 261, in get 2019-12-30 11:45:25.526 6548 ERROR nova.compute.manager six.reraise(self.value[0], self.value[1], self.value[2]) 2019-12-30 11:45:25.526 6548 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/retrying.py", line 217, in call 2019-12-30 11:45:25.526 6548 ERROR nova.compute.manager attempt = Attempt(fn(*args, **kwargs), attempt_number, False) 2019-12-30 11:45:25.526 6548 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/compute/resource_tracker.py", line 1147, in _update_to_placement 2019-12-30 11:45:25.526 6548 ERROR nova.compute.manager context, nodename, provider_tree=prov_tree) 2019-12-30 11:45:25.526 6548 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/compute/resource_tracker.py", line 1087, in _get_traits 2019-12-30 11:45:25.526 6548 ERROR nova.compute.manager traits.add(os_traits.COMPUTE_NODE) 2019-12-30 11:45:25.526 6548 ERROR nova.compute.manager AttributeError: 'module' object has no ... (more)

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2019-12-31 13:51:22 -0500

jmora gravatar image

That parameter is currently blank. Below is my nova.conf from my controller node.

[Default] enabled_apis = osapi_compute,metadata transport_url = rabbit://openstack:@dc1-ctl-001:5672/ my_ip = 10.2.30.90 use_neutron = true firewall_driver = nova.virt.firewall.NoopFirewallDriver ram_allocation_ratio=3 debug = true [api_database]

connection = mysql+pymysql://nova:@dc1-ctl-001/nova_api

[database]

connection = mysql+pymysql://nova:@dc1-ctl-001/nova

[api]

auth_strategy = keystone

[keystone_authtoken]

www_authenticate_uri = http://dc1-ctl0001:5000/ auth_url = http://dc1-ctl-001:5000/ memcached_servers = dc1-ctl-001:11211 auth_type = password project_domain_name = Default user_domain_name = Default project_name = service username = nova password =

[vnc] enabled = true

server_listen = $my_ip server_proxyclient_address = $my_ip

[glance]

api_servers = http://dc1-ctl-001:9292

[oslo_concurrency] lock_path = /var/lib/nova/tmp

[placement]

region_name = 00b8f772-44cb-467f-9ec9-c067592fb61c project_domain_name = Default project_name = service auth_type = password user_domain_name = Default auth_url = http://dc1-ctl-001:5000/v3 username = placement password =

[neutron] region_name = 00b8f772-44cb-467f-9ec9-c067592fb61c auth_url = http://dc1-ctl-001:35357 auth_type = password default_domain_name = default project_domain_name = default user_domain_name = default username = neutron password = project_name = service

[scheduler] discover_hosts_in_cells_interval = 300

edit flag offensive delete link more
0

answered 2019-12-30 23:02:24 -0500

Mohit gravatar image

From the logs , it appears that the nova scheduler is trying to find the host with sufficient resources to spin up the instance, but unable to find it. Can you check what is the scheduler filters you have set on nova.conf file for the parameter scheduler_default_filters, based on this param nova is scanning the compute host to spin up the vm , but unable to find it.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2019-12-30 12:02:19 -0500

Seen: 111 times

Last updated: Dec 31 '19