From fec769788199c2182b8f65f1040960d781dc5610 Mon Sep 17 00:00:00 2001
From: Pawel Wieczorek
Date: Tue, 23 Jun 2020 16:44:05 +0200
Subject: 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
---
deployment/noheat/infra-openstack/vagrant/Vagrantfile | 3 +++
deployment/noheat/infra-openstack/vagrant/config/local.conf | 1 +
2 files changed, 4 insertions(+)
(limited to 'deployment/noheat/infra-openstack')
diff --git a/deployment/noheat/infra-openstack/vagrant/Vagrantfile b/deployment/noheat/infra-openstack/vagrant/Vagrantfile
index c3b5d9819..618a71b49 100644
--- a/deployment/noheat/infra-openstack/vagrant/Vagrantfile
+++ b/deployment/noheat/infra-openstack/vagrant/Vagrantfile
@@ -20,6 +20,7 @@ operation = {
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 @@ devstack = {
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 @@ Vagrant.configure("2") do |config|
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 f8912868a..c301d853c 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
--
cgit 1.2.3-korg