Ask Your Question
0

AH01630: client denied by server configuration: /usr/bin/nova-placement-api

asked 2017-02-26 06:06:08 -0500

hb.deng gravatar image

Hello, I try to instll Opentstack Octca on Centos 7recently, But seem get no guide for setup placement API,I try these steps:

Controller Node
yum install openstack-nova-placement-api
openstack service create --name placement --description "OpenStack Placement" placement
openstack endpoint create --region RegionOne placement public http://<ip>:8778
openstack endpoint create --region RegionOne placement admin http://<ip>:8778
openstack endpoint create --region RegionOne placement intenal http://<ip>:8778
systemctl restart apachectl restart


Compute Node
vi /etc/nova/nova.conf

[placement]
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 = **
os_region_name = RegionOne
systemctl restart openstack-nova-compute.service



But I get these error for log file:nova-placement-api.log
Sun Feb 26 19:07:46 2017 AH01630: client denied by server configuration: /usr/bin/nova-placement-api
Sun Feb 26 19:08:42 2017 AH01630: client denied by server configuration: /usr/bin/nova-placement-api
Sun Feb 26 19:08:42 2017 AH01630: client denied by server configuration: /usr/bin/nova-placement-api
Sun Feb 26 19:08:42 2017 AH01630: client denied by server configuration: /usr/bin/nova-placement-api

Config file of 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 &amp;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>


Any one know how to fix this?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
2

answered 2017-03-07 15:22:23 -0500

jep gravatar image

I fixed it by editing /etc/httpd/conf.d/00-nova-placement-api.conf Inside the <virtualhost *:8778=""> section, add:

<Directory /usr/bin>
    <IfVersion >= 2.4>
        Require all granted
    </IfVersion>
    <IfVersion < 2.4>
        Order allow,deny
        Allow from all
    </IfVersion>
</Directory>
edit flag offensive delete link more

Comments

This works on Cenots7, I have another Ocata on ubuntu get "The placement API endpoint not found."Problem even I have already sent <directory> Correctly and setup service endpoint.

hb.deng gravatar imagehb.deng ( 2017-03-08 01:47:23 -0500 )edit

Your error seems to be related to the and endpoint issue. Do you see the placement service for the 3 Interfaces when you run "openstack endpoint list"?

jep gravatar imagejep ( 2017-03-08 08:27:38 -0500 )edit
0

answered 2017-03-05 00:04:43 -0500

also i have this error too.

edit flag offensive delete link more

Comments

I have this problem too.

devops.taobao.com gravatar imagedevops.taobao.com ( 2017-03-05 00:05:35 -0500 )edit

do you have any solution?

devops.taobao.com gravatar imagedevops.taobao.com ( 2017-03-05 00:07:23 -0500 )edit

<directory usr="" bin=""> Require all granted fix my issue.

hb.deng gravatar imagehb.deng ( 2017-03-08 01:44:28 -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

4 followers

Stats

Asked: 2017-02-26 06:01:28 -0500

Seen: 2,272 times

Last updated: Feb 26 '17