Looks like you are missing the %tenant_id% in the service endpoint catalog $BIN_DIR/keystone-manage $* endpointTemplates add RegionOne nova http://%HOST_IP%:8774/v1.1/%tenant_id% http://%HOST_IP%:8774/v1.1/%tenant_id% http://%HOST_IP%:8774/v1.1/%tenant_id% 1 1
On Wed, Dec 21, 2011 at 11:10 PM, denmat <tu2bg...@gmail.com> wrote: > Hi, I'm running the latest pull from github of python-novaclient and > I'm having trouble when the dashboard attempt to view any of the > images services: > > http://10.61.2.243/nova/images_and_snapshots/ > > NotFound at /nova/images_and_snapshots/ > > n/a (HTTP 404) > > Request Method: GET > Request URL: http://10.61.2.243/nova/images_and_snapshots/ > Django Version: 1.3 > Exception Type: NotFound > Exception Value: > > n/a (HTTP 404) > > Exception Location: /opt/stack/python-novaclient/novaclient/client.py > in request, line 104 > Python Executable: /usr/bin/python > Python Version: 2.7.2 > Python Path: > > ['/opt/stack/horizon/openstack-dashboard/dashboard/wsgi/../..', > '/opt/stack/devstack/src/openstack', > '/opt/stack/devstack/src/python-keystoneclient', > '/opt/stack/keystone', > '/opt/stack/glance', > '/opt/stack/python-novaclient', > '/usr/local/lib/python2.7/dist-packages/nosexcover-1.0.7-py2.7.egg', > '/usr/local/lib/python2.7/dist-packages/suds-0.4-py2.7.egg', > '/usr/local/lib/python2.7/dist-packages/python_gflags-1.3-py2.7.egg', > '/usr/local/lib/python2.7/dist-packages/python_daemon-1.5.5-py2.7.egg', > '/usr/local/lib/python2.7/dist-packages/carrot-0.10.5-py2.7.egg', > '/usr/local/lib/python2.7/dist-packages/anyjson-0.2.4-py2.7.egg', > '/usr/local/lib/python2.7/dist-packages/amqplib-0.6.1-py2.7.egg', > '/usr/local/lib/python2.7/dist-packages/pylint-0.19.0-py2.7.egg', > '/usr/local/lib/python2.7/dist-packages/Markdown-2.1.0-py2.7.egg', > '/usr/local/lib/python2.7/dist-packages/openstackx-0.2-py2.7.egg', > '/usr/local/lib/python2.7/dist-packages', > '/opt/stack/nova', > '/opt/stack/horizon/horizon', > '/usr/lib/pymodules/python2.7', > '/usr/lib/python2.7', > '/usr/lib/python2.7/plat-linux2', > '/usr/lib/python2.7/lib-tk', > '/usr/lib/python2.7/lib-old', > '/usr/lib/python2.7/lib-dynload', > '/usr/lib/python2.7/dist-packages', > '/usr/lib/python2.7/dist-packages/PIL', > '/usr/lib/python2.7/dist-packages/gtk-2.0', > '/opt/stack/horizon/openstack-dashboard/dashboard'] > > The last trace is: > /opt/stack/python-novaclient/novaclient/client.py in request > body = json.loads(body) > except ValueError, e: > pass > else: > body = None > > if resp.status in (400, 401, 403, 404, 408, 413, 500, 501): > raise exceptions.from_response(resp, body) > return resp, body > > def _cs_request(self, url, method, **kwargs): > if not self.management_url: > self.authenticate() > > \u25bc Local vars > Variable Value > body > > '404 Not Found\n\nThe resource could not be found.\n\n ' > > e > > ValueError('Extra data: line 1 column 4 - line 5 column 4 (char 4 - 52)',) > > resp > > {'content-length': '52', > 'content-type': 'text/plain; charset=UTF-8', > 'date': 'Thu, 22 Dec 2011 06:46:50 GMT', > 'status': '404'} > > args > > (u'http://nova.local:8774/v1.1//os-quota-sets/05a72d14b4434a848c07f00544069d20?fresh=1324536410.96', > 'GET') > > kwargs > > {'headers': {'User-Agent': 'python-novaclient', > 'X-Auth-Project-Id': u'05a72d14b4434a848c07f00544069d20', > 'X-Auth-Token': u'53c2c6ba-ae53-4c95-ae53-14ea6a0df0a4'}} > > self > > <novaclient.client.HTTPClient object at 0x7f3cda3563d0> > > Now if I do a: > GET > http://nova.local:8774/v1.1//os-quota-sets/05a72d14b4434a848c07f00544069d20?fresh=1324536410.96 > > I get no response and no log output from nova, glance or keystone. > > But if I do a: > GET > http://nova.local:8774/v2.1//os-quota-sets/05a72d14b4434a848c07f00544069d20?fresh=1324536410.96 > I get: > {"choices": [{"status": "CURRENT", "media-types": [{"base": > "application/xml", "type": > "application/vnd.openstack.compute+xml;version=2"}, {"base": > "application/json", "type": > "application/vnd.openstack.compute+json;version=2"}], "id": "v2.0", > "links": [{"href": > "http://nova.local:8774/v2/v2.0/os-quota-sets/05a72d14b4434a848c07f00544069d20", > "rel": "self"}]}]} > > and log output: > > ==> /var/log/nova/nova-api.log <== > 2011-12-22 18:08:36,028 INFO nova.api.openstack.wsgi [-] GET > http://10.61.2.246:8774/v2.1/os-quota-sets/05a72d14b4434a848c07f00544069d20?fresh=1324536410.96 > 2011-12-22 18:08:36,028 DEBUG nova.api.openstack.wsgi [-] Unrecognized > Content-Type provided in request from (pid=26556) deserialize_body > /usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py:257 > 2011-12-22 18:08:36,029 INFO nova.api.openstack.wsgi [-] > http://10.61.2.246:8774/v2.1/os-quota-sets/05a72d14b4434a848c07f00544069d20?fresh=1324536410.96 > returned with HTTP 300 > > I am not sure how to debug this problem. Anyone help? > > Cheers, > Den > > _______________________________________________ > Mailing list: https://launchpad.net/~openstack > Post to : openstack@lists.launchpad.net > Unsubscribe : https://launchpad.net/~openstack > More help : https://help.launchpad.net/ListHelp _______________________________________________ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp