Ask Your Question
0

Ocata:The placement API endpoint not found. Placement is optional in Newton, but required in Ocata. Please enable the placement service before upgrading.

asked 2017-04-24 16:46:17 -0500

prakashrao gravatar image

Hello,

I followed openstack ocata installation on ubuntu from this link.I have multinode environment with 3 nodes.One controller node running network services too and two compute nodes

https://docs.openstack.org/ocata/install-guide-ubuntu/nova-controller-install.html (https://docs.openstack.org/ocata/inst...)

After following the instructions i could not get placement service up on controller node.I then had to follow https://review.openstack.org/#/c/438328/15/doc/install-guide/source/nova-controller-install.rst (https://review.openstack.org/#/c/4383...) specifically for configuration related to placement service and made some changes related to creation of placement endpoints.I had to use http://controller:8778 instead of http://controller/placement as documented in the instllation guide

After making changes the placement api status is success on controller node but compute nodes still give errors that placement-api is

CONTROLLER root@perfcontroller:~# nova-status upgrade check +-------------------------------------------------------------------+ | Upgrade Check Results | +-------------------------------------------------------------------+ | Check: Cells v2 | | Result: Success | | Details: None | +-------------------------------------------------------------------+ | Check: Placement API | | Result: Success | | Details: None | +-------------------------------------------------------------------+ | Check: Resource Providers | | Result: Warning | | Details: There are no compute resource providers in the Placement | | service but there are 2 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 (http://docs.openstack.org/developer/n...) | | for more details. | +----------------------------------------------------------

COMPUTE Node

On restart nova-compute service i get this

/var/log/nova-compute.log 017-04-24 14:33:59.315 3644 WARNING nova.compute.monitors [req-9a917ab1-9caf-4fab-a9df-50763f8946dd - - - - -] Excluding nova.compute.monitors.cpu monitor virt_driver. Not in the list of enabled monitors (CONF.compute_monitors). 2017-04-24 14:34:03.164 3644 WARNING nova.scheduler.client.report [req-9a917ab1-9caf-4fab-a9df-50763f8946dd - - - - -] The placement API endpoint not found. Placement is optional in Newton, but required in Ocata. Please enable the placement service before upgrading. 2017-04-24 14:34:03.166 3644 WARNING nova.scheduler.client.report [req-9a917ab1-9caf-4fab-a9df-50763f8946dd - - - - -] Unable to refresh my resource provider record 2017-04-24 14:34:03.286 3644 INFO nova.compute.resource_tracker [req-9a917ab1-9caf-4fab-a9df-50763f8946dd - - - - -] Final resource view: name=perfcompute1 phys_ram=128826MB used_ram=512MB phys_disk=789GB used_disk=0GB total_vcpus=32 used_vcpus=0 pci_stats=[]

nova.conf on compute node and controller node [placement] os_region_name = RegionOne project_domain_name = Default project_name = service auth_type = password user_domain_name = Default auth_url = http://perfcontroller:35357/v3 username = placement password = abc123

If i try to launch any instance i am getting "No Valid hosts" error

Any help is appreciated!

edit retag flag offensive close merge delete

Comments

Make sure placement endpoint should be configure as http://<controller>:<port>

nakul_redhat gravatar imagenakul_redhat ( 2017-05-01 08:35:10 -0500 )edit

I have done that and on issuing nova-status upgrade check i do see this Check: Placement API | | Result: Success .But i am getting this error Check: Resource Providers is failing-There are no compute resource providers in the Placement | | service but there are 2 compute nodes in the deployment

prakashrao gravatar imageprakashrao ( 2017-05-02 12:13:28 -0500 )edit

2 answers

Sort by » oldest newest most voted
1

answered 2017-05-11 07:21:04 -0500

updated 2017-05-11 07:23:05 -0500

We have checked and found that error is inside of nova.conf. Find this string and comment it out. Placement looks for this value,

    os_region_name = openstack

instead the value

os_region_name = RegionOne

This is not related to tcp6 binding of apache2 . Not related to interface listening issue. Do not touch it!

edit flag offensive delete link more

Comments

Oh man you are lifesaver!Thanks.This worked.AFter commenting out the line and restarting nova service i am not getting the error

root@perfcontroller:~# nova-status upgrade check +---------------------------+ | Upgrade Check Results | +---------------------------+ | Check: Cells v2 | |

prakashrao gravatar imageprakashrao ( 2017-05-15 17:40:21 -0500 )edit

Yes I have seen it during the installation but ı thought it has to be something else Teşekkürler Gökhan kurulum sırasında ben de gördüm onu ama vardır bir bildikleri onun için openstack yazmışlardır diye düşündüm ben configürasyon dosyalarıyla fazla oynamam genellikle default ayarları kabul ederim

ltore1234 gravatar imageltore1234 ( 2017-08-03 10:42:36 -0500 )edit
0

answered 2017-10-08 15:48:37 -0500

Davidshu gravatar image

Hi,

I have same problem but commenting out "os_region_name = openstack" and use os_region_name = RegionOne doesn't fix the problem. I still got this error after restarting nova service, here is my current configuration:

[placement]

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

#
# From nova.conf
#

#
# Region name of this node. This is used when picking the URL in the service
# catalog.
#
# Possible values:
#
# * Any string representing region name
#  (string value)
#os_region_name = openstack

In my previous config I forgot to comment out "os_region_name = openstack" and here is the current error log from controller and compute node:

controller node

# nova-status --verbose upgrade check
Option "verbose" from group "DEFAULT" is deprecated for removal.  Its value may be silently ignored in the future.
Error:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nova/cmd/status.py", line 456, in main
    ret = fn(*fn_args, **fn_kwargs)
  File "/usr/lib/python2.7/dist-packages/nova/cmd/status.py", line 386, in check
    result = func(self)
  File "/usr/lib/python2.7/dist-packages/nova/cmd/status.py", line 201, in _check_placement
    versions = self._placement_get("/")
  File "/usr/lib/python2.7/dist-packages/nova/cmd/status.py", line 189, in _placement_get
    return client.get(path, endpoint_filter=ks_filter).json()
  File "/usr/lib/python2.7/dist-packages/keystoneauth1/session.py", line 758, in get
    return self.request(url, 'GET', **kwargs)
  File "/usr/lib/python2.7/dist-packages/positional/__init__.py", line 101, in inner
    return wrapped(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/keystoneauth1/session.py", line 655, in request
    raise exceptions.from_response(resp, method, url)
InternalServerError: Internal Server Error (HTTP 500)

compute node

2017-10-09 03:45:49.134 50369 ERROR nova.scheduler.client.report [req-e7e8d3a7-0fa1-4a94-868f-f2851916336a - - - - -] Failed to create resource provider record in placement API for UUID e99f358c-833f-432b-8660-275f49cc8438. Got 500: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator at 
 [no address given] to inform them of the time this error occurred,
 and the actions you performed just before this error.</p>
<p>More information about this error may be available
in the server error log.</p>
<hr>
<address>Apache/2.4.18 (Ubuntu) Server at controller Port 8778</address>
</body></html>
.
2017-10-09 03:45:49.134 50369 WARNING nova.scheduler.client.report [req-e7e8d3a7-0fa1-4a94-868f-f2851916336a - - - - -] Unable to refresh my resource provider record
2017-10-09 03:45:49.176 50369 INFO nova.compute.resource_tracker [req-e7e8d3a7-0fa1-4a94-868f-f2851916336a - - - - -] Final resource view: name=compute101 phys_ram=241796MB used_ram=512MB phys_disk=38GB used_disk=0GB total_vcpus=48 used_vcpus=0 pci_stats=[]

Please provide some clue.

Thanks in advance Best regards

David

edit flag offensive delete link more

Comments

Hi, I've solved this problem, I need to restart apache2 and all of nova related services on controller and compute node.

Thank you

Davidshu gravatar imageDavidshu ( 2017-10-08 16:17:01 -0500 )edit

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: 2017-04-24 16:46:17 -0500

Seen: 1,320 times

Last updated: Oct 08