<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Oct 7, 2013, at 10:02 PM, Dolph Mathews <<a href="mailto:dolph.mathews@gmail.com">dolph.mathews@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote">On Mon, Oct 7, 2013 at 5:57 PM, Jon Maron <span dir="ltr"><<a href="mailto:jmaron@hortonworks.com" target="_blank">jmaron@hortonworks.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
  I'm trying to use the keystone client code in savanna/utils/openstack but my attempt to sue it yield:<br>
<br>
 'Api v2.0 endpoint not found in service identity'<br>
<br></blockquote><div><br></div><div>This sounds like the service catalog for keystone itself either isn't configured, or isn't configured properly (with /v2.0/ endpoints). What does your `keystone service-list` and `keystone endpoint-list` look like?</div></div></div></div></blockquote><div><br></div><div>they look fine:</div><div><br></div><div><div>[root@cn081 ~(keystone_admin)]# keystone endpoint-list</div><div>+----------------------------------+-----------+-----------------------------------------------+-----------------------------------------------+------------------------------------------+----------------------------------+</div><div>|                id                |   region  |                   publicurl                   |                  internalurl                  |                 adminurl                 |            service_id            |</div><div>+----------------------------------+-----------+-----------------------------------------------+-----------------------------------------------+------------------------------------------+----------------------------------+</div><div>| 1d093399f00246b895ce8507c1b24b7b | RegionOne |            <a href="http://172.18.0.81:9292">http://172.18.0.81:9292</a>            |            <a href="http://172.18.0.81:9292">http://172.18.0.81:9292</a>            |         <a href="http://172.18.0.81:9292">http://172.18.0.81:9292</a>          | dce5859bb86e4d76a3688d2bf70cad33 |</div><div>| 48f8a5bcde0747c08b149f36144a018d | RegionOne |            <a href="http://172.18.0.81:8080">http://172.18.0.81:8080</a>            |            <a href="http://172.18.0.81:8080">http://172.18.0.81:8080</a>            |         <a href="http://172.18.0.81:8080">http://172.18.0.81:8080</a>          | 8e83541c4add45058a83609345f0f7f5 |</div><div>| 6223abce129948539d413adb0f392f66 | RegionOne | <a href="http://172.18.0.81:8080/v1/AUTH_%(tenant_id)s">http://172.18.0.81:8080/v1/AUTH_%(tenant_id)s</a> | <a href="http://172.18.0.81:8080/v1/AUTH_%(tenant_id)s">http://172.18.0.81:8080/v1/AUTH_%(tenant_id)s</a> |         <a href="http://172.18.0.81:8080/">http://172.18.0.81:8080/</a>         | fe922aac92ac4e048fb02346a3176827 |</div><div>| 64740640bb824c2493cc456c76d9c4e8 | RegionOne |    <a href="http://172.18.0.81:8776/v1/%(tenant_id)s">http://172.18.0.81:8776/v1/%(tenant_id)s</a>   |    <a href="http://172.18.0.81:8776/v1/%(tenant_id)s">http://172.18.0.81:8776/v1/%(tenant_id)s</a>   | <a href="http://172.18.0.81:8776/v1/%(tenant_id)s">http://172.18.0.81:8776/v1/%(tenant_id)s</a> | a13bf1f4319a4b78984cbf80ce4a1879 |</div><div>| 8948845ea83940f7a04f2d6ec35da7ab | RegionOne |    <a href="http://172.18.0.81:8774/v2/%(tenant_id)s">http://172.18.0.81:8774/v2/%(tenant_id)s</a>   |    <a href="http://172.18.0.81:8774/v2/%(tenant_id)s">http://172.18.0.81:8774/v2/%(tenant_id)s</a>   | <a href="http://172.18.0.81:8774/v2/%(tenant_id)s">http://172.18.0.81:8774/v2/%(tenant_id)s</a> | 4480cd65dc6a4858b5b237cc4c30761e |</div><div>| cd1420cfcc59467ba76bfc32f79f9c77 | RegionOne |            <a href="http://172.18.0.81:9696/">http://172.18.0.81:9696/</a>           |            <a href="http://172.18.0.81:9696/">http://172.18.0.81:9696/</a>           |         <a href="http://172.18.0.81:9696/">http://172.18.0.81:9696/</a>         | 399854c740b649a6935d6568d3ffe497 |</div><div>| d860fe39b41646be97582de9cef8c91c | RegionOne |          <a href="http://172.18.0.81:5000/v2.0">http://172.18.0.81:5000/v2.0</a>         |          <a href="http://172.18.0.81:5000/v2.0">http://172.18.0.81:5000/v2.0</a>         |      <a href="http://172.18.0.81:35357/v2.0">http://172.18.0.81:35357/v2.0</a>       | b4b2cc6d2db2493eafe2ccbb649b491e |</div><div>| edc75652965a4bd2854c194c213ea395 | RegionOne |     <a href="http://172.18.0.81:8773/services/Cloud">http://172.18.0.81:8773/services/Cloud</a>    |     <a href="http://172.18.0.81:8773/services/Cloud">http://172.18.0.81:8773/services/Cloud</a>    |  <a href="http://172.18.0.81:8773/services/Admin">http://172.18.0.81:8773/services/Admin</a>  | dea2442916144ef18cf64d2111f1d906 |</div><div>+----------------------------------+-----------+-----------------------------------------------+-----------------------------------------------+------------------------------------------+----------------------------------+</div><div>[root@cn081 ~(keystone_admin)]# keystone service-list</div><div>+----------------------------------+----------+--------------+--------------------------------+</div><div>|                id                |   name   |     type     |          description           |</div><div>+----------------------------------+----------+--------------+--------------------------------+</div><div>| a13bf1f4319a4b78984cbf80ce4a1879 |  cinder  |    volume    |         Cinder Service         |</div><div>| dce5859bb86e4d76a3688d2bf70cad33 |  glance  |    image     |    Openstack Image Service     |</div><div>| b4b2cc6d2db2493eafe2ccbb649b491e | keystone |   identity   |   OpenStack Identity Service   |</div><div>| 4480cd65dc6a4858b5b237cc4c30761e |   nova   |   compute    |   Openstack Compute Service    |</div><div>| dea2442916144ef18cf64d2111f1d906 | nova_ec2 |     ec2      |          EC2 Service           |</div><div>| 399854c740b649a6935d6568d3ffe497 | quantum  |   network    |   Quantum Networking Service   |</div><div>| fe922aac92ac4e048fb02346a3176827 |  swift   | object-store | Openstack Object-Store Service |</div><div>| 8e83541c4add45058a83609345f0f7f5 | swift_s3 |      s3      |      Openstack S3 Service      |</div><div>+----------------------------------+----------+--------------+--------------------------------+</div><div><br></div></div><br><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  An code sample:<br>
<br>
from savanna.utils.openstack import keystone<br>
<br>
. . .<br>
      service_id = next((<a href="http://service.id/" target="_blank">service.id</a> for service in<br>
                       keystone.client().services.list()<br>
                       if 'quantum' == <a href="http://service.name/" target="_blank">service.name</a>), None)<br></blockquote><div><br></div><div>I don't really know what the context of this code is, but be aware that it requires "admin" access to keystone and is not interacting with a representation of the catalog that normal users see.</div></div></div></div></blockquote><div><br></div><div>I'm leveraging a keystone client available in the savanna code base so was hoping for some insight from the developers.</div><br><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div> It's also not particularly reliable to identify services by name -- instead, use they're type (type="network", for quantum I believe), as a deployer could name a network service as "Quantum" or "Neutron" or "neutron" or "My Awesome Neutron"... but in any case, the type should still be "network".</div></div></div></div></blockquote><div><br></div><div>Thanks - will do.</div><br><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
  Thanks for the help!<br>
<br>
-- Jon<br>
<br>
<br>
--<br>
CONFIDENTIALITY NOTICE<br>
NOTICE: This message is intended for the use of the individual or entity to<br>
which it is addressed and may contain information that is confidential,<br>
privileged and exempt from disclosure under applicable law. If the reader<br>
of this message is not the intended recipient, you are hereby notified that<br>
any printing, copying, dissemination, distribution, disclosure or<br>
forwarding of this communication is strictly prohibited. If you have<br>
received this communication in error, please contact the sender immediately<br>
and delete it from your system. Thank You.<br>
<br>
_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div><br></div>-Dolph
</div></div>
_______________________________________________<br>OpenStack-dev mailing list<br><a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev<br></blockquote></div><br></body></html>
<br>
<span style="color:rgb(128,128,128);font-family:Arial,sans-serif;font-size:10px">CONFIDENTIALITY NOTICE</span><br style="color:rgb(128,128,128);font-family:Arial,sans-serif;font-size:10px"><span style="color:rgb(128,128,128);font-family:Arial,sans-serif;font-size:10px">NOTICE: This message is intended for the use of the individual or entity to which it is addressed and may contain information that is confidential, privileged and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, you are hereby notified that any printing, copying, dissemination, distribution, disclosure or forwarding of this communication is strictly prohibited. If you have received this communication in error, please contact the sender immediately and delete it from your system. Thank You.</span>