linux-ffun:~ # openstack service create --name keystone --description "OpenStack Identity" identity
出现如下错误
The request you have made requires authentication. (HTTP 401) (Request-ID: req-f087e356-9381-468b-b526-0e362d6ccca6)
我的原因是配置admin_token是写成了dmin_token
就是检查一下配置文件
linux-ffun:~ # vi /etc/keystone/keystone.conf
然后重启服务
linux-ffun:~ # systemctl restart apache2.service
再次运行命令,就ok了
linux-ffun:~ # openstack service create --name keystone --description "OpenStack Identity" identity
+-------------+----------------------------------+
| Field | Value |
+-------------+----------------------------------+
| description | OpenStack Identity |
| enabled | True |
| id | 78563bb9b6f747d59f2b8c826041aabd |
| name | keystone |
| type | identity |
+-------------+----------------------------------+