openstack-dashboard报错 : Invalid service catalog service

进入dashboard报错 :Invalid service catalog service: compute

(base) [root@kolla openstackrc]# openstack catalog list
+-----------+-----------+-----------------------------------------+
| Name      | Type      | Endpoints                               |
+-----------+-----------+-----------------------------------------+
| placement | placement |                                         |
| glance    | image     | RegionOne                               |
|           |           |   admin: http://controller:9292         |
|           |           | RegionOne                               |
|           |           |   public: http://controller:9292        |
|           |           | RegionOne                               |
|           |           |   internal: http://controller:9292      |
|           |           |                                         |
| placement | placement | RegionOne                               |
|           |           |   internal: http://controller:8778      |
|           |           | RegionOne                               |
|           |           |   public: http://controller:8778        |
|           |           | RegionOne                               |
|           |           |   admin: http://controller:8778         |
|           |           |                                         |
| nova      | compute   |                                         |
| nova      | compute   | RegionOne                               |
|           |           |   internal: http://controller:8774/v2.1 |
|           |           | RegionOne                               |
|           |           |   admin: http://controller:8774/v2.1    |
|           |           | RegionOne                               |
|           |           |   public: http://controller:8774/v2.1   |
|           |           |                                         |
| neutron   | network   | RegionOne                               |
|           |           |   admin: http://controller:9696         |
|           |           | RegionOne                               |
|           |           |   public: http://controller:9696        |
|           |           | RegionOne                               |
|           |           |   internal: http://controller:9696      |
|           |           |                                         |
| keystone  | identity  | RegionOne                               |
|           |           |   admin: http://controller:5000/v3/     |
|           |           | RegionOne                               |
|           |           |   internal: http://controller:5000/v3/  |
|           |           | RegionOne                               |
|           |           |   public: http://controller:5000/v3/    |
|           |           |                                         |
+-----------+-----------+-----------------------------------------+

发现Name为 nova的有俩个,只需要把第一个删除。

删除方法:

# mysql -u root -p 进入数据库
MariaDB [(none)]> use keystone
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
MariaDB [keystone]> show tables;
+------------------------------------+
| Tables_in_keystone                 |
+------------------------------------+
| access_rule                        |
| access_token                       |
| application_credential             |
| application_credential_access_rule |
| application_credential_role        |
| assignment                         |
| config_register                    |
| consumer                           |
| credential                         |
| endpoint                           |
| endpoint_group                     |
| federated_user                     |
| federation_protocol                |
| group                              |
| id_mapping                         |
| identity_provider                  |
| idp_remote_ids                     |
| implied_role                       |
| limit                              |
| local_user                         |
| mapping                            |
| migrate_version                    |
| nonlocal_user                      |
| password                           |
| policy                             |
| policy_association                 |
| project                            |
| project_endpoint                   |
| project_endpoint_group             |
| project_option                     |
| project_tag                        |
| region                             |
| registered_limit                   |
| request_token                      |
| revocation_event                   |
| role                               |
| role_option                        |
| sensitive_config                   |
| service                            |
| service_provider                   |
| system_assignment                  |
| token                              |
| trust                              |
| trust_role                         |
| user                               |
| user_group_membership              |
| user_option                        |
| whitelisted_config                 |
+------------------------------------+
48 rows in set (0.001 sec)

MariaDB [keystone]> select * from service;
+----------------------------------+-----------+---------+------------------------------------------------------------+
| id                               | type      | enabled | extra                                                      |
+----------------------------------+-----------+---------+------------------------------------------------------------+
| 534c2a1c38af4f2a9f494a5175bdb9d2 | placement |       1 | {"description": "Placement API", "name": "placement"}      |
| 59e075688f644bbc94bdf99e5820f65c | image     |       1 | {"description": "OpenStack Image", "name": "glance"}       |
| 5e386887b39d4010a24684afbd6b4be6 | placement |       1 | {"description": "Placement API", "name": "placement"}      |
| 64f9024813854ca2b24a02df50942843 | compute   |       1 | {"description": "OpenStack Compute", "name": "nova"}       |
| 91d598b157664e048b3d5f3feb483e78 | compute   |       1 | {"description": "OpenStack Compute", "name": "nova"}       |
| 968eb57b71674be09bbebaefe40ddecf | network   |       1 | {"description": "OpenStack Networking", "name": "neutron"} |
| b433ab483db34e17bda3815878083fbb | identity  |       1 | {"name": "keystone"}                                       |
+----------------------------------+-----------+---------+------------------------------------------------------------+
7 rows in set (0.001 sec)

MariaDB [keystone]> select * from endpoint;
+----------------------------------+--------------------+-----------+----------------------------------+-----------------------------+-------+---------+-----------+
| id                               | legacy_endpoint_id | interface | service_id                       | url                         | extra | enabled | region_id |
+----------------------------------+--------------------+-----------+----------------------------------+-----------------------------+-------+---------+-----------+
| 33712c268af141488b4b761b151316ab | NULL               | admin     | 968eb57b71674be09bbebaefe40ddecf | http://controller:9696      | {}    |       1 | RegionOne |
| 5bce612e23654eb686daff074ad39f3c | NULL               | internal  | 5e386887b39d4010a24684afbd6b4be6 | http://controller:8778      | {}    |       1 | RegionOne |
| 6808f002e6b54f11ac47ba37dda684e2 | NULL               | internal  | 91d598b157664e048b3d5f3feb483e78 | http://controller:8774/v2.1 | {}    |       1 | RegionOne |
| 84209dbdf14445cea0734a3af2c40cad | NULL               | public    | 968eb57b71674be09bbebaefe40ddecf | http://controller:9696      | {}    |       1 | RegionOne |
| affc769c4af940d2af7fd7f2e248d03f | NULL               | admin     | 59e075688f644bbc94bdf99e5820f65c | http://controller:9292      | {}    |       1 | RegionOne |
| b43829859b3c4f08bfebfd13a36a987c | NULL               | admin     | b433ab483db34e17bda3815878083fbb | http://controller:5000/v3/  | {}    |       1 | RegionOne |
| bf2c729c475d47eebb8c647654470d0e | NULL               | admin     | 91d598b157664e048b3d5f3feb483e78 | http://controller:8774/v2.1 | {}    |       1 | RegionOne |
| bf5573608d70444ab20326f886f7a958 | NULL               | public    | 5e386887b39d4010a24684afbd6b4be6 | http://controller:8778      | {}    |       1 | RegionOne |
| c794a03ded674f4b9c7d7bd7f087c0d7 | NULL               | public    | 59e075688f644bbc94bdf99e5820f65c | http://controller:9292      | {}    |       1 | RegionOne |
| dfe683c999b64648b71f10989d6799dc | NULL               | public    | 91d598b157664e048b3d5f3feb483e78 | http://controller:8774/v2.1 | {}    |       1 | RegionOne |
| e0a6706de7874668816cae87c56a1478 | NULL               | internal  | b433ab483db34e17bda3815878083fbb | http://controller:5000/v3/  | {}    |       1 | RegionOne |
| e1892ba2e78f480bbdc2ba54de06c6d9 | NULL               | public    | b433ab483db34e17bda3815878083fbb | http://controller:5000/v3/  | {}    |       1 | RegionOne |
| f466cee6ee0b4355ada7fe8d6cdeee07 | NULL               | admin     | 5e386887b39d4010a24684afbd6b4be6 | http://controller:8778      | {}    |       1 | RegionOne |
| f4d66bfb17ad473a9d4feaaeb378b650 | NULL               | internal  | 968eb57b71674be09bbebaefe40ddecf | http://controller:9696      | {}    |       1 | RegionOne |
| feae7739a8be465d81dcfb786d00307a | NULL               | internal  | 59e075688f644bbc94bdf99e5820f65c | http://controller:9292      | {}    |       1 | RegionOne |
+----------------------------------+--------------------+-----------+----------------------------------+-----------------------------+-------+---------+-----------+
15 rows in set (0.001 sec)

MariaDB [keystone]> exit
Bye
(base) [root@kolla openstackrc]# openstack service list
+----------------------------------+-----------+-----------+
| ID                               | Name      | Type      |
+----------------------------------+-----------+-----------+
| 534c2a1c38af4f2a9f494a5175bdb9d2 | placement | placement |
| 59e075688f644bbc94bdf99e5820f65c | glance    | image     |
| 5e386887b39d4010a24684afbd6b4be6 | placement | placement |
| 64f9024813854ca2b24a02df50942843 | nova      | compute   |
| 91d598b157664e048b3d5f3feb483e78 | nova      | compute   |
| 968eb57b71674be09bbebaefe40ddecf | neutron   | network   |
| b433ab483db34e17bda3815878083fbb | keystone  | identity  |
+----------------------------------+-----------+-----------+
#找到对应的ID进行删除即可
(base) [root@kolla openstackrc]# openstack service delete 64f9024813854ca2b24a02df50942843
(base) [root@kolla openstackrc]# systemctl restart httpd.service memcached.service

类似的错误都能这样解决。

  • 6
    点赞
  • 17
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值