Comment lister les cells sous Red Hat OpenStack Service on OpenShift

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
$ oc get pods -l service=nova-api
NAME        READY   STATUS      RESTARTS        AGE
nova-api-0   2/2     Running     30 (114m ago)   2d1h
$ oc get pods -l service=nova-api -o json | jq '.items[].spec.containers[].name'
"nova-api-log"
"nova-api-api"
$ oc rsh -c nova-api-api nova-api-0
sh-5.1$ nova-manage cell_v2 list_cells
+-------+--------------------------------------+-----------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------+----------+
|  Name |                 UUID                 |                                      Transport URL                                      |                                             Database Connection                                             | Disabled |
+-------+--------------------------------------+-----------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------+----------+
| cell0 | 00000000-0000-0000-0000-000000000000 |                                         rabbit:                                         |    mysql+pymysql://nova_cell0_0cd2:****@openstack.openstack.svc/nova_cell0?read_default_file=/etc/my.cnf    |  False   |
| cell1 | 77e9d5fc-8acb-44f9-b7b0-326ead8bce29 | rabbit://default_user_WE9IiY6EfXL0hiUp8jm:****@rabbitmq-cell1.openstack.svc:5671/?ssl=1 | mysql+pymysql://nova_cell1_d433:****@openstack-cell1.openstack.svc/nova_cell1?read_default_file=/etc/my.cnf |  False   |
+-------+--------------------------------------+-----------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------+----------+