<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"MS Gothic";
        panose-1:2 11 6 9 7 2 5 8 2 4;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"Microsoft JhengHei";
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@Microsoft JhengHei";
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@MS Gothic";
        panose-1:2 11 6 9 7 2 5 8 2 4;}
@font-face
        {font-family:"Comic Sans MS";
        panose-1:3 15 7 2 3 3 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:"Calibri","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoPlainText">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.
<o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">
</span><span style="font-size:11.0pt;font-family:"Microsoft JhengHei","sans-serif"">严超</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> [mailto:yanchao727@gmail.com]
<br>
<b>Sent:</b> Monday, July 21, 2014 9:52 PM<br>
<b>To:</b> Clint Byrum<br>
<b>Cc:</b> openstack<br>
<b>Subject:</b> Re: [Openstack] [TripleO]Overcloud won't use nova command like "nova list"<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><span style="font-size:13.5pt">I was following this guide: <a href="http://openstack.redhat.com/TripleO_VM_Setup">
http://openstack.redhat.com/TripleO_VM_Setup</a></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><br clear="all">
<o:p></o:p></p>
<div>
<div>
<div>
<p class="MsoNormal"><b><i><span style="font-size:13.5pt;font-family:"Comic Sans MS"">Best Regards</span></i></b><b><i><span style="font-size:13.5pt;font-family:"Calibri","sans-serif"">!</span></i></b><o:p></o:p></p>
</div>
<p class="MsoNormal"><b><i><span style="font-size:13.5pt;font-family:"Comic Sans MS"">Chao Yan<br>
--------------<br>
My twitter</span></i></b><b><i><span style="font-size:13.5pt;font-family:"Calibri","sans-serif"">:</span></i></b><b><i><span style="font-size:13.5pt;font-family:"Comic Sans MS"">Andy Yan
<a href="https://twitter.com/yanchao727" target="_blank">@yanchao727</a></span></i></b><br>
<b><i><span style="font-size:13.5pt;font-family:"Comic Sans MS"">My Weibo</span></i></b><b><i><span style="font-size:13.5pt;font-family:"Calibri","sans-serif"">:</span></i></b><b><i><span style="font-size:13.5pt;font-family:"Comic Sans MS""><a href="http://weibo.com/herewearenow" target="_blank">http://weibo.com/herewearenow</a><br>
--------------</span></i></b><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
<div>
<p class="MsoNormal">2014-07-22 12:21 GMT+08:00 <span style="font-family:"Microsoft JhengHei","sans-serif"">
严超</span> <<a href="mailto:yanchao727@gmail.com" target="_blank">yanchao727@gmail.com</a>>:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<p class="MsoNormal"><span style="font-size:13.5pt">NO, I still can't use nova commands, debug is like follow :<br>
<br>
chaoya@ironic001:~/tripleo$ export -p | grep OS<br>
declare -x LESSCLOSE="/usr/bin/lesspipe %s %s"<br>
declare -x OS_AUTH_URL="<a href="http://192.0.2.7:5000/v2.0" target="_blank">http://192.0.2.7:5000/v2.0</a>"<br>
declare -x OS_NO_CACHE="True"<br>
declare -x OS_PASSWORD="unset"<br>
declare -x OS_TENANT_NAME="admin"<br>
declare -x OS_USERNAME="admin"<br>
chaoya@ironic001:~/tripleo$ nova --debug list<br>
<br>
REQ: curl -i '<a href="http://192.0.2.7:5000/v2.0/tokens" target="_blank">http://192.0.2.7:5000/v2.0/tokens</a>' -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"}}}'<br>
<br>
New session created for: (<a href="http://192.0.2.7:5000" target="_blank">http://192.0.2.7:5000</a>)<br>
RESP: [401] {'date': 'Tue, 22 Jul 2014 12:19:27 GMT', 'transfer-encoding': 'chunked', 'content-type': 'application/json', 'www-authenticate': 'Keystone uri="<a href="http://localhost:5000/" target="_blank">http://localhost:5000/</a>"', 'vary': 'X-Auth-Token'}<br>
RESP BODY: {"error": {"message": "Could not find user, admin.", "code": 401, "title": "Unauthorized"}}<br>
<br>
DEBUG (shell:777) Invalid OpenStack Nova credentials.<br>
Traceback (most recent call last):<br>
  File "/home/chaoya/tripleo/tripleo-incubator/openstack-tools/local/lib/python2.7/site-packages/novaclient/shell.py", line 774, in main<br>
    OpenStackComputeShell().main(map(strutils.safe_decode, sys.argv[1:]))<br>
  File "/home/chaoya/tripleo/tripleo-incubator/openstack-tools/local/lib/python2.7/site-packages/novaclient/shell.py", line 687, in main<br>
    raise exc.CommandError(_("Invalid OpenStack Nova credentials."))<br>
CommandError: Invalid OpenStack Nova credentials.<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:13.5pt"><br>
ERROR: Invalid OpenStack Nova credentials.<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div>
<p class="MsoNormal"><br clear="all">
<o:p></o:p></p>
<div>
<div>
<div>
<p class="MsoNormal"><b><i><span style="font-size:13.5pt;font-family:"Comic Sans MS"">Best Regards</span></i></b><b><i><span style="font-size:13.5pt;font-family:"Calibri","sans-serif"">!</span></i></b><o:p></o:p></p>
</div>
<p class="MsoNormal"><b><i><span style="font-size:13.5pt;font-family:"Comic Sans MS"">Chao Yan<br>
--------------<br>
My twitter</span></i></b><b><i><span style="font-size:13.5pt;font-family:"Calibri","sans-serif"">:</span></i></b><b><i><span style="font-size:13.5pt;font-family:"Comic Sans MS"">Andy Yan
<a href="https://twitter.com/yanchao727" target="_blank">@yanchao727</a></span></i></b><br>
<b><i><span style="font-size:13.5pt;font-family:"Comic Sans MS"">My Weibo</span></i></b><b><i><span style="font-size:13.5pt;font-family:"Calibri","sans-serif"">:</span></i></b><b><i><span style="font-size:13.5pt;font-family:"Comic Sans MS""><a href="http://weibo.com/herewearenow" target="_blank">http://weibo.com/herewearenow</a><br>
--------------</span></i></b><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">2014-07-22 2:24 GMT+08:00 Clint Byrum <<a href="mailto:clint@fewbar.com" target="_blank">clint@fewbar.com</a>>:<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<p class="MsoNormal">Not sure what is in stackrc, but if you used tripleo's 'devtest', it<br>
produces a 'tripleorc' which can be sourced, but you still also need to<br>
choose between overcloud and undercloud. So:<br>
<br>
. $TRIPLEO_ROOT/tripleorc<br>
. $TRIPLEO_ROOT/overcloudrc<br>
<br>
Should work.<br>
<br>
Excerpts from <span style="font-family:"Microsoft JhengHei","sans-serif"">严超</span>'s message of 2014-07-21 02:09:08 -0700:<o:p></o:p></p>
<div>
<p class="MsoNormal">> Hi, Everyone :<br>
>         I've got the same issue when deployed overcloud and undercloud<br>
> using TripleO, I can use "nova list" and the other nova command :<br>
> <a href="https://bugs.launchpad.net/tripleo/+bug/1290488" target="_blank">https://bugs.launchpad.net/tripleo/+bug/1290488</a><br>
> Is there any way to solve this?<br>
><br>
> root@overcloud-notcompute0-zdcmpw47hksu:~# . ~/stackrc<br>
> root@overcloud-notcompute0-zdcmpw47hksu:~# nova list<br>
> ERROR: Invalid OpenStack Nova credentials.<br>
> root@overcloud-notcompute0-zdcmpw47hksu:~#<br>
><o:p></o:p></p>
</div>
<p class="MsoNormal">> *Best Regards<span style="font-family:"Calibri","sans-serif"">!</span>*<br>
><br>
><br>
> *Chao Yan--------------**My twitter<span style="font-family:"Calibri","sans-serif"">:</span>Andy Yan @yanchao727<br>
> <<a href="https://twitter.com/yanchao727" target="_blank">https://twitter.com/yanchao727</a>>*<br>
><br>
><br>
> *My Weibo<span style="font-family:"Calibri","sans-serif"">:</span><a href="http://weibo.com/herewearenow" target="_blank">http://weibo.com/herewearenow</a><br>
> <<a href="http://weibo.com/herewearenow" target="_blank">http://weibo.com/herewearenow</a>>--------------*<br>
<br>
_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to     : <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><o:p></o:p></p>
</blockquote>
</div>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>