how to setup placement-API on Centos7 of octca

提问于 2017-02-26 04:03:57 -0500

hb.deng 图像

Hello:
It seems openstack install guide of octca did not include setup placement-API part.So I install Placement API follow this page:
https://ask.openstack.org/en/question/102256/how-to-configure-placement-service-for-compute-node-on-ocata/ (https://ask.openstack.org/en/question...)
I Change correct tcp listen port to 8878(Default on Cenots7). Compute node seem run normal. But instance alway Scheduling.

I found error log in nova-placement-api.log

Sun Feb 26 17:46:50 2017 AH01630: client denied by server configuration: /usr/bin/nova-placement-api

/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 "%t %M"
#ErrorLogFormat "Time:%t Client-ip:%a Local-IP:%A Code:%E File-Name:%F Module:%m Message:%M"
</ifversion>
ErrorLog /var/log/nova/nova-placement-api.log
#SSLEngine On
#SSLCertificateFile ...
#SSLCertificateKeyFile ...
<directory usr="" bin="" nova-placement-api="">
<ifversion &gt;="2.4">
#Options All
#AllowOverride All
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>

Compute Node http access(tcpdump):
http://controller:8778/resource_providers/f38e3a0a-5821-4b1a-a51f-37528b4e6abb (http://controller:8778/resource_provi...)
Is there any guide for setup placement API on Cenots 7?

edit retag flag offensive close merge delete
0

回答 2017-03-01 00:53:16 -0500

henpel 图像

I had same problem, here is my VirtualHost configuration:

<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> <directory usr="" bin=""> <ifversion &gt;="2.4"> Require all granted </ifversion> <ifversion &lt;="" 2.4=""> Order allow,deny Allow from all </ifversion> </directory>

ErrorLog /var/log/nova/nova-placement-api.log #SSLEngine On #SSLCertificateFile ... #SSLCertificateKeyFile ... </virtualhost>

After configuration change restart the httpd service: systemctl restart httpd.service

edit flag offensive delete link 更多
0

回答 2017-03-05 09:14:37 -0500

hb.deng 图像

HI, I have find this error configuration by add "Require all granted" My last error is only set "Require all granted" to "/usr/bin/nova-placement-api" the correct way is set"Require all granted" to "/usr/bin" <directory usr="" bin=""> <ifversion &gt;="2.4"> Require all granted </ifversion> <ifversion &lt;="" 2.4=""> Order allow,deny Allow from all </ifversion> </directory> </virtualhost>

edit flag offensive delete link 更多

提问工具

1 follower

统计

已提问: 2017-02-26 03:57:18 -0500

已查看: 1,865 次

最后更新: Mar 05 '17