stack.sh is failing while running command "openstack project show admin -f value -c id"

Bug #1614123 reported by Rajasi Kulkarni
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
devstack
Invalid
Undecided
Unassigned

Bug Description

stack.sh logs:

2016-08-17 14:27:36.602 | +./stack.sh:main:1043 source /opt/stack/devstack/userrc_early
2016-08-17 14:27:36.611 | ++userrc_early:source:4 export OS_IDENTITY_API_VERSION=3
2016-08-17 14:27:36.616 | ++userrc_early:source:4 OS_IDENTITY_API_VERSION=3
2016-08-17 14:27:36.621 | ++userrc_early:source:5 export OS_AUTH_URL=http://10.0.2.15/identity_v2_admin
2016-08-17 14:27:36.627 | ++userrc_early:source:5 OS_AUTH_URL=http://10.0.2.15/identity_v2_admin
2016-08-17 14:27:36.632 | ++userrc_early:source:6 export OS_USERNAME=admin
2016-08-17 14:27:36.638 | ++userrc_early:source:6 OS_USERNAME=admin
2016-08-17 14:27:36.643 | ++userrc_early:source:7 export OS_USER_DOMAIN_ID=default
2016-08-17 14:27:36.648 | ++userrc_early:source:7 OS_USER_DOMAIN_ID=default
2016-08-17 14:27:36.654 | ++userrc_early:source:8 export OS_PASSWORD=devstack
2016-08-17 14:27:36.660 | ++userrc_early:source:8 OS_PASSWORD=devstack
2016-08-17 14:27:36.665 | ++userrc_early:source:9 export OS_PROJECT_NAME=admin
2016-08-17 14:27:36.670 | ++userrc_early:source:9 OS_PROJECT_NAME=admin
2016-08-17 14:27:36.676 | ++userrc_early:source:10 export OS_PROJECT_DOMAIN_ID=default
2016-08-17 14:27:36.681 | ++userrc_early:source:10 OS_PROJECT_DOMAIN_ID=default
2016-08-17 14:27:36.686 | ++userrc_early:source:11 export OS_REGION_NAME=RegionOne
2016-08-17 14:27:36.692 | ++userrc_early:source:11 OS_REGION_NAME=RegionOne
2016-08-17 14:27:36.698 | +./stack.sh:main:1045 create_keystone_accounts
2016-08-17 14:27:36.703 | +lib/keystone:create_keystone_accounts:382 local admin_project
2016-08-17 14:27:36.708 | ++lib/keystone:create_keystone_accounts:383 openstack project show admin -f value -c id
2016-08-17 14:27:38.111 | WARNING: openstackclient.common.utils is deprecated and will be removed after Jun 2017. Please use osc_lib.utils
2016-08-17 14:27:38.310 | Missing parameter(s):
2016-08-17 14:27:38.310 | Set a username with --os-username, OS_USERNAME, or auth.username
2016-08-17 14:27:38.310 | Set an authentication URL, with --os-auth-url, OS_AUTH_URL or auth.auth_url
2016-08-17 14:27:38.345 | +lib/keystone:create_keystone_accounts:383 admin_project=
2016-08-17 14:27:38.350 | +lib/keystone:create_keystone_accounts:1 exit_trap
2016-08-17 14:27:38.356 | +./stack.sh:exit_trap:480 local r=1
2016-08-17 14:27:38.362 | ++./stack.sh:exit_trap:481 jobs -p
2016-08-17 14:27:38.367 | +./stack.sh:exit_trap:481 jobs=
2016-08-17 14:27:38.375 | +./stack.sh:exit_trap:484 [[ -n '' ]]
2016-08-17 14:27:38.381 | +./stack.sh:exit_trap:490 kill_spinner
2016-08-17 14:27:38.388 | +./stack.sh:kill_spinner:376 '[' '!' -z '' ']'
2016-08-17 14:27:38.394 | +./stack.sh:exit_trap:492 [[ 1 -ne 0 ]]
2016-08-17 14:27:38.399 | +./stack.sh:exit_trap:493 echo 'Error on exit'
2016-08-17 14:27:38.399 | Error on exit
2016-08-17 14:27:38.404 | +./stack.sh:exit_trap:494 generate-subunit 1471443381 677 fail
2016-08-17 14:27:38.670 | +./stack.sh:exit_trap:495 [[ -z /opt/stack/logs ]]
2016-08-17 14:27:38.675 | +./stack.sh:exit_trap:498 /opt/stack/devstack/tools/worlddump.py -d /opt/stack/logs
2016-08-17 14:27:39.172 | +./stack.sh:exit_trap:504 exit 1

My local.conf contains line:
LIBS_FROM_GIT=python-cinderclient,python-glanceclient,python-heatclient,python-keystoneclient,python-neutronclient,python-novaclient,python-swiftclient,python-openstackclient

After removing the above line from local.conf, stack.sh completes successfully.
Looks like devstack is not able to handle the latest changes in python-openstackclient regarding authentication.

tags: added: python-openstackclient
description: updated
tags: added: openstackclient
removed: python-openstackclient
Revision history for this message
Masanori Itoh (thatsdone) wrote :

Is this still reproducible?

I could not reproduce this while I wrote like the following.

 | LIBS_FROM_GIT=python-openstackclient

The error log you got says that openstack client failed to refer OS_USERNAME environment value,
but it's indeed exported as you can see in the log.
Now, I'm wondering if there are some environment problems.What about trying again using fresh OS installation?

FYI. I'm working on Ubuntu xenial, and my local local.conf is like the following.

 | stack@xenial:/opt/stack/devstack$ egrep -v ^\(#\|$\) local.conf
 | [[local|localrc]]
 | GIT_BASE=https://github.com
 | RECLONE=False
 | OFFLINE=False
 | SERVICE_HOST=xenial.localdomain
 | HOST_IP=192.168.31.92
 | LOG_COLOR=False
 | USE_SSL=False
 | ENABLE_IDENTITY_V2=True
 | ENABLED_SERVICES=key
 | ENABLED_SERVICES+=,rabbit,mysql
 | CEILOMETER_BACKEND=mongodb
 | SERVICE_TOKEN=stack
 | ADMIN_PASSWORD=stack
 | MYSQL_PASSWORD=stack
 | RABBIT_PASSWORD=stack
 | SERVICE_PASSWORD=$ADMIN_PASSWORD
 | LOGFILE=$DEST/logs/stack.sh.log
 | LOGDAYS=2
 | SWIFT_HASH=66a3d6b56c1f479c8b4e70ab5c2000f5
 | SWIFT_REPLICAS=1
 | SWIFT_DATA_DIR=$DEST/data
 | Q_DVR_MODE=legacy
 | FLOATING_RANGE=172.24.4.0/24
 | PUBLIC_NETWORK_GATEWAY=172.24.4.254
 | Q_FLOATING_ALLOCATION_POOL=start=172.24.4.1,end=172.24.4.249
 | RABBIT_HOST=192.168.31.92
 | DATABASE_TYPE=mysql
 | MYSQL_HOST=192.168.31.92
 | FORCE_CONFIG_DRIVE=False
 | LIBS_FROM_GIT=python-openstackclient
 | stack@xenial:/opt/stack/devstack$

Revision history for this message
Rajasi Kulkarni (rajasi-kulkarni) wrote :

After uninstalling all the python clients that were installed by pip, and deleting the others that were installed from git, devstack installation was successful in my setup. Need to investigate that why in my setup even after setting RECLONE=True in local.conf this error occurred. Marking the bug invalid now.

Changed in devstack:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.