EndpointNotFound: Endpoint not found

Bug #933845 reported by Christian Berendt
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
tempest
Fix Released
High
Daryl Walleck

Bug Description

after updating my devstack environment to the state of the art (wih the latest checkout of devstack) i were not able to run tempest against it (also using the latest checkout).

the devstack environment seems to work, keystone is also working. so i think it's a problem with tempest itself.

devstack: a6651e94001a2f024902c3dc772a8be9a3218118
tempest: 4aa82a9c21ab9a3057ec9806cf8e892159c84e75
nova: 34d77ac8b1919a287865a4bef376579b6bf09b48
keystone: 90068b0143af788869116d08533d5ebc99874a17

stack@devstack001:~/devstack$ keystone --username admin --password testing service-list
+----------------------------------+----------+----------+---------------------------+
| id | name | type | description |
+----------------------------------+----------+----------+---------------------------+
| 2abe1de13127417ab2cbf4476763ef1c | glance | image | Glance Image Service |
| 63788dbd6c684eae8a852b822017bbc3 | keystone | identity | Keystone Identity Service |
| 81025434e8d545e293e710e5ed4879cc | nova | compute | Nova Compute Service |
| ddb7d116c12b455382891df983ac8540 | ec2 | ec2 | EC2 Compatibility Layer |
+----------------------------------+----------+----------+---------------------------+

======================================================================
ERROR: test suite for <class 'tempest.tests.test_keypairs.KeyPairsTest'>
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/nose/suite.py", line 208, in run
    self.setUp()
  File "/usr/lib/python2.7/site-packages/nose/suite.py", line 291, in setUp
    self.setupContext(ancestor)
  File "/usr/lib/python2.7/site-packages/nose/suite.py", line 314, in setupContext
    try_run(context, names)
  File "/usr/lib/python2.7/site-packages/nose/util.py", line 478, in try_run
    return func()
  File "/home/berendt/Documents/repositories/tempest/tempest/tests/test_keypairs.py", line 11, in setUpClass
    cls.os = openstack.Manager()
  File "/home/berendt/Documents/repositories/tempest/tempest/openstack.py", line 28, in __init__
    self.config.nova.tenant_name)
  File "/home/berendt/Documents/repositories/tempest/tempest/services/nova/json/servers_client.py", line 14, in __init__
    tenant_name)
  File "/home/berendt/Documents/repositories/tempest/tempest/common/rest_client.py", line 19, in __init__
    tenant_name)
  File "/home/berendt/Documents/repositories/tempest/tempest/common/rest_client.py", line 81, in keystone_v2_auth
    raise exceptions.EndpointNotFound(service)
EndpointNotFound: Endpoint not found
Details: nova

this is my etc/tempest.conf:

[nova]
host=192.168.23.220
port=5000
apiVer=v2.0
path=tokens
user=admin
api_key=testing
tenant_name=admin
ssh_timeout=300
build_interval=10
build_timeout=600
catalog_name=nova

[environment]
image_ref=3
image_ref_alt=4
flavor_ref=1
flavor_ref_alt=2
create_image_enabled=true
resize_available=true
authentication=keystone_v2

Revision history for this message
Christian Berendt (berendt) wrote :

tempest receives the follwing endpoints in RestClient:keystone_v2_auth

-------------------- >> begin captured stdout << ---------------------
{u'endpoints_links': [], u'endpoints': [{u'adminURL': u'http://192.168.23.220:8080/', u'region': u'RegionOne', u'internalURL': u'http://192.168.23.220:8080/v1/AUTH_071e0b77b28540c3aba0abe167bbceb2', u'publicURL': u'http://192.168.23.220:8080/v1/AUTH_071e0b77b28540c3aba0abe167bbceb2'}], u'type': u'object-store', u'name': u"'Swift Service'"}
{u'endpoints_links': [], u'endpoints': [{u'adminURL': u'http://192.168.23.220:9292/v1', u'region': u'RegionOne', u'internalURL': u'http://192.168.23.220:9292/v1', u'publicURL': u'http://192.168.23.220:9292/v1'}], u'type': u'image', u'name': u"'Image Service'"}
{u'endpoints_links': [], u'endpoints': [{u'adminURL': u'http://192.168.23.220:8774/v1.1/071e0b77b28540c3aba0abe167bbceb2', u'region': u'RegionOne', u'internalURL': u'http://192.168.23.220:8774/v1.1/071e0b77b28540c3aba0abe167bbceb2', u'publicURL': u'http://192.168.23.220:8774/v1.1/071e0b77b28540c3aba0abe167bbceb2'}], u'type': u'compute', u'name': u"'Compute Service'"}
{u'endpoints_links': [], u'endpoints': [{u'adminURL': u'http://192.168.23.220:8773/services/Admin', u'region': u'RegionOne', u'internalURL': u'http://192.168.23.220:8773/services/Cloud', u'publicURL': u'http://192.168.23.220:8773/services/Cloud'}], u'type': u'ec2', u'name': u"'EC2 Service'"}
{u'endpoints_links': [], u'endpoints': [{u'adminURL': u'http://192.168.23.220:35357/v2.0', u'region': u'RegionOne', u'internalURL': u'http://192.168.23.220:5000/v2.0', u'publicURL': u'http://192.168.23.220:5000/v2.0'}], u'type': u'identity', u'name': u"'Identity Service'"}

--------------------- >> end captured stdout << ----------------------

Revision history for this message
Christian Berendt (berendt) wrote :

pasting stuff in launchpad sucks, should really be fixed here.

http://paste.openstack.org/show/4849/

Revision history for this message
Christian Berendt (berendt) wrote :

problem is that there is a check "if ep["name"] == service:" in the medhod RestClient:keystone_v2_auth and looks like devstack or keystone now uses/returns other names.

two things to change: changing ep["name"] to ep["type"] and changing catalog_name=nova to catalog_name=compute (in etc/tempest.conf.sample)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tempest (master)

Fix proposed to branch: master
Review: https://review.openstack.org/4259

Changed in tempest:
assignee: nobody → Christian Berendt (berendt)
status: New → In Progress
Revision history for this message
Christian Berendt (berendt) wrote :

Hm. Looks like this is a problem in the keystone api. i created a bugreport for that: #933854.

the name in the cli is not the name in the api, the type is the same.

i added a patch for reviewing (https://review.openstack.org/4259) but not sure if we should apply it if it's really a bug in keystone.

Revision history for this message
Jay Pipes (jaypipes) wrote :

This actually popped up in the HP Cloud Services QA build, too... :(

I like your patch as a solution to this issue.

Revision history for this message
Christian Berendt (berendt) wrote :

Have no time to modiy change 4259 at the moment, can anybode take it?

Revision history for this message
Jay Pipes (jaypipes) wrote :

Yup, I can take it.

Changed in tempest:
assignee: Christian Berendt (berendt) → Jay Pipes (jaypipes)
importance: Undecided → High
milestone: none → essex-4
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/4587

Changed in tempest:
assignee: Jay Pipes (jaypipes) → Daryl Walleck (dwalleck)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tempest (master)

Reviewed: https://review.openstack.org/4587
Committed: http://github.com/openstack/tempest/commit/b90a1a6aa5b9b470fca3b4bedc442eb4cb193d20
Submitter: Jenkins
Branch: master

commit b90a1a6aa5b9b470fca3b4bedc442eb4cb193d20
Author: Daryl Walleck <email address hidden>
Date: Mon Feb 27 11:23:10 2012 -0600

    Addresses lp#933845
    * Changed config to use catalog type instead of catalog name

    Change-Id: I183ae3a9a56b16ae8191f30523aa68777b7158cc

Changed in tempest:
status: In Progress → Fix Committed
Jay Pipes (jaypipes)
Changed in tempest:
status: Fix Committed → Fix Released
Sean Dague (sdague)
Changed in tempest:
milestone: none → havana-3
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.