Add separate NICs to access OpenStack virtual machines
Dedicated network interface is recommended for accessing OpenStack guest
instances [1]. With current Vagrant-based environment "eth2" interface
is expected to be assigned as additional NIC (with "eth0" for Vagrant
host network and "eth1" for Ansible management network).
[1] https://docs.openstack.org/devstack/latest/networking.html
Issue-ID: INT-1601
Change-Id: I3798f94db476eef77d02e6f8f7e078fc4b4e7622
Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
diff --git a/deployment/noheat/infra-openstack/vagrant/Vagrantfile b/deployment/noheat/infra-openstack/vagrant/Vagrantfile
index c3b5d98..618a71b 100644
--- a/deployment/noheat/infra-openstack/vagrant/Vagrantfile
+++ b/deployment/noheat/infra-openstack/vagrant/Vagrantfile
@@ -20,6 +20,7 @@
name: 'operator',
hostname: 'operator',
ip: '172.17.5.254',
+ ip_os: '172.24.4.254',
cpus: vm_cpu,
memory: vm_memory,
disk: vm_disk
@@ -28,6 +29,7 @@
name: 'devstack',
hostname: 'devstack',
ip: '172.17.5.200',
+ ip_os: '172.24.4.2',
cpus: vm_cpus,
memory: vm_memory_os,
disk: vm_disk
@@ -94,6 +96,7 @@
end
config.vm.network :private_network, ip: machine[:ip]
+ config.vm.network :private_network, ip: machine[:ip_os]
if machine[:name] == 'devstack'
config.vm.network "forwarded_port", guest: 80, host: 8080
diff --git a/deployment/noheat/infra-openstack/vagrant/config/local.conf b/deployment/noheat/infra-openstack/vagrant/config/local.conf
index f891286..c301d85 100644
--- a/deployment/noheat/infra-openstack/vagrant/config/local.conf
+++ b/deployment/noheat/infra-openstack/vagrant/config/local.conf
@@ -1,4 +1,5 @@
[[local|localrc]]
+PUBLIC_INTERFACE=eth2
ADMIN_PASSWORD=default123456!
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD