Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How can I clear this nova installation problem ? please help me

I met a below error message after installation about nova-compute service in compute node. How can I clear this problem ?? please help me.

[error message] shell> tail -f nova-compute.log

2019-01-17 07:56:21.391 6854 WARNING nova.compute.monitors [req-84e60bfd-1837-4216-86ed-6d289482a084 - - - - -] Excluding nova.compute.monitors.cpu monitor virt_driver. Not in the list of enabled monitors (CONF.compute_monitors). 2019-01-17 07:56:21.574 6854 WARNING nova.scheduler.client.report [req-84e60bfd-1837-4216-86ed-6d289482a084 - - - - -] Placement service credentials do not work. Placement is optional in Newton, but required in Ocata. Please enable the placement service before upgrading.: Unauthorized: The request you have made requires authentication. (HTTP 401) (Request-ID: req-b5776786-ed48-4dee-8eca-043602e180c8) 2019-01-17 07:56:21.601 6854 ERROR nova.compute.manager [req-84e60bfd-1837-4216-86ed-6d289482a084 - - - - -] Error updating resources for node compute.: ResourceProviderCreationFailed: Failed to create resource provider compute 2019-01-17 07:56:21.601 6854 ERROR nova.compute.manager Traceback (most recent call last): 2019-01-17 07:56:21.601 6854 ERROR nova.compute.manager File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 7345, in update_available_resource_for_node 2019-01-17 07:56:21.601 6854 ERROR nova.compute.manager rt.update_available_resource(context, nodename) 2019-01-17 07:56:21.601 6854 ERROR nova.compute.manager File "/usr/lib/python2.7/dist-packages/nova/compute/resource_tracker.py", line 689, in update_available_resource 2019-01-17 07:56:21.601 6854 ERROR nova.compute.manager self._update_available_resource(context, resources) 2019-01-17 07:56:21.601 6854 ERROR nova.compute.manager File "/usr/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py", line 277, in inner 2019-01-17 07:56:21.601 6854 ERROR nova.compute.manager return f(args, *kwargs) 2019-01-17 07:56:21.601 6854 ERROR nova.compute.manager File "/usr/lib/python2.7/dist-packages/nova/compute/resource_tracker.py", line 713, in _update_available_resource 2019-01-17 07:56:21.601 6854 ERROR nova.compute.manager self._init_compute_node(context, resources) 2019-01-17 07:56:21.601 6854 ERROR nova.compute.manager File "/usr/lib/python2.7/dist-packages/nova/compute/resource_tracker.py", line 572, in _init_compute_node 2019-01-17 07:56:21.601 6854 ERROR nova.compute.manager self._update(context, cn) 2019-01-17 07:56:21.601 6854 ERROR nova.compute.manager File "/usr/lib/python2.7/dist-packages/nova/compute/resource_tracker.py", line 887, in _update 2019-01-17 07:56:21.601 6854 ERROR nova.compute.manager inv_data, 2019-01-17 07:56:21.601 6854 ERROR nova.compute.manager File "/usr/lib/python2.7/dist-packages/nova/scheduler/client/__init__.py", line 68, in set_inventory_for_provider 2019-01-17 07:56:21.601 6854 ERROR nova.compute.manager parent_provider_uuid=parent_provider_uuid, 2019-01-17 07:56:21.601 6854 ERROR nova.compute.manager File "/usr/lib/python2.7/dist-packages/nova/scheduler/client/__init__.py", line 37, in __run_method 2019-01-17 07:56:21.601 6854 ERROR nova.compute.manager return getattr(self.instance, __name)(args, *kwargs) 2019-01-17 07:56:21.601 6854 ERROR nova.compute.manager File "/usr/lib/python2.7/dist-packages/nova/scheduler/client/report.py", line 1104, in set_inventory_for_provider 2019-01-17 07:56:21.601 6854 ERROR nova.compute.manager parent_provider_uuid=parent_provider_uuid) 2019-01-17 07:56:21.601 6854 ERROR nova.compute.manager File "/usr/lib/python2.7/dist-packages/nova/scheduler/client/report.py", line 673, in _ensure_resource_provider 2019-01-17 07:56:21.601 6854 ERROR nova.compute.manager name=name or uuid) 2019-01-17 07:56:21.601 6854 ERROR nova.compute.manager ResourceProviderCreationFailed: Failed to create resource provider compute 2019-01-17 07:56:21.601 6854 ERROR nova.compute.manager

--CONTROLLER NODE

shell> vi /etc/nova/nova.conf

[DEFAULT] dhcpbridge_flagfile = /etc/nova/nova.conf dhcpbridge = /usr/bin/nova-dhcpbridge log_dir = /var/log/nova state_path = /var/lib/nova lock_path = /var/lock/nova force_dhcp_release = true libvirt_use_virtio_for_bridges = true verbose = true ec2_private_dns_show_ip = true api_paste_config = /etc/nova/api-paste.ini enabled_apis = osapi_compute,metadata

rpc_backend = rabbit

auth_strategy = keystone my_ip = 192.168.0.101 use_neutron = true firewall_driver = nova.virt.firewall.NoopFirewallDriver

[vnc] vncserver_listen = 192.168.0.101 vncserver_proxyclient_address = 192.168.0.101

[glance] api_servers = http://controller:9292

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

[keystone_authtoken] auth_uri = http://controller:5000 auth_url = http://controller:35357 memcached_servers = controller:11211 auth_type = password project_domain_name = default user_domain_name = default project_name = service username = nova password = 123456789

[oslo_messaging_rabbit] rabbit_host = 192.168.0.101 rabbit_userid = openstack rabbit_password = 123456789

[api_database] connection = mysql+pymysql://nova:123456789@controller/nova_api

[database] connection = mysql+pymysql://nova:123456789@controller/nova

[placement] os_region_name = RegionOne project_domain_name = Default project_name = service user_domain_name = Default password = placement username = 123456789 auth_url = http://controller:35357/v3 auth_type = password

[neutron] url = http://controller:9696 auth_url = http://controller:35357 auth_type = password project_domain_name = default user_domain_name = default region_name = RegionOne project_name = service username = neutron password = 123456789

service_metadata_proxy = true metadata_proxy_shared_secret = metasecret001

--COMPUTE NODE

shell> vi /etc/nova/nova.conf

[DEFAULT] dhcpbridge_flagfile = /etc/nova/nova.conf dhcpbridge = /usr/bin/nova-dhcpbridge log_dir = /var/log/nova state_path = /var/lib/nova lock_path = /var/lock/nova force_dhcp_release = true libvirt_use_virtio_for_bridges = true verbose = true ec2_private_dns_show_ip = true api_paste_config = /etc/nova/api-paste.ini enabled_apis = osapi_compute,metadata

rpc_backend = rabbit

auth_strategy = keystone my_ip = 192.168.0.102 use_neutron = true firewall_driver = nova.virt.firewall.NoopFirewallDriver

[vnc] enabled = true vncserver_listen = 0.0.0.0 vncserver_proxyclient_address = 192.168.0.102 novncproxy_base_url = http://controller:6080/vnc_auto.html

[glance] api_servers = http://controller:9292

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

[libvirt] virt_type = kvm

[keystone_authtoken] auth_uri = http://controller:5000 auth_url = http://controller:35357 memcached_servers = controller:11211 auth_type = password project_domain_name = default user_domain_name = default project_name = service username = nova password = 123456789

[oslo_messaging_rabbit] rabbit_host = 192.168.0.101 rabbit_userid = test rabbit_password = test

[placement] os_region_name = RegionOne project_domain_name = Default project_name = service user_domain_name = Default password = placement username = 123456789 auth_url = http://controller:35357/v3 auth_type = password

[neutron] url = http://controller:9696 auth_url = http://controller:35357 auth_type = password project_domain_name = default user_domain_name = default region_name = RegionOne project_name = service username = neutron password = 123456789

How can I clear this nova installation problem ? please help me

I met a below error message after installation about nova-compute service in compute node. How can I clear this problem ?? please help me.

[error message] message]

shell>  tail -f nova-compute.log

nova-compute.log 2019-01-17 07:56:21.391 6854 WARNING nova.compute.monitors [req-84e60bfd-1837-4216-86ed-6d289482a084 - - - - -] Excluding nova.compute.monitors.cpu monitor virt_driver. Not in the list of enabled monitors (CONF.compute_monitors). 2019-01-17 07:56:21.574 6854 WARNING nova.scheduler.client.report [req-84e60bfd-1837-4216-86ed-6d289482a084 - - - - -] Placement service credentials do not work. Placement is optional in Newton, but required in Ocata. Please enable the placement service before upgrading.: Unauthorized: The request you have made requires authentication. (HTTP 401) (Request-ID: req-b5776786-ed48-4dee-8eca-043602e180c8) 2019-01-17 07:56:21.601 6854 ERROR nova.compute.manager [req-84e60bfd-1837-4216-86ed-6d289482a084 - - - - -] Error updating resources for node compute.: ResourceProviderCreationFailed: Failed to create resource provider compute 2019-01-17 07:56:21.601 6854 ERROR nova.compute.manager Traceback (most recent call last): 2019-01-17 07:56:21.601 6854 ERROR nova.compute.manager File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 7345, in update_available_resource_for_node 2019-01-17 07:56:21.601 6854 ERROR nova.compute.manager rt.update_available_resource(context, nodename) 2019-01-17 07:56:21.601 6854 ERROR nova.compute.manager File "/usr/lib/python2.7/dist-packages/nova/compute/resource_tracker.py", line 689, in update_available_resource 2019-01-17 07:56:21.601 6854 ERROR nova.compute.manager self._update_available_resource(context, resources) 2019-01-17 07:56:21.601 6854 ERROR nova.compute.manager File "/usr/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py", line 277, in inner 2019-01-17 07:56:21.601 6854 ERROR nova.compute.manager return f(args, *kwargs) f(*args, **kwargs) 2019-01-17 07:56:21.601 6854 ERROR nova.compute.manager File "/usr/lib/python2.7/dist-packages/nova/compute/resource_tracker.py", line 713, in _update_available_resource 2019-01-17 07:56:21.601 6854 ERROR nova.compute.manager self._init_compute_node(context, resources) 2019-01-17 07:56:21.601 6854 ERROR nova.compute.manager File "/usr/lib/python2.7/dist-packages/nova/compute/resource_tracker.py", line 572, in _init_compute_node 2019-01-17 07:56:21.601 6854 ERROR nova.compute.manager self._update(context, cn) 2019-01-17 07:56:21.601 6854 ERROR nova.compute.manager File "/usr/lib/python2.7/dist-packages/nova/compute/resource_tracker.py", line 887, in _update 2019-01-17 07:56:21.601 6854 ERROR nova.compute.manager inv_data, 2019-01-17 07:56:21.601 6854 ERROR nova.compute.manager File "/usr/lib/python2.7/dist-packages/nova/scheduler/client/__init__.py", line 68, in set_inventory_for_provider 2019-01-17 07:56:21.601 6854 ERROR nova.compute.manager parent_provider_uuid=parent_provider_uuid, 2019-01-17 07:56:21.601 6854 ERROR nova.compute.manager File "/usr/lib/python2.7/dist-packages/nova/scheduler/client/__init__.py", line 37, in __run_method 2019-01-17 07:56:21.601 6854 ERROR nova.compute.manager return getattr(self.instance, __name)(args, *kwargs) __name)(*args, **kwargs) 2019-01-17 07:56:21.601 6854 ERROR nova.compute.manager File "/usr/lib/python2.7/dist-packages/nova/scheduler/client/report.py", line 1104, in set_inventory_for_provider 2019-01-17 07:56:21.601 6854 ERROR nova.compute.manager parent_provider_uuid=parent_provider_uuid) 2019-01-17 07:56:21.601 6854 ERROR nova.compute.manager File "/usr/lib/python2.7/dist-packages/nova/scheduler/client/report.py", line 673, in _ensure_resource_provider 2019-01-17 07:56:21.601 6854 ERROR nova.compute.manager name=name or uuid) 2019-01-17 07:56:21.601 6854 ERROR nova.compute.manager ResourceProviderCreationFailed: Failed to create resource provider compute 2019-01-17 07:56:21.601 6854 ERROR nova.compute.manager

nova.compute.manager

--CONTROLLER NODE

shell> vi /etc/nova/nova.conf

/etc/nova/nova.conf [DEFAULT] dhcpbridge_flagfile = /etc/nova/nova.conf dhcpbridge = /usr/bin/nova-dhcpbridge log_dir = /var/log/nova state_path = /var/lib/nova lock_path = /var/lock/nova force_dhcp_release = true libvirt_use_virtio_for_bridges = true verbose = true ec2_private_dns_show_ip = true api_paste_config = /etc/nova/api-paste.ini enabled_apis = osapi_compute,metadata

rpc_backend = rabbit

osapi_compute,metadata #rpc_backend = rabbit auth_strategy = keystone my_ip = 192.168.0.101 use_neutron = true firewall_driver = nova.virt.firewall.NoopFirewallDriver

nova.virt.firewall.NoopFirewallDriver [vnc] vncserver_listen = 192.168.0.101 vncserver_proxyclient_address = 192.168.0.101

192.168.0.101 [glance] api_servers = http://controller:9292

http://controller:9292 [oslo_concurrency] lock_path = /var/lib/nova/tmp

/var/lib/nova/tmp [keystone_authtoken] auth_uri = http://controller:5000 auth_url = http://controller:35357 memcached_servers = controller:11211 auth_type = password project_domain_name = default user_domain_name = default project_name = service username = nova password = 123456789

123456789 [oslo_messaging_rabbit] rabbit_host = 192.168.0.101 rabbit_userid = openstack rabbit_password = 123456789

123456789 [api_database] connection = mysql+pymysql://nova:123456789@controller/nova_api

mysql+pymysql://nova:123456789@controller/nova_api [database] connection = mysql+pymysql://nova:123456789@controller/nova

mysql+pymysql://nova:123456789@controller/nova [placement] os_region_name = RegionOne project_domain_name = Default project_name = service user_domain_name = Default password = placement username = 123456789 auth_url = http://controller:35357/v3 auth_type = password

password [neutron] url = http://controller:9696 auth_url = http://controller:35357 auth_type = password project_domain_name = default user_domain_name = default region_name = RegionOne project_name = service username = neutron password = 123456789

123456789 service_metadata_proxy = true metadata_proxy_shared_secret = metasecret001

metasecret001

--COMPUTE NODE

shell> vi /etc/nova/nova.conf

/etc/nova/nova.conf [DEFAULT] dhcpbridge_flagfile = /etc/nova/nova.conf dhcpbridge = /usr/bin/nova-dhcpbridge log_dir = /var/log/nova state_path = /var/lib/nova lock_path = /var/lock/nova force_dhcp_release = true libvirt_use_virtio_for_bridges = true verbose = true ec2_private_dns_show_ip = true api_paste_config = /etc/nova/api-paste.ini enabled_apis = osapi_compute,metadata

rpc_backend = rabbit

osapi_compute,metadata #rpc_backend = rabbit auth_strategy = keystone my_ip = 192.168.0.102 use_neutron = true firewall_driver = nova.virt.firewall.NoopFirewallDriver

nova.virt.firewall.NoopFirewallDriver [vnc] enabled = true vncserver_listen = 0.0.0.0 vncserver_proxyclient_address = 192.168.0.102 novncproxy_base_url = http://controller:6080/vnc_auto.html

http://controller:6080/vnc_auto.html [glance] api_servers = http://controller:9292

http://controller:9292 [oslo_concurrency] lock_path = /var/lib/nova/tmp

/var/lib/nova/tmp [libvirt] virt_type = kvm

kvm [keystone_authtoken] auth_uri = http://controller:5000 auth_url = http://controller:35357 memcached_servers = controller:11211 auth_type = password project_domain_name = default user_domain_name = default project_name = service username = nova password = 123456789

123456789 [oslo_messaging_rabbit] rabbit_host = 192.168.0.101 rabbit_userid = test rabbit_password = test

test [placement] os_region_name = RegionOne project_domain_name = Default project_name = service user_domain_name = Default password = placement username = 123456789 auth_url = http://controller:35357/v3 auth_type = password

password [neutron] url = http://controller:9696 auth_url = http://controller:35357 auth_type = password project_domain_name = default user_domain_name = default region_name = RegionOne project_name = service username = neutron password = 123456789

123456789