Placement API not running but no errors reported

asked 2017-05-12 11:29:45 -0500

danigrith gravatar image

I'm currently building OpenStack by hand on the Ocata release on CentOS 7 following the document guide: https://docs.openstack.org/ocata/install-guide-rdo/nova-controller-install.html#install-and-configure-components I have not deviated from the instructions outside of changing IPs to my own, and controller name to my own. I did also make the adjustedment to the apache conf file: 00-nova-placement-api.conf However when I run:

# nova-status upgrade check
+-------------------------------------------------------------------+
| Upgrade Check Results                                             |
+-------------------------------------------------------------------+
| Check: Cells v2                                                   |
| Result: Success                                                   |
| Details: None                                                     |
+-------------------------------------------------------------------+
| Check: Placement API                                              |
| Result: Failure                                                   |
| Details: Placement API endpoint not found.                        |
+-------------------------------------------------------------------+
| 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                                                             |
|   http://docs.openstack.org/developer/nova/placement.html         |
|   for more details.                                               |
+-------------------------------------------------------------------+

As you can see the Placement API endpoint not found, and placement is not running:

# ps -ef | grep placement
root     12874 12695  0 10:12 pts/0    00:00:00 grep --color=auto placement

And the endpoints are setup within Keystone:

+----------------------------------+------------+--------------+--------------+---------+-----------+-------------------------+
| ID                               | Region     | Service Name | Service Type | Enabled | Interface | URL                     |
+----------------------------------+------------+--------------+--------------+---------+-----------+-------------------------+
| 00b3b760e963401da0ba0bc5ef7c6362 | RegionOne  | keystone     | identity     | True    | admin     | http://cloud9:35357/v3/ |
| 03af333f95044040b90e9963d41c7c4f | RegionOnce | placement    | placement    | True    | admin     | http://cloud9:8778      |
| 098fdf50b0704af8a9ad4ef7108958d4 | RegionOne  | keystone     | identity     | True    | public    | http://cloud9:5000/v3/  |
| 0af166f456064a0a87ae5a04b9a30288 | RegionOne  | glance       | image        | True    | public    | http://cloud9:9292      |
| 414707f5033e406797de98d3d51ff6e5 | RegionOnce | placement    | placement    | True    | public    | http://cloud9:8778      |
| 60cf8d001aec465fb84fb396d80753da | RegionOnce | placement    | placement    | True    | internal  | http://cloud9:8778      |
| 8c7d2121b2e247f2a223aa9671024ae6 | RegionOne  | nova         | compute      | True    | public    | http://cloud9:8774/v2.1 |
| a7e33e1745814fc78d0eacc5bf2a9452 | RegionOne  | glance       | image        | True    | admin     | http://cloud9:9292      |
| a936f63529dd45bea0a41549e84a7d7a | RegionOne  | nova         | compute      | True    | internal  | http://cloud9:8774/v2.1 |
| e54f5c57ac6649da9cb578d1f1acbc3a | RegionOne  | keystone     | identity     | True    | internal  | http://cloud9:5000/v3/  |
| ea0874c6f6554f29ae872c49c36f2c5e | RegionOne  | nova         | compute      | True    | admin     | http://cloud9:8774/v2.1 |
| ebe1b6126b1f409cac3e172555ea089b | RegionOne  | glance       | image        | True    | internal  | http://cloud9:9292      |
+----------------------------------+------------+--------------+--------------+---------+-----------+-------------------------+

The log files also does not report any errors, I don't know the best/recommended way to post those. Please let me know what I can do and I can update the question with them posted.

The placement api log is empty and is created with root permissions by the httpd service.

[root@cloud9 nova]# ls -l
total 712
-rw-r--r--. 1 nova nova 204364 May 12 00:24 nova-api.log
-rw-r--r--. 1 nova nova  36287 May 12 00:24 nova-conductor.log
-rw-r--r--. 1 nova nova 140209 May 12 00:24 nova-consoleauth.log
-rw-r--r--. 1 nova nova  68555 May 11 14:14 nova-manage.log
-rw-r--r--. 1 nova nova  11626 May 12 00:24 nova-novncproxy.log
-rw-r--r--  1 root root      0 May 12 00:25 nova-placement-api.log
-rw-r--r--. 1 nova nova 258536 May 12 10:01 nova-scheduler.log
[root@cloud9 nova]#

Here is my nova conf.

[DEFAULT]
my_ip=192.168.60.9
use_neutron=true
firewall_driver = nova.virt.firewall.NoopFirewallDriver
enabled_apis=osapi_compute,metadata
transport_url=rabbit://openstack:#####@cloud9
[api]
auth_strategy=keystone
[api_database]
connection=mysql+pymysql://nova:#####@cloud9/nova_api
[barbican]
[cache]
[cells]
[cinder]
[cloudpipe]
[conductor]
[console]
[consoleauth]
[cors]
[cors.subdomain]
[crypto]
[database]
connection ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-05-12 11:54:57 -0500

danigrith gravatar image

So I'm blind. The endpoints had the wrong region. I had typo'd RegionOne as RegionOnce. Once I fixed the endpoints to the correct region and restarted the services all reported okay. This begs the question though. Was there a log I missed that would have told me this? If not should there be? If yes, I'm still blind.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2017-05-12 11:29:45 -0500

Seen: 870 times

Last updated: May 12 '17