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.<br><div><includetail><div> </div><div> </div><div style="font:Verdana normal 14px;color:#000;"><div style="FONT-SIZE: 12px;FONT-FAMILY: Arial Narrow;padding:2px 0 2px 0;">------------------ Original ------------------</div><div style="FONT-SIZE: 12px;background:#efefef;padding:8px;"><div id="menu_sender"><b>From: </b> "Pierre Amadio"<pierre.amadio@canonical.com>;</div><div><b>Date: </b> Sun, Mar 25, 2012 04:35 AM</div><div><b>To: </b> "openstack"<openstack@lists.launchpad.net>; <wbr></div><div></div><div><b>Subject: </b> [Openstack] is this a bug in milestone-proposed keystone ? (cannotget endpoint-list, nor create endpoint)</div></div><div> </div>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=http://$KEYSTONE_IP:35357/v2.0/<br>export SERVICE_TOKEN=999888777666<br>export NOVA_PUBLIC_URL="http://$NOVA_IP:8774/v1.1/%(tenant_id)s"<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: https://launchpad.net/~openstack<br>Post to     : openstack@lists.launchpad.net<br>Unsubscribe : https://launchpad.net/~openstack<br>More help   : https://help.launchpad.net/ListHelp<br></div></includetail></div>