欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  科技

openstack命令使用时报错问题解决办法

程序员文章站 2022-09-15 20:13:52
使用openstack命令时发现每一条命令都出现Unable to establish connection to https://controller:35357/v3/services...

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

[root@controller ~]# openstack service create   --name keystone --description "OpenStack Identity" identity
Unable to establish connection to https://controller:35357/v3/services
[root@controller ~]# openstack service list
Unable to establish connection to https://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                         |
+-------------+----------------------------------+