<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<STYLE>
BLOCKQUOTE {
MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em; MARGIN-TOP: 0px
}
OL {
MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px
}
UL {
MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px
}
P {
MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px
}
BODY {
FONT-SIZE: 10.5pt; FONT-FAMILY: 微软雅黑; COLOR: #000080; LINE-HEIGHT: 1.5
}
</STYLE>
<META name=GENERATOR content="MSHTML 11.00.9600.17107"></HEAD>
<BODY style="MARGIN: 10px">
<DIV>I think my glance-api.conf and glance-registry.conf are right </DIV>
<DIV> </DIV>
<DIV>
<DIV style=><SPAN
style="BACKGROUND-COLOR: #ff6600">[keystone_authtoken]</SPAN></DIV>
<DIV style=><SPAN style="BACKGROUND-COLOR: #ff6600">auth_host =
10.1.82.40</SPAN></DIV>
<DIV style=><SPAN style="BACKGROUND-COLOR: #ff6600">auth_port =
35357</SPAN></DIV>
<DIV style=><SPAN style="BACKGROUND-COLOR: #ff6600">auth_protocol =
http</SPAN></DIV>
<DIV style=><SPAN style="BACKGROUND-COLOR: #ff6600">admin_tenant_name =
service</SPAN></DIV>
<DIV style=><SPAN style="BACKGROUND-COLOR: #ff6600">admin_user =
glance</SPAN></DIV>
<DIV style=><SPAN style="BACKGROUND-COLOR: #ff6600">admin_password =
glance</SPAN></DIV>
<DIV style=><SPAN style="BACKGROUND-COLOR: #ff6600">auth_uri =
http://10.1.82.40:5000</SPAN></DIV>
<DIV style=><SPAN style="BACKGROUND-COLOR: #ff6600"></SPAN> </DIV>
<DIV style=><SPAN style="BACKGROUND-COLOR: #ff6600">[paste_deploy]</SPAN></DIV>
<DIV style=><SPAN style="BACKGROUND-COLOR: #ff6600">flavor =
keystone</SPAN></DIV></DIV>
<DIV> </DIV>
<DIV>debug info </DIV>
<DIV>
<DIV>curl -i -X GET -H 'X-Auth-Token: b15d34f87160452e8e8bcc7a1d851c43' -H
'Content-Type: application/json' -H 'User-Agent: python-glanceclient'
http://10.1.82.40:9292/v1/images/detail?sort_key=name&sort_dir=asc&limit=20</DIV>
<DIV> </DIV>
<DIV>HTTP/1.1 401 Unauthorized</DIV>
<DIV>date: Mon, 30 Jun 2014 22:05:16 GMT</DIV>
<DIV>content-length: 253</DIV>
<DIV>content-type: text/plain; charset=UTF-8</DIV>
<DIV> </DIV>
<DIV>401 Unauthorized</DIV>
<DIV> </DIV>
<DIV>This server could not verify that you are authorized to access the document
you requested. Either you supplied the wrong credentials (e.g., bad password),
or your browser does not understand how to supply the credentials
required.</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Request returned failure status.</DIV>
<DIV>Invalid OpenStack Identity credentials.</DIV></DIV>
<DIV> </DIV>
<DIV> </DIV>
<HR style="HEIGHT: 1px; WIDTH: 210px" align=left color=#b5c4df SIZE=1>
<DIV><SPAN>ttjiang</SPAN></DIV>
<DIV> </DIV>
<DIV
style="BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; BORDER-BOTTOM: medium none; PADDING-BOTTOM: 0cm; PADDING-TOP: 3pt; PADDING-LEFT: 0cm; BORDER-LEFT: medium none; PADDING-RIGHT: 0cm">
<DIV
style="FONT-SIZE: 12px; FONT-FAMILY: tahoma; BACKGROUND: #efefef; COLOR: #000000; PADDING-BOTTOM: 8px; PADDING-TOP: 8px; PADDING-LEFT: 8px; PADDING-RIGHT: 8px">
<DIV><B>From:</B> <A href="mailto:Robert.vanLeeuwen@spilgames.com">Robert
van Leeuwen</A></DIV>
<DIV><B>Date:</B> 2014-07-01 14:41</DIV>
<DIV><B>To:</B> <A href="mailto:jt628910@163.com">ttjiang</A>; <A
href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</A></DIV>
<DIV><B>Subject:</B> RE: [Openstack] Invalid OpenStack Identity
credentials</DIV></DIV></DIV>
<DIV>
<DIV>> run "glance image-list", It give me output like this</DIV>
<DIV>> Request returned failure status</DIV>
<DIV>> Invalid OpenStack Identity credentials.</DIV>
<DIV> </DIV>
<DIV>Has the glance-api.conf and glance-registry.conf the correct keystone
setup?</DIV>
<DIV> </DIV>
<DIV>Setting a service to debug and then looking at the logs usually also gives
a good indication on whats wrong.</DIV>
<DIV> </DIV>
<DIV>Cheers,</DIV>
<DIV>Robert van Leeuwen</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV></DIV></BODY></HTML>