<font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><div>Here is one sample keystone default_catalog.templates which defines some services. In fact I think for SQL, we need use keystone client to add them into SQL DB.<br><br><br># config for TemplatedCatalog, using camelCase because I don't want to do<br># translations for keystone compat<br>catalog.RegionOne.identity.publicURL = http://controlnode:$(public_port)s/v2.0<br>catalog.RegionOne.identity.adminURL = http://controlnode:$(admin_port)s/v2.0<br>catalog.RegionOne.identity.internalURL = http://controlnode:$(public_port)s/v2.0<br>catalog.RegionOne.identity.name = Identity Service<br><br># fake compute service for now to help novaclient tests work<br>catalog.RegionOne.compute.publicURL = http://controlnode:$(compute_port)s/v1.1/$(tenant_id)s<br>catalog.RegionOne.compute.adminURL = http://controlnode:$(compute_port)s/v1.1/$(tenant_id)s<br>catalog.RegionOne.compute.internalURL = http://controlnode:$(compute_port)s/v1.1/$(tenant_id)s<br>catalog.RegionOne.compute.name = Compute Service<br><br>catalog.RegionOne.volume.publicURL = <a class="moz-txt-link-freetext" href="http://controlnode:8776/v1/$%28tenant_id%29s">http://controlnode:8776/v1/$(tenant_id)s</a><br>catalog.RegionOne.volume.adminURL = <a class="moz-txt-link-freetext" href="http://controlnode:8776/v1/$%28tenant_id%29s">http://controlnode:8776/v1/$(tenant_id)s</a><br>catalog.RegionOne.volume.internalURL = <a class="moz-txt-link-freetext" href="http://controlnode:8776/v1/$%28tenant_id%29s">http://controlnode:8776/v1/$(tenant_id)s</a><br>catalog.RegionOne.volume.name = Volume Service<br><br>catalog.RegionOne.ec2.publicURL = <a class="moz-txt-link-freetext" href="http://controlnode:8773/services/Cloud">http://controlnode:8773/services/Cloud</a><br>catalog.RegionOne.ec2.adminURL = <a class="moz-txt-link-freetext" href="http://controlnode:8773/services/Admin">http://controlnode:8773/services/Admin</a><br>catalog.RegionOne.ec2.internalURL = <a class="moz-txt-link-freetext" href="http://controlnode:8773/services/Cloud">http://controlnode:8773/services/Cloud</a><br>catalog.RegionOne.ec2.name = EC2 Service<br><br>catalog.RegionOne.image.publicURL = <a class="moz-txt-link-freetext" href="http://controlnode:9292/v1">http://controlnode:9292/v1</a><br>catalog.RegionOne.image.adminURL = <a class="moz-txt-link-freetext" href="http://controlnode:9292/v1">http://controlnode:9292/v1</a><br>catalog.RegionOne.image.internalURL = <a class="moz-txt-link-freetext" href="http://controlnode:9292/v1">http://controlnode:9292/v1</a><br>catalog.RegionOne.image.name = Image Service<br><div><br></div><font color="#990099">-----openstack-bounces+gongysh=cn.ibm.com@lists.launchpad.net wrote: -----<br><br></font><blockquote style="padding-right: 0px; padding-left: 5px; margin-left: 5px; border-left: 2px solid #000000; margin-right: 0px;">To: Pete Zaitcev <a class="moz-txt-link-rfc2396E" href="mailto:zaitcev@redhat.com"><zaitcev@redhat.com></a><br>From: Anne Gentle <a class="moz-txt-link-rfc2396E" href="mailto:anne@openstack.org"><anne@openstack.org></a><br>Sent by: <a class="moz-txt-link-abbreviated" href="mailto:openstack-bounces+gongysh=cn.ibm.com@lists.launchpad.net">openstack-bounces+gongysh=cn.ibm.com@lists.launchpad.net</a><br>Date: 04/13/2012 12:33PM<br>Cc: Openstack Mail List <a class="moz-txt-link-rfc2396E" href="mailto:openstack@lists.launchpad.net"><openstack@lists.launchpad.net></a><br>Subject: Re: [Openstack] Endpoints problems<br><br>Thanks all! <br><br>And thanks for not saying "It's a Python Thing You Wouldn't Understand." :)<br><br>Yeah I do want a definitive answer but it's always good for me to learn to read code. <br><br>Then again, things like <font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif"><span style="font-family: arial,helvetica,sans-serif;">replace('$('</span><span style="font-family: arial,helvetica,sans-serif;">, '%(') </span><span style="font-family: arial,helvetica,sans-serif;">make me go hmm...</span><br> </font><br>One last clarification, this $(tenant_id)s should be used for both nova and volume endpoints, right?<br><br>Thanks,<br><br>Anne<br><br><br><div class="gmail_quote">On Thu, Apr 12, 2012 at 5:44 PM, Pete Zaitcev <span dir="ltr"><<a href="mailto:zaitcev@redhat.com" target="_blank">zaitcev@redhat.com</a>></span> wrote:<br> <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid #cccccc; padding-left: 1ex;"><div>On Thu, 12 Apr 2012 15:28:21 -0500<br> Anne Gentle <<a href="mailto:anne@openstack.org" target="_blank">anne@openstack.org</a>> wrote:<br><br> > keystone --token 012345SECRET99TOKEN012345 --endpoint<br> > <a href="http://192.168.206.130:35357/v2.0" target="_blank">http://192.168.206.130:35357/v2.0</a> endpoint-create \<br> </div>>[....]<br> <div>>                        --internalurl<br> > <a href="http://192.168.206.130:8774/v2/$%28tenant_id%29s" target="_blank">http://192.168.206.130:8774/v2/$(tenant_id)s</a><br> ><br> > I haven't fixed this yet because I'm not sure if the $(tenant_id)s is<br> > literal or which tenant_id specifically to use (the Service tenant for the<br> > adminurl possibly)?<br><br> </div>The expression "$(tenant_id)s" is really contained inside the pattern<br> in the database. It is substituded with a specific tennant ID when<br> an application makes its request. The weird syntax is inherited from<br> Python, where one can use constructs like %s or %(key)s.<br> <span><font color="#888888"><br> -- Pete<br> </font></span></blockquote></div><br> <font face="Courier New,Courier,monospace" size="3">_______________________________________________<br>Mailing list: <a href="https://launchpad.net/%7Eopenstack">https://launchpad.net/~openstack</a><br>Post to     : <a class="moz-txt-link-abbreviated" href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>Unsubscribe : <a href="https://launchpad.net/%7Eopenstack">https://launchpad.net/~openstack</a><br>More help   : <a href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a><br></font> </blockquote><br></div></font> <br/>