<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
There seems to be an unfortunate difference in opinion out there
about whether the keystone endpoints should be defined using
templates (devstack) or keystone calls (ubuntu). I don't know why
keystone is offering two very different, but seemingly functionally
identical, ways to do this. Is there a good reason? Can this be
sorted out so there is only one documented way to do this?<br>
<br>
-David<br>
<br>
On 3/26/2012 7:25 AM, Andiabes wrote:
<blockquote
cite="mid:0F1792A5-AAD3-4674-BC00-2D59BDEEF5CE@gmail.com"
type="cite">
<div>Can you include your config?</div>
<div>The behavior you're describing seems to be consistent with a
missing backers configuration ...</div>
<div><br>
</div>
<div>Something like:</div>
<div>
<pre style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font: normal normal normal 12px/normal 'Bitstream Vera Sans Mono', Courier, monospace; "><div class="line" id="LC56" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 1em; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font: inherit; background-color: transparent; "><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="font-size: 17px; white-space: normal;">[identity]</span></font></div><div class="line" id="LC57" style="margin-top: 0px
; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 1em; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font: inherit; background-color: transparent; "><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="font-size: 17px; white-space: normal;">driver = keystone.identity.backends.sql.Identity</span></font></div><div class="line" id="LC58" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 1em; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font: inherit; background-color: transparent; "><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="fon
t-size: 17px; white-space: normal;">
</span></font></div><div class="line" id="LC59" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 1em; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font: inherit; background-color: transparent; "><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="font-size: 17px; white-space: normal;">[catalog]</span></font></div><div class="line" id="LC60" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 1em; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font: inherit; background-color: transparent; "><font class="Apple-style-span" face="Helvetica"><span cla
ss="Apple-style-span" style="font-size: 17px; white-space: normal;">driver = keystone.catalog.backends.sql.Catalog</span></font></div><div class="line" id="LC61" style="border-collapse: collapse; color: rgb(51, 51, 51); font-family: 'Bitstream Vera Sans Mono', Courier, monospace; line-height: 1.4; -webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 1em; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 12px; font: inherit; background-color: transparent; ">
</div><div class="line" id="LC61" style="border-collapse: collapse; color: rgb(51, 51, 51); font-family: 'Bitstream Vera Sans Mono', Courier, monospace; line-height: 1.4; -webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 1em; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 12px; font: inherit; background-color: transparent; ">
</div><div class="line" id="LC61" style="border-collapse: collapse; color: rgb(51, 51, 51); font-family: 'Bitstream Vera Sans Mono', Courier, monospace; line-height: 1.4; -webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 1em; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 12px; font: inherit; background-color: transparent; ">Also, where/how are you installing?</div></pre>
<br>
On Mar 26, 2012, at 6:56 AM, Mandar Vaze <<a
moz-do-not-send="true" href="mailto:mandar.vaze@vertex.co.in">mandar.vaze@vertex.co.in</a>>
wrote:<br>
<br>
</div>
<blockquote type="cite">
<div>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:"\@SimSun";
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"Arial Narrow";
panose-1:2 11 6 6 2 2 2 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:SimSun;
mso-fareast-language:ZH-CN;}
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;}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.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]-->
<div class="WordSection1">
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I’m
also getting the same error on latest master branch
(updated today)<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Using
setup created by devstack<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"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">-Mandar<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:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">
<a moz-do-not-send="true"
href="mailto:openstack-bounces+mandar.vaze=vertex.co.in@lists.launchpad.net">openstack-bounces+mandar.vaze=vertex.co.in@lists.launchpad.net</a>
[<a class="moz-txt-link-freetext" href="mailto:openstack-bounces+mandar.vaze=">mailto:openstack-bounces+mandar.vaze=</a><a
moz-do-not-send="true"
href="mailto:vertex.co.in@lists.launchpad.net">vertex.co.in@lists.launchpad.net</a>]
<b>On Behalf Of </b>.?o 0 O??<br>
<b>Sent:</b> Monday, March 26, 2012 12:45 PM<br>
<b>To:</b> Pierre Amadio<br>
<b>Cc:</b> openstack<br>
<b>Subject:</b> Re: [Openstack] is this a bug in
milestone-proposed keystone ? (cannotget endpoint-list,
nor create endpoint)<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">hi,<br>
<br>
I don't know if it is a bug but I come across the same
problem and wondering how to solve it.<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal"><span
style="font-size:9.0pt;font-family:"Arial
Narrow","sans-serif";color:black">------------------ Original ------------------<o:p></o:p></span></p>
</div>
<div>
<div id="menu_sender">
<p class="MsoNormal" style="background:#EFEFEF"><b><span
style="font-size:9.0pt;color:black">From: </span></b><span
style="font-size:9.0pt;color:black"> "Pierre
Amadio"<<a moz-do-not-send="true"
href="mailto:pierre.amadio@canonical.com">pierre.amadio@canonical.com</a>>;<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:#EFEFEF"><b><span
style="font-size:9.0pt;color:black">Date: </span></b><span
style="font-size:9.0pt;color:black"> Sun, Mar
25, 2012 04:35 AM<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:#EFEFEF"><b><span
style="font-size:9.0pt;color:black">To: </span></b><span
style="font-size:9.0pt;color:black"> "openstack"<<a
moz-do-not-send="true"
href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a>>;
<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:#EFEFEF"><b><span
style="font-size:9.0pt;color:black">Subject: </span></b><span
style="font-size:9.0pt;color:black"> [Openstack]
is this a bug in milestone-proposed keystone ?
(cannotget endpoint-list, nor create endpoint)<o:p></o:p></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><span style="color:black"> <o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="color:black">Hi there
!<br>
<br>
I wanted to give a try to the milestone-proposed
branch of keystone and<br>
got stuck quite fast.<br>
<br>
I am not sure if i hit a bug and should report it,
or if i'm doing<br>
something wrong.<br>
<br>
With previous version of keystone (read packaged on
ubuntu precise), i<br>
was able to create endpoint the following way once
keystone has been<br>
installed:<br>
<br>
1) setting some env variables:<br>
export KEYSTONE_IP=192.168.122.102 # IP of your
keystone API server<br>
export SERVICE_ENDPOINT=<a moz-do-not-send="true"
href="http://$KEYSTONE_IP:35357/v2.0/">http://$KEYSTONE_IP:35357/v2.0/</a><br>
export SERVICE_TOKEN=999888777666<br>
export NOVA_PUBLIC_URL="<a moz-do-not-send="true"
href="http://$NOVA_IP:8774/v1.1/%%28tenant_id%29s">http://$NOVA_IP:8774/v1.1/%(tenant_id)s</a>"<br>
export NOVA_ADMIN_URL=$NOVA_PUBLIC_URL<br>
export NOVA_INTERNAL_URL=$NOVA_PUBLIC_URL<br>
<br>
2) creating services:<br>
keystone service-create --name nova --type compute
--description<br>
'OpenStack Compute Service'<br>
<br>
keystone service-create --name swift --type
object-store --description<br>
'OpenStack Storage Service'<br>
<br>
keystone service-create --name glance --type image
--description<br>
'OpenStack Image Service'<br>
<br>
keystone service-create --name keystone --type
identity --description<br>
'OpenStack Identity Service'<br>
<br>
3) creating an endpoint for those services, starting
with the compute<br>
service:<br>
<br>
ID=$(keystone service-list | grep -i compute | awk
'{print $2}')<br>
<br>
<br>
keystone endpoint-create --region RegionOne
--service_id $ID --publicurl<br>
$NOVA_PUBLIC_URL --adminurl $NOVA_ADMIN_URL
--internalurl $NOVA_INTERNAL_URL<br>
<br>
When i run this command with milestone-proposed, i
experience the following:<br>
<br>
No handlers could be found for logger
"keystoneclient.client"<br>
The action you have requested has not been
implemented. (HTTP 501)<br>
<br>
<br>
Strangely enough, i experience a similar error
message when running a<br>
simple "keystone endpoint-list" whereas command such
as "keystone<br>
user-list" works all right.<br>
<br>
<br>
here is what i have in the keystone logs when trying
"endpoint-list":<br>
<br>
2012-03-24 20:30:09 DEBUG [routes.middleware]
Matched GET /endpoints<br>
2012-03-24 20:30:09 DEBUG [routes.middleware]
Route path:<br>
'{path_info:.*}', defaults: {'controller':<br>
<keystone.contrib.admin_crud.core.CrudExtension
object at 0x2b215d0>}<br>
2012-03-24 20:30:09 DEBUG [routes.middleware]
Match dict:<br>
{'controller':
<keystone.contrib.admin_crud.core.CrudExtension
object at<br>
0x2b215d0>, 'path_info': '/endpoints'}<br>
2012-03-24 20:30:09 DEBUG [routes.middleware]
Matched GET /endpoints<br>
2012-03-24 20:30:09 DEBUG [routes.middleware]
Route path:<br>
'/endpoints', defaults: {'action': u'get_endpoints',
'controller':<br>
<keystone.catalog.core.EndpointController object
at 0x2b21210>}<br>
2012-03-24 20:30:09 DEBUG [routes.middleware]
Match dict: {'action':<br>
u'get_endpoints', 'controller':<br>
<keystone.catalog.core.EndpointController object
at 0x2b21210>}<br>
2012-03-24 20:30:09 DEBUG [keystone.common.wsgi]
arg_dict: {}<br>
2012-03-24 20:30:09 WARNING [keystone.common.wsgi]
The action you have<br>
requested has not been implemented.<br>
2012-03-24 20:30:09 DEBUG [keystone.common.wsgi]
********************<br>
RESPONSE HEADERS ********************<br>
2012-03-24 20:30:09 DEBUG [keystone.common.wsgi]
Content-Type =<br>
application/json<br>
2012-03-24 20:30:09 DEBUG [keystone.common.wsgi]
Vary = X-Auth-Token<br>
2012-03-24 20:30:09 DEBUG [keystone.common.wsgi]
Content-Length = 109<br>
2012-03-24 20:30:09 DEBUG [keystone.common.wsgi]<br>
2012-03-24 20:30:09 DEBUG [keystone.common.wsgi]
********************<br>
RESPONSE BODY ********************<br>
<br>
<br>
I try to add some debug in<br>
keystone.catalog.core.EndpointController.get_endpoints()
method:<br>
<br>
def get_endpoints(self, context):<br>
LOG.debug("PLOP get_endpoints")<br>
self.assert_admin(context)<br>
LOG.debug("PLOP STILL HERE") # <=
LAST DEBUG LINE<br>
endpoint_list =
self.catalog_api.list_endpoints(context)<br>
LOG.debug("SO, how does endpoint_list looks
like ?")<br>
for i in endpoint_list:<br>
LOG.debug("PLOP: '%s'",s)<br>
endpoint_refs =
[self.catalog_api.get_endpoint(context, e)<br>
for e in endpoint_list]<br>
LOG.debug("PLOP THIS IS THE END")<br>
return {'endpoints': endpoint_refs}<br>
<br>
So, as i do not see anything after "PLOP STILL
HERE", i am assuming<br>
something is wrong in the
catalog_api.list_endpoints() method.<br>
<br>
However, i do not understand exactly where it is
implemented.<br>
catalog_api is a Manager instance, wich seems to be
a subclass of<br>
Manager() defined in
keystone/keystone/common/manager.py but i am lost<br>
with the wrapping magic that occurs there.<br>
<br>
So, is this a bug that i should file ?<br>
<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Mailing list: <a moz-do-not-send="true"
href="https://launchpad.net/">https://launchpad.net/</a>‾openstack<br>
Post to : <a moz-do-not-send="true"
href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a moz-do-not-send="true"
href="https://launchpad.net/">https://launchpad.net/</a>‾openstack<br>
More help : <a moz-do-not-send="true"
href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</blockquote>
<blockquote type="cite">
<div><span>_______________________________________________</span><br>
<span>Mailing list: <a moz-do-not-send="true"
href="https://launchpad.net/%7Eopenstack">https://launchpad.net/~openstack</a></span><br>
<span>Post to : <a moz-do-not-send="true"
href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a></span><br>
<span>Unsubscribe : <a moz-do-not-send="true"
href="https://launchpad.net/%7Eopenstack">https://launchpad.net/~openstack</a></span><br>
<span>More help : <a moz-do-not-send="true"
href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a></span><br>
</div>
</blockquote>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Mailing list: <a class="moz-txt-link-freetext" href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a>
Post to : <a class="moz-txt-link-abbreviated" href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a>
Unsubscribe : <a class="moz-txt-link-freetext" href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a>
More help : <a class="moz-txt-link-freetext" href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a>
</pre>
</blockquote>
<br>
</body>
</html>