From df4d7ec5759273261e50a68b47e5dae65be5feae Mon Sep 17 00:00:00 2001 From: Andy McCrae Date: Fri, 23 Sep 2016 12:27:40 +0100 Subject: [PATCH] Simplify networking for MR swift We're already testing dedicated replication networks in the base swift build, lets reduce build time and simplify the networking for the Multi Region swift build. Additionally, the infra host needs to be able to route back to the other hosts in the Multi-Region solution, as it is now the single Infra Host. Change-Id: If6fd211cd95c4f068293cceda1768b8dba08ab97 --- tests/host_vars/infraMR.yml | 3 +++ tests/host_vars/swift-storageA1.yml | 11 +---------- tests/host_vars/swift-storageA2.yml | 11 +---------- tests/host_vars/swift-storageB1.yml | 11 +---------- tests/host_vars/swift-storageB2.yml | 12 +----------- tests/swift-overrides-MR-A.yml | 5 +---- tests/swift-overrides-MR-B.yml | 1 + 7 files changed, 9 insertions(+), 45 deletions(-) diff --git a/tests/host_vars/infraMR.yml b/tests/host_vars/infraMR.yml index 0b179518..f774f47b 100644 --- a/tests/host_vars/infraMR.yml +++ b/tests/host_vars/infraMR.yml @@ -21,3 +21,6 @@ container_networks: interface: "eth1" netmask: "255.255.255.0" type: "veth" + static_routes: + - cidr: "10.1.11.0/24" + gateway: "10.1.1.1" diff --git a/tests/host_vars/swift-storageA1.yml b/tests/host_vars/swift-storageA1.yml index bad476aa..31c7024e 100644 --- a/tests/host_vars/swift-storageA1.yml +++ b/tests/host_vars/swift-storageA1.yml @@ -15,7 +15,7 @@ ansible_host: 10.1.1.103 storage_address: 10.1.2.103 -replication_address: 10.1.3.103 +replication_address: 10.1.2.103 container_networks: management_address: address: "{{ ansible_host }}" @@ -35,12 +35,3 @@ container_networks: static_routes: - cidr: "10.1.12.0/24" gateway: "10.1.2.1" - replication_address: - address: "{{ replication_address }}" - bridge: "br-replA" - interface: "eth3" - netmask: "255.255.255.0" - type: "veth" - static_routes: - - cidr: "10.1.13.0/24" - gateway: "10.1.3.1" diff --git a/tests/host_vars/swift-storageA2.yml b/tests/host_vars/swift-storageA2.yml index b7eb5a8e..7f41f6d0 100644 --- a/tests/host_vars/swift-storageA2.yml +++ b/tests/host_vars/swift-storageA2.yml @@ -15,7 +15,7 @@ ansible_host: 10.1.1.104 storage_address: 10.1.2.104 -replication_address: 10.1.3.104 +replication_address: 10.1.2.104 container_networks: management_address: address: "{{ ansible_host }}" @@ -35,12 +35,3 @@ container_networks: static_routes: - cidr: "10.1.12.0/24" gateway: "10.1.2.1" - replication_address: - address: "{{ replication_address }}" - bridge: "br-replA" - interface: "eth3" - netmask: "255.255.255.0" - type: "veth" - static_routes: - - cidr: "10.1.13.0/24" - gateway: "10.1.3.1" diff --git a/tests/host_vars/swift-storageB1.yml b/tests/host_vars/swift-storageB1.yml index b725d5ab..a3755e92 100644 --- a/tests/host_vars/swift-storageB1.yml +++ b/tests/host_vars/swift-storageB1.yml @@ -15,7 +15,7 @@ ansible_host: 10.1.11.103 storage_address: 10.1.12.103 -replication_address: 10.1.13.103 +replication_address: 10.1.12.103 container_networks: management_address: address: "{{ ansible_host }}" @@ -35,12 +35,3 @@ container_networks: static_routes: - cidr: "10.1.2.0/24" gateway: "10.1.12.1" - replication_address: - address: "{{ replication_address }}" - bridge: "br-replB" - interface: "eth3" - netmask: "255.255.255.0" - type: "veth" - static_routes: - - cidr: "10.1.3.0/24" - gateway: "10.1.13.1" diff --git a/tests/host_vars/swift-storageB2.yml b/tests/host_vars/swift-storageB2.yml index e235db67..b372ff71 100644 --- a/tests/host_vars/swift-storageB2.yml +++ b/tests/host_vars/swift-storageB2.yml @@ -15,7 +15,7 @@ ansible_host: 10.1.11.104 storage_address: 10.1.12.104 -replication_address: 10.1.13.104 +replication_address: 10.1.12.104 container_networks: management_address: address: "{{ ansible_host }}" @@ -35,13 +35,3 @@ container_networks: static_routes: - cidr: "10.1.2.0/24" gateway: "10.1.12.1" - replication_address: - address: "{{ replication_address }}" - bridge: "br-replB" - interface: "eth3" - netmask: "255.255.255.0" - type: "veth" - static_routes: - - cidr: "10.1.3.0/24" - gateway: "10.1.13.1" - diff --git a/tests/swift-overrides-MR-A.yml b/tests/swift-overrides-MR-A.yml index 39e112bd..158d9781 100644 --- a/tests/swift-overrides-MR-A.yml +++ b/tests/swift-overrides-MR-A.yml @@ -19,13 +19,10 @@ bridges: ip_addr: "10.1.1.1" - name: "br-storageA" ip_addr: "10.1.2.1" - - name: "br-replA" - ip_addr: "10.1.3.1" - name: "br-mgmtB" ip_addr: "10.1.11.1" - name: "br-storageB" ip_addr: "10.1.12.1" - - name: "br-replB" - ip_addr: "10.1.13.1" test_swift_region: 1 +test_swift_repl_network: "eth2" diff --git a/tests/swift-overrides-MR-B.yml b/tests/swift-overrides-MR-B.yml index 8fd9a2b3..cce5447a 100644 --- a/tests/swift-overrides-MR-B.yml +++ b/tests/swift-overrides-MR-B.yml @@ -14,3 +14,4 @@ # limitations under the License. test_swift_region: 2 +test_swift_repl_network: "eth2"