zoukankan      html  css  js  c++  java
  • dashboard neutron报错 Invalid service catalog service: network

    现象:
    neutron服务是好的,命令行创建网络查看网络正常,就是dashboard不能查看网络相关的页面
    dashboard neutron报错 Invalid service catalog service: network

    解决:
    应该是Keystone没有正常配置。导致没有找到相关的Catalog信息。

    [root@controller cinder]# openstack catalog list
    +-----------+-----------+------------------------------------------------------------------------+
    | Name      | Type      | Endpoints                                                              |
    +-----------+-----------+------------------------------------------------------------------------+
    | nova      | compute   |                                                                        |
    | glance    | image     |                                                                        |
    | cinderv2  | volumev2  | RegionOne                                                              |
    |           |           |   admin: http://controller:8776/v2/51054bfb82f24faa9e5f9647aa70821a    |
    |           |           | RegionOne                                                              |
    |           |           |   internal: http://controller:8776/v2/51054bfb82f24faa9e5f9647aa70821a |
    |           |           | RegionOne                                                              |
    |           |           |   public: http://controller:8776/v2/51054bfb82f24faa9e5f9647aa70821a   |
    |           |           |                                                                        |
    | cinderv3  | volumev3  |                                                                        |
    | cinderv3  | volumev3  | RegionOne                                                              |
    |           |           |   public: http://controller:8776/v3/51054bfb82f24faa9e5f9647aa70821a   |
    |           |           | RegionOne                                                              |
    |           |           |   admin: http://controller:8776/v3/51054bfb82f24faa9e5f9647aa70821a    |
    |           |           | RegionOne                                                              |
    |           |           |   internal: http://controller:8776/v3/51054bfb82f24faa9e5f9647aa70821a |
    |           |           |                                                                        |
    | placement | placement | RegionOne                                                              |
    |           |           |   admin: http://controller:8778                                        |
    |           |           | RegionOne                                                              |
    |           |           |   internal: http://controller:8778                                     |
    |           |           | RegionOne                                                              |
    |           |           |   admin: http://controller:8778                                        |
    |           |           | RegionOne                                                              |
    |           |           |   public: http://controller:8778                                       |
    |           |           | RegionOne                                                              |
    |           |           |   public: http://controller:8778                                       |
    |           |           | RegionOne                                                              |
    |           |           |   internal: http://controller:8778                                     |
    |           |           |                                                                        |
    | cinderv2  | volumev2  |                                                                        |
    | neutron   | network   | RegionOne                                                              |
    |           |           |   admin: http://controller:9696                                        |
    |           |           | RegionOne                                                              |
    |           |           |   public: http://controller:9696                                       |
    |           |           | RegionOne                                                              |
    |           |           |   internal: http://controller:9696                                     |
    |           |           |                                                                        |
    | neutron   | network   |                                                                        |
    | nova      | compute   | RegionOne                                                              |
    |           |           |   admin: http://controller:8774/v2.1                                   |
    |           |           | RegionOne                                                              |
    |           |           |   internal: http://controller:8774/v2.1                                |
    |           |           | RegionOne                                                              |
    |           |           |   public: http://controller:8774/v2.1                                  |
    |           |           |                                                                        |
    | cinderv2  | volumev2  |                                                                        |
    | cinderv3  | volumev3  |                                                                        |
    | glance    | image     | RegionOne                                                              |
    |           |           |   internal: http://controller:9292                                     |
    |           |           | RegionOne                                                              |
    |           |           |   public: http://controller:9292                                       |
    |           |           | RegionOne                                                              |
    |           |           |   admin: http://controller:9292                                        |
    |           |           |                                                                        |
    | keystone  | identity  | RegionOne                                                              |
    |           |           |   internal: http://controller:5000/v3/                                 |
    |           |           | RegionOne                                                              |
    |           |           |   public: http://controller:5000/v3/                                   |
    |           |           | RegionOne                                                              |
    |           |           |   admin: http://controller:5000/v3/                                    |
    |           |           |                                                                        |
    +-----------+-----------+------------------------------------------------------------------------+

    所以把第一条neutron没有url的数据删掉就好了,但是发现只有openstack catalog list,没有openstack catalog delete命令,后来查看keystone的配置文件keystone.conf发现如下配置
    见[catalog]
    从配置文件看出catalog是从mysql里面读取的数据,然后从mysql的keystone库中的service表里找到了脏数据,然后知道了用openstack service delete去删除‘脏数据’,问题就解决了

    [root@controller cinder]# openstack service list
    +----------------------------------+-----------+-----------+
    | ID                               | Name      | Type      |
    +----------------------------------+-----------+-----------+
    | 01693319f3d54660b0c4019aff5408b5 | placement | placement |
    | 11afe3646d3341ff9d83842eb26e3622 | nova      | compute   |
    | 290cdd4e9af544cfb652926c6029e8e7 | glance    | image     |
    | 4cab9d12c7764bd8a1d0c31dc2cfcb48 | cinderv2  | volumev2  |
    | 4d8df650832c49429eeb11a0da75f283 | cinderv3  | volumev3  |
    | 53b044a5029b429185f4400b4bb5a582 | cinderv3  | volumev3  |
    | 5ffc97e498c740dcae59b790654d0a6c | placement | placement |
    | 69e820e1e7fd41c588d96847d72e122d | cinderv2  | volumev2  |
    | 6f3e0406285a4e8ebefea525f25d77b0 | neutron   | network   |
    | 7b85825e2cfd4af7a2b508ce74357355 | neutron   | network   |
    | 8ef5032573d0492b938aafd3e4075405 | nova      | compute   |
    | 96044060cf67488c848097004099115f | cinderv2  | volumev2  |
    | 999e577ef0b54ffb8fd1235fb94baabf | cinderv3  | volumev3  |
    | e1513a65e0894ba18298157c29acf1da | glance    | image     |
    | f82faf693d45465b9fe31b15317f8b09 | keystone  | identity  |
    +----------------------------------+-----------+-----------+
    [root@controller cinder]# ^C
    [root@controller cinder]# openstack service delete 01693319f3d54660b0c4019aff5408b5
  • 相关阅读:
    HDU 5273 Dylans loves sequence 暴力递推
    HDU 5285 wyh2000 and pupil 判二分图+贪心
    HDU 5281 Senior's Gun 贪心
    HDU 5651 xiaoxin juju needs help 逆元
    HDU 5646 DZY Loves Partition
    HDU 5366 The mook jong
    HDU 5391Z ball in Tina Town 数论
    HDU 5418 Victor and World 允许多次经过的TSP
    HDU 5642 King's Order dp
    抽屉原理
  • 原文地址:https://www.cnblogs.com/royfans/p/15128743.html
Copyright © 2011-2022 走看看