Incorrect NIC used for hostmanager IP resolver

Bug #1563367 reported by Andrei-Lucian Șerb
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-mesos
Fix Released
Undecided
Andrei-Lucian Șerb

Bug Description

In the Vagrantfile, when using VirtualBox, the IP used for the hostmanager plugin is retrieved from the wrong network adapter:
VBoxManage guestproperty get #{vm.id} "/VirtualBox/GuestInfo/Net/2/V4/IP".
This causes the hostmanager to insert the wrong IP address in /etc/hosts. The NIC numbering starts from 0, and the one used in the code is 2. That corresponds to the 3rd NIC, which is actually used as the interface to the Neutron external network. It should be set to 1, which represents the internal network used by OpenStack.

Changed in kolla-mesos:
assignee: nobody → Andrei-Lucian Șerb (lucian-serb)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-mesos (master)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-mesos (master)

Reviewed: https://review.openstack.org/298805
Committed: https://git.openstack.org/cgit/openstack/kolla-mesos/commit/?id=2e0e8856a04bce253f66de9ed5a970a05391e3fb
Submitter: Jenkins
Branch: master

commit 2e0e8856a04bce253f66de9ed5a970a05391e3fb
Author: Andrei-Lucian Șerb <email address hidden>
Date: Tue Mar 29 17:54:52 2016 +0300

    Set correct NIC number for hostmanager IP resolver

    In the Vagrantfile, when using VirtualBox, the IP used for the
    hostmanager plugin is retrieved from the wrong network adapter. This
    causes the hostmanager to insert the wrong IP address in /etc/hosts. The
    NIC numbering starts from 0, and the one used in the code is 2. That
    corresponds to the 3rd NIC, which is actually used as the interface to
    the Neutron external network. This commit sets the NIC number to 1,
    which represents the internal network used by OpenStack.

    Change-Id: I87f2b081c57c8eb3109e8d98b75ee438dd0d4b82
    Closes-Bug: #1563367
    Signed-off-by: Andrei-Lucian Șerb <email address hidden>

Changed in kolla-mesos:
status: In Progress → Fix Released
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.