stack.sh is failing while running command "openstack project show admin -f value -c id"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
devstack |
Invalid
|
Undecided
|
Unassigned |
Bug Description
stack.sh logs:
2016-08-17 14:27:36.602 | +./stack.
2016-08-17 14:27:36.611 | ++userrc_
2016-08-17 14:27:36.616 | ++userrc_
2016-08-17 14:27:36.621 | ++userrc_
2016-08-17 14:27:36.627 | ++userrc_
2016-08-17 14:27:36.632 | ++userrc_
2016-08-17 14:27:36.638 | ++userrc_
2016-08-17 14:27:36.643 | ++userrc_
2016-08-17 14:27:36.648 | ++userrc_
2016-08-17 14:27:36.654 | ++userrc_
2016-08-17 14:27:36.660 | ++userrc_
2016-08-17 14:27:36.665 | ++userrc_
2016-08-17 14:27:36.670 | ++userrc_
2016-08-17 14:27:36.676 | ++userrc_
2016-08-17 14:27:36.681 | ++userrc_
2016-08-17 14:27:36.686 | ++userrc_
2016-08-17 14:27:36.692 | ++userrc_
2016-08-17 14:27:36.698 | +./stack.
2016-08-17 14:27:36.703 | +lib/keystone:
2016-08-17 14:27:36.708 | ++lib/keystone:
2016-08-17 14:27:38.111 | WARNING: openstackclient
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:
2016-08-17 14:27:38.350 | +lib/keystone:
2016-08-17 14:27:38.356 | +./stack.
2016-08-17 14:27:38.362 | ++./stack.
2016-08-17 14:27:38.367 | +./stack.
2016-08-17 14:27:38.375 | +./stack.
2016-08-17 14:27:38.381 | +./stack.
2016-08-17 14:27:38.388 | +./stack.
2016-08-17 14:27:38.394 | +./stack.
2016-08-17 14:27:38.399 | +./stack.
2016-08-17 14:27:38.399 | Error on exit
2016-08-17 14:27:38.404 | +./stack.
2016-08-17 14:27:38.670 | +./stack.
2016-08-17 14:27:38.675 | +./stack.
2016-08-17 14:27:39.172 | +./stack.
My local.conf contains line:
LIBS_FROM_
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-
tags: | added: python-openstackclient |
description: | updated |
tags: |
added: openstackclient removed: python-openstackclient |
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 /github. com HOST=xenial. localdomain 192.168. 31.92 IDENTITY_ V2=True SERVICES= key SERVICES+ =,rabbit, mysql BACKEND= mongodb stack stack PASSWORD= stack PASSWORD= $ADMIN_ PASSWORD $DEST/logs/ stack.sh. log 66a3d6b56c1f479 c8b4e70ab5c2000 f5 DIR=$DEST/ data RANGE=172. 24.4.0/ 24 NETWORK_ GATEWAY= 172.24. 4.254 ALLOCATION_ POOL=start= 172.24. 4.1,end= 172.24. 4.249 HOST=192. 168.31. 92 192.168. 31.92 DRIVE=False GIT=python- openstackclient /opt/stack/ devstack$
| [[local|localrc]]
| GIT_BASE=https:/
| RECLONE=False
| OFFLINE=False
| SERVICE_
| HOST_IP=
| LOG_COLOR=False
| USE_SSL=False
| ENABLE_
| ENABLED_
| ENABLED_
| CEILOMETER_
| SERVICE_TOKEN=stack
| ADMIN_PASSWORD=
| MYSQL_PASSWORD=
| RABBIT_
| SERVICE_
| LOGFILE=
| LOGDAYS=2
| SWIFT_HASH=
| SWIFT_REPLICAS=1
| SWIFT_DATA_
| Q_DVR_MODE=legacy
| FLOATING_
| PUBLIC_
| Q_FLOATING_
| RABBIT_
| DATABASE_TYPE=mysql
| MYSQL_HOST=
| FORCE_CONFIG_
| LIBS_FROM_
| stack@xenial: