keystone服务正常[root@controller ~]# openstack token issue +------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Field | Value | +------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | expires | 2020-06-25T06:23:49+0000 | | id | gAAAAABe9DTlWH5udZ97U6fVocYxwDjovks3lTJ_dvKWBSxSsZO0O0R4TKnyJvv4hO0ljmXOESfRKvvEf3EuNnBj9-A4DC-R7ZiCVbDWJhUHsiHbx-1DZd2bb_qdWAQEB1_herPw2-WJHoMDAGD-LWVnir5-4TOcXIRNEkVFI8AR7qFftG3Er18 | | project_id | 1a8a88a56f274ca8a4739cace8cd6b94 | | user_id | 1fac0bd5af5d4391958a9b42eaf4bb66 | +------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ [root@controller ~]#glance服务已经安装[root@controller ~]# date Thu Jun 25 13:24:33 CST 2020 [root@controller ~]# openstack service list +----------------------------------+----------+----------+ | ID | Name | Type | +----------------------------------+----------+----------+ | a667de213e504bffb434dc8b6c80df1c | glance | image | | dd445034c428408d96fa94c023a41553 | keystone | identity | +----------------------------------+----------+----------+ [root@controller ~]#mysql数据库glance用户有表[root@controller ~]# openstack role assignment list --names +-------+----------------+-------+-----------------+--------+-----------+ | Role | User | Group | Project | Domain | Inherited | +-------+----------------+-------+-----------------+--------+-----------+ | admin | admin@default | | admin@default | | False | | admin | glance@default | | service@default | | False | +-------+----------------+-------+-----------------+--------+-----------+ [root@controller ~]#endpoint 正常[root@controller ~]# openstack endpoint list +----------------------------------+-----------+--------------+--------------+---------+-----------+----------------------------+ | ID | Region | Service Name | Service Type | Enabled | Interface | URL | +----------------------------------+-----------+--------------+--------------+---------+-----------+----------------------------+ | 4347773730e740ba8337529ba511d9a2 | RegionOne | keystone | identity | True | public | http://controller:5000/v3 | | 44d43f23d48f412f994b53b148588d69 | RegionOne | keystone | identity | True | admin | http://controller:35357/v3 | | 4ef214ab39924bb1b5630328e605bc4c | RegionOne | glance | image | True | internal | http://controller:9292 | | 959097acd30e4ef181d20a0534fa2e79 | RegionOne | glance | image | True | admin | http://controller:9292 | | af0032dcd6ff43adaa22728f98b6fd0c | RegionOne | glance | image | True | public | http://controller:9292 | | d924edc9eaa34ce4996964c9b85cfee9 | RegionOne | keystone | identity | True | internal | http://controller:5000/v3 | +----------------------------------+-----------+--------------+--------------+---------+-----------+----------------------------+ [root@controller ~]#创建镜像失败[root@controller ~]# openstack image create "cirros" --file cirros-0.3.4-x86_64-disk.img --disk-format qcow2 --container-format bare --public 503 Service Unavailable: The server is currently unavailable. Please try again at a later time. (HTTP 503) [root@controller ~]#[root@controller ~]# openstack service list +----------------------------------+----------+----------+ | ID | Name | Type | +----------------------------------+----------+----------+ | a667de213e504bffb434dc8b6c80df1c | glance | image | | dd445034c428408d96fa94c023a41553 | keystone | identity | +----------------------------------+----------+----------+ [root@controller ~]#
keystone服务正常
[root@controller ~]# openstack token issue +------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Field | Value | +------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | expires | 2020-06-25T06:23:49+0000 | | id | gAAAAABe9DTlWH5udZ97U6fVocYxwDjovks3lTJ_dvKWBSxSsZO0O0R4TKnyJvv4hO0ljmXOESfRKvvEf3EuNnBj9-A4DC-R7ZiCVbDWJhUHsiHbx-1DZd2bb_qdWAQEB1_herPw2-WJHoMDAGD-LWVnir5-4TOcXIRNEkVFI8AR7qFftG3Er18 | | project_id | 1a8a88a56f274ca8a4739cace8cd6b94 | | user_id | 1fac0bd5af5d4391958a9b42eaf4bb66 | +------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ [root@controller ~]#
glance服务已经安装
[root@controller ~]# date Thu Jun 25 13:24:33 CST 2020 [root@controller ~]# openstack service list +----------------------------------+----------+----------+ | ID | Name | Type | +----------------------------------+----------+----------+ | a667de213e504bffb434dc8b6c80df1c | glance | image | | dd445034c428408d96fa94c023a41553 | keystone | identity | +----------------------------------+----------+----------+ [root@controller ~]#
mysql数据库glance用户有表
[root@controller ~]# openstack role assignment list --names +-------+----------------+-------+-----------------+--------+-----------+ | Role | User | Group | Project | Domain | Inherited | +-------+----------------+-------+-----------------+--------+-----------+ | admin | admin@default | | admin@default | | False | | admin | glance@default | | service@default | | False | +-------+----------------+-------+-----------------+--------+-----------+ [root@controller ~]#
endpoint 正常
root@controller ~]# openstack endpoint list +----------------------------------+-----------+--------------+--------------+---------+-----------+----------------------------+ | ID | Region | Service Name | Service Type | Enabled | Interface | URL | +----------------------------------+-----------+--------------+--------------+---------+-----------+----------------------------+ | 4347773730e740ba8337529ba511d9a2 | RegionOne | keystone | identity | True | public | http://controller:5000/v3 | | 44d43f23d48f412f994b53b148588d69 | RegionOne | keystone | identity | True | admin | http://controller:35357/v3 | | 4ef214ab39924bb1b5630328e605bc4c | RegionOne | glance | image | True | internal | http://controller:9292 | | 959097acd30e4ef181d20a0534fa2e79 | RegionOne | glance | image | True | admin | http://controller:9292 | | af0032dcd6ff43adaa22728f98b6fd0c | RegionOne | glance | image | True | public | http://controller:9292 | | d924edc9eaa34ce4996964c9b85cfee9 | RegionOne | keystone | identity | True | internal | http://controller:5000/v3 | +----------------------------------+-----------+--------------+--------------+---------+-----------+----------------------------+ [root@controller ~]#
创建镜像失败
[root@controller ~]# openstack image create "cirros" --file cirros-0.3.4-x86_64-disk.img --disk-format qcow2 --container-format bare --public
503 Service Unavailable: The server is currently unavailable. Please try again at a later time. (HTTP 503)
[root@controller ~]#[root@controller ~]# openstack service list
+----------------------------------+----------+----------+
| ID | Name | Type |
+----------------------------------+----------+----------+
| a667de213e504bffb434dc8b6c80df1c | glance | image |
| dd445034c428408d96fa94c023a41553 | keystone | identity |
+----------------------------------+----------+----------+
[root@controller ~]#
var/log/glance/api.log
2020-06-25 13:18:38.374 9703 WARNING oslo_config.cfg [-] Option "auth_uri" from group "keystone_authtoken" is deprecated. Use option "www_authenticate_uri" from group "keystone_authtoken". 2020-06-25 13:18:38.532 9703 INFO glance.common.wsgi [-] Starting 1 workers 2020-06-25 13:18:38.542 9725 INFO eventlet.wsgi.server [-] (9725) wsgi starting up on http://0.0.0.0:9292 2020-06-25 13:18:38.545 9703 INFO glance.common.wsgi [-] Started child 9725 2020-06-25 13:27:42.659 9725 WARNING keystonemiddleware.auth_token [-] Identity response: {"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}}: Unauthorized: The request you have made requires authentication. (HTTP 401) (Request-ID: req-490880ff-34c9-4fe0-b7ca-9d5e85d7e28e) 2020-06-25 13:27:43.057 9725 WARNING keystonemiddleware.auth_token [-] Identity response: {"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}}: Unauthorized: The request you have made requires authentication. (HTTP 401) (Request-ID: req-c2623da6-4704-4da2-aa53-c7f3a44cc12f) 2020-06-25 13:27:43.058 9725 CRITICAL keystonemiddleware.auth_token [-] Unable to validate token: Identity server rejected authorization necessary to fetch token data: ServiceError: Identity server rejected authorization necessary to fetch token data 2020-06-25 13:27:43.060 9725 INFO eventlet.wsgi.server [-] 192.168.83.130 - - [25/Jun/2020 13:27:43] "GET /v2/schemas/image HTTP/1.1" 503 370 0.860436 [root@controller ~]#
(0)
最佳答案
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论