summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Dake <stdake@cisco.com>2015-03-20 13:31:45 -0700
committerSteven Dake <stdake@cisco.com>2015-03-20 13:41:08 -0700
commit3f4c45fac55690e62d0ecfa4bdf47ee59912459b (patch)
treef3089b5ef283b59b5f7566c2c2e34574f62edd8d
parented617a59f80307920367050f63e316e3ef939825 (diff)
downloadkolla-3f4c45fac55690e62d0ecfa4bdf47ee59912459b.tar.gz
kolla-3f4c45fac55690e62d0ecfa4bdf47ee59912459b.zip
Add ADMIN_USER_PASSWORD to genenv tool
The genenv tool was generating the wrong password for the openrc file as a result of recent keystone rework. This patch fixes that problem. Change-Id: I169e3255e3f3ef57938861c31ef4e342d9a32cbc
-rw-r--r--docs/integration-guide.md1
-rwxr-xr-xtools/genenv6
2 files changed, 6 insertions, 1 deletions
diff --git a/docs/integration-guide.md b/docs/integration-guide.md
index d1127896d..3bd6e2af6 100644
--- a/docs/integration-guide.md
+++ b/docs/integration-guide.md
@@ -41,6 +41,7 @@ all containers. This allows a simple method of ensuring every type of node
### Environment Variable KEY/VALUE pairs
+ ADMIN_USER_PASSWORD=<steakfordinner> - The admin user password
ADMIN_TENANT_NAME=<admin> - tenant name
DB_ROOT_PASSWORD=<mysql root password> - defines the MYSQL root password
FLAT_INTERFACE=<nova or neutron networking flat interface device name>
diff --git a/tools/genenv b/tools/genenv
index 91ac42cc4..cd2a3bd00 100755
--- a/tools/genenv
+++ b/tools/genenv
@@ -19,6 +19,9 @@ MY_DEV=$(ip route get $(ip route | awk '$1 == "default" {print $3}') |
echo MY_IP=$MY_IP
echo MY_DEV=$MY_DEV
+# Admin user password
+ADMIN_USER_PASSWORD=steakfordinner
+
# Database
HOST_IP=$MY_IP
MYSQL_ROOT_PASSWORD=kolla
@@ -65,11 +68,12 @@ CONFIG_NETWORK=True
cat > ./openrc <<EOF
export OS_AUTH_URL="http://${KEYSTONE_PUBLIC_SERVICE_HOST}:5000/v2.0"
export OS_USERNAME=$ADMIN_TENANT_NAME
-export OS_PASSWORD=$PASSWORD
+export OS_PASSWORD=$ADMIN_USER_PASSWORD
export OS_TENANT_NAME=$ADMIN_TENANT_NAME
EOF
cat > ./compose/openstack.env <<EOF
+ADMIN_USER_PASSWORD=$ADMIN_USER_PASSWORD
ADMIN_TENANT_NAME=$ADMIN_TENANT_NAME
CONFIG_NETWORK=$CONFIG_NETWORK
DB_ROOT_PASSWORD=$MYSQL_ROOT_PASSWORD