Add separate NICs to access OpenStack virtual machines 85/109685/4
authorPawel Wieczorek <p.wieczorek2@samsung.com>
Tue, 23 Jun 2020 14:44:05 +0000 (16:44 +0200)
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>
Thu, 30 Jul 2020 09:03:35 +0000 (09:03 +0000)
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>
deployment/noheat/infra-openstack/vagrant/Vagrantfile
deployment/noheat/infra-openstack/vagrant/config/local.conf

index c3b5d98..618a71b 100644 (file)
@@ -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
index f891286..c301d85 100644 (file)
@@ -1,4 +1,5 @@
 [[local|localrc]]
+PUBLIC_INTERFACE=eth2
 ADMIN_PASSWORD=default123456!
 DATABASE_PASSWORD=$ADMIN_PASSWORD
 RABBIT_PASSWORD=$ADMIN_PASSWORD