Simplify external networking for os 69/63269/2
authorManuel Buil <mbuil@suse.com>
Mon, 8 Oct 2018 09:51:34 +0000 (11:51 +0200)
committerManuel Buil <mbuil@suse.com>
Fri, 12 Oct 2018 20:36:08 +0000 (22:36 +0200)
We were right now creating an overlay network with gateway in the opnfv
vm. This makes floating ips work but if we need internet connection from
vms, things get complicated and messy.

As we are only using up to 7 ips from the 192.168.122.0/24, we can
consider it the provider network for openstack and use ips starting from
192.168.122.100 as floating ips or ips for routing (doing SNAT as
always)

Change-Id: I09af663069ae95a9d265d98f1531778eb37134e2
Signed-off-by: Manuel Buil <mbuil@suse.com>
xci/playbooks/roles/prepare-tests/defaults/main.yml
xci/playbooks/roles/prepare-tests/tasks/main.yml

index a363830..7002586 100644 (file)
@@ -1,8 +1,8 @@
 ---
 # Gateway parameters
-gateway_ip: "10.10.10.1"
-gateway_ip_mask: "10.10.10.1/24"
-broadcast_ip: "10.10.10.255"
+gateway_ip: "192.168.122.1"
+gateway_ip_mask: "192.168.122.1/24"
+broadcast_ip: "192.168.122.255"
 gateway_interface: "br-vlan"
 
 # Network parameters
@@ -10,5 +10,5 @@ external_network: "ext-net"
 
 # Subnet parameters
 subnet_name: "ext-subnet"
-allocation_pool: "start=10.10.10.5,end=10.10.10.254"
-subnet_cidr: "10.10.10.0/24"
+allocation_pool: "start=192.168.122.100,end=192.168.122.254"
+subnet_cidr: "192.168.122.0/24"
index 1512bba..45a23a3 100644 (file)
    state: present
    extra_args: '-c https://raw.githubusercontent.com/openstack/requirements/{{ requirements_git_install_branch }}/upper-constraints.txt'
 
-- name: create public network gateway for testing
-  block:
-    - name: check if the gateway was already set
-      shell: "ip a | grep {{ gateway_ip }}"
-      register: gateway_ip_result
-      ignore_errors: True
-      changed_when: False
-
-    - name: add public network gateway
-      command: "ip addr add {{ gateway_ip_mask }} brd {{ broadcast_ip }} dev {{ gateway_interface }}"
-      changed_when: False
-      when: gateway_ip_result|failed
-  when: deploy_scenario is match("os-.*")
-
 - name: prepare environment file for tests
   template:
     src: env.j2