k8s: Resolve address conflicts in virtual environments 16/96416/1
authorPawel Wieczorek <p.wieczorek2@samsung.com>
Mon, 30 Sep 2019 12:23:30 +0000 (14:23 +0200)
committerPawel Wieczorek <p.wieczorek2@samsung.com>
Mon, 30 Sep 2019 13:31:13 +0000 (15:31 +0200)
Running Casablanca and Dublin virtual environments at the same time led
to networking issues - the same IP had been assigned to cluster nodes.

Issue-ID: SECCOM-235
Change-Id: I2a59d023115326f5b132782a32190fd8f7dc1f48
Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
test/security/k8s/vagrant/casablanca/Vagrantfile
test/security/k8s/vagrant/dublin/Vagrantfile
test/security/k8s/vagrant/dublin/cluster.yml

index 6d5ba4b..c7e6883 100644 (file)
@@ -10,8 +10,8 @@ vm_cpus = 1
 vm_box = "generic/ubuntu1604"
 
 cluster = [
-  { name: 'master', hostname: 'master', ip: '172.17.0.100' },
-  { name: 'worker', hostname: 'worker', ip: '172.17.0.101' }
+  { name: 'master', hostname: 'master', ip: '172.17.3.100' },
+  { name: 'worker', hostname: 'worker', ip: '172.17.3.101' }
 ]
 
 Vagrant.configure('2') do |config|
index b8abcd1..1ccc3ef 100644 (file)
@@ -15,10 +15,10 @@ vm_memory = 2 * 1024
 vm_cpus = 1
 vm_box = "generic/ubuntu1804"
 
-operation = { name: 'operator', hostname: 'operator', ip: '172.17.0.254' }
+operation = { name: 'operator', hostname: 'operator', ip: '172.17.4.254' }
 cluster = [
-  { name: 'control', hostname: 'control', ip: '172.17.0.100' },
-  { name: 'worker', hostname: 'worker', ip: '172.17.0.101' }
+  { name: 'control', hostname: 'control', ip: '172.17.4.100' },
+  { name: 'worker', hostname: 'worker', ip: '172.17.4.101' }
 ]
 
 all = cluster.dup << operation
index f062222..df93a88 100644 (file)
@@ -1,7 +1,7 @@
 # An example of a Kubernetes cluster for ONAP
 ssh_key_path: &ssh_key_path "~/.ssh/onap-key"
 nodes:
-- address: 172.17.0.100
+- address: 172.17.4.100
   port: "22"
   role:
   - controlplane
@@ -9,7 +9,7 @@ nodes:
   hostname_override: "onap-control-1"
   user: vagrant
   ssh_key_path: *ssh_key_path
-- address: 172.17.0.101
+- address: 172.17.4.101
   port: "22"
   role:
   - worker