Last active
August 29, 2015 14:17
-
-
Save danehans/09372f6a4e14d6f7368d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# docker inspect --format='{{.State.Pid}}' compose_glanceapi_1 | |
27156 | |
[root@kolla-node1 kolla]# nsenter -m -u -n -i -p -t 27156 /bin/bash | |
[root@kolla-node1 /]# cat openrc | |
export OS_AUTH_URL="http://10.0.0.2:5000/v2.0" | |
export OS_USERNAME="glance" | |
export OS_PASSWORD="glance" | |
export OS_TENANT_NAME="admin" | |
[root@kolla-node1 /]# source openrc | |
[root@kolla-node1 /]# keystone user-list | |
+----------------------------------+----------+---------+-------+ | |
| id | name | enabled | email | | |
+----------------------------------+----------+---------+-------+ | |
| 28111062284743fe953a3454b64c8ecf | admin | True | | | |
| f18aada8d2f54819b6ee6cb450430568 | glance | True | | | |
| 6c11aa5e5c48443cbaa160c7d531c945 | keystone | True | | | |
+----------------------------------+----------+---------+-------+ | |
# env | grep OS_ | |
OS_PASSWORD=password | |
OS_AUTH_URL=http://10.0.0.2:35357/v2.0 | |
OS_USERNAME=admin | |
OS_TENANT_NAME=admin | |
[root@kolla-node1 /]# keystone token-get | |
+-----------+----------------------------------+ | |
| Property | Value | | |
+-----------+----------------------------------+ | |
| expires | 2015-03-20T21:21:57Z | | |
| id | ac37c2b57801481fb62b821ac721aa0c | | |
| tenant_id | 38d38055a09944d08c1df34f6dfa7ec6 | | |
| user_id | 28111062284743fe953a3454b64c8ecf | | |
+-----------+----------------------------------+ | |
[root@kolla-node1 /]# keystone user-list | |
+----------------------------------+----------+---------+-------+ | |
| id | name | enabled | email | | |
+----------------------------------+----------+---------+-------+ | |
| 28111062284743fe953a3454b64c8ecf | admin | True | | | |
| f18aada8d2f54819b6ee6cb450430568 | glance | True | | | |
| 6c11aa5e5c48443cbaa160c7d531c945 | keystone | True | | | |
+----------------------------------+----------+---------+-------+ | |
# docker images | grep keystone | |
kollaglue/centos-rdo-keystone latest 7137f8e975e9 40 minutes ago 551.6 MB | |
# docker inspect --format='{{.State.Pid}}' compose_keystone_1 | |
26915 | |
[root@kolla-node1 kolla]# nsenter -m -u -n -i -p -t 26915 /bin/bash | |
[root@kolla-node1 /]# cat openrc | |
export OS_AUTH_URL=http://10.0.0.2:35357/v2.0 | |
export OS_USERNAME=keystone | |
export OS_PASSWORD=12345 | |
export OS_TENANT_NAME=admin | |
[root@kolla-node1 /]# source openrc | |
[root@kolla-node1 /]# keystone token-get | |
+-----------+----------------------------------+ | |
| Property | Value | | |
+-----------+----------------------------------+ | |
| expires | 2015-03-20T21:00:05Z | | |
| id | 12522895579d42eebd476e415dbffe96 | | |
| tenant_id | 38d38055a09944d08c1df34f6dfa7ec6 | | |
| user_id | 6c11aa5e5c48443cbaa160c7d531c945 | | |
+-----------+----------------------------------+ | |
[root@kolla-node1 /]# keystone user-list | |
+----------------------------------+----------+---------+-------+ | |
| id | name | enabled | email | | |
+----------------------------------+----------+---------+-------+ | |
| 28111062284743fe953a3454b64c8ecf | admin | True | | | |
| 6c11aa5e5c48443cbaa160c7d531c945 | keystone | True | | | |
+----------------------------------+----------+---------+-------+ | |
[root@kolla-node1 /]# keystone tenant-list | |
+----------------------------------+-------+---------+ | |
| id | name | enabled | | |
+----------------------------------+-------+---------+ | |
| 38d38055a09944d08c1df34f6dfa7ec6 | admin | True | | |
+----------------------------------+-------+---------+ | |
[root@kolla-node1 /]# keystone service-list | |
+----------------------------------+----------+----------+-------------+ | |
| id | name | type | description | | |
+----------------------------------+----------+----------+-------------+ | |
| 6603bea7ea7a4717b57f5f1c2442258c | keystone | identity | | | |
+----------------------------------+----------+----------+-------------+ | |
[root@kolla-node1 /]# keystone endpoint-list | |
+----------------------------------+-----------+---------------------------+---------------------------+----------------------------+----------------------------------+ | |
| id | region | publicurl | internalurl | adminurl | service_id | | |
+----------------------------------+-----------+---------------------------+---------------------------+----------------------------+----------------------------------+ | |
| fd87cffd94fe4c6ca340a981d5c8ab04 | RegionOne | http://10.0.0.2:5000/v2.0 | http://10.0.0.2:5000/v2.0 | http://10.0.0.2:35357/v2.0 | 6603bea7ea7a4717b57f5f1c2442258c | | |
+----------------------------------+-----------+---------------------------+---------------------------+----------------------------+----------------------------------+ | |
[root@kolla-node1 kolla]# cat compose/mariadb.yml | |
mariadbdata: | |
image: kollaglue/centos-rdo-mariadb-data | |
volumes: | |
- /var/lib/mysql:/var/lib/mysql | |
net: "host" | |
privileged: true | |
mariadbapp: | |
image: kollaglue/centos-rdo-mariadb-app | |
env_file: | |
- openstack.env | |
volumes_from: | |
- mariadbdata | |
net: "host" | |
privileged: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment