Ask Your Question
0

As you would see from the logs especially from the compute node log marked in bold, you would find that there is some kind of version mismatch going on with placement and the nova-compute service on the compute node.

asked 2018-12-04 04:50:43 -0600

qovnika gravatar image

storage@storage-00:~# nova-status upgrade check

+-------------------------------------------------------------------+ | Check: Resource Providers | | Result: Warning | | Details: There are no compute resource providers in the Placement | | service but there are 1 compute nodes in the deployment. | | This means no compute nodes are reporting into the | | Placement service and need to be upgraded and/or fixed. | | See | | https://docs.openstack.org/nova/latest/user/placement.html (https://docs.openstack.org/nova/lates...) | | for more details. | +-------------------------------------------------------------------+

I get the following when I tail /var/log/apache2/nova_placement_error.log storage@storage-00:~$ sudo tail -f /var/log/apache2/nova_placement_error.log 2018-12-04 10:57:23.465350 2018-12-04 10:57:23.464 26073 INFO nova.api.openstack.placement.requestlog [req-0f96a652-5833-43e9-a539-4069bf3fdf84 9fc32715b6184825939682c7c7a9ec06 3b255181d9654448875e4f3ccf81ad69 - default default] 10.51.1.103 "POST /resource_providers" status: 406 len: 340 microversion: - 2018-12-04 10:58:23.744187 2018-12-04 10:58:23.743 26069 INFO nova.api.openstack.placement.requestlog [req-ca6fd0fb-8a99-4310-ae86-d0d4f90b5cdb 9fc32715b6184825939682c7c7a9ec06 3b255181d9654448875e4f3ccf81ad69 - default default] 10.51.1.103 "GET /resource_providers?in_tree=150c613a-0171-43e3-8eda-c59cc6562902" status: 200 len: 26 microversion: 1.14 2018-12-04 10:58:23.762415 2018-12-04 10:58:23.761 26073 INFO nova.api.openstack.placement.requestlog [req-c77e9a4e-b66d-4fc5-a2d3-1b052dc2dcba 9fc32715b6184825939682c7c7a9ec06 3b255181d9654448875e4f3ccf81ad69 - default default] 10.51.1.103 "POST /resource_providers" status: 406 len: 340 microversion: -

I get the following when I tail /var/log/nova/nova-compute.log on the compute node: compute-node1@computenode1-00:~# tail -f /var/log/nova/nova-compute.log [sudo] password for compute-node1: 2018-12-04 11:03:35.229 1490 DEBUG nova.virt.libvirt.driver [req-fe45db3b-6c3f-456b-b399-237ac91bfbe6 - - - - -] skipping disk for ubuntu16.04-Server-Test as it does not have a path _get_instance_disk_info_from_config /usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py:7980 2018-12-04 11:03:35.631 1490 DEBUG oslo_concurrency.lockutils [req-fe45db3b-6c3f-456b-b399-237ac91bfbe6 - - - - -] Lock "compute_resources" acquired by "nova.compute.resource_tracker._update_available_resource" :: waited 0.000s inner /usr/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py:273 2018-12-04 11:03:35.732 1490 ERROR nova.scheduler.client.report [req-fe45db3b-6c3f-456b-b399-237ac91bfbe6 - - - - -] [req-212b6fd5-f534-496d-9d36-b729631b0b55] Failed to create resource provider record in placement API for UUID 150c613a-0171-43e3-8eda-c59cc6562902. Got 406: {"errors": [{"status": 406, "title": "Not Acceptable", "min_version": "1.0", "detail": "The resource could not be generated that was acceptable to your browser (content of type application/json. \n\n Invalid microversion: Unacceptable version header: 1.20", "max_version": "1.17", "request_id": "req-212b6fd5-f534-496d-9d36-b729631b0b55"}]}. 2018-12-04 11:03:35.733 1490 DEBUG oslo_concurrency.lockutils [req-fe45db3b-6c3f-456b-b399-237ac91bfbe6 - - - - -] Lock "compute_resources" released by "nova.compute.resource_tracker._update_available_resource" :: held 0.102s inner /usr/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py:285 2018-12-04 11:03:35.733 1490 ERROR nova.compute.manager [req-fe45db3b-6c3f-456b-b399-237ac91bfbe6 - - - - -] Error updating resources for node computenode1-00.: ResourceProviderCreationFailed: Failed to create resource provider computenode1-00 2018-12-04 11:03:35.733 1490 ERROR nova.compute.manager raise exception.ResourceProviderCreationFailed(name=name) 2018-12-04 11:03:35.733 1490 ERROR nova.compute.manager ResourceProviderCreationFailed: Failed to create resource provider computenode1-00 2018-12-04 11:03:35.733 1490 ERROR nova.compute.manager 2018-12-04 11:03:36.734 1490 DEBUG oslo_service.periodic_task [req-fe45db3b-6c3f-456b-b399-237ac91bfbe6 - - - - -] Running periodic task ComputeManager._poll_volume_usage run_periodic_tasks /usr/lib/python2.7/dist-packages/oslo_service/periodic_task.py:215

When I run the following from the compute node: curl -i \ -H "Content-Type: application/json" \ -d ' { "auth": { "identity": { "methods": ["password"], "password ... (more)

edit retag flag offensive close merge delete

Comments

Pretty sure openstack is saying there aren't any available nova-compute nodes. Can you run 'openstack compute service list' and let me know if there are any entries for nova-compute that show that they can be used?

reynoni gravatar imagereynoni ( 2018-12-04 10:15:44 -0600 )edit

Hi below is the result of running openstack compute service list | 5 | nova-compute | computenode1-00 | nova | enabled | up | 2018-12-06T10:36:44.000000 | It shows that my compute node is up. i cannot find where to paste the full result.

qovnika gravatar imageqovnika ( 2018-12-06 04:44:53 -0600 )edit

Did you run the placement/nova db update/upgrade commands?

reynoni gravatar imagereynoni ( 2018-12-06 07:57:05 -0600 )edit

I ran the following:

su -s /bin/sh -c "nova-manage api_db sync" nova

su -s /bin/sh -c "nova-manage cell_v2 map_cell0" nova

su -s /bin/sh -c "nova-manage db sync" nova

I didn't run any seperate placement db command. I am following the rocky installation instructions. No tables in placement db.

qovnika gravatar imageqovnika ( 2018-12-07 08:54:24 -0600 )edit

Plus... it keeps logging the following error on the compute node's nova-compute.log: 2018-12-07 16:54:40.786 16586 ERROR nova.compute.manager generation=data['resource_provider_generation']) 2018-12-07 16:54:40.786 16586 ERROR nova.compute.manager KeyError: 'resource_provider_generation'

qovnika gravatar imageqovnika ( 2018-12-07 09:56:13 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2018-12-09 07:47:36 -0600

qovnika gravatar image

Alright! I was using the queens release on my controller node and the rocky release on my compute node. Thus, the versions were different. I have now upgraded my controller node to rocky.

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

1 follower

Stats

Asked: 2018-12-04 04:50:43 -0600

Seen: 10 times

Last updated: Dec 04