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 | | 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": { "user": { "name": "placement", "domain": { "id": "default" }, "password": "Sub123@Admin#" } } } } }' \ "http://controller:5000/v3/auth/tokens" ; echo
I get the following reply: HTTP/1.1 201 Created Date: Tue, 04 Dec 2018 10:12:41 GMT Server: Apache/2.4.29 (Ubuntu) Content-Length: 316 X-Subject-Token: gAAAAABcBlMaVH3AWmoBNqeDcJxsGIImW36_4wfyoMBE6ub7VoaiO7yCpFkwKHKC0TI_bjn4rhCgC3i1c1nEE5jWkE2L47FEF6VeyM7DJeS5tquX8cJPRneyiR29-f8Zhpew7Z5J5kmfbHnSG4pADMOtuwrhtBjjrQ Vary: X-Auth-Token X-Distribution: Ubuntu x-openstack-request-id: req-df1f4336-cb39-49b0-81d3-9eaa6c071f27 Content-Type: application/json
{"token": {"issued_at": "2018-12-04T10:12:42.000000Z", "audit_ids": ["gWmlCDYSRtumSzIMSBFdFQ"], "methods": ["password"], "expires_at": "2018-12-04T11:12:42.000000Z", "user": {"password_expires_at": null, "domain": {"id": "default", "name": "Default"}, "id": "9fc32715b6184825939682c7c7a9ec06", "name": "placement"}}}
For the life of me, I cannot figure out what what is going on with the version and how to alter anything to change it.