mirror of https://github.com/ceph/ceph-ansible.git
tests: make all subnet uniq per scenario
If two environments are using the same subnet, we will get trouble because of ips addresses conflicts. This commit ensures each scenario has a uniq subnet for both public and cluster network so we can setup several test environment at a time on a same hypervisor. Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>pull/1957/head
parent
8f75eac6f4
commit
6aa7050acd
|
@ -5,8 +5,8 @@ ceph_repository: community
|
||||||
cluster: test
|
cluster: test
|
||||||
monitor_interface: eth1
|
monitor_interface: eth1
|
||||||
radosgw_interface: eth1
|
radosgw_interface: eth1
|
||||||
public_network: "192.168.1.0/24"
|
public_network: "192.168.35.0/24"
|
||||||
cluster_network: "192.168.2.0/24"
|
cluster_network: "192.168.36.0/24"
|
||||||
journal_size: 100
|
journal_size: 100
|
||||||
osd_objectstore: "bluestore"
|
osd_objectstore: "bluestore"
|
||||||
devices:
|
devices:
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
[mons]
|
[mons]
|
||||||
mon0 monitor_address=192.168.1.10
|
mon0 monitor_address=192.168.35.10
|
||||||
mon1 monitor_interface=eth1
|
mon1 monitor_interface=eth1
|
||||||
mon2 monitor_address=192.168.1.12
|
mon2 monitor_address=192.168.35.12
|
||||||
|
|
||||||
[mgrs]
|
[mgrs]
|
||||||
mon0
|
mon0
|
||||||
|
|
|
@ -22,8 +22,8 @@ restapi: true
|
||||||
ceph_install_source: stable
|
ceph_install_source: stable
|
||||||
|
|
||||||
# SUBNETS TO USE FOR THE VMS
|
# SUBNETS TO USE FOR THE VMS
|
||||||
public_subnet: 192.168.1
|
public_subnet: 192.168.35
|
||||||
cluster_subnet: 192.168.2
|
cluster_subnet: 192.168.36
|
||||||
|
|
||||||
# MEMORY
|
# MEMORY
|
||||||
# set 1024 for CentOS
|
# set 1024 for CentOS
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
ceph_origin: repository
|
ceph_origin: repository
|
||||||
ceph_repository: community
|
ceph_repository: community
|
||||||
public_network: "192.168.11.0/24"
|
public_network: "192.168.21.0/24"
|
||||||
cluster_network: "192.168.12.0/24"
|
cluster_network: "192.168.22.0/24"
|
||||||
journal_size: 100
|
journal_size: 100
|
||||||
monitor_interface: eth1
|
monitor_interface: eth1
|
||||||
radosgw_interface: eth1
|
radosgw_interface: eth1
|
||||||
|
|
|
@ -22,8 +22,8 @@ restapi: true
|
||||||
ceph_install_source: stable
|
ceph_install_source: stable
|
||||||
|
|
||||||
# SUBNETS TO USE FOR THE VMS
|
# SUBNETS TO USE FOR THE VMS
|
||||||
public_subnet: 192.168.11
|
public_subnet: 192.168.21
|
||||||
cluster_subnet: 192.168.12
|
cluster_subnet: 192.168.22
|
||||||
|
|
||||||
# MEMORY
|
# MEMORY
|
||||||
# set 1024 for CentOS
|
# set 1024 for CentOS
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
ceph_origin: repository
|
ceph_origin: repository
|
||||||
ceph_repository: community
|
ceph_repository: community
|
||||||
public_network: "192.168.13.0/24"
|
public_network: "192.168.25.0/24"
|
||||||
cluster_network: "192.168.14.0/24"
|
cluster_network: "192.168.26.0/24"
|
||||||
journal_size: 100
|
journal_size: 100
|
||||||
monitor_interface: eth1
|
monitor_interface: eth1
|
||||||
radosgw_interface: eth1
|
radosgw_interface: eth1
|
||||||
|
|
|
@ -22,8 +22,8 @@ restapi: true
|
||||||
ceph_install_source: stable
|
ceph_install_source: stable
|
||||||
|
|
||||||
# SUBNETS TO USE FOR THE VMS
|
# SUBNETS TO USE FOR THE VMS
|
||||||
public_subnet: 192.168.13
|
public_subnet: 192.168.25
|
||||||
cluster_subnet: 192.168.14
|
cluster_subnet: 192.168.26
|
||||||
|
|
||||||
# MEMORY
|
# MEMORY
|
||||||
# set 1024 for CentOS
|
# set 1024 for CentOS
|
||||||
|
|
|
@ -10,8 +10,8 @@ radosgw_interface: eth1
|
||||||
ceph_mon_docker_subnet: "{{ public_network }}"
|
ceph_mon_docker_subnet: "{{ public_network }}"
|
||||||
journal_size: 100
|
journal_size: 100
|
||||||
ceph_docker_on_openstack: False
|
ceph_docker_on_openstack: False
|
||||||
public_network: "192.168.15.0/24"
|
public_network: "192.168.27.0/24"
|
||||||
cluster_network: "192.168.16.0/24"
|
cluster_network: "192.168.28.0/24"
|
||||||
osd_scenario: collocated
|
osd_scenario: collocated
|
||||||
osd_objectstore: filestore
|
osd_objectstore: filestore
|
||||||
dmcrypt: true
|
dmcrypt: true
|
||||||
|
|
|
@ -18,8 +18,8 @@ mgr_vms: 0
|
||||||
restapi: true
|
restapi: true
|
||||||
|
|
||||||
# SUBNETS TO USE FOR THE VMS
|
# SUBNETS TO USE FOR THE VMS
|
||||||
public_subnet: 192.168.15
|
public_subnet: 192.168.27
|
||||||
cluster_subnet: 192.168.16
|
cluster_subnet: 192.168.28
|
||||||
|
|
||||||
# MEMORY
|
# MEMORY
|
||||||
# set 1024 for CentOS
|
# set 1024 for CentOS
|
||||||
|
|
|
@ -10,8 +10,8 @@ radosgw_interface: eth1
|
||||||
ceph_mon_docker_subnet: "{{ public_network }}"
|
ceph_mon_docker_subnet: "{{ public_network }}"
|
||||||
journal_size: 100
|
journal_size: 100
|
||||||
ceph_docker_on_openstack: False
|
ceph_docker_on_openstack: False
|
||||||
public_network: "192.168.15.0/24"
|
public_network: "192.168.29.0/24"
|
||||||
cluster_network: "192.168.16.0/24"
|
cluster_network: "192.168.30.0/24"
|
||||||
ceph_rgw_civetweb_port: 8080
|
ceph_rgw_civetweb_port: 8080
|
||||||
osd_objectstore: filestore
|
osd_objectstore: filestore
|
||||||
osd_scenario: non-collocated
|
osd_scenario: non-collocated
|
||||||
|
|
|
@ -18,8 +18,8 @@ mgr_vms: 0
|
||||||
restapi: true
|
restapi: true
|
||||||
|
|
||||||
# SUBNETS TO USE FOR THE VMS
|
# SUBNETS TO USE FOR THE VMS
|
||||||
public_subnet: 192.168.15
|
public_subnet: 192.168.29
|
||||||
cluster_subnet: 192.168.16
|
cluster_subnet: 192.168.30
|
||||||
|
|
||||||
# MEMORY
|
# MEMORY
|
||||||
# set 1024 for CentOS
|
# set 1024 for CentOS
|
||||||
|
|
|
@ -10,8 +10,8 @@ radosgw_interface: eth1
|
||||||
ceph_mon_docker_subnet: "{{ public_network }}"
|
ceph_mon_docker_subnet: "{{ public_network }}"
|
||||||
journal_size: 100
|
journal_size: 100
|
||||||
ceph_docker_on_openstack: False
|
ceph_docker_on_openstack: False
|
||||||
public_network: "192.168.15.0/24"
|
public_network: "192.168.17.0/24"
|
||||||
cluster_network: "192.168.16.0/24"
|
cluster_network: "192.168.18.0/24"
|
||||||
osd_scenario: collocated
|
osd_scenario: collocated
|
||||||
ceph_rgw_civetweb_port: 8080
|
ceph_rgw_civetweb_port: 8080
|
||||||
osd_objectstore: filestore
|
osd_objectstore: filestore
|
||||||
|
|
|
@ -18,8 +18,8 @@ mgr_vms: 1
|
||||||
restapi: true
|
restapi: true
|
||||||
|
|
||||||
# SUBNETS TO USE FOR THE VMS
|
# SUBNETS TO USE FOR THE VMS
|
||||||
public_subnet: 192.168.15
|
public_subnet: 192.168.17
|
||||||
cluster_subnet: 192.168.16
|
cluster_subnet: 192.168.18
|
||||||
|
|
||||||
# MEMORY
|
# MEMORY
|
||||||
# set 1024 for CentOS
|
# set 1024 for CentOS
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
ceph_origin: repository
|
ceph_origin: repository
|
||||||
ceph_repository: community
|
ceph_repository: community
|
||||||
cluster: test
|
cluster: test
|
||||||
public_network: "192.168.3.0/24"
|
public_network: "192.168.37.0/24"
|
||||||
cluster_network: "192.168.4.0/24"
|
cluster_network: "192.168.38.0/24"
|
||||||
monitor_interface: eth1
|
monitor_interface: eth1
|
||||||
radosgw_interface: eth1
|
radosgw_interface: eth1
|
||||||
journal_size: 100
|
journal_size: 100
|
||||||
|
|
|
@ -22,8 +22,8 @@ restapi: true
|
||||||
ceph_install_source: stable
|
ceph_install_source: stable
|
||||||
|
|
||||||
# SUBNETS TO USE FOR THE VMS
|
# SUBNETS TO USE FOR THE VMS
|
||||||
public_subnet: 192.168.3
|
public_subnet: 192.168.37
|
||||||
cluster_subnet: 192.168.4
|
cluster_subnet: 192.168.38
|
||||||
|
|
||||||
# MEMORY
|
# MEMORY
|
||||||
# set 1024 for CentOS
|
# set 1024 for CentOS
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
ceph_origin: repository
|
ceph_origin: repository
|
||||||
ceph_repository: community
|
ceph_repository: community
|
||||||
cluster: test
|
cluster: test
|
||||||
public_network: "192.168.3.0/24"
|
public_network: "192.168.33.0/24"
|
||||||
cluster_network: "192.168.4.0/24"
|
cluster_network: "192.168.34.0/24"
|
||||||
monitor_interface: eth1
|
monitor_interface: eth1
|
||||||
radosgw_interface: eth1
|
radosgw_interface: eth1
|
||||||
journal_size: 100
|
journal_size: 100
|
||||||
|
|
|
@ -22,8 +22,8 @@ restapi: true
|
||||||
ceph_install_source: stable
|
ceph_install_source: stable
|
||||||
|
|
||||||
# SUBNETS TO USE FOR THE VMS
|
# SUBNETS TO USE FOR THE VMS
|
||||||
public_subnet: 192.168.3
|
public_subnet: 192.168.33
|
||||||
cluster_subnet: 192.168.4
|
cluster_subnet: 192.168.34
|
||||||
|
|
||||||
# MEMORY
|
# MEMORY
|
||||||
# set 1024 for CentOS
|
# set 1024 for CentOS
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
ceph_origin: repository
|
ceph_origin: repository
|
||||||
ceph_repository: community
|
ceph_repository: community
|
||||||
cluster: test
|
cluster: test
|
||||||
public_network: "192.168.3.0/24"
|
public_network: "192.168.31.0/24"
|
||||||
cluster_network: "192.168.4.0/24"
|
cluster_network: "192.168.32.0/24"
|
||||||
monitor_interface: eth1
|
monitor_interface: eth1
|
||||||
radosgw_interface: eth1
|
radosgw_interface: eth1
|
||||||
journal_size: 100
|
journal_size: 100
|
||||||
|
|
|
@ -22,8 +22,8 @@ restapi: true
|
||||||
ceph_install_source: stable
|
ceph_install_source: stable
|
||||||
|
|
||||||
# SUBNETS TO USE FOR THE VMS
|
# SUBNETS TO USE FOR THE VMS
|
||||||
public_subnet: 192.168.3
|
public_subnet: 192.168.31
|
||||||
cluster_subnet: 192.168.4
|
cluster_subnet: 192.168.32
|
||||||
|
|
||||||
# MEMORY
|
# MEMORY
|
||||||
# set 1024 for CentOS
|
# set 1024 for CentOS
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
ceph_origin: repository
|
ceph_origin: repository
|
||||||
ceph_repository: community
|
ceph_repository: community
|
||||||
cluster: ceph
|
cluster: ceph
|
||||||
public_network: "192.168.3.0/24"
|
public_network: "192.168.39.0/24"
|
||||||
cluster_network: "192.168.4.0/24"
|
cluster_network: "192.168.40.0/24"
|
||||||
monitor_interface: eth1
|
monitor_interface: eth1
|
||||||
radosgw_interface: eth1
|
radosgw_interface: eth1
|
||||||
journal_size: 100
|
journal_size: 100
|
||||||
|
|
|
@ -22,8 +22,8 @@ restapi: true
|
||||||
ceph_install_source: stable
|
ceph_install_source: stable
|
||||||
|
|
||||||
# SUBNETS TO USE FOR THE VMS
|
# SUBNETS TO USE FOR THE VMS
|
||||||
public_subnet: 192.168.3
|
public_subnet: 192.168.39
|
||||||
cluster_subnet: 192.168.4
|
cluster_subnet: 192.168.40
|
||||||
|
|
||||||
# MEMORY
|
# MEMORY
|
||||||
# set 1024 for CentOS
|
# set 1024 for CentOS
|
||||||
|
|
Loading…
Reference in New Issue