当前位置: 代码迷 >> 综合 >> openstack keystone创建identify服务报错(http://controller:35357/V3/services): The resource could not be fou
  详细解决方案

openstack keystone创建identify服务报错(http://controller:35357/V3/services): The resource could not be fou

热度:62   发布时间:2023-11-22 09:13:56.0
*[root@controller ~]# openstack service create --name keystone --description "openstack identity" identity**
**(http://controller:35357/V3/services): The resource could not be found. (HTTP 404)**

export查看变量

declare -x MAIL="/var/spool/mail/root"
declare -x OLDPWD
declare -x OS_AUTH_URL="http://controller:35357/v3"
declare -x OS_IDENTITY_API_VERSION="3"
declare -x OS_TOKEN="3eb239f9ace5377a343d"
****declare -x OS_URL="http://controller:35357/V3"****

不仔细还真看不出V是大写

删除变量后

export -n OS_URL="http://controller:35357/V3

在给变量

OS_URL="http://controller:35357/v3

创建成功

[root@controller ~]# openstack service create --name keystone --description "openstack identity" identity
+-------------+----------------------------------+
| Field       | Value                            |
+-------------+----------------------------------+
| description | openstack identity               |
| enabled     | True                             |
| id          | 608d90533e57416c8d0476deb1bbb66e |
| name        | keystone                         |
| type        | identity                         |
+-------------+----------------------------------+
  相关解决方案