<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Apr 12, 2012, at 6:44 PM, Pete Zaitcev wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>On Thu, 12 Apr 2012 15:28:21 -0500<br>Anne Gentle <<a href="mailto:anne@openstack.org">anne@openstack.org</a>> wrote:<br><br><blockquote type="cite">keystone --token 012345SECRET99TOKEN012345 --endpoint<br></blockquote><blockquote type="cite"><a href="http://192.168.206.130:35357/v2.0">http://192.168.206.130:35357/v2.0</a> endpoint-create \<br></blockquote><blockquote type="cite">[....]<br></blockquote><blockquote type="cite">                       --internalurl<br></blockquote><blockquote type="cite"><a href="http://192.168.206.130:8774/v2/$(tenant_id)s">http://192.168.206.130:8774/v2/$(tenant_id)s</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I haven't fixed this yet because I'm not sure if the $(tenant_id)s is<br></blockquote><blockquote type="cite">literal or which tenant_id specifically to use (the Service tenant for the<br></blockquote><blockquote type="cite">adminurl possibly)?<br></blockquote><br>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></div></blockquote></div><div><br></div><div>My understanding (based on somebody's previous answer in the mailing list, or possibly one of the IRC channels) was that you could only do this with the template backend, and when you were using the database backend you had to explicitly add endpoints for each tenant that needed to talk to the API.</div><div><br></div><div>Can you confirm that you can use the $(tenant_id)s syntax when the backend is set using the following keystone.conf entry:</div><div><br></div><div><div>[catalog]</div><div>driver = keystone.catalog.backends.sql.Catalog</div></div><div><br></div><div><br></div><div><div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Take care,</div><div><br></div><div>Lorin</div><div>--</div><div>Lorin Hochstein</div><div>Lead Architect - Cloud Services</div><div>Nimbis Services, Inc.</div><div><a href="https://www.nimbisservices.com/">www.nimbisservices.com</a></div><div><br></div></div></span><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline"></div></div></body></html>