openstack报错Unable to establish connection to http://controller:35357/v3/services

使用openstack命令使发现每一条命令都出现Unable to establish connection to http://controller:35357/v3/services

[root@controller ~]# openstack service create   --name keystone --description "OpenStack Identity" identity
Unable to establish connection to http://controller:35357/v3/services
[root@controller ~]# openstack service list
Unable to establish connection to http://controller:35357/v3/services

检查端口发现35357和5000没有启动

[root@controller ~]# ss -ntl | grep -E "5000|35357"
[root@controller ~]# 

这两个端口对应的httpd服务

只需重启Apache即可

[root@controller ~]# systemctl restart httpd.service
[root@controller ~]# ss -ntl | grep -E "5000|35357"
LISTEN     0      128         :::5000                    :::*                  
LISTEN     0      128         :::35357                   :::*                  
[root@controller ~]# openstack service create   --name keystone --description "OpenStack Identity" identity
+-------------+----------------------------------+
| Field       | Value                            |
+-------------+----------------------------------+
| description | OpenStack Identity               |
| enabled     | True                             |
| id          | b9ce620f5bc94ca49756f271466d6d2d |
| name        | keystone                         |
| type        | identity                         |
+-------------+----------------------------------+


你可能感兴趣的:(OpenStack错误整理)