<div style="text-align: left;"><font color="#7f7f7f"><span style="font-size: 12px; line-height: normal; white-space: nowrap;"><b>found the solution:</b></span></font></div><div style="text-align: left;"><font color="#7f7f7f"><span style="font-size: 12px; line-height: normal; white-space: nowrap;"><b>in keystone.conf </b></span></font></div><div style="text-align: left;"><font color="#7f7f7f"><span style="font-size: 12px; line-height: normal; white-space: nowrap;"><b>you need to change :</b></span></font></div><div style="text-align: left;"><div> [catalog]<br>driver = keystone.catalog.backends.templated.TemplatedCatalog</div><div>to:</div><div> [catalog]<br></div><div>driver = keystone.catalog.backends.templated.TemplatedCatalog</div><div><br></div><div> </div></div><div style="text-align: left;"><font color="#7f7f7f"><span style="font-size: 12px; line-height: normal; white-space: nowrap;"><b><br></b></span></font></div><div style="text-align: left;"><font color="#7f7f7f"><span style="font-size: 12px; line-height: normal; white-space: nowrap;"><b><br></b></span></font></div><div><includetail><div style="font:Verdana normal 14px;color:#000;"><div style="FONT-SIZE: 12px;FONT-FAMILY: Arial Narrow;padding:2px 0 2px 0;">------------------ 原始邮件 ------------------</div><div style="FONT-SIZE: 12px;background:#efefef;padding:8px;"><div id="menu_sender"><b>发件人:</b> "Andiabes"<andi.abes@gmail.com>;</div><div><b>发送时间:</b> 2012年3月26日(星期一) 晚上7:25</div><div><b>收件人:</b> "Mandar Vaze"<mandar.vaze@vertex.co.in>; <wbr></div><div><b>抄送:</b> " .。o 0 O泡泡 "<501640144@qq.com>; "Pierre Amadio"<pierre.amadio@canonical.com>; "openstack"<openstack@lists.launchpad.net>; <wbr></div><div><b>主题:</b> Re: [Openstack] is this a bug in milestone-proposed keystone ? (cannotget endpoint-list, nor create endpoint)</div></div><div> </div><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="font-size: 17px; white-space: normal;"><br></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 class="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; "><br></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; "><br></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 href="mailto:mandar.vaze@vertex.co.in">mandar.vaze@vertex.co.in</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div>
<style><!--
@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;}
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:SimSun;
mso-fareast-language:ZH-CN;}
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]><![endif]--><!--[if gte mso 9]><![endif]--><div class="WordSection1"><p class="MsoNormal"><span style=" font-size:11.0pt ; ; ; ;;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 ; ; ; ;;color:#1F497D ">Using setup created by devstack<o:p></o:p></span></p><p class="MsoNormal"><span style=" font-size:11.0pt ; ; ; ;;color:#1F497D "><o:p> </o:p></span></p><p class="MsoNormal"><span style=" font-size:11.0pt ; ; ; ;;color:#1F497D ">-Mandar<o:p></o:p></span></p><p class="MsoNormal"><span style=" font-size:11.0pt ; ; ; ;;color:#1F497D "><o:p> </o:p></span></p><p class="MsoNormal"><b><span style=" font-size:10.0pt ; ; ; ; ">From:</span></b><span style=" font-size:10.0pt ; ; ; ; "> <a href="mailto:openstack-bounces+mandar.vaze=vertex.co.in@lists.launchpad.net">openstack-bounces+mandar.vaze=vertex.co.in@lists.launchpad.net</a> [mailto:openstack-bounces+mandar.vaze=<a 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 ; ; ; ;;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 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 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 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 href="http://$NOVA_IP:8774/v1.1/%(tenant_id)s">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 href="https://launchpad.net/">https://launchpad.net/</a>?openstack<br>Post to : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>Unsubscribe : <a href="https://launchpad.net/">https://launchpad.net/</a>?openstack<br>More help : <a 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 href="https://launchpad.net/%7Eopenstack">https://launchpad.net/~openstack</a></span><br><span>Post to : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a></span><br><span>Unsubscribe : <a href="https://launchpad.net/%7Eopenstack">https://launchpad.net/~openstack</a></span><br><span>More help : <a href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a></span><br></div></blockquote>
</div></includetail></div>