Comment 17 for bug 1683585

Revision history for this message
Brian Moss (bmoss) wrote : Re: [Bug 1683585] Re: Placement endpoint configuration incorrect as written

On 4 May 2017 at 20:33, Petr Kovar <email address hidden> wrote:

> I think this needs to be backported to Ocata, too?
>
>
Yep, I think you're right. I'll cherry-pick it.

Thanks!

> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1683585
>
> Title:
> Placement endpoint configuration incorrect as written
>
> Status in openstack-manuals:
> Fix Released
>
> Bug description:
> Installed on vanilla ubuntu 16.04 LTS, using ocata cloud repo.
>
> - [X] This doc is inaccurate in this way: ______
>
> The guide indicates that endpoints should be created without
> specifying the port number, as so:
>
> openstack endpoint create --region RegionOne placement public
> http://controller/placement
> openstack endpoint create --region RegionOne placement admin
> http://controller/placement
> openstack endpoint create --region RegionOne placement internal
> http://controller/placement
>
> however, this does not work, and produces error messages in the nova
> logs of the compute nodes containing messages like:
>
> ERROR nova.scheduler.client.report [req-7aec8f56-4d2d-4e6f-8cb8-10af0aa06c99
> - -] Failed to create resource provider record in placement API for UUID
> 04b70101-7ec5-4078-b500-203c5560abf9. Got 404: <!DOCTYPE HTML PUBLIC
> "-//IETF//DTD HTML 2.0//EN">
> <html><head>
> <title>404 Not Found</title>
> </head><body>
> <h1>Not Found</h1>
> <p>The requested URL /placement/resource_providers was not found on
> this server.</p>
> <hr>
> <address>Apache/2.4.18 (Ubuntu) Server at 10.23.124.235 Port
> 80</address>
> </body></html>
>
> - [ ] This is a doc addition request.
> - [X] I have a fix to the document that I can paste below including
> example: input and output.
>
> Looking at /etc/apache2/sites-enabled/nova-placement-api.conf, I could
> clearly see that the placement api is not on port 80, but rather on
> port 8778. To fix, I went back and deleted the incorrect endpoints
> and re-created them like so:
>
> openstack endpoint create --region RegionOne placement public
> http://controller:8778
> openstack endpoint create --region RegionOne placement admin
> http://controller:8778
> openstack endpoint create --region RegionOne placement internal
> http://controller:8778
>
> After restarting the services, now the compute node could successfully
> register data with the controller and I could successfully launch
> instances.
>
> -----------------------------------
> Release: 15.0.0 on 2017-04-14 06:14
> SHA: c73899569e19fc809f56f6d58235f339c30bda2a
> Source: https://git.openstack.org/cgit/openstack/openstack-
> manuals/tree/doc/install-guide/source/nova-controller-install.rst
> URL: https://docs.openstack.org/ocata/install-guide-ubuntu/
> nova-controller-install.html
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/openstack-manuals/+bug/1683585/+subscriptions
>