I have seen this behavior when overcloud stack is not ready. Go to the Undercloud node and run "heat stack-list" to know the status of overcloud stack. If it is stuck at IN PROGRESS or ended in ERROR status, such behavior is observed.
From: 严超 [mailto:yanchao...@gmail.com] Sent: Monday, July 21, 2014 9:52 PM To: Clint Byrum Cc: openstack Subject: Re: [Openstack] [TripleO]Overcloud won't use nova command like "nova list" I was following this guide: http://openstack.redhat.com/TripleO_VM_Setup Best Regards! Chao Yan -------------- My twitter:Andy Yan @yanchao727<https://twitter.com/yanchao727> My Weibo:http://weibo.com/herewearenow -------------- 2014-07-22 12:21 GMT+08:00 严超 <yanchao...@gmail.com<mailto:yanchao...@gmail.com>>: NO, I still can't use nova commands, debug is like follow : chaoya@ironic001:~/tripleo$ export -p | grep OS declare -x LESSCLOSE="/usr/bin/lesspipe %s %s" declare -x OS_AUTH_URL="http://192.0.2.7:5000/v2.0" declare -x OS_NO_CACHE="True" declare -x OS_PASSWORD="unset" declare -x OS_TENANT_NAME="admin" declare -x OS_USERNAME="admin" chaoya@ironic001:~/tripleo$ nova --debug list REQ: curl -i 'http://192.0.2.7:5000/v2.0/tokens' -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-novaclient" -d '{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "unset"}}}' New session created for: (http://192.0.2.7:5000) RESP: [401] {'date': 'Tue, 22 Jul 2014 12:19:27 GMT', 'transfer-encoding': 'chunked', 'content-type': 'application/json', 'www-authenticate': 'Keystone uri="http://localhost:5000/"', 'vary': 'X-Auth-Token'} RESP BODY: {"error": {"message": "Could not find user, admin.", "code": 401, "title": "Unauthorized"}} DEBUG (shell:777) Invalid OpenStack Nova credentials. Traceback (most recent call last): File "/home/chaoya/tripleo/tripleo-incubator/openstack-tools/local/lib/python2.7/site-packages/novaclient/shell.py", line 774, in main OpenStackComputeShell().main(map(strutils.safe_decode, sys.argv[1:])) File "/home/chaoya/tripleo/tripleo-incubator/openstack-tools/local/lib/python2.7/site-packages/novaclient/shell.py", line 687, in main raise exc.CommandError(_("Invalid OpenStack Nova credentials.")) CommandError: Invalid OpenStack Nova credentials. ERROR: Invalid OpenStack Nova credentials. Best Regards! Chao Yan -------------- My twitter:Andy Yan @yanchao727<https://twitter.com/yanchao727> My Weibo:http://weibo.com/herewearenow -------------- 2014-07-22 2:24 GMT+08:00 Clint Byrum <cl...@fewbar.com<mailto:cl...@fewbar.com>>: Not sure what is in stackrc, but if you used tripleo's 'devtest', it produces a 'tripleorc' which can be sourced, but you still also need to choose between overcloud and undercloud. So: . $TRIPLEO_ROOT/tripleorc . $TRIPLEO_ROOT/overcloudrc Should work. Excerpts from 严超's message of 2014-07-21 02:09:08 -0700: > Hi, Everyone : > I've got the same issue when deployed overcloud and undercloud > using TripleO, I can use "nova list" and the other nova command : > https://bugs.launchpad.net/tripleo/+bug/1290488 > Is there any way to solve this? > > root@overcloud-notcompute0-zdcmpw47hksu:~# . ~/stackrc > root@overcloud-notcompute0-zdcmpw47hksu:~# nova list > ERROR: Invalid OpenStack Nova credentials. > root@overcloud-notcompute0-zdcmpw47hksu:~# > > *Best Regards!* > > > *Chao Yan--------------**My twitter:Andy Yan @yanchao727 > <https://twitter.com/yanchao727>* > > > *My Weibo:http://weibo.com/herewearenow > <http://weibo.com/herewearenow>--------------* _______________________________________________ Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack Post to : openstack@lists.openstack.org<mailto:openstack@lists.openstack.org> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
_______________________________________________ Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack Post to : openstack@lists.openstack.org Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack