Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Failed to create resource provider record in placement API got 404 error

Hi All,

I have configured the openstack - Ocata manually in my test environment where we have 2 controllers and 2 computes with HA configured.

I am seeing continuous error logs in my compute nodes as below: 2017-04-25 14:17:18.768 1081 ERROR nova.scheduler.client.report [req-8e120b50-d9c6-4793-8683-eed5275e5900 - - - - -] Failed to create resource provider record in placement API for UUID e149da94-cfec-4d6c-9ec9-2962802ab89b. Got 404: <html><head> <title>404 Not Found</title> </head><body>

Not Found

The requested URL /placement/resource_providers was not found on this server.

</body></html> 2017-04-25 14:17:18.769 1081 WARNING nova.scheduler.client.report [req-8e120b50-d9c6-4793-8683-eed5275e5900 - - - - -] Unable to refresh my resource provider record

Here you find the details about my setup:

(NOTE:I am using VIP - 192.168.15.201 and 15.202 for HA)

openstack hypervisor list

+----+--------------------------+-----------------+---------------+-------+ | ID | Hypervisor Hostname | Hypervisor Type | Host IP | State | +----+--------------------------+-----------------+---------------+-------+ | 3 | psusnjhhdlc7iosc02com001 | QEMU | 192.168.15.11 | up | | 5 | psusnjhhdlc7iosc02com002 | QEMU | 192.168.15.12 | up | +----+--------------------------+-----------------+---------------+-------+

openstack hypervisor list

+----+--------------------------+-----------------+---------------+-------+ | ID | Hypervisor Hostname | Hypervisor Type | Host IP | State | +----+--------------------------+-----------------+---------------+-------+ | 3 | psusnjhhdlc7iosc02com001 | QEMU | 192.168.15.11 | up | | 5 | psusnjhhdlc7iosc02com002 | QEMU | 192.168.15.12 | up | +----+--------------------------+-----------------+---------------+-------+

openstack endpoint list | grep placement

| 33370069045d4e80a40731ed2b64e0b1 | usnjcnis001 | placement | placement | True | admin | http://192.168.15.201/placement | | c7e3cc5762bd4dc58bbf3d2ab2dccee5 | usnjcnis001 | placement | placement | True | internal | http://192.168.15.201/placement | | eeef04ff8a1f4f7f90c464f067b31823 | usnjcnis001 | placement | placement | True | public | http://192.168.15.201/placement |

nova-manage cell_v2 list_cells

+-------+--------------------------------------+ | Name | UUID | +-------+--------------------------------------+ | cell0 | 00000000-0000-0000-0000-000000000000 | | cell1 | ddba00a2-3557-44e6-b827-a78da852b924 | +-------+--------------------------------------+

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': ddba00a2-3557-44e6-b827-a78da852b924 Found 2 computes in cell: ddba00a2-3557-44e6-b827-a78da852b924 Checking host mapping for compute host 'psusnjhhdlc7iosc02com001': e149da94-cfec-4d6c-9ec9-2962802ab89b Checking host mapping for compute host 'psusnjhhdlc7iosc02com002': c3c8840d-2bad-407f-b218-446f957f0bf1

#

/etc/nova/nova.conf [DEFAULT] enabled_apis = osapi_compute,metadata transport_url = rabbit://rabbitmq:4598954baf92c4d8edd6@psusnjhhdlc7iosc02con001 my_ip = 192.168.15.13 use_neutron = True firewall_driver = nova.virt.firewall.NoopFirewallDriver

ask api to listen to a specific ip. Reuqired if haproxy is in this controller

osapi_compute_listen=192.168.15.13 metadata_listen = 192.168.15.13 debug = True [api_database] connection = mysql+pymysql://nova:2259adc8d9a652f31886@192.168.15.202/nova_api [database] connection = mysql+pymysql://nova:2259adc8d9a652f31886@192.168.15.202/nova [api] auth_strategy = keystone [keystone_authtoken] auth_uri = http://192.168.15.201:5000 auth_url = http://192.168.15.201:35357 memcached_servers = psusnjhhdlc7iosc02con001:11211,psusnjhhdlc7iosc02con002:11211 auth_type = password project_domain_name = Default user_domain_name = Default project_name = service username = nova password = c1cc3bd5db0787272ba3

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

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

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

[placement] os_region_name = usnjcnis001 project_domain_name = Default project_name = service auth_type = password user_domain_name = Default auth_url = http://192.168.15.201:35357/v3 username = placement password = 282d63a9cb7f1d43cb48

[neutron] url = http://192.168.15.201:9696 auth_url = http://192.168.15.201:35357 auth_type = password project_domain_name = default user_domain_name = default region_name = usnjcnis001 project_name = service username = neutron password = 1c3d91db12256871d396

service_metadata_proxy = true

metadata_proxy_shared_secret = METADATA_SECRET

[cinder] os_region_name = usnjcnis001

#

/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 &gt;="2.4"> ErrorLogFormat "%M" </ifversion> ErrorLog /var/log/nova/nova-placement-api.log #SSLEngine On #SSLCertificateFile ... #SSLCertificateKeyFile ... <directory usr="" bin=""> <ifversion &gt;="2.4"> Require all granted </ifversion> <ifversion &lt;="" 2.4=""> Order allow,deny Allow from all </ifversion> </directory> </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>

#

Appreciate your help/suggestions on this,if any. Thanks, Nakul J Andeo

Failed to create resource provider record in placement API got 404 error

Hi All,

I have configured the openstack - Ocata manually in my test environment where we have 2 controllers and 2 computes with HA configured.

I am seeing continuous error logs in my compute nodes as below: 2017-04-25 14:17:18.768 1081 ERROR nova.scheduler.client.report [req-8e120b50-d9c6-4793-8683-eed5275e5900 - - - - -] Failed to create resource provider record in placement API for UUID e149da94-cfec-4d6c-9ec9-2962802ab89b. Got 404: <html><head> <title>404 Not Found</title> </head><body>

Not Found

The requested URL /placement/resource_providers was not found on this server.

</body></html> 2017-04-25 14:17:18.769 1081 WARNING nova.scheduler.client.report [req-8e120b50-d9c6-4793-8683-eed5275e5900 - - - - -] Unable to refresh my resource provider record

Here you find the details about my setup:

(NOTE:I am using VIP - 192.168.15.201 and 15.202 for HA)

openstack hypervisor list

+----+--------------------------+-----------------+---------------+-------+ | ID | Hypervisor Hostname | Hypervisor Type | Host IP | State | +----+--------------------------+-----------------+---------------+-------+ | 3 | psusnjhhdlc7iosc02com001 | QEMU | 192.168.15.11 | up | | 5 | psusnjhhdlc7iosc02com002 | QEMU | 192.168.15.12 | up | +----+--------------------------+-----------------+---------------+-------+

openstack hypervisor list

+----+--------------------------+-----------------+---------------+-------+ | ID | Hypervisor Hostname | Hypervisor Type | Host IP | State | +----+--------------------------+-----------------+---------------+-------+ | 3 | psusnjhhdlc7iosc02com001 | QEMU | 192.168.15.11 | up | | 5 | psusnjhhdlc7iosc02com002 | QEMU | 192.168.15.12 | up | +----+--------------------------+-----------------+---------------+-------+

openstack endpoint list | grep placement

| 33370069045d4e80a40731ed2b64e0b1 | usnjcnis001 | placement | placement | True | admin | http://192.168.15.201/placement | | c7e3cc5762bd4dc58bbf3d2ab2dccee5 | usnjcnis001 | placement | placement | True | internal | http://192.168.15.201/placement | | eeef04ff8a1f4f7f90c464f067b31823 | usnjcnis001 | placement | placement | True | public | http://192.168.15.201/placement |

nova-manage cell_v2 list_cells

+-------+--------------------------------------+ | Name | UUID | +-------+--------------------------------------+ | cell0 | 00000000-0000-0000-0000-000000000000 | | cell1 | ddba00a2-3557-44e6-b827-a78da852b924 | +-------+--------------------------------------+

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': ddba00a2-3557-44e6-b827-a78da852b924 Found 2 computes in cell: ddba00a2-3557-44e6-b827-a78da852b924 Checking host mapping for compute host 'psusnjhhdlc7iosc02com001': e149da94-cfec-4d6c-9ec9-2962802ab89b Checking host mapping for compute host 'psusnjhhdlc7iosc02com002': c3c8840d-2bad-407f-b218-446f957f0bf1

#

/etc/nova/nova.conf [DEFAULT] enabled_apis = osapi_compute,metadata transport_url = rabbit://rabbitmq:4598954baf92c4d8edd6@psusnjhhdlc7iosc02con001 my_ip = 192.168.15.13 use_neutron = True firewall_driver = nova.virt.firewall.NoopFirewallDriver

ask api to listen to a specific ip. Reuqired if haproxy is in this controller

osapi_compute_listen=192.168.15.13 metadata_listen = 192.168.15.13 debug = True [api_database] connection = mysql+pymysql://nova:2259adc8d9a652f31886@192.168.15.202/nova_api [database] connection = mysql+pymysql://nova:2259adc8d9a652f31886@192.168.15.202/nova [api] auth_strategy = keystone [keystone_authtoken] auth_uri = http://192.168.15.201:5000 auth_url = http://192.168.15.201:35357 memcached_servers = psusnjhhdlc7iosc02con001:11211,psusnjhhdlc7iosc02con002:11211 auth_type = password project_domain_name = Default user_domain_name = Default project_name = service username = nova password = c1cc3bd5db0787272ba3

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

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

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

[placement] os_region_name = usnjcnis001 project_domain_name = Default project_name = service auth_type = password user_domain_name = Default auth_url = http://192.168.15.201:35357/v3 username = placement password = 282d63a9cb7f1d43cb48

[neutron] url = http://192.168.15.201:9696 auth_url = http://192.168.15.201:35357 auth_type = password project_domain_name = default user_domain_name = default region_name = usnjcnis001 project_name = service username = neutron password = 1c3d91db12256871d396

service_metadata_proxy = true

metadata_proxy_shared_secret = METADATA_SECRET

[cinder] os_region_name = usnjcnis001

#

/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 &gt;="2.4"> ErrorLogFormat "%M" </ifversion> ErrorLog /var/log/nova/nova-placement-api.log #SSLEngine On #SSLCertificateFile ... #SSLCertificateKeyFile ... <directory usr="" bin=""> <ifversion &gt;="2.4"> Require all granted </ifversion> <ifversion &lt;="" 2.4=""> Order allow,deny Allow from all </ifversion> </directory> </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>

#

Appreciate your help/suggestions on this,if any. Thanks, Nakul J Andeo Andeo

Failed to create resource provider record in placement API got 404 error

Hi All,

I have configured the openstack - Ocata manually in my test environment where we have 2 controllers and 2 computes with HA configured.

I am seeing continuous error logs in my compute nodes as below: 2017-04-25 14:17:18.768 1081 ERROR nova.scheduler.client.report [req-8e120b50-d9c6-4793-8683-eed5275e5900 - - - - -] Failed to create resource provider record in placement API for UUID e149da94-cfec-4d6c-9ec9-2962802ab89b. Got 404: <html><head> <title>404 Not Found</title> </head><body>

Not Found

The requested URL /placement/resource_providers was not found on this server.

</body></html> 2017-04-25 14:17:18.769 1081 WARNING nova.scheduler.client.report [req-8e120b50-d9c6-4793-8683-eed5275e5900 - - - - -] Unable to refresh my resource provider record

Here you find the details about my setup:

#

/etc/nova/nova.conf [DEFAULT] enabled_apis = osapi_compute,metadata transport_url = rabbit://rabbitmq:4598954baf92c4d8edd6@psusnjhhdlc7iosc02con001 my_ip = 192.168.15.13 use_neutron = True firewall_driver = nova.virt.firewall.NoopFirewallDriver

ask api to listen to a specific ip. Reuqired if haproxy is in this controller

osapi_compute_listen=192.168.15.13 metadata_listen = 192.168.15.13 debug = True [api_database] connection = mysql+pymysql://nova:2259adc8d9a652f31886@192.168.15.202/nova_api [database] connection = mysql+pymysql://nova:2259adc8d9a652f31886@192.168.15.202/nova [api] auth_strategy = keystone [keystone_authtoken] auth_uri = http://192.168.15.201:5000 auth_url = http://192.168.15.201:35357 memcached_servers = psusnjhhdlc7iosc02con001:11211,psusnjhhdlc7iosc02con002:11211 auth_type = password project_domain_name = Default user_domain_name = Default project_name = service username = nova password = c1cc3bd5db0787272ba3

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

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

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

[placement] os_region_name = usnjcnis001 project_domain_name = Default project_name = service auth_type = password user_domain_name = Default auth_url = http://192.168.15.201:35357/v3 username = placement password = 282d63a9cb7f1d43cb48

[neutron] url = http://192.168.15.201:9696 auth_url = http://192.168.15.201:35357 auth_type = password project_domain_name = default user_domain_name = default region_name = usnjcnis001 project_name = service username = neutron password = 1c3d91db12256871d396

service_metadata_proxy = true

metadata_proxy_shared_secret = METADATA_SECRET

[cinder] os_region_name = usnjcnis001

#

/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 &gt;="2.4"> ErrorLogFormat "%M" </ifversion> ErrorLog /var/log/nova/nova-placement-api.log #SSLEngine On #SSLCertificateFile ... #SSLCertificateKeyFile ... <directory usr="" bin=""> <ifversion &gt;="2.4"> Require all granted </ifversion> <ifversion &lt;="" 2.4=""> Order allow,deny Allow from all </ifversion> </directory> </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>

#

Appreciate your help/suggestions on this,if any. Thanks, Nakul J Andeo

Failed to create resource provider record in placement API got 404 error

Hi All,

I have configured the openstack - Ocata manually in my test environment where we have 2 controllers and 2 computes with HA configured.

I am seeing continuous error logs in my compute nodes as below: below:

2017-04-25 14:17:18.768 1081 ERROR nova.scheduler.client.report [req-8e120b50-d9c6-4793-8683-eed5275e5900 - - - - -] Failed to create resource provider record in placement API for UUID e149da94-cfec-4d6c-9ec9-2962802ab89b. Got 404:  <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>

Not Found

The </head><body> <h1>Not Found</h1> <p>The requested URL /placement/resource_providers was not found on this server.

server.</p> </body></html> 2017-04-25 14:17:18.769 1081 WARNING nova.scheduler.client.report [req-8e120b50-d9c6-4793-8683-eed5275e5900 - - - - -] Unable to refresh my resource provider record

record

Here you find the details about my setup:

#

/etc/nova/nova.conf

[DEFAULT]
enabled_apis = osapi_compute,metadata
transport_url = rabbit://rabbitmq:4598954baf92c4d8edd6@psusnjhhdlc7iosc02con001
my_ip = 192.168.15.13
use_neutron = True
firewall_driver = nova.virt.firewall.NoopFirewallDriver

nova.virt.firewall.NoopFirewallDriver # ask api to listen to a specific ip. Reuqired if haproxy is in this controller

controller osapi_compute_listen=192.168.15.13 metadata_listen = 192.168.15.13 debug = True [api_database] connection = mysql+pymysql://nova:2259adc8d9a652f31886@192.168.15.202/nova_api [database] connection = mysql+pymysql://nova:2259adc8d9a652f31886@192.168.15.202/nova [api] auth_strategy = keystone [keystone_authtoken] auth_uri = http://192.168.15.201:5000 auth_url = http://192.168.15.201:35357 memcached_servers = psusnjhhdlc7iosc02con001:11211,psusnjhhdlc7iosc02con002:11211 auth_type = password project_domain_name = Default user_domain_name = Default project_name = service username = nova password = c1cc3bd5db0787272ba3

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

$my_ip [glance] api_servers = http://192.168.15.201:9292

http://192.168.15.201:9292 [oslo_concurrency] lock_path = /var/lib/nova/tmp

/var/lib/nova/tmp [placement] os_region_name = usnjcnis001 project_domain_name = Default project_name = service auth_type = password user_domain_name = Default auth_url = http://192.168.15.201:35357/v3 username = placement password = 282d63a9cb7f1d43cb48

282d63a9cb7f1d43cb48 [neutron] url = http://192.168.15.201:9696 auth_url = http://192.168.15.201:35357 auth_type = password project_domain_name = default user_domain_name = default region_name = usnjcnis001 project_name = service username = neutron password = 1c3d91db12256871d396

service_metadata_proxy = true

metadata_proxy_shared_secret = METADATA_SECRET

1c3d91db12256871d396 #service_metadata_proxy = true #metadata_proxy_shared_secret = METADATA_SECRET [cinder] os_region_name = usnjcnis001

#
usnjcnis001

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

Listen 8778

<virtualhost *:8778=""> 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 &gt;="2.4"> <IfVersion >= 2.4> ErrorLogFormat "%M" </ifversion> </IfVersion> ErrorLog /var/log/nova/nova-placement-api.log #SSLEngine On #SSLCertificateFile ... #SSLCertificateKeyFile ... <directory usr="" bin=""> <ifversion &gt;="2.4"> <Directory /usr/bin> <IfVersion >= 2.4> Require all granted </ifversion> <ifversion &lt;="" 2.4=""> </IfVersion> <IfVersion < 2.4> Order allow,deny Allow from all </ifversion> </directory> </virtualhost>

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

#
</Location>

Appreciate your help/suggestions on this,if any. Thanks, Nakul J Andeo