当前位置: 代码迷 >> 综合 >> opestack compute service list 报错
  详细解决方案

opestack compute service list 报错

热度:56   发布时间:2023-11-22 09:13:36.0

(HTTP 503) (Request-ID: req-b4bedf97-115c-401d-9775-b97ec09d9d20)

查看nova-api日志

tail -f /var/log/nova/nova-api.log
2021-04-26 02:42:57.133 36754 WARNING oslo_config.cfg [req-5c9a7ba1-1525-47e6-a0fe-e0d10408aa97 - - - - -] Option "os_region_name" from group "placement" is deprecated for removal (Endpoint lookup uses the service catalog via common keystoneauth1 Adapter configuration options.  Use the region_name option instead.).  Its value may be silently ignored in the future.
2021-04-26 02:42:57.133 36754 WARNING oslo_config.cfg [req-5c9a7ba1-1525-47e6-a0fe-e0d10408aa97 - - - - -] Option "os_region_name" from group "placement" [root@controller ~]# tail -f /var/log/nova/nova-api.log 
2021-04-26 02:42:53.132 36686 INFO oslo_service.service [req-c80aceb6-10be-440e-b4a9-d137eeafd4ce - - - - -] Starting 4 workers
2021-04-26 02:42:53.244 36686 WARNING oslo_config.cfg [req-c80aceb6-10be-440e-b4a9-d137eeafd4ce - - - - -] Option "os_region_name" from group "placement"

我们提取关键字placement,查看nova.conf配置文件placement有没有写错我这里把password写错了

vim /etc/nova/nova.conf
[placement]
os_region_name = RegionOne
project_domain_name = demo
project_name = service
auth_type = password
user_domain_name = demo
auth_url = http://controller:5000/v3
username = placement
~~passowrd = 000000~~ 
password = 000000

写错了修正之后重启nova服务再次查看,

[root@controller ~]# systemctl restart openstack-nova-api.service openstack-nova-consoleauth.service openstack-nova-scheduler.service openstack-nova-conductor.service openstack-nova-novncproxy.service
[root@controller ~]# openstack compute service list
+----+------------------+------------+----------+----------+-------+----------------------------+
| ID | Binary           | Host       | Zone     | Status   | State | Updated At                 |
+----+------------------+------------+----------+----------+-------+----------------------------+
|  1 | nova-consoleauth | controller | internal | enabled  | up    | 2021-04-26T06:51:40.000000 |
|  2 | nova-conductor   | controller | internal | enabled  | up    | 2021-04-26T06:51:34.000000 |
|  4 | nova-scheduler   | controller | internal | enabled  | up    | 2021-04-26T06:51:36.000000 |
|  8 | nova-compute     | compute    | nova     | disabled | up    | 2021-04-26T06:51:39.000000 |
+----+------------------+------------+----------+----------+-------+----------------------------+
  相关解决方案