[Openstack] [TripleO]Overcloud won't use nova command like "nova list"

严超 yanchao727 at gmail.com
Tue Jul 22 04:21:18 UTC 2014


NO, I still can't use nova commands, debug is like follow :

chaoya at 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 at 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
<http://weibo.com/herewearenow>--------------*


2014-07-22 2:24 GMT+08:00 Clint Byrum <clint at 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 at overcloud-notcompute0-zdcmpw47hksu:~# . ~/stackrc
> > root at overcloud-notcompute0-zdcmpw47hksu:~# nova list
> > ERROR: Invalid OpenStack Nova credentials.
> > root at 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 at lists.openstack.org
> Unsubscribe :
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140722/896d384f/attachment.html>


More information about the Openstack mailing list