<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 12 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"MS Mincho";
        panose-1:2 2 6 9 4 2 5 8 3 4;}
@font-face
        {font-family:宋体;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@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:"\@宋体";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@MS Mincho";
        panose-1:2 2 6 9 4 2 5 8 3 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        font-size:10.5pt;
        font-family:"Calibri","sans-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
        {mso-style-priority:99;
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:宋体;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"批注框文本 Char";
        margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        font-size:9.0pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.Char
        {mso-style-name:"批注框文本 Char";
        mso-style-priority:99;
        mso-style-link:批注框文本;
        font-family:"Calibri","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
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="ZH-CN" link="blue" vlink="purple" style="text-justify-trim:punctuation">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">I have seen the review you provided, but I think there is no relationship to our problem.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">All keystone commands like “keystone user-list”, “keystone role-list”, “keystone tenant-list” and “eystone user-role-list --user admin --tenant admin</span><span style="font-family:宋体;color:#1F497D">‍</span><span lang="EN-US" style="color:#1F497D">”
 is ok.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">But all the other command returned “Unauthorized”<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:12.0pt;color:#1F497D">This is the result of  “cinder --debug list”:<o:p></o:p></span></b></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">DEBUG:keystoneclient.session:REQ: curl -g -i -X GET
<a href="http://127.0.0.1:35357/v2.0"><span style="color:#1F497D;text-decoration:none">http://127.0.0.1:35357/v2.0</span></a> -H "Accept: application/json" -H "User-Agent: python-keystoneclient"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">DEBUG:keystoneclient.session:RESP: [200] date: Sat, 14 Feb 2015 11:36:33 GMT vary: X-Auth-Token content-length: 336 content-type: application/json server: Apache/2.4.7 (Ubuntu) <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">RESP BODY: {"version": {"status": "stable", "updated": "2014-04-17T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}], "id": "v2.0",
 "links": [{"href": "<a href="http://127.0.0.1:35357/v2.0/"><span style="color:#1F497D;text-decoration:none">http://127.0.0.1:35357/v2.0/</span></a>", "rel": "self"}, {"href": "<a href="http://docs.openstack.org/"><span style="color:#1F497D;text-decoration:none">http://docs.openstack.org/</span></a>",
 "type": "text/html", "rel": "describedby"}]}}<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">DEBUG:keystoneclient.auth.identity.v2:Making authentication request to
<a href="http://127.0.0.1:35357/v2.0/tokens"><span style="color:#1F497D;text-decoration:none">http://127.0.0.1:35357/v2.0/tokens</span></a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">DEBUG:keystoneclient.session:REQ: curl -g -i -X GET
<a href="http://127.0.0.1:8776/v1/12308951ebca4eac84d20e00d4d55d72/volumes/detail">
<span style="color:#1F497D;text-decoration:none">http://127.0.0.1:8776/v1/12308951ebca4eac84d20e00d4d55d72/volumes/detail</span></a> -H "User-Agent: python-cinderclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}4dfb792bb390a91d23b351b05d54db226982f6ef"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">DEBUG:keystoneclient.session:RESP:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">DEBUG:keystoneclient.auth.identity.v2:Making authentication request to
<a href="http://127.0.0.1:35357/v2.0/tokens"><span style="color:#1F497D;text-decoration:none">http://127.0.0.1:35357/v2.0/tokens</span></a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">DEBUG:keystoneclient.session:RESP:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">DEBUG:keystoneclient.session:Request returned failure status: 401<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">ERROR: Unauthorized (HTTP 401) (Request-ID: req-209c999b-77b5-4677-94bb-10e6419b8c1e)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:12.0pt;color:#1F497D">And the cinder-api.log:<o:p></o:p></span></b></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">2015-02-14 03:37:48.779 18036 INFO eventlet.wsgi.server [-] (18036) accepted ('127.0.0.1', 49278)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">2015-02-14 03:37:48.781 18036 DEBUG keystoneclient.auth.identity.v2 [-] Making authentication request to
<a href="http://127.0.0.1:35357/v2.0/tokens"><span style="color:#1F497D;text-decoration:none">http://127.0.0.1:35357/v2.0/tokens</span></a> get_auth_ref /opt/stack/new/python-keystoneclient/keystoneclient/auth/identity/v2.py:76<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">2015-02-14 03:37:48.783 18036 DEBUG urllib3.util.retry [-] Converted retries value: 0 -> Retry(total=0, connect=None, read=None, redirect=0) from_int /usr/local/lib/python2.7/dist-packages/urllib3/util/retry.py:155<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">2015-02-14 03:37:48.792 18036 DEBUG keystoneclient.session [-] Request returned failure status: 400 request /opt/stack/new/python-keystoneclient/keystoneclient/session.py:383<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">2015-02-14 03:37:48.793 18036 ERROR keystonemiddleware.auth_token [-] Bad response code while validating token: 400<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">2015-02-14 03:37:48.794 18036 WARNING keystonemiddleware.auth_token [-] Identity response: {"error": {"message": "Expecting to find username or userId in passwordCredentials - the server could not
 comply with the request since it is either malformed or otherwise incorrect. The client is assumed to be in error.", "code": 400, "title": "Bad Request"}}<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">2015-02-14 03:37:48.794 18036 WARNING keystonemiddleware.auth_token [-] Authorization failed for token<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">2015-02-14 03:37:48.796 18036 INFO eventlet.wsgi.server [-] 127.0.0.1 - - [14/Feb/2015 03:37:48] "GET /v1/12308951ebca4eac84d20e00d4d55d72/volumes/detail HTTP/1.1" 401 257 0.014834<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">2015-02-14 03:37:49.140 18036 DEBUG keystoneclient.auth.identity.v2 [-] Making authentication request to
<a href="http://127.0.0.1:35357/v2.0/tokens"><span style="color:#1F497D;text-decoration:none">http://127.0.0.1:35357/v2.0/tokens</span></a> get_auth_ref /opt/stack/new/python-keystoneclient/keystoneclient/auth/identity/v2.py:76<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">2015-02-14 03:37:49.142 18036 DEBUG urllib3.util.retry [-] Converted retries value: 0 -> Retry(total=0, connect=None, read=None, redirect=0) from_int /usr/local/lib/python2.7/dist-packages/urllib3/util/retry.py:155<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">2015-02-14 03:37:49.150 18036 DEBUG keystoneclient.session [-] Request returned failure status: 400 request /opt/stack/new/python-keystoneclient/keystoneclient/session.py:383<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">2015-02-14 03:37:49.151 18036 ERROR keystonemiddleware.auth_token [-] Bad response code while validating token: 400<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">2015-02-14 03:37:49.152 18036 WARNING keystonemiddleware.auth_token [-] Identity response: {"error": {"message": "Expecting to find username or userId in passwordCredentials - the server could not
 comply with the request since it is either malformed or otherwise incorrect. The client is assumed to be in error.", "code": 400, "title": "Bad Request"}}<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">2015-02-14 03:37:49.153 18036 WARNING keystonemiddleware.auth_token [-] Authorization failed for token<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">2015-02-14 03:37:49.154 18036 INFO eventlet.wsgi.server [-] 127.0.0.1 - - [14/Feb/2015 03:37:49] "GET /v1/12308951ebca4eac84d20e00d4d55d72/volumes/detail HTTP/1.1" 401 257 0.014599</span><span style="font-family:宋体;color:#1F497D">‍</span><span lang="EN-US" style="color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">How should I do next to fix this?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" align="left" style="text-align:left"><b><span style="font-size:10.0pt;font-family:宋体">发件人<span lang="EN-US">:</span></span></b><span lang="EN-US" style="font-size:10.0pt;font-family:宋体"> Peter Stachowski [mailto:peter@tesora.com]
<br>
</span><b><span style="font-size:10.0pt;font-family:宋体">发送时间<span lang="EN-US">:</span></span></b><span lang="EN-US" style="font-size:10.0pt;font-family:宋体"> 2015</span><span style="font-size:10.0pt;font-family:宋体">年<span lang="EN-US">2</span>月<span lang="EN-US">12</span>日<span lang="EN-US">
 23:32<br>
</span><b>收件人<span lang="EN-US">:</span></b><span lang="EN-US"> OpenStack Development Mailing List (not for usage questions); openstack-infra@lists.openstack.org<br>
</span><b>抄送<span lang="EN-US">:</span></b><span lang="EN-US"> Zhangli (ISSP); Fanyaohong; Chenzongliang<br>
</span><b>主题<span lang="EN-US">:</span></b><span lang="EN-US"> Re: [OpenStack-Infra] [all] Ask for help with devstack error<o:p></o:p></span></span></p>
</div>
</div>
<p class="MsoNormal" align="left" style="text-align:left"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-size:11.0pt;color:#1F497D">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-size:11.0pt;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-size:11.0pt;color:#1F497D">Take a look at this commit, it broke a number of Trove tests last night:
<a href="https://review.openstack.org/#/c/154391">https://review.openstack.org/#/c/154391</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-size:11.0pt;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-size:11.0pt;color:#1F497D">Not sure if it’s related, but it seems similar (try manually backing out the change for cinder and see if it fixes your problem).<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-size:11.0pt;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-size:11.0pt;color:#1F497D">Good luck!<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-size:11.0pt;color:#1F497D">Peter<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-size:11.0pt;color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" align="left" style="text-align:left"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> liuxinguo [<a href="mailto:liuxinguo@huawei.com">mailto:liuxinguo@huawei.com</a>]
<br>
<b>Sent:</b> February-12-15 6:57 AM<br>
<b>To:</b> <a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a>;
<a href="mailto:openstack-infra@lists.openstack.org">openstack-infra@lists.openstack.org</a><br>
<b>Cc:</b> Zhangli (ISSP); Fanyaohong; Chenzongliang<br>
<b>Subject:</b> [openstack-dev] [all] Ask for help with devstack error<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal" align="left" style="text-align:left"><span lang="EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:14.0pt">Our CI failed when building devstack, the error is about “Unauthorized”. Following is the segment of the devstacklog:<o:p></o:p></span></p>
<p><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">2</span><span lang="EN-US">015-02-12 11:16:14.639 | + is_service_enabled c-api<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">2015-02-12 11:16:14.646 | + return 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">2015-02-12 11:16:14.646 | + is_service_enabled tls-proxy<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">2015-02-12 11:16:14.646 | + _run_process c-vol '/usr/local/bin/cinder-volume --config-file /etc/cinder/cinder.conf' ''<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">2015-02-12 11:16:14.647 | + local service=c-vol<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">2015-02-12 11:16:14.647 | + local 'command=/usr/local/bin/cinder-volume --config-file /etc/cinder/cinder.conf'<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">2015-02-12 11:16:14.647 | + local group=<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">2015-02-12 11:16:14.647 | + exec<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">2015-02-12 11:16:14.647 | + exec<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">2015-02-12 11:16:14.658 | + return 1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">2015-02-12 11:16:14.658 | + create_volume_types<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">2015-02-12 11:16:14.659 | + is_service_enabled c-api<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">2015-02-12 11:16:14.687 | + return 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">2015-02-12 11:16:14.688 | + [[ -n lvm:default ]]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">2015-02-12 11:16:14.688 | + local be be_name be_type<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">2015-02-12 11:16:14.688 | + for be in '${CINDER_ENABLED_BACKENDS//,/ }'<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">2015-02-12 11:16:14.688 | + be_type=lvm<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">2015-02-12 11:16:14.688 | + be_name=default<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">2015-02-12 11:16:14.689 | + cinder type-create default<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">2015-02-12 11:16:22.734 | ERROR: Unauthorized (HTTP 401) (Request-ID: req-33c9392a-046f-4894-b22a-1a119eacec62)</span><span style="font-family:"MS Mincho"">‍</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:14.0pt">In c-api.log, I find the error with “auth_token”:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">2015-02-12 03:16:19.722 19912 WARNING keystonemiddleware.auth_token [-] Retrying on HTTP connection exception: SSL exception connecting to
<a href="https://127.0.0.1:35357/"><span style="color:windowtext;text-decoration:none">https://127.0.0.1:35357/</span></a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">2015-02-12 03:16:20.723 19912 DEBUG keystoneclient.session [-] REQ: curl -g -i --cacert "/opt/stack/data/ca-bundle.pem" -X GET
<a href="https://127.0.0.1:35357/"><span style="color:windowtext;text-decoration:none">https://127.0.0.1:35357/</span></a> -H "Accept: application/json" -H "User-Agent: python-keystoneclient" _http_log_request /opt/stack/new/python-keystoneclient/keystoneclient/session.py:190<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">2015-02-12 03:16:20.724 19912 DEBUG urllib3.util.retry [-] Converted retries value: 0 -> Retry(total=0, connect=None, read=None, redirect=0) from_int /usr/local/lib/python2.7/dist-packages/urllib3/util/retry.py:155<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">2015-02-12 03:16:22.730 19912 ERROR keystonemiddleware.auth_token [-] HTTP connection exception: SSL exception connecting to
<a href="https://127.0.0.1:35357/"><span style="color:windowtext;text-decoration:none">https://127.0.0.1:35357/</span></a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">2015-02-12 03:16:22.731 19912 WARNING keystonemiddleware.auth_token [-] Authorization failed for token</span><span style="font-family:"MS Mincho"">‍</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:14.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:14.0pt">Any one can give me some help?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:14.0pt">Thanks!<o:p></o:p></span></p>
</div>
</body>
</html>