[root@master01.boysec.cn ~]# openstack server delete 951436c5-674d-46db-9c26-9b88267b8439 Failed to delete allocations for consumer 951436c5-674d-46db-9c26-9b88267b8439. Error: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>403 Forbidden</title> </head><body> <h1>Forbidden</h1> <p>You don't have permission to access /allocations/951436c5-674d-46db-9c26-9b88267b8439 on this server.</p> </body></html> (HTTP 409) (Request-ID: req-8b28ecc0-fe12-4179-aab4-b10a1b1a9b01) # nova相关日志都会有403(拒绝访问)信息 2022-01-19 03:46:23.974 1759 WARNING keystoneauth.discover [req-53807e2f-b456-4b4f-a408-7d38ad49e895 d8cd16895f8d4421975a3e22396af49a e40a3e215adc41fa89b7c6ddf9443dc3 - default default] Failed to contact the endpoint at http://master01.boysec.cn:8778 for discovery. Fallback to using that endpoint as the base url.: Forbidden: Forbidden (HTTP 403)
解决问题
修改placement配置文件中添加以下信息:
1 2 3 4 5 6 7 8 9 10 11 12
cat /etc/httpd/conf.d/00-placement-api.conf ··· <Directory /usr/bin> <IfVersion >= 2.4> Require all granted </IfVersion> <IfVersion < 2.4> Order allow,deny Allow from all </IfVersion> </Directory> ···