From 2e0e8856a04bce253f66de9ed5a970a05391e3fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrei-Lucian=20=C8=98erb?= Date: Tue, 29 Mar 2016 17:54:52 +0300 Subject: [PATCH] Set correct NIC number for hostmanager IP resolver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- vagrant/Vagrantfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vagrant/Vagrantfile b/vagrant/Vagrantfile index 2b0b36c6..d479df64 100644 --- a/vagrant/Vagrantfile +++ b/vagrant/Vagrantfile @@ -160,7 +160,7 @@ Vagrant.configure(2) do |config| end when "virtualbox" if vm.id - `VBoxManage guestproperty get #{vm.id} "/VirtualBox/GuestInfo/Net/2/V4/IP"`.split()[1] + `VBoxManage guestproperty get #{vm.id} "/VirtualBox/GuestInfo/Net/1/V4/IP"`.split()[1] end end end