tests: refact all stable-3.1 testing

refact the testing on stable-3.1 the same way it has been made for
stabe-3.2 and master.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
pull/3671/head
Guillaume Abrioux 2019-03-02 01:08:51 +01:00
parent cb92299756
commit a16ab0cad5
132 changed files with 182 additions and 186 deletions

6
Vagrantfile vendored
View File

@ -21,9 +21,9 @@ NISCSI_GWS = settings['iscsi_gw_vms']
MGRS = settings['mgr_vms']
PUBLIC_SUBNET = settings['public_subnet']
CLUSTER_SUBNET = settings['cluster_subnet']
BOX = settings['vagrant_box']
CLIENT_BOX = settings['client_vagrant_box'] || settings['vagrant_box']
BOX_URL = settings['vagrant_box_url']
BOX = ENV['CEPH_ANSIBLE_VAGRANT_BOX'] || settings['vagrant_box']
CLIENT_BOX = ENV['CEPH_ANSIBLE_VAGRANT_BOX'] || settings['client_vagrant_box'] || BOX
BOX_URL = ENV['CEPH_ANSIBLE_VAGRANT_BOX_URL'] || settings['vagrant_box_url']
SYNC_DIR = settings['vagrant_sync_dir']
MEMORY = settings['memory']
ETH = settings['eth']

View File

@ -0,0 +1 @@
../../../Vagrantfile

View File

@ -0,0 +1 @@
../../../../Vagrantfile

View File

@ -0,0 +1 @@
../ceph-override.json

View File

@ -0,0 +1,27 @@
[mons]
ceph-mon0 monitor_address=192.168.1.10
ceph-mon1 monitor_interface=eth1
ceph-mon2 monitor_address=192.168.1.12
[mgrs]
ceph-mgr0
[osds]
ceph-osd0 osd_crush_location="{ 'root': 'HDD', 'rack': 'mon-rackkkk', 'pod': 'monpod', 'host': 'ceph-osd0' }"
ceph-osd1 osd_crush_location="{ 'root': 'default', 'host': 'ceph-osd1' }"
[mdss]
ceph-mds0
[rgws]
ceph-rgw0
[clients]
ceph-client0
ceph-client1
[nfss]
ceph-nfs0
[rbdmirrors]
ceph-rbd-mirror0

View File

@ -0,0 +1 @@
../../../Vagrantfile

View File

@ -0,0 +1 @@
../all_daemons/ceph-override.json

View File

@ -0,0 +1 @@
../../../Vagrantfile

View File

@ -0,0 +1 @@
../all_daemons/ceph-override.json

View File

@ -0,0 +1 @@
../../../../Vagrantfile

View File

@ -0,0 +1 @@
../../all_daemons/ceph-override.json

View File

@ -1 +0,0 @@
../../../../../Vagrantfile

View File

@ -1 +0,0 @@
../cluster/ceph-override.json

View File

@ -1 +0,0 @@
../../../../../Vagrantfile

View File

@ -1 +0,0 @@
../cluster/ceph-override.json

View File

@ -1 +0,0 @@
../../../../../Vagrantfile

View File

@ -1 +0,0 @@
../cluster/ceph-override.json

View File

@ -1 +0,0 @@
../../../../../Vagrantfile

View File

@ -1 +0,0 @@
../../../../../Vagrantfile

View File

@ -1 +0,0 @@
../cluster/ceph-override.json

View File

@ -1 +0,0 @@
../../../../../Vagrantfile

View File

@ -1 +0,0 @@
../cluster/ceph-override.json

View File

@ -1 +0,0 @@
../../../../../Vagrantfile

View File

@ -1 +0,0 @@
../cluster/ceph-override.json

View File

@ -1 +0,0 @@
../../../../../Vagrantfile

View File

@ -1 +0,0 @@
../cluster/ceph-override.json

View File

@ -1 +0,0 @@
../../../../../Vagrantfile

View File

@ -1 +0,0 @@
../../../../../Vagrantfile

View File

@ -1 +0,0 @@
../cluster/ceph-override.json

View File

@ -1 +0,0 @@
../../../../../Vagrantfile

View File

@ -1 +0,0 @@
../cluster/ceph-override.json

View File

@ -1 +0,0 @@
../../../../../Vagrantfile

View File

@ -1 +0,0 @@
../../../../../Vagrantfile

View File

@ -1 +0,0 @@
../cluster/ceph-override.json

View File

@ -0,0 +1 @@
../../../Vagrantfile

View File

@ -0,0 +1 @@
../all_daemons/ceph-override.json

View File

@ -0,0 +1 @@
../../../../Vagrantfile

View File

@ -0,0 +1 @@
../../all_daemons/ceph-override.json

View File

@ -0,0 +1,24 @@
---
# this is only here to let the CI tests know
# that this scenario is using docker
docker: False
containerized_deployment: False
cluster: test
monitor_interface: eth1
radosgw_interface: eth1
ceph_mon_docker_subnet: "{{ public_network }}"
journal_size: 100
ceph_docker_on_openstack: False
osd_objectstore: filestore
public_network: "192.168.15.0/24"
cluster_network: "192.168.16.0/24"
rgw_override_bucket_index_max_shards: 16
rgw_bucket_default_quota_max_objects: 1638400
ceph_conf_overrides:
global:
osd_pool_default_pg_num: 8
osd_pool_default_size: 1
devices:
- /dev/sda
- /dev/sdb

View File

@ -0,0 +1,21 @@
---
user_config: True
test:
name: "test"
pg_num: "{{ hostvars[groups[mon_group_name][0]]['osd_pool_default_pg_num'] }}"
pgp_num: "{{ hostvars[groups[mon_group_name][0]]['osd_pool_default_pg_num'] }}"
rule_name: "HDD"
type: 1
erasure_profile: ""
expected_num_objects: ""
test2:
name: "test2"
pg_num: "{{ hostvars[groups[mon_group_name][0]]['osd_pool_default_pg_num'] }}"
pgp_num: "{{ hostvars[groups[mon_group_name][0]]['osd_pool_default_pg_num'] }}"
rule_name: "HDD"
type: 1
erasure_profile: ""
expected_num_objects: ""
pools:
- "{{ test }}"
- "{{ test2 }}"

View File

@ -0,0 +1,5 @@
---
ceph_osd_docker_run_script_path: /var/tmp
# OSD_FORCE_ZAP is only for Jewel, the function does not exist anymore on Luminous and above
ceph_osd_docker_prepare_env: -e OSD_JOURNAL_SIZE={{ journal_size }} -e OSD_FORCE_ZAP=1
osd_scenario: collocated

View File

@ -0,0 +1,6 @@
---
rgw_create_pools:
foo:
pg_num: 17
bar:
pg_num: 19

View File

@ -0,0 +1,27 @@
[mons]
mon0
mon1
mon2
[osds]
osd0
[mdss]
mds0
rgw0
[rgws]
rgw0
mds0
[mgrs]
mon0
osd0
[rbdmirrors]
rgw0
mds0
[nfss]
rgw0
mds0

View File

@ -1,42 +1,34 @@
---
# DEPLOY CONTAINERIZED DAEMONS
docker: false
docker: False
# DEFINE THE NUMBER OF VMS TO RUN
mon_vms: 3
osd_vms: 1
mds_vms: 1
rgw_vms: 1
nfs_vms: 1
nfs_vms: 0
rbd_mirror_vms: 0
client_vms: 1
client_vms: 0
iscsi_gw_vms: 0
mgr_vms: 1
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.5
cluster_subnet: 192.168.6
public_subnet: 192.168.15
cluster_subnet: 192.168.16
# 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'
memory: 1024
# Disks
# For libvirt use disks: "[ '/dev/vdb', '/dev/vdc' ]"
# For CentOS7 use disks: "[ '/dev/sda', '/dev/sdb' ]"
disks: "[ '/dev/sdb', '/dev/sdc' ]"
disks: "[ '/dev/sda', '/dev/sdb' ]"
# VAGRANT BOX
# Ceph boxes are *strongly* suggested. They are under better control and will
@ -53,12 +45,13 @@ disks: "[ '/dev/sdb', '/dev/sdc' ]"
# 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: ceph/ubuntu-xenial
vagrant_box: centos/atomic-host
# client_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
#vagrant_sync_dir: /
# 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
@ -68,6 +61,3 @@ vagrant_disable_synced_folder: true
# 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 }

View File

@ -0,0 +1 @@
../../../Vagrantfile

View File

@ -0,0 +1 @@
../all_daemons/ceph-override.json

View File

@ -0,0 +1 @@
../../../../Vagrantfile

View File

@ -0,0 +1 @@
../../all_daemons/ceph-override.json

View File

@ -0,0 +1 @@
../../../Vagrantfile

Some files were not shown because too many files have changed in this diff Show More