From: Guillaume Abrioux Date: Wed, 24 Oct 2018 20:27:28 +0000 (+0200) Subject: rgw: add testing scenario for rgw multisite X-Git-Tag: v3.2.0rc1~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4d464c1003f6e3e180b4e0506e7e947364c61405;p=ceph-ansible.git rgw: add testing scenario for rgw multisite This will setup 2 cluster with rgw multisite enabled. First cluster will act as the 'master', the 2nd will be the secondary one. Signed-off-by: Guillaume Abrioux --- diff --git a/tests/functional/centos/7/rgw-multisite-container/Vagrantfile b/tests/functional/centos/7/rgw-multisite-container/Vagrantfile new file mode 120000 index 000000000..dfd7436c9 --- /dev/null +++ b/tests/functional/centos/7/rgw-multisite-container/Vagrantfile @@ -0,0 +1 @@ +../../../../../Vagrantfile \ No newline at end of file diff --git a/tests/functional/centos/7/rgw-multisite-container/ceph-override.json b/tests/functional/centos/7/rgw-multisite-container/ceph-override.json new file mode 120000 index 000000000..775cb006a --- /dev/null +++ b/tests/functional/centos/7/rgw-multisite-container/ceph-override.json @@ -0,0 +1 @@ +../cluster/ceph-override.json \ No newline at end of file diff --git a/tests/functional/centos/7/rgw-multisite-container/group_vars/all b/tests/functional/centos/7/rgw-multisite-container/group_vars/all new file mode 100644 index 000000000..f5dedffd6 --- /dev/null +++ b/tests/functional/centos/7/rgw-multisite-container/group_vars/all @@ -0,0 +1,24 @@ +--- +docker: True +containerized_deployment: true +ceph_origin: repository +ceph_repository: community +cluster: ceph +public_network: "192.168.105.0/24" +cluster_network: "192.168.106.0/24" +monitor_interface: eth1 +radosgw_interface: eth1 +journal_size: 100 +osd_objectstore: "bluestore" +osd_scenario: lvm +copy_admin_key: true +# test-volume is created by tests/functional/lvm_setup.yml from /dev/sdb +lvm_volumes: + - data: /dev/sda + - data: /dev/sdb +os_tuning_params: + - { name: fs.file-max, value: 26234859 } +ceph_conf_overrides: + global: + osd_pool_default_size: 1 +ceph_osd_docker_run_script_path: /var/tmp diff --git a/tests/functional/centos/7/rgw-multisite-container/group_vars/rgws b/tests/functional/centos/7/rgw-multisite-container/group_vars/rgws new file mode 100644 index 000000000..6ecc36f69 --- /dev/null +++ b/tests/functional/centos/7/rgw-multisite-container/group_vars/rgws @@ -0,0 +1,19 @@ +--- +copy_admin_key: true +# Enable Multisite support +rgw_multisite: true +rgw_zone: jupiter +rgw_zonemaster: true +rgw_zonesecondary: false +rgw_zonegroup: solarsystem +rgw_zone_user: zone.user +rgw_realm: milkyway +system_access_key: 6kWkikvapSnHyE22P7nO +system_secret_key: MGecsMrWtKZgngOHZdrd6d3JxGO5CPWgT2lcnpSt +rgw_create_pools: + foo: + pg_num: 17 + bar: + pg_num: 19 +rgw_override_bucket_index_max_shards: 16 +rgw_bucket_default_quota_max_objects: 1638400 \ No newline at end of file diff --git a/tests/functional/centos/7/rgw-multisite-container/hosts b/tests/functional/centos/7/rgw-multisite-container/hosts new file mode 100644 index 000000000..24e7374a5 --- /dev/null +++ b/tests/functional/centos/7/rgw-multisite-container/hosts @@ -0,0 +1,11 @@ +[mons] +mon0 + +[mgrs] +mon0 + +[osds] +osd0 + +[rgws] +osd0 rgw_multisite_endpoint_addr=192.168.105.100 diff --git a/tests/functional/centos/7/rgw-multisite-container/secondary/Vagrantfile b/tests/functional/centos/7/rgw-multisite-container/secondary/Vagrantfile new file mode 120000 index 000000000..9797e1cb7 --- /dev/null +++ b/tests/functional/centos/7/rgw-multisite-container/secondary/Vagrantfile @@ -0,0 +1 @@ +../../../../../../Vagrantfile \ No newline at end of file diff --git a/tests/functional/centos/7/rgw-multisite-container/secondary/group_vars/all b/tests/functional/centos/7/rgw-multisite-container/secondary/group_vars/all new file mode 100644 index 000000000..e8a2fa5d6 --- /dev/null +++ b/tests/functional/centos/7/rgw-multisite-container/secondary/group_vars/all @@ -0,0 +1,24 @@ +--- +docker: True +containerized_deployment: true +ceph_origin: repository +ceph_repository: community +cluster: ceph +public_network: "192.168.107.0/24" +cluster_network: "192.168.108.0/24" +monitor_interface: eth1 +radosgw_interface: eth1 +journal_size: 100 +osd_objectstore: "bluestore" +osd_scenario: lvm +copy_admin_key: true +# test-volume is created by tests/functional/lvm_setup.yml from /dev/sdb +lvm_volumes: + - data: /dev/sda + - data: /dev/sdb +os_tuning_params: + - { name: fs.file-max, value: 26234859 } +ceph_conf_overrides: + global: + osd_pool_default_size: 1 +ceph_osd_docker_run_script_path: /var/tmp \ No newline at end of file diff --git a/tests/functional/centos/7/rgw-multisite-container/secondary/group_vars/rgws b/tests/functional/centos/7/rgw-multisite-container/secondary/group_vars/rgws new file mode 100644 index 000000000..60860e6a5 --- /dev/null +++ b/tests/functional/centos/7/rgw-multisite-container/secondary/group_vars/rgws @@ -0,0 +1,8 @@ +--- +rgw_create_pools: + foo: + pg_num: 17 + bar: + pg_num: 19 +rgw_override_bucket_index_max_shards: 16 +rgw_bucket_default_quota_max_objects: 1638400 \ No newline at end of file diff --git a/tests/functional/centos/7/rgw-multisite-container/secondary/hosts b/tests/functional/centos/7/rgw-multisite-container/secondary/hosts new file mode 100644 index 000000000..c5e55ff4c --- /dev/null +++ b/tests/functional/centos/7/rgw-multisite-container/secondary/hosts @@ -0,0 +1,11 @@ +[mons] +mon0 + +[mgrs] +mon0 + +[osds] +osd0 + +[rgws] +osd0 copy_admin_key=True rgw_multisite=True rgw_zone=mars rgw_zonemaster=False rgw_zonesecondary=True rgw_zonegroup=solarsystem rgw_zone_user=zone.user rgw_realm=milkyway rgw_multisite_endpoint_addr=192.168.107.100 system_access_key=6kWkikvapSnHyE22P7nO system_secret_key=MGecsMrWtKZgngOHZdrd6d3JxGO5CPWgT2lcnpSt rgw_pull_proto=http rgw_pull_port=8080 rgw_pullhost=192.168.105.100 diff --git a/tests/functional/centos/7/rgw-multisite-container/secondary/vagrant_variables.yml b/tests/functional/centos/7/rgw-multisite-container/secondary/vagrant_variables.yml new file mode 100644 index 000000000..3cc603eb1 --- /dev/null +++ b/tests/functional/centos/7/rgw-multisite-container/secondary/vagrant_variables.yml @@ -0,0 +1,73 @@ +--- + +# DEPLOY CONTAINERIZED DAEMONS +docker: true + +# DEFINE THE NUMBER OF VMS TO RUN +mon_vms: 1 +osd_vms: 1 +mds_vms: 0 +rgw_vms: 0 +nfs_vms: 0 +rbd_mirror_vms: 0 +client_vms: 0 +iscsi_gw_vms: 0 +mgr_vms: 0 + +# Deploy RESTAPI on each of the Monitors +restapi: true + +# INSTALL SOURCE OF CEPH +# valid values are 'stable' and 'dev' +ceph_install_source: stable + +# SUBNETS TO USE FOR THE VMS +public_subnet: 192.168.107 +cluster_subnet: 192.168.108 + +# MEMORY +# set 1024 for CentOS +memory: 512 + +# Ethernet interface name +# use eth1 for libvirt and ubuntu precise, enp0s8 for CentOS and ubuntu xenial +eth: 'eth1' + +# Disks +# For libvirt use disks: "[ '/dev/vdb', '/dev/vdc' ]" +# For CentOS7 use disks: "[ '/dev/sda', '/dev/sdb' ]" +disks: "[ '/dev/sdb', '/dev/sdc' ]" + +# VAGRANT BOX +# Ceph boxes are *strongly* suggested. They are under better control and will +# not get updated frequently unless required for build systems. These are (for +# now): +# +# * ceph/ubuntu-xenial +# +# Ubuntu: ceph/ubuntu-xenial bento/ubuntu-16.04 or ubuntu/trusty64 or ubuntu/wily64 +# CentOS: bento/centos-7.1 or puppetlabs/centos-7.0-64-puppet +# libvirt CentOS: centos/7 +# parallels Ubuntu: parallels/ubuntu-14.04 +# Debian: deb/jessie-amd64 - be careful the storage controller is named 'SATA Controller' +# For more boxes have a look at: +# - https://atlas.hashicorp.com/boxes/search?utf8=✓&sort=&provider=virtualbox&q= +# - https://download.gluster.org/pub/gluster/purpleidea/vagrant/ +vagrant_box: centos/atomic-host +#ssh_private_key_path: "~/.ssh/id_rsa" +# The sync directory changes based on vagrant box +# Set to /home/vagrant/sync for Centos/7, /home/{ user }/vagrant for openstack and defaults to /vagrant +#vagrant_sync_dir: /home/vagrant/sync +vagrant_sync_dir: /vagrant +# Disables synced folder creation. Not needed for testing, will skip mounting +# the vagrant directory on the remote box regardless of the provider. +vagrant_disable_synced_folder: true +# VAGRANT URL +# This is a URL to download an image from an alternate location. vagrant_box +# above should be set to the filename of the image. +# Fedora virtualbox: https://download.fedoraproject.org/pub/fedora/linux/releases/22/Cloud/x86_64/Images/Fedora-Cloud-Base-Vagrant-22-20150521.x86_64.vagrant-virtualbox.box +# Fedora libvirt: https://download.fedoraproject.org/pub/fedora/linux/releases/22/Cloud/x86_64/Images/Fedora-Cloud-Base-Vagrant-22-20150521.x86_64.vagrant-libvirt.box +# vagrant_box_url: https://download.fedoraproject.org/pub/fedora/linux/releases/22/Cloud/x86_64/Images/Fedora-Cloud-Base-Vagrant-22-20150521.x86_64.vagrant-virtualbox.box + +os_tuning_params: + - { name: fs.file-max, value: 26234859 } diff --git a/tests/functional/centos/7/rgw-multisite-container/vagrant_variables.yml b/tests/functional/centos/7/rgw-multisite-container/vagrant_variables.yml new file mode 100644 index 000000000..7cdd51acb --- /dev/null +++ b/tests/functional/centos/7/rgw-multisite-container/vagrant_variables.yml @@ -0,0 +1,73 @@ +--- + +# DEPLOY CONTAINERIZED DAEMONS +docker: true + +# DEFINE THE NUMBER OF VMS TO RUN +mon_vms: 1 +osd_vms: 1 +mds_vms: 0 +rgw_vms: 0 +nfs_vms: 0 +rbd_mirror_vms: 0 +client_vms: 0 +iscsi_gw_vms: 0 +mgr_vms: 0 + +# Deploy RESTAPI on each of the Monitors +restapi: true + +# INSTALL SOURCE OF CEPH +# valid values are 'stable' and 'dev' +ceph_install_source: stable + +# SUBNETS TO USE FOR THE VMS +public_subnet: 192.168.105 +cluster_subnet: 192.168.106 + +# MEMORY +# set 1024 for CentOS +memory: 512 + +# Ethernet interface name +# use eth1 for libvirt and ubuntu precise, enp0s8 for CentOS and ubuntu xenial +eth: 'eth1' + +# Disks +# For libvirt use disks: "[ '/dev/vdb', '/dev/vdc' ]" +# For CentOS7 use disks: "[ '/dev/sda', '/dev/sdb' ]" +disks: "[ '/dev/sdb', '/dev/sdc' ]" + +# VAGRANT BOX +# Ceph boxes are *strongly* suggested. They are under better control and will +# not get updated frequently unless required for build systems. These are (for +# now): +# +# * ceph/ubuntu-xenial +# +# Ubuntu: ceph/ubuntu-xenial bento/ubuntu-16.04 or ubuntu/trusty64 or ubuntu/wily64 +# CentOS: bento/centos-7.1 or puppetlabs/centos-7.0-64-puppet +# libvirt CentOS: centos/7 +# parallels Ubuntu: parallels/ubuntu-14.04 +# Debian: deb/jessie-amd64 - be careful the storage controller is named 'SATA Controller' +# For more boxes have a look at: +# - https://atlas.hashicorp.com/boxes/search?utf8=✓&sort=&provider=virtualbox&q= +# - https://download.gluster.org/pub/gluster/purpleidea/vagrant/ +vagrant_box: centos/atomic-host +#ssh_private_key_path: "~/.ssh/id_rsa" +# The sync directory changes based on vagrant box +# Set to /home/vagrant/sync for Centos/7, /home/{ user }/vagrant for openstack and defaults to /vagrant +#vagrant_sync_dir: /home/vagrant/sync +vagrant_sync_dir: /vagrant +# Disables synced folder creation. Not needed for testing, will skip mounting +# the vagrant directory on the remote box regardless of the provider. +vagrant_disable_synced_folder: true +# VAGRANT URL +# This is a URL to download an image from an alternate location. vagrant_box +# above should be set to the filename of the image. +# Fedora virtualbox: https://download.fedoraproject.org/pub/fedora/linux/releases/22/Cloud/x86_64/Images/Fedora-Cloud-Base-Vagrant-22-20150521.x86_64.vagrant-virtualbox.box +# Fedora libvirt: https://download.fedoraproject.org/pub/fedora/linux/releases/22/Cloud/x86_64/Images/Fedora-Cloud-Base-Vagrant-22-20150521.x86_64.vagrant-libvirt.box +# vagrant_box_url: https://download.fedoraproject.org/pub/fedora/linux/releases/22/Cloud/x86_64/Images/Fedora-Cloud-Base-Vagrant-22-20150521.x86_64.vagrant-virtualbox.box + +os_tuning_params: + - { name: fs.file-max, value: 26234859 } diff --git a/tests/functional/centos/7/rgw-multisite/Vagrantfile b/tests/functional/centos/7/rgw-multisite/Vagrantfile new file mode 120000 index 000000000..dfd7436c9 --- /dev/null +++ b/tests/functional/centos/7/rgw-multisite/Vagrantfile @@ -0,0 +1 @@ +../../../../../Vagrantfile \ No newline at end of file diff --git a/tests/functional/centos/7/rgw-multisite/ceph-override.json b/tests/functional/centos/7/rgw-multisite/ceph-override.json new file mode 120000 index 000000000..775cb006a --- /dev/null +++ b/tests/functional/centos/7/rgw-multisite/ceph-override.json @@ -0,0 +1 @@ +../cluster/ceph-override.json \ No newline at end of file diff --git a/tests/functional/centos/7/rgw-multisite/group_vars/all b/tests/functional/centos/7/rgw-multisite/group_vars/all new file mode 100644 index 000000000..607799897 --- /dev/null +++ b/tests/functional/centos/7/rgw-multisite/group_vars/all @@ -0,0 +1,21 @@ +--- +ceph_origin: repository +ceph_repository: community +cluster: ceph +public_network: "192.168.101.0/24" +cluster_network: "192.168.102.0/24" +monitor_interface: eth1 +radosgw_interface: eth1 +journal_size: 100 +osd_objectstore: "bluestore" +osd_scenario: lvm +copy_admin_key: true +# test-volume is created by tests/functional/lvm_setup.yml from /dev/sdb +lvm_volumes: + - data: /dev/sda + - data: /dev/sdb +os_tuning_params: + - { name: fs.file-max, value: 26234859 } +ceph_conf_overrides: + global: + osd_pool_default_size: 1 diff --git a/tests/functional/centos/7/rgw-multisite/group_vars/rgws b/tests/functional/centos/7/rgw-multisite/group_vars/rgws new file mode 100644 index 000000000..6ecc36f69 --- /dev/null +++ b/tests/functional/centos/7/rgw-multisite/group_vars/rgws @@ -0,0 +1,19 @@ +--- +copy_admin_key: true +# Enable Multisite support +rgw_multisite: true +rgw_zone: jupiter +rgw_zonemaster: true +rgw_zonesecondary: false +rgw_zonegroup: solarsystem +rgw_zone_user: zone.user +rgw_realm: milkyway +system_access_key: 6kWkikvapSnHyE22P7nO +system_secret_key: MGecsMrWtKZgngOHZdrd6d3JxGO5CPWgT2lcnpSt +rgw_create_pools: + foo: + pg_num: 17 + bar: + pg_num: 19 +rgw_override_bucket_index_max_shards: 16 +rgw_bucket_default_quota_max_objects: 1638400 \ No newline at end of file diff --git a/tests/functional/centos/7/rgw-multisite/hosts b/tests/functional/centos/7/rgw-multisite/hosts new file mode 100644 index 000000000..eb9011efc --- /dev/null +++ b/tests/functional/centos/7/rgw-multisite/hosts @@ -0,0 +1,11 @@ +[mons] +mon0 + +[mgrs] +mon0 + +[osds] +osd0 + +[rgws] +osd0 rgw_multisite_endpoint_addr=192.168.101.100 diff --git a/tests/functional/centos/7/rgw-multisite/secondary/Vagrantfile b/tests/functional/centos/7/rgw-multisite/secondary/Vagrantfile new file mode 120000 index 000000000..9797e1cb7 --- /dev/null +++ b/tests/functional/centos/7/rgw-multisite/secondary/Vagrantfile @@ -0,0 +1 @@ +../../../../../../Vagrantfile \ No newline at end of file diff --git a/tests/functional/centos/7/rgw-multisite/secondary/group_vars/all b/tests/functional/centos/7/rgw-multisite/secondary/group_vars/all new file mode 100644 index 000000000..08fca3c9d --- /dev/null +++ b/tests/functional/centos/7/rgw-multisite/secondary/group_vars/all @@ -0,0 +1,22 @@ +--- +ceph_origin: repository +ceph_repository: community +cluster: ceph +public_network: "192.168.103.0/24" +cluster_network: "192.168.104.0/24" +monitor_interface: eth1 +radosgw_interface: eth1 +journal_size: 100 +osd_objectstore: "bluestore" +osd_scenario: lvm +copy_admin_key: true +# test-volume is created by tests/functional/lvm_setup.yml from /dev/sdb +lvm_volumes: + - data: /dev/sda + - data: /dev/sdb +os_tuning_params: + - { name: fs.file-max, value: 26234859 } +ceph_conf_overrides: + global: + osd_pool_default_size: 1 +ceph_osd_docker_run_script_path: /var/tmp \ No newline at end of file diff --git a/tests/functional/centos/7/rgw-multisite/secondary/group_vars/rgws b/tests/functional/centos/7/rgw-multisite/secondary/group_vars/rgws new file mode 100644 index 000000000..60860e6a5 --- /dev/null +++ b/tests/functional/centos/7/rgw-multisite/secondary/group_vars/rgws @@ -0,0 +1,8 @@ +--- +rgw_create_pools: + foo: + pg_num: 17 + bar: + pg_num: 19 +rgw_override_bucket_index_max_shards: 16 +rgw_bucket_default_quota_max_objects: 1638400 \ No newline at end of file diff --git a/tests/functional/centos/7/rgw-multisite/secondary/hosts b/tests/functional/centos/7/rgw-multisite/secondary/hosts new file mode 100644 index 000000000..a614dbc21 --- /dev/null +++ b/tests/functional/centos/7/rgw-multisite/secondary/hosts @@ -0,0 +1,11 @@ +[mons] +mon0 + +[mgrs] +mon0 + +[osds] +osd0 + +[rgws] +osd0 rgw_multisite=True rgw_zone=mars rgw_zonemaster=False rgw_zonesecondary=True rgw_zonegroup=solarsystem rgw_zone_user=zone.user rgw_realm=milkyway rgw_multisite_endpoint_addr=192.168.103.100 system_access_key=6kWkikvapSnHyE22P7nO system_secret_key=MGecsMrWtKZgngOHZdrd6d3JxGO5CPWgT2lcnpSt rgw_pull_proto=http rgw_pull_port=8080 rgw_pullhost=192.168.101.100 diff --git a/tests/functional/centos/7/rgw-multisite/secondary/vagrant_variables.yml b/tests/functional/centos/7/rgw-multisite/secondary/vagrant_variables.yml new file mode 100644 index 000000000..7c74ad97c --- /dev/null +++ b/tests/functional/centos/7/rgw-multisite/secondary/vagrant_variables.yml @@ -0,0 +1,73 @@ +--- + +# DEPLOY CONTAINERIZED DAEMONS +docker: false + +# DEFINE THE NUMBER OF VMS TO RUN +mon_vms: 1 +osd_vms: 1 +mds_vms: 0 +rgw_vms: 0 +nfs_vms: 0 +rbd_mirror_vms: 0 +client_vms: 0 +iscsi_gw_vms: 0 +mgr_vms: 0 + +# Deploy RESTAPI on each of the Monitors +restapi: true + +# INSTALL SOURCE OF CEPH +# valid values are 'stable' and 'dev' +ceph_install_source: stable + +# SUBNETS TO USE FOR THE VMS +public_subnet: 192.168.103 +cluster_subnet: 192.168.104 + +# MEMORY +# set 1024 for CentOS +memory: 512 + +# Ethernet interface name +# use eth1 for libvirt and ubuntu precise, enp0s8 for CentOS and ubuntu xenial +eth: 'eth1' + +# Disks +# For libvirt use disks: "[ '/dev/vdb', '/dev/vdc' ]" +# For CentOS7 use disks: "[ '/dev/sda', '/dev/sdb' ]" +disks: "[ '/dev/sdb', '/dev/sdc' ]" + +# VAGRANT BOX +# Ceph boxes are *strongly* suggested. They are under better control and will +# not get updated frequently unless required for build systems. These are (for +# now): +# +# * ceph/ubuntu-xenial +# +# Ubuntu: ceph/ubuntu-xenial bento/ubuntu-16.04 or ubuntu/trusty64 or ubuntu/wily64 +# CentOS: bento/centos-7.1 or puppetlabs/centos-7.0-64-puppet +# libvirt CentOS: centos/7 +# parallels Ubuntu: parallels/ubuntu-14.04 +# Debian: deb/jessie-amd64 - be careful the storage controller is named 'SATA Controller' +# For more boxes have a look at: +# - https://atlas.hashicorp.com/boxes/search?utf8=✓&sort=&provider=virtualbox&q= +# - https://download.gluster.org/pub/gluster/purpleidea/vagrant/ +vagrant_box: centos/7 +#ssh_private_key_path: "~/.ssh/id_rsa" +# The sync directory changes based on vagrant box +# Set to /home/vagrant/sync for Centos/7, /home/{ user }/vagrant for openstack and defaults to /vagrant +#vagrant_sync_dir: /home/vagrant/sync +vagrant_sync_dir: /vagrant +# Disables synced folder creation. Not needed for testing, will skip mounting +# the vagrant directory on the remote box regardless of the provider. +vagrant_disable_synced_folder: true +# VAGRANT URL +# This is a URL to download an image from an alternate location. vagrant_box +# above should be set to the filename of the image. +# Fedora virtualbox: https://download.fedoraproject.org/pub/fedora/linux/releases/22/Cloud/x86_64/Images/Fedora-Cloud-Base-Vagrant-22-20150521.x86_64.vagrant-virtualbox.box +# Fedora libvirt: https://download.fedoraproject.org/pub/fedora/linux/releases/22/Cloud/x86_64/Images/Fedora-Cloud-Base-Vagrant-22-20150521.x86_64.vagrant-libvirt.box +# vagrant_box_url: https://download.fedoraproject.org/pub/fedora/linux/releases/22/Cloud/x86_64/Images/Fedora-Cloud-Base-Vagrant-22-20150521.x86_64.vagrant-virtualbox.box + +os_tuning_params: + - { name: fs.file-max, value: 26234859 } diff --git a/tests/functional/centos/7/rgw-multisite/vagrant_variables.yml b/tests/functional/centos/7/rgw-multisite/vagrant_variables.yml new file mode 100644 index 000000000..f40a726e2 --- /dev/null +++ b/tests/functional/centos/7/rgw-multisite/vagrant_variables.yml @@ -0,0 +1,73 @@ +--- + +# DEPLOY CONTAINERIZED DAEMONS +docker: false + +# DEFINE THE NUMBER OF VMS TO RUN +mon_vms: 1 +osd_vms: 1 +mds_vms: 0 +rgw_vms: 0 +nfs_vms: 0 +rbd_mirror_vms: 0 +client_vms: 0 +iscsi_gw_vms: 0 +mgr_vms: 0 + +# Deploy RESTAPI on each of the Monitors +restapi: true + +# INSTALL SOURCE OF CEPH +# valid values are 'stable' and 'dev' +ceph_install_source: stable + +# SUBNETS TO USE FOR THE VMS +public_subnet: 192.168.101 +cluster_subnet: 192.168.102 + +# MEMORY +# set 1024 for CentOS +memory: 512 + +# Ethernet interface name +# use eth1 for libvirt and ubuntu precise, enp0s8 for CentOS and ubuntu xenial +eth: 'eth1' + +# Disks +# For libvirt use disks: "[ '/dev/vdb', '/dev/vdc' ]" +# For CentOS7 use disks: "[ '/dev/sda', '/dev/sdb' ]" +disks: "[ '/dev/sdb', '/dev/sdc' ]" + +# VAGRANT BOX +# Ceph boxes are *strongly* suggested. They are under better control and will +# not get updated frequently unless required for build systems. These are (for +# now): +# +# * ceph/ubuntu-xenial +# +# Ubuntu: ceph/ubuntu-xenial bento/ubuntu-16.04 or ubuntu/trusty64 or ubuntu/wily64 +# CentOS: bento/centos-7.1 or puppetlabs/centos-7.0-64-puppet +# libvirt CentOS: centos/7 +# parallels Ubuntu: parallels/ubuntu-14.04 +# Debian: deb/jessie-amd64 - be careful the storage controller is named 'SATA Controller' +# For more boxes have a look at: +# - https://atlas.hashicorp.com/boxes/search?utf8=✓&sort=&provider=virtualbox&q= +# - https://download.gluster.org/pub/gluster/purpleidea/vagrant/ +vagrant_box: centos/7 +#ssh_private_key_path: "~/.ssh/id_rsa" +# The sync directory changes based on vagrant box +# Set to /home/vagrant/sync for Centos/7, /home/{ user }/vagrant for openstack and defaults to /vagrant +#vagrant_sync_dir: /home/vagrant/sync +vagrant_sync_dir: /vagrant +# Disables synced folder creation. Not needed for testing, will skip mounting +# the vagrant directory on the remote box regardless of the provider. +vagrant_disable_synced_folder: true +# VAGRANT URL +# This is a URL to download an image from an alternate location. vagrant_box +# above should be set to the filename of the image. +# Fedora virtualbox: https://download.fedoraproject.org/pub/fedora/linux/releases/22/Cloud/x86_64/Images/Fedora-Cloud-Base-Vagrant-22-20150521.x86_64.vagrant-virtualbox.box +# Fedora libvirt: https://download.fedoraproject.org/pub/fedora/linux/releases/22/Cloud/x86_64/Images/Fedora-Cloud-Base-Vagrant-22-20150521.x86_64.vagrant-libvirt.box +# vagrant_box_url: https://download.fedoraproject.org/pub/fedora/linux/releases/22/Cloud/x86_64/Images/Fedora-Cloud-Base-Vagrant-22-20150521.x86_64.vagrant-virtualbox.box + +os_tuning_params: + - { name: fs.file-max, value: 26234859 } diff --git a/tox.ini b/tox.ini index df95a95ee..a44a89269 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = {dev,luminous,mimic,rhcs}-{xenial_cluster,centos7_cluster,cluster,docker_cluster,update_cluster,update_docker_cluster,switch_to_containers,ooo_collocation,bluestore_lvm_osds,bluestore_lvm_osds_container,lvm_osds,purge_lvm_osds,shrink_mon,shrink_osd,shrink_mon_container,shrink_osd_container,docker_cluster_collocation,lvm_batch,lvm_osds_container,lvm_batch_container,infra_lv_create,add_osds,add_osds_container} +envlist = {dev,luminous,mimic,rhcs}-{xenial_cluster,centos7_cluster,cluster,docker_cluster,update_cluster,update_docker_cluster,switch_to_containers,ooo_collocation,bluestore_lvm_osds,bluestore_lvm_osds_container,lvm_osds,purge_lvm_osds,shrink_mon,shrink_osd,shrink_mon_container,shrink_osd_container,docker_cluster_collocation,lvm_batch,lvm_osds_container,lvm_batch_container,infra_lv_create,add_osds,add_osds_container,rgw_multisite,rgw_multisite_container} infra_lv_create skipsdist = True @@ -160,6 +160,23 @@ commands= " testinfra -n 4 --sudo -v --connection=ansible --ansible-inventory={changedir}/hosts-2 {toxinidir}/tests/functional/tests +[rgw-multisite] +commands= + bash -c "cd {changedir}/secondary && vagrant up --no-provision {posargs:--provider=virtualbox}" + bash -c "cd {changedir}/secondary && bash {toxinidir}/tests/scripts/generate_ssh_config.sh {changedir}/secondary" + ansible-playbook --ssh-extra-args='-F {changedir}/secondary/vagrant_ssh_config' -vv -i {changedir}/secondary/hosts {toxinidir}/tests/functional/setup.yml + ansible-playbook --ssh-extra-args='-F {changedir}/secondary/vagrant_ssh_config' -vv -i {changedir}/secondary/hosts {toxinidir}/{env:PLAYBOOK:site.yml.sample} --extra-vars "\ + ireallymeanit=yes \ + fetch_directory={env:FETCH_DIRECTORY:{changedir}/secondary/fetch} \ + ceph_stable_release={env:CEPH_STABLE_RELEASE:mimic} \ + ceph_docker_registry={env:CEPH_DOCKER_REGISTRY:docker.io} \ + ceph_docker_image={env:CEPH_DOCKER_IMAGE:ceph/daemon} \ + ceph_docker_image_tag={env:CEPH_DOCKER_IMAGE_TAG:latest} \ + ceph_dev_branch={env:CEPH_DEV_BRANCH:master} \ + ceph_dev_sha1={env:CEPH_DEV_SHA1:latest} \ + " + bash -c "cd {changedir}/secondary && vagrant destroy --force" + [testenv] whitelist_externals = vagrant @@ -187,6 +204,8 @@ setenv= purge_cluster_container: PURGE_PLAYBOOK = purge-docker-cluster.yml add_osds: PLAYBOOK = site.yml.sample add_osds_container: PLAYBOOK = site-docker.yml.sample + rgw_multisite: PLAYBOOK = site.yml.sample + rgw_multisite_container: PLAYBOOK = site-docker.yml.sample shrink_mon_container: PLAYBOOK = site-docker.yml.sample shrink_mon_container: MON_TO_KILL = mon2 shrink_osd_container: PLAYBOOK = site-docker.yml.sample @@ -217,6 +236,8 @@ setenv= update_docker_cluster: ROLLING_UPDATE = True add_osds: CEPH_STABLE_RELEASE = luminous add_osds_container: CEPH_STABLE_RELEASE = luminous + rgw_multisite: CEPH_STABLE_RELEASE = luminous + rgw_multisite_container: CEPH_STABLE_RELEASE = luminous deps= -r{toxinidir}/tests/requirements.txt changedir= # tests a 1 mon, 1 osd, 1 mds and 1 rgw xenial cluster using non-collocated OSD scenario @@ -247,6 +268,8 @@ changedir= ooo_collocation: {toxinidir}/tests/functional/centos/7/ooo-collocation add_osds: {toxinidir}/tests/functional/centos/7/add-osds add_osds_container: {toxinidir}/tests/functional/centos/7/add-osds-container + rgw_multisite: {toxinidir}/tests/functional/centos/7/rgw-multisite + rgw_multisite_container: {toxinidir}/tests/functional/centos/7/rgw-multisite-container commands= rhcs: ansible-playbook -vv -i "localhost," -c local {toxinidir}/tests/functional/rhcs_setup.yml --extra-vars "change_dir={changedir}" --tags "vagrant_setup" @@ -331,5 +354,7 @@ commands= shrink_osd_container: {[shrink-osd]commands} add_osds: {[add-osds]commands} add_osds_container: {[add-osds]commands} + rgw_multisite: {[rgw-multisite]commands} + rgw_multisite_container: {[rgw-multisite]commands} vagrant destroy --force