Ask Your Question
1

Failed to create resource provider record in placement API for UUID 45d80a41-13ca-425b-84a2-60eaf454119f. Got 503:

asked 2017-11-13 06:26:35 -0600

s-esm gravatar image

Dear Members,

I try to manually install openstack with 3 nodes (controller, network, compute).

I have installed keystone and glance successfully but when I installed nova it is giving some errors in compute-node:/var/log/nova/nova-compute.log.

  • OS:CentOS7.4
  • Version:Pike

compute-node:/var/log/nova/nova-compute.log

2017-11-13 11:37:56.030 16477 ERROR nova.scheduler.client.report [req-899eb41e-b694-4420-8762-62688fc1451f - - - - -] [req-cf53b99b-be14-43f3-90ca-dec175bba31d] Failed to retrieve resource provider record from placement API for UUID 45d80a41-13ca-425b-84a2-60eaf454119f. Got 503: <html>
 <head>
  <title>503 Service Unavailable</title>
 </head>
 <body>
  <h1>503 Service Unavailable</h1>
  The server is currently unavailable. Please try again at a later time.<br /><br />
 </body>
</html>.
2017-11-13 11:37:56.857 16477 WARNING nova.scheduler.client.report [req-899eb41e-b694-4420-8762-62688fc1451f - - - - -] Unable to refresh my resource provider record

controller:/etc/nova/nova.conf

[DEFAULT]
enabled_apis = osapi_compute,metadata
transport_url = rabbit://openstack:password@controller
my_ip = 172.16.201.1
use_neutron = True
firewall_driver = nova.virt.firewall.NoopFirewallDriver

[api_database]
connection = mysql+pymysql://nova:password@controller/nova_api

[database]
connection = mysql+pymysql://nova:password@controller/nova

[api]
auth_strategy = keystone

[keystone_authtoken]
auth_uri = http://controller:5000
auth_url = http://controller:35357
memcached_servers = controller:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = nova
password = password

[vnc]
enabled = true
vncserver_listen = $my_ip
vncserver_proxyclient_address = $my_ip

[glance]
api_servers = http://controller:9292

[oslo_concurrency]
lock_path = /var/lib/nova/tmp

[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 = password

/etc/httpd/conf.d/00-nova-placement-api.conf

Listen 8778

<VirtualHost *:8778>
  WSGIProcessGroup nova-placement-api
  WSGIApplicationGroup %{GLOBAL}
  WSGIPassAuthorization On
  WSGIDaemonProcess nova-placement-api processes=3 threads=1 user=nova group=nova
  WSGIScriptAlias / /usr/bin/nova-placement-api
  <IfVersion >= 2.4>
    ErrorLogFormat "%M"
  </IfVersion>
  ErrorLog /var/log/nova/nova-placement-api.log
  #SSLEngine On
  #SSLCertificateFile ...
  #SSLCertificateKeyFile ...
</VirtualHost>

Alias /nova-placement-api /usr/bin/nova-placement-api
<Location /nova-placement-api>
  SetHandler wsgi-script
  Options +ExecCGI
  WSGIProcessGroup nova-placement-api
  WSGIApplicationGroup %{GLOBAL}
  WSGIPassAuthorization On
</Location>

<Directory /usr/bin>
   <IfVersion >= 2.4>
      Require all granted
   </IfVersion>
   <IfVersion < 2.4>
      Order allow,deny
      Allow from all
   </IfVersion>
</Directory>

Any help would be highly appreciated. Thanks.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2017-11-14 06:23:16 -0600

s-esm gravatar image

Thanks for your response.

I tryied it, but I still have error..

[root@controller ~]# su -s /bin/sh -c "nova-manage cell_v2 discover_hosts --verbose" nova
Found 2 cell mappings.
Skipping cell0 since it does not contain hosts.
Getting compute nodes from cell 'cell1': 31e51fbb-ded3-4954-a8fd-8686e98058d8
Found 0 unmapped computes in cell: 31e51fbb-ded3-4954-a8fd-8686e98058d8
[root@controller ~]#
[root@controller ~]# openstack compute service list
The server is currently unavailable. Please try again at a later time.<br /><br />
 (HTTP 503) (Request-ID: req-b984e127-4a9b-44c4-8cef-77edf7e1ec1b)
[root@controller ~]#
[root@controller ~]# nova-status upgrade check
Error:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/nova/cmd/status.py", line 459, in main
    ret = fn(*fn_args, **fn_kwargs)
  File "/usr/lib/python2.7/site-packages/nova/cmd/status.py", line 389, in check
    result = func(self)
  File "/usr/lib/python2.7/site-packages/nova/cmd/status.py", line 203, in _check_placement
    versions = self._placement_get("/")
  File "/usr/lib/python2.7/site-packages/nova/cmd/status.py", line 191, in _placement_get
    return client.get(path, endpoint_filter=ks_filter).json()
  File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 845, in get
    return self.request(url, 'GET', **kwargs)
  File "/usr/lib/python2.7/site-packages/positional/__init__.py", line 101, in inner
    return wrapped(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 742, in request
    raise exceptions.from_response(resp, method, url)
ServiceUnavailable: Service Unavailable (HTTP 503) (Request-ID: req-613f5a12-b74f-425a-a10f-f90601681c79)
[root@controller ~]#
edit flag offensive delete link more
0

answered 2017-11-14 05:48:07 -0600

Mohit gravatar image

Try : su -s /bin/sh -c "nova-manage cell_v2 discover_hosts --verbose" nova

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: 2017-11-13 06:26:35 -0600

Seen: 35 times

Last updated: Nov 14