L3-agent using MetaInterfaceDriver failed

Bug #1354285 reported by Itsuro Oda
34
This bug affects 7 people
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Medium
Itsuro Oda

Bug Description

MetaInterfaceDriver communicates with neutron-server using REST API.
If a user intend to use internalurl for neutron-server endpoint, MataInterfaceDriver fails.
This is because MetaInterfaceDriver does not specify endpoint_type. Thus it assumes using publicurl.
---
class MetaInterfaceDriver(LinuxInterfaceDriver):
    def __init__(self, conf):
        super(MetaInterfaceDriver, self).__init__(conf)
        from neutronclient.v2_0 import client
        self.neutron = client.Client(
            username=self.conf.admin_user,
            password=self.conf.admin_password,
            tenant_name=self.conf.admin_tenant_name,
            auth_url=self.conf.auth_url,
            auth_strategy=self.conf.auth_strategy,
            region_name=self.conf.auth_region
        )
---

Note that MetaInterfaceDriver is used with Metaplugin only.

Tags: metaplugin
Itsuro Oda (oda-g)
tags: added: metaplugin
Changed in neutron:
assignee: nobody → Itsuro Oda (oda-g)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

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

Changed in neutron:
status: New → In Progress
Revision history for this message
Itsuro Oda (oda-g) wrote :

Please set the target to Juno-rc1.

Nachi Ueno (nati-ueno)
Changed in neutron:
milestone: none → juno-rc1
Kyle Mestery (mestery)
Changed in neutron:
importance: Undecided → Medium
milestone: juno-rc1 → kilo-1
Revision history for this message
Kyle Mestery (mestery) wrote :

Per my own confusion, moving back to Juno-RC1.

Changed in neutron:
milestone: kilo-1 → juno-rc1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/113411
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=6c1eec67d2e7def7561bde906df9a50006a86b10
Submitter: Jenkins
Branch: master

commit 6c1eec67d2e7def7561bde906df9a50006a86b10
Author: Itsuro Oda <email address hidden>
Date: Tue Aug 12 09:10:25 2014 +0900

    Add endpoint_type parameter to MetaInterfaceDriver

    Previously MetaInterfaceDriver communicates with neutron-server
    via 'publicURL' because it uses python-neutronclient without
    endpoint_type and 'publicURL' is the default.
    It causes error when a user intends to use internal or admin URL
    for communication between MetaInterfaceDriver and neutron-server.

    Change-Id: Id321d5a16a08a4bda618f98bb1eb7cb1b0b9eb08
    Closes-bug: #1354285

Changed in neutron:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in neutron:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in neutron:
milestone: juno-rc1 → 2014.2
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.