← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1128931] Re: l3-agent can not find Endpoint

 

** Changed in: quantum
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to quantum.
https://bugs.launchpad.net/bugs/1128931

Title:
  l3-agent can not find Endpoint

Status in OpenStack Quantum (virtual network service):
  Invalid

Bug description:
  I installed folsom on ubuntu 12.04 LTS and 12.10 with quantum.

  for a month or 2 month ago, I completely built folsom openstack with quantum. 
  But today, I can not build folsom openstack with same procedure. (https://github.com/mseknibilel/OpenStack-Folsom-Install-guide/blob/master/OpenStack_Folsom_Install_Guide_WebVersion.rst)

  l3-agent output these lines...

  2013-02-18 19:18:34    DEBUG [quantum.agent.linux.utils] Running command: ip -o link show br-ex
  2013-02-18 19:18:34    DEBUG [quantum.agent.linux.utils]
  Command: ['ip', '-o', 'link', 'show', 'br-ex']
  Exit code: 0
  Stdout: '7: br-ex: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT \\    link/ether 00:0c:29:2a:ab:67 brd ff:ff:ff:ff:ff:ff\n'
  Stderr: ''
  2013-02-18 19:18:34    DEBUG [quantumclient.client] REQ: curl -i http://172.16.1.11:35357/v2.0/tokens -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-quantumclient"

  2013-02-18 19:18:34    DEBUG [quantumclient.client] REQ BODY: {"auth":
  {"tenantName": "service", "passwordCredentials": {"username":
  "quantum", "password": "quantum"}}}

  2013-02-18 19:18:34    DEBUG [quantumclient.client] RESP:{'date':
  'Mon, 18 Feb 2013 10:18:34 GMT', 'transfer-encoding': 'chunked',
  'status': '200', 'content-type': 'application/json', 'vary': 'X-Auth-
  Token'}

  2013-02-18 19:18:34    DEBUG [quantumclient.client] RESP
  BODY:{"access": {"token": {"expires": "2013-02-19T10:18:34Z", "id":
  "96c9c874221743a09c281edb0c82dbd3", "tenant": {"enabled": true,
  "description": null, "name": "service", "id":
  "e8568a38da494272ac9f8c529f9f69d7"}}, "serviceCatalog": [{"endpoints":
  [{"adminURL":
  "http://172.16.1.11:8774/v2/e8568a38da494272ac9f8c529f9f69d7";,
  "region": "myregion", "internalURL":
  "http://172.16.1.11:8774/v2/e8568a38da494272ac9f8c529f9f69d7";, "id":
  "0693e8530d3c451da2c34fbe8c1128b9", "publicURL":
  "http://172.16.1.11:8774/v2/e8568a38da494272ac9f8c529f9f69d7"}],
  "endpoints_links": [], "type": "compute", "name": "nova"},
  {"endpoints": [{"adminURL": "http://172.16.1.11:9696/";, "region":
  "myregion", "internalURL": "http://172.16.1.11:9696/";, "id":
  "0a8a69c5d0874efaa60249314709416f", "publicURL":
  "http://172.16.1.11:9696/"}], "endpoints_links": [], "type":
  "network", "name": "quantum"}, {"endpoints": [{"adminURL":
  "http://172.16.1.11:9292/v2";, "region": "myregion", "internalURL":
  "http://172.16.1.11:9292/v2";, "id":
  "145fe2b4fc054c409633efe3e02d7570", "publicURL":
  "http://172.16.1.11:9292/v2"}], "endpoints_links": [], "type":
  "image", "name": "glance"}, {"endpoints": [{"adminURL":
  "http://172.16.1.11:8776/v1/e8568a38da494272ac9f8c529f9f69d7";,
  "region": "myregion", "internalURL":
  "http://172.16.1.11:8776/v1/e8568a38da494272ac9f8c529f9f69d7";, "id":
  "9d99293571724b48879769360e2aacf0", "publicURL":
  "http://172.16.1.11:8776/v1/e8568a38da494272ac9f8c529f9f69d7"}],
  "endpoints_links": [], "type": "volume", "name": "cinder"},
  {"endpoints": [{"adminURL": "http://172.16.1.11:8773/services/Admin";,
  "region": "myregion", "internalURL":
  "http://172.16.1.11:8773/services/Cloud";, "id":
  "3f49a4cae33248c28917f6e8b977965e", "publicURL":
  "http://172.16.1.11:8773/services/Cloud"}], "endpoints_links": [],
  "type": "ec2", "name": "ec2"}, {"endpoints": [{"adminURL":
  "http://172.16.1.11:35357/v2.0";, "region": "myregion", "internalURL":
  "http://172.16.1.11:5000/v2.0";, "id":
  "455a48ac3e3049a48f1ae2922b83b187", "publicURL":
  "http://172.16.1.11:5000/v2.0"}], "endpoints_links": [], "type":
  "identity", "name": "keystone"}], "user": {"username": "quantum",
  "roles_links": [], "id": "190c5a5136a44f56820a1c70a84332e2", "roles":
  [{"name": "admin"}], "name": "quantum"}, "metadata": {"is_admin": 0,
  "roles": ["abd7f796f6624ce6a58e6b2772679e21"]}}}

  2013-02-18 19:18:34    ERROR [quantum.agent.l3_agent] Error running l3_nat daemon_loop
  Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/quantum/agent/l3_agent.py", line 171, in daemon_loop
      self.do_single_loop()
    File "/usr/lib/python2.7/dist-packages/quantum/agent/l3_agent.py", line 202, in do_single_loop
      target_ex_net_id = self._fetch_external_net_id()
    File "/usr/lib/python2.7/dist-packages/quantum/agent/l3_agent.py", line 183, in _fetch_external_net_id
      ex_nets = self.qclient.list_networks(**params)['networks']
    File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 102, in with_params
      ret = self.function(instance, *args, **kwargs)
    File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 244, in list_networks
      return self.get(self.networks_path, params=_params)
    File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 525, in get
      headers=headers, params=params)
    File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 510, in retry_request
      headers=headers, params=params)
    File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 447, in do_request
      resp, replybody = self.httpclient.do_request(action, method, body=body)
    File "/usr/lib/python2.7/dist-packages/quantumclient/client.py", line 139, in do_request
      self.authenticate()
    File "/usr/lib/python2.7/dist-packages/quantumclient/client.py", line 207, in authenticate
      self._extract_service_catalog(body)
    File "/usr/lib/python2.7/dist-packages/quantumclient/client.py", line 176, in _extract_service_catalog
      endpoint_type='adminURL')
    File "/usr/lib/python2.7/dist-packages/quantumclient/client.py", line 80, in url_for
      raise exceptions.EndpointNotFound()
  EndpointNotFound: An unknown exception occurred.

  I checked keystone's endpoint. but I can check endpoint which I need.

  keystone endpoint-list
  +----------------------------------+----------+------------------------------------------+------------------------------------------+------------------------------------------+
  |                id                |  region  |                publicurl                 |               internalurl                |                 adminurl                 |
  +----------------------------------+----------+------------------------------------------+------------------------------------------+------------------------------------------+
  | 0693e8530d3c451da2c34fbe8c1128b9 | myregion | http://172.16.1.11:8774/v2/$(tenant_id)s | http://172.16.1.11:8774/v2/$(tenant_id)s | http://172.16.1.11:8774/v2/$(tenant_id)s |
  | 0a8a69c5d0874efaa60249314709416f | myregion |         http://172.16.1.11:9696/         |         http://172.16.1.11:9696/         |         http://172.16.1.11:9696/         |
  | 145fe2b4fc054c409633efe3e02d7570 | myregion |        http://172.16.1.11:9292/v2        |        http://172.16.1.11:9292/v2        |        http://172.16.1.11:9292/v2        |
  | 3f49a4cae33248c28917f6e8b977965e | myregion |  http://172.16.1.11:8773/services/Cloud  |  http://172.16.1.11:8773/services/Cloud  |  http://172.16.1.11:8773/services/Admin  |
  | 455a48ac3e3049a48f1ae2922b83b187 | myregion |       http://172.16.1.11:5000/v2.0       |       http://172.16.1.11:5000/v2.0       |      http://172.16.1.11:35357/v2.0       |
  | 9d99293571724b48879769360e2aacf0 | myregion | http://172.16.1.11:8776/v1/$(tenant_id)s | http://172.16.1.11:8776/v1/$(tenant_id)s | http://172.16.1.11:8776/v1/$(tenant_id)s |
  +----------------------------------+----------+------------------------------------------+------------------------------------------+------------------------------------------+

  I use these ubuntu packages.

  
  dpkg -l | grep quantum
  ii  python-quantum                     2012.2.1-0ubuntu1                                 all          Quantum is a virutal network service for Openstack. (python library)
  ii  python-quantumclient               1:2.1-0ubuntu1                                    all          client - Quantum is a virtual network service for Openstack
  ii  quantum-common                     2012.2.1-0ubuntu1                                 all          common - Quantum is a virtual network service for Openstack.
  ii  quantum-dhcp-agent                 2012.2.1-0ubuntu1                                 all          Quantum is a virtual network service for Openstack. (dhcp agent)
  ii  quantum-l3-agent                   2012.2.1-0ubuntu1                                 all          Quantum is a virtual network service for Openstack. (l3 agent)
  ii  quantum-plugin-openvswitch         2012.2.1-0ubuntu1                                 all          Quantum is a virtual network service for Openstack. (openvswitch plugin)
  ii  quantum-plugin-openvswitch-agent   2012.2.1-0ubuntu1                                 all          Quantum is a virtual network service for Openstack. (openvswitch plugin agent)
  ii  quantum-server                     2012.2.1-0ubuntu1                                 all          server - Quantum is a virtual network service for Openstack

  Do you any idea ?

  Thanks from Tokyo.

To manage notifications about this bug go to:
https://bugs.launchpad.net/quantum/+bug/1128931/+subscriptions