[openstack-dev] [devstack]Failure retrieving TENANT_ID for demo
Guo, Ruijing
ruijing.guo at intel.com
Sat Feb 28 00:28:59 UTC 2015
1. Probem description (compute/network node without keystone service is unsuccessfully deployed)
I use devstack to deploy mini-cluster. In controller node, keystone service is enabled and in compute/network node, keystone service is not enabled.
Controller node is deployed and compute/ successfully network is unsuccessfully deployed with following failure:
2015-02-27 06:32:20.337 | ERROR: openstack Authentication type must be selected with --os-auth-type
2015-02-27 06:32:20.355 | + TENANT_ID=
2015-02-27 06:32:20.359 | + die_if_not_set 530 TENANT_ID 'Failure retrieving TENANT_ID for demo'
2015-02-27 06:32:20.359 | + local exitcode=0
2015-02-27 06:32:20.366 | [Call Trace]
2015-02-27 06:32:20.366 | ./stack.sh:1203:create_neutron_initial_network
2015-02-27 06:32:20.366 | /opt/stack/devstack/lib/neutron:530:die_if_not_set
2015-02-27 06:32:20.366 | /opt/stack/devstack/functions-common:308:die
2015-02-27 06:32:20.363 | [ERROR] /opt/stack/devstack/functions-common:530 Failure retrieving TENANT_ID for demo
2. Root-cause
a. The following variables are exported when keystone is enable.
if is_service_enabled keystone; then
…
export OS_AUTH_URL=$SERVICE_ENDPOINT
export OS_TENANT_NAME=admin
export OS_USERNAME=admin
export OS_PASSWORD=$ADMIN_PASSWORD
export OS_REGION_NAME=$REGION_NAME
fi
b. Neutron use the above exported varables:
function create_neutron_initial_network {
TENANT_ID=$(openstack project list | grep " demo " | get_field 1)
die_if_not_set $LINENO TENANT_ID "Failure retrieving TENANT_ID for demo"
3. Solutions
Solution 1: enable keystone for all nodes when using devstack.
Solution 2: export the above variables if keystone is not enabled.
Solution 3: fix in devstack as:
--- stack.sh.orig 2015-02-28 00:24:31.784321431 +0000
+++ stack.sh 2015-02-28 00:26:22.594307057 +0000
@@ -973,13 +973,14 @@
# Begone token-flow auth
unset OS_TOKEN OS_URL
- # Set up password-flow auth creds now that keystone is bootstrapped
- export OS_AUTH_URL=$SERVICE_ENDPOINT
- export OS_TENANT_NAME=admin
- export OS_USERNAME=admin
- export OS_PASSWORD=$ADMIN_PASSWORD
- export OS_REGION_NAME=$REGION_NAME
fi
+
+# Set up password-flow auth creds now that keystone is bootstrapped
+export OS_AUTH_URL=$SERVICE_ENDPOINT
+export OS_TENANT_NAME=admin
+export OS_USERNAME=admin
+export OS_PASSWORD=$ADMIN_PASSWORD
+export OS_REGION_NAME=$REGION_NAME
I’d like to create bug in devstack and provide patch for it. Any thought?
Thanks,
-Ruijing
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20150228/c1cb5e90/attachment.html>
More information about the OpenStack-dev
mailing list