diff --git a/Vagrantfile b/Vagrantfile index dde4b3089..85e9478ab 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -88,7 +88,6 @@ ansible_provision = proc do |ansible| if DOCKER then ansible.extra_vars = ansible.extra_vars.merge({ containerized_deployment: 'true', - monitor_interface: ETH, ceph_mon_docker_subnet: ansible.extra_vars[:public_network], devices: settings['disks'], radosgw_interface: ETH, @@ -97,7 +96,6 @@ ansible_provision = proc do |ansible| else ansible.extra_vars = ansible.extra_vars.merge({ devices: settings['disks'], - monitor_interface: ETH, radosgw_interface: ETH, os_tuning_params: settings['os_tuning_params'], }) @@ -105,8 +103,6 @@ ansible_provision = proc do |ansible| if BOX == 'linode' then ansible.sudo = true - # Use monitor_address_block instead of monitor_interface: - ansible.extra_vars.delete(:monitor_interface) # Use radosgw_address_block instead of radosgw_interface: ansible.extra_vars.delete(:radosgw_interface) ansible.extra_vars = ansible.extra_vars.merge({ diff --git a/docs/source/index.rst b/docs/source/index.rst index 1d20060d6..71b2ce860 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -228,7 +228,6 @@ An example configuration that deploys the upstream ``octopus`` version of Ceph w ceph_repository: community public_network: "192.168.3.0/24" cluster_network: "192.168.4.0/24" - monitor_interface: eth1 devices: - '/dev/sda' - '/dev/sdb' @@ -238,7 +237,6 @@ selection or other aspects of your cluster. - ``ceph_origin`` - ``public_network`` -- ``monitor_interface`` or ``monitor_address`` When deploying RGW instance(s) you are required to set the ``radosgw_interface`` or ``radosgw_address`` config option. diff --git a/docs/source/testing/scenarios.rst b/docs/source/testing/scenarios.rst index 185f99463..c05d91899 100644 --- a/docs/source/testing/scenarios.rst +++ b/docs/source/testing/scenarios.rst @@ -130,15 +130,15 @@ way so that a vagrant environment can be isolated to the given scenario. The ``hosts`` file should contain the hosts needed for the scenario. This might seem a bit repetitive since machines are already defined in :ref:`vagrant_variables` but it allows granular changes to hosts (for example -defining an interface vs. an IP on a monitor) which can help catch issues in +defining different public_network values between monitors) which can help catch issues in ``ceph-ansible`` configuration. For example: .. code-block:: ini [mons] - mon0 monitor_address=192.168.5.10 - mon1 monitor_address=192.168.5.11 - mon2 monitor_interface=eth1 + mon0 public_network=192.168.1.0/24 + mon1 public_network=192.168.2.0/24 + mon2 public_network=192.168.3.0/24 .. _group_vars: diff --git a/group_vars/all.yml.sample b/group_vars/all.yml.sample index d596d53a7..77d3536d1 100644 --- a/group_vars/all.yml.sample +++ b/group_vars/all.yml.sample @@ -311,14 +311,6 @@ dummy: #rbd_client_admin_socket_path: /var/run/ceph # must be writable by QEMU and allowed by SELinux or AppArmor ## Monitor options -# -# You must define either monitor_interface, monitor_address or monitor_address_block. -# These variables must be defined at least in all.yml and overrided if needed (inventory host file or group_vars/*.yml). -# Eg. If you want to specify for each monitor which address the monitor will bind to you can set it in your **inventory host file** by using 'monitor_address' variable. -# Preference will go to monitor_address if both monitor_address and monitor_interface are defined. -#monitor_interface: interface -#monitor_address: x.x.x.x -#monitor_address_block: subnet # set to either ipv4 or ipv6, whichever your network is using #ip_version: ipv4 diff --git a/group_vars/mons.yml.sample b/group_vars/mons.yml.sample index c6892208b..5aaade466 100644 --- a/group_vars/mons.yml.sample +++ b/group_vars/mons.yml.sample @@ -62,7 +62,7 @@ dummy: # - --default-mon-cluster-log-to-stderr=true # - -i={{ monitor_name }} # - --mon-data=/var/lib/ceph/mon/{{ cluster }}-{{ monitor_name }} -# - --public-addr={{ _current_monitor_address }} +# - --public-addr={{ _monitor_addresses[inventory_hostname] }} # - --mon-initial-members={{ groups[mon_group_name] | join(',') }} diff --git a/infrastructure-playbooks/cephadm.yml b/infrastructure-playbooks/cephadm.yml index 95c3896da..b08e7f21d 100644 --- a/infrastructure-playbooks/cephadm.yml +++ b/infrastructure-playbooks/cephadm.yml @@ -30,15 +30,6 @@ run_once: true when: groups[mgr_group_name] is undefined or groups[mgr_group_name] | length == 0 - - name: Validate monitor network configuration - ansible.builtin.fail: - msg: "Either monitor_address, monitor_address_block or monitor_interface must be provided" - when: - - mon_group_name in group_names - - monitor_address == 'x.x.x.x' - - monitor_address_block == 'subnet' - - monitor_interface == 'interface' - - name: Validate dashboard configuration when: dashboard_enabled | bool run_once: true @@ -158,7 +149,7 @@ - name: Bootstrap the new cluster cephadm_bootstrap: - mon_ip: "{{ _current_monitor_address }}" + mon_ip: "{{ _monitor_addresses[inventory_hostname] }}" image: "{{ ceph_docker_registry }}/{{ ceph_docker_image }}:{{ ceph_docker_image_tag }}" docker: "{{ true if container_binary == 'docker' else false }}" pull: false diff --git a/infrastructure-playbooks/rolling_update.yml b/infrastructure-playbooks/rolling_update.yml index de0a08cf3..a403c4eeb 100644 --- a/infrastructure-playbooks/rolling_update.yml +++ b/infrastructure-playbooks/rolling_update.yml @@ -304,7 +304,7 @@ delegate_facts: true - name: Non container | waiting for the monitor to join the quorum... - ansible.builtin.command: ceph --cluster "{{ cluster }}" -m "{{ hostvars[groups[mon_group_name][0]]['_current_monitor_address'] }}" quorum_status --format json + ansible.builtin.command: ceph --cluster "{{ cluster }}" -m "{{ _monitor_addresses[groups['mons'][0]] }}" quorum_status --format json register: ceph_health_raw until: - ceph_health_raw.rc == 0 @@ -317,7 +317,7 @@ - name: Container | waiting for the containerized monitor to join the quorum... ansible.builtin.command: > - {{ container_binary }} exec ceph-mon-{{ ansible_facts['hostname'] }} ceph --cluster "{{ cluster }}" -m "{{ hostvars[groups[mon_group_name][0]]['_current_monitor_address'] }}" quorum_status --format json + {{ container_binary }} exec ceph-mon-{{ ansible_facts['hostname'] }} ceph --cluster "{{ cluster }}" -m "{{ _monitor_addresses[groups['mons'][0]] }}" quorum_status --format json register: ceph_health_raw until: - ceph_health_raw.rc == 0 diff --git a/roles/ceph-config/templates/ceph.conf.j2 b/roles/ceph-config/templates/ceph.conf.j2 index af5d1cb5d..c68908b41 100644 --- a/roles/ceph-config/templates/ceph.conf.j2 +++ b/roles/ceph-config/templates/ceph.conf.j2 @@ -13,11 +13,11 @@ auth client required = none fsid = {{ fsid }} mon host = {% if nb_mon > 0 %} -{% for host in _monitor_addresses -%} +{% for name, addr in _monitor_addresses.items() -%} {% if mon_host_v1.enabled | bool %} -{% set _v1 = ',v1:' + host.addr + mon_host_v1.suffix %} +{% set _v1 = ',v1:' + addr + mon_host_v1.suffix %} {% endif %} -[{{ "v2:" + host.addr + mon_host_v2.suffix }}{{ _v1 | default('') }}] +[{{ "v2:" + addr + mon_host_v2.suffix }}{{ _v1 | default('') }}] {%- if not loop.last -%},{%- endif %} {%- endfor %} {% elif nb_mon == 0 %} diff --git a/roles/ceph-defaults/defaults/main.yml b/roles/ceph-defaults/defaults/main.yml index 0b8e339a6..79ef487de 100644 --- a/roles/ceph-defaults/defaults/main.yml +++ b/roles/ceph-defaults/defaults/main.yml @@ -303,14 +303,6 @@ rbd_client_log_file: "{{ rbd_client_log_path }}/qemu-guest-$pid.log" # must be w rbd_client_admin_socket_path: /var/run/ceph # must be writable by QEMU and allowed by SELinux or AppArmor ## Monitor options -# -# You must define either monitor_interface, monitor_address or monitor_address_block. -# These variables must be defined at least in all.yml and overrided if needed (inventory host file or group_vars/*.yml). -# Eg. If you want to specify for each monitor which address the monitor will bind to you can set it in your **inventory host file** by using 'monitor_address' variable. -# Preference will go to monitor_address if both monitor_address and monitor_interface are defined. -monitor_interface: interface -monitor_address: x.x.x.x -monitor_address_block: subnet # set to either ipv4 or ipv6, whichever your network is using ip_version: ipv4 diff --git a/roles/ceph-facts/tasks/set_monitor_address.yml b/roles/ceph-facts/tasks/set_monitor_address.yml index 8f3aa57b5..142b56a2a 100644 --- a/roles/ceph-facts/tasks/set_monitor_address.yml +++ b/roles/ceph-facts/tasks/set_monitor_address.yml @@ -1,59 +1,14 @@ --- -- name: Set_fact _monitor_addresses to monitor_address_block ipv4 +- name: Set_fact _monitor_addresses - ipv4 ansible.builtin.set_fact: - _monitor_addresses: "{{ _monitor_addresses | default([]) + [{'name': item, 'addr': hostvars[item]['ansible_facts']['all_ipv4_addresses'] | ips_in_ranges(hostvars[item]['monitor_address_block'].split(',')) | first}] }}" + _monitor_addresses: "{{ _monitor_addresses | default({}) | combine({item: hostvars[item]['ansible_facts']['all_ipv4_addresses'] | ips_in_ranges(hostvars[item]['public_network'].split(',')) | first}) }}" with_items: "{{ groups.get(mon_group_name, []) }}" when: - - "item not in _monitor_addresses | default([]) | selectattr('name', 'defined') | map(attribute='name') | list" - - hostvars[item]['monitor_address_block'] is defined - - hostvars[item]['monitor_address_block'] != 'subnet' - ip_version == 'ipv4' -- name: Set_fact _monitor_addresses to monitor_address_block ipv6 +- name: Set_fact _monitor_addresses - ipv6 ansible.builtin.set_fact: - _monitor_addresses: "{{ _monitor_addresses | default([]) + [{'name': item, 'addr': hostvars[item]['ansible_facts']['all_ipv6_addresses'] | ips_in_ranges(hostvars[item]['monitor_address_block'].split(',')) | last | ansible.utils.ipwrap}] }}" + _monitor_addresses: "{{ _monitor_addresses | default({}) | combine({item: hostvars[item]['ansible_facts']['all_ipv6_addresses'] | ips_in_ranges(hostvars[item]['public_network'].split(',')) | last | ansible.utils.ipwrap}) }}" with_items: "{{ groups.get(mon_group_name, []) }}" when: - - "item not in _monitor_addresses | default([]) | selectattr('name', 'defined') | map(attribute='name') | list" - - hostvars[item]['monitor_address_block'] is defined - - hostvars[item]['monitor_address_block'] != 'subnet' - ip_version == 'ipv6' - -- name: Set_fact _monitor_addresses to monitor_address - ansible.builtin.set_fact: - _monitor_addresses: "{{ _monitor_addresses | default([]) + [{'name': item, 'addr': hostvars[item]['monitor_address'] | ansible.utils.ipwrap}] }}" - with_items: "{{ groups.get(mon_group_name, []) }}" - when: - - "item not in _monitor_addresses | default([]) | selectattr('name', 'defined') | map(attribute='name') | list" - - hostvars[item]['monitor_address'] is defined - - hostvars[item]['monitor_address'] != 'x.x.x.x' - -- name: Set_fact _monitor_addresses to monitor_interface - ipv4 - ansible.builtin.set_fact: - _monitor_addresses: "{{ _monitor_addresses | default([]) + [{'name': item, 'addr': hostvars[item]['ansible_facts'][(hostvars[item]['monitor_interface'] | replace('-', '_'))][ip_version]['address'] | ansible.utils.ipwrap}] }}" - with_items: "{{ groups.get(mon_group_name, []) }}" - when: - - "item not in _monitor_addresses | default([]) | selectattr('name', 'defined') | map(attribute='name') | list" - - ip_version == 'ipv4' - - hostvars[item]['monitor_address_block'] | default('subnet') == 'subnet' - - hostvars[item]['monitor_address'] | default('x.x.x.x') == 'x.x.x.x' - - hostvars[item]['monitor_interface'] | default('interface') != 'interface' - -- name: Set_fact _monitor_addresses to monitor_interface - ipv6 - ansible.builtin.set_fact: - _monitor_addresses: "{{ _monitor_addresses | default([]) + [{'name': item, 'addr': hostvars[item]['ansible_facts'][(hostvars[item]['monitor_interface'] | replace('-', '_'))][ip_version][0]['address'] | ansible.utils.ipwrap}] }}" - with_items: "{{ groups.get(mon_group_name, []) }}" - when: - - "item not in _monitor_addresses | default([]) | selectattr('name', 'defined') | map(attribute='name') | list" - - ip_version == 'ipv6' - - hostvars[item]['monitor_address_block'] | default('subnet') == 'subnet' - - hostvars[item]['monitor_address'] | default('x.x.x.x') == 'x.x.x.x' - - hostvars[item]['monitor_interface'] | default('interface') != 'interface' - -- name: Set_fact _current_monitor_address - ansible.builtin.set_fact: - _current_monitor_address: "{{ item.addr }}" - with_items: "{{ _monitor_addresses }}" - when: - - (inventory_hostname == item.name and not rolling_update | default(False) | bool) - or (rolling_update | default(False) | bool and item.name == groups.get(mon_group_name, [])[0]) diff --git a/roles/ceph-mon/defaults/main.yml b/roles/ceph-mon/defaults/main.yml index 1e470036b..ec3364529 100644 --- a/roles/ceph-mon/defaults/main.yml +++ b/roles/ceph-mon/defaults/main.yml @@ -54,7 +54,7 @@ ceph_mon_container_params: - --default-mon-cluster-log-to-stderr=true - -i={{ monitor_name }} - --mon-data=/var/lib/ceph/mon/{{ cluster }}-{{ monitor_name }} - - --public-addr={{ _current_monitor_address }} + - --public-addr={{ _monitor_addresses[inventory_hostname] }} - --mon-initial-members={{ groups[mon_group_name] | map('extract', hostvars, 'ansible_facts') | map(attribute='hostname') | join(',') }} diff --git a/roles/ceph-mon/tasks/deploy_monitors.yml b/roles/ceph-mon/tasks/deploy_monitors.yml index 153541807..9f89de97a 100644 --- a/roles/ceph-mon/tasks/deploy_monitors.yml +++ b/roles/ceph-mon/tasks/deploy_monitors.yml @@ -158,13 +158,13 @@ ansible.builtin.command: > {{ ceph_monmaptool_cmd }} --create - {% for host in _monitor_addresses -%} + {% for name, addr in _monitor_addresses.items() -%} --addv - {{ host.name }} + {{ hostvars[name]['ansible_facts']['hostname'] }} {% if mon_host_v1.enabled | bool %} - {% set _v1 = ',v1:' + host.addr + mon_host_v1.suffix %} + {% set _v1 = ',v1:' + addr + mon_host_v1.suffix %} {% endif %} - [{{ "v2:" + host.addr + mon_host_v2.suffix }}{{ _v1 | default('') }}] + [{{ "v2:" + addr + mon_host_v2.suffix }}{{ _v1 | default('') }}] {# {%- if not loop.last -%},{%- endif %} #} {%- endfor %} --enable-all-features diff --git a/roles/ceph-validate/tasks/check_eth_mon.yml b/roles/ceph-validate/tasks/check_eth_mon.yml deleted file mode 100644 index 21a58f369..000000000 --- a/roles/ceph-validate/tasks/check_eth_mon.yml +++ /dev/null @@ -1,24 +0,0 @@ ---- -- name: Check if network interface exists - ansible.builtin.fail: - msg: "{{ monitor_interface }} does not exist on {{ inventory_hostname }}" - when: monitor_interface not in ansible_facts['interfaces'] - -- name: Check if network interface is active - ansible.builtin.fail: - msg: "{{ monitor_interface }} is not active on {{ inventory_hostname }}" - when: not hostvars[inventory_hostname]['ansible_facts'][(monitor_interface | replace('-', '_'))]['active'] - -- name: Check if network interface has an IPv4 address - ansible.builtin.fail: - msg: "{{ monitor_interface }} does not have any IPv4 address on {{ inventory_hostname }}" - when: - - ip_version == "ipv4" - - hostvars[inventory_hostname]['ansible_facts'][(monitor_interface | replace('-', '_'))]['ipv4'] is not defined - -- name: Check if network interface has an IPv6 address - ansible.builtin.fail: - msg: "{{ monitor_interface }} does not have any IPv6 address on {{ inventory_hostname }}" - when: - - ip_version == "ipv6" - - hostvars[inventory_hostname]['ansible_facts'][(monitor_interface | replace('-', '_'))]['ipv6'] is not defined diff --git a/roles/ceph-validate/tasks/check_ipaddr_mon.yml b/roles/ceph-validate/tasks/check_ipaddr_mon.yml index 9183b385b..cf4cc71db 100644 --- a/roles/ceph-validate/tasks/check_ipaddr_mon.yml +++ b/roles/ceph-validate/tasks/check_ipaddr_mon.yml @@ -1,5 +1,5 @@ --- -- name: Check if network interface has an IP address in `monitor_address_block` +- name: Check if network interface has an IP address in public_network ansible.builtin.fail: - msg: "{{ inventory_hostname }} does not have any {{ ip_version }} address on {{ monitor_address_block }}" - when: hostvars[inventory_hostname]['ansible_facts']['all_' + ip_version + '_addresses'] | ips_in_ranges(hostvars[inventory_hostname]['monitor_address_block'].split(',')) | length == 0 + msg: "{{ inventory_hostname }} does not have any {{ ip_version }} address on {{ public_network }}" + when: hostvars[inventory_hostname]['ansible_facts']['all_' + ip_version + '_addresses'] | ips_in_ranges(hostvars[inventory_hostname]['public_network'].split(',')) | length == 0 diff --git a/roles/ceph-validate/tasks/main.yml b/roles/ceph-validate/tasks/main.yml index f0caab90f..885ffb36a 100644 --- a/roles/ceph-validate/tasks/main.yml +++ b/roles/ceph-validate/tasks/main.yml @@ -11,15 +11,6 @@ msg: "osd_objectstore must be 'bluestore''" when: osd_objectstore not in ['bluestore'] -- name: Validate monitor network configuration - ansible.builtin.fail: - msg: "Either monitor_address, monitor_address_block or monitor_interface must be provided" - when: - - mon_group_name in group_names - - monitor_address == 'x.x.x.x' - - monitor_address_block == 'subnet' - - monitor_interface == 'interface' - - name: Validate radosgw network configuration ansible.builtin.fail: msg: "Either radosgw_address, radosgw_address_block or radosgw_interface must be provided" @@ -107,22 +98,6 @@ - osd_group_name in group_names - not osd_auto_discovery | default(False) | bool -- name: Include check_eth_mon.yml - ansible.builtin.include_tasks: check_eth_mon.yml - when: - - mon_group_name in group_names - - monitor_interface != "dummy" - - monitor_address == "x.x.x.x" - - monitor_address_block == "subnet" - -- name: Include check_ipaddr_mon.yml - ansible.builtin.include_tasks: check_ipaddr_mon.yml - when: - - mon_group_name in group_names - - monitor_interface == "interface" - - monitor_address == "x.x.x.x" - - monitor_address_block != "subnet" - - name: Include check_eth_rgw.yml ansible.builtin.include_tasks: check_eth_rgw.yml when: diff --git a/tests/functional/add-mdss/container/group_vars/all b/tests/functional/add-mdss/container/group_vars/all index abacaac81..5816822db 100644 --- a/tests/functional/add-mdss/container/group_vars/all +++ b/tests/functional/add-mdss/container/group_vars/all @@ -6,7 +6,6 @@ containerized_deployment: true cluster: ceph public_network: "192.168.63.0/24" cluster_network: "192.168.64.0/24" -monitor_interface: eth1 radosgw_interface: eth1 journal_size: 100 osd_objectstore: "bluestore" diff --git a/tests/functional/add-mdss/group_vars/all b/tests/functional/add-mdss/group_vars/all index 650540b49..5bc332389 100644 --- a/tests/functional/add-mdss/group_vars/all +++ b/tests/functional/add-mdss/group_vars/all @@ -4,7 +4,6 @@ ceph_repository: community cluster: ceph public_network: "192.168.61.0/24" cluster_network: "192.168.62.0/24" -monitor_interface: eth1 radosgw_interface: eth1 journal_size: 100 osd_objectstore: "bluestore" diff --git a/tests/functional/add-mgrs/container/group_vars/all b/tests/functional/add-mgrs/container/group_vars/all index 34065af17..7c57901d2 100644 --- a/tests/functional/add-mgrs/container/group_vars/all +++ b/tests/functional/add-mgrs/container/group_vars/all @@ -6,7 +6,6 @@ containerized_deployment: true cluster: ceph public_network: "192.168.75.0/24" cluster_network: "192.168.76.0/24" -monitor_interface: eth1 radosgw_interface: eth1 journal_size: 100 osd_objectstore: "bluestore" diff --git a/tests/functional/add-mgrs/group_vars/all b/tests/functional/add-mgrs/group_vars/all index fb9bde0f0..b83a59ac1 100644 --- a/tests/functional/add-mgrs/group_vars/all +++ b/tests/functional/add-mgrs/group_vars/all @@ -4,7 +4,6 @@ ceph_repository: dev cluster: ceph public_network: "192.168.73.0/24" cluster_network: "192.168.74.0/24" -monitor_interface: eth1 radosgw_interface: eth1 journal_size: 100 osd_objectstore: "bluestore" diff --git a/tests/functional/add-mons/container/group_vars/all b/tests/functional/add-mons/container/group_vars/all index 1fff68805..9846e09db 100644 --- a/tests/functional/add-mons/container/group_vars/all +++ b/tests/functional/add-mons/container/group_vars/all @@ -6,7 +6,6 @@ containerized_deployment: true cluster: ceph public_network: "192.168.55.0/24" cluster_network: "192.168.56.0/24" -monitor_interface: eth1 radosgw_interface: eth1 journal_size: 100 osd_objectstore: "bluestore" diff --git a/tests/functional/add-mons/group_vars/all b/tests/functional/add-mons/group_vars/all index 7988877c0..ca9925379 100644 --- a/tests/functional/add-mons/group_vars/all +++ b/tests/functional/add-mons/group_vars/all @@ -4,7 +4,6 @@ ceph_repository: dev cluster: ceph public_network: "192.168.53.0/24" cluster_network: "192.168.54.0/24" -monitor_interface: eth1 radosgw_interface: eth1 journal_size: 100 osd_objectstore: "bluestore" diff --git a/tests/functional/add-osds/container/group_vars/all b/tests/functional/add-osds/container/group_vars/all index 39022d7a6..e6711bff6 100644 --- a/tests/functional/add-osds/container/group_vars/all +++ b/tests/functional/add-osds/container/group_vars/all @@ -6,7 +6,6 @@ containerized_deployment: true cluster: ceph public_network: "192.168.55.0/24" cluster_network: "192.168.56.0/24" -monitor_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" radosgw_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" journal_size: 100 osd_objectstore: "bluestore" diff --git a/tests/functional/add-osds/group_vars/all b/tests/functional/add-osds/group_vars/all index ef109c9b8..2b6e2b8b7 100644 --- a/tests/functional/add-osds/group_vars/all +++ b/tests/functional/add-osds/group_vars/all @@ -4,7 +4,6 @@ ceph_repository: community cluster: ceph public_network: "192.168.53.0/24" cluster_network: "192.168.54.0/24" -monitor_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" radosgw_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" journal_size: 100 osd_objectstore: "bluestore" diff --git a/tests/functional/add-rbdmirrors/container/group_vars/all b/tests/functional/add-rbdmirrors/container/group_vars/all index c275d4f08..9ad653c92 100644 --- a/tests/functional/add-rbdmirrors/container/group_vars/all +++ b/tests/functional/add-rbdmirrors/container/group_vars/all @@ -6,7 +6,6 @@ containerized_deployment: true cluster: ceph public_network: "192.168.67.0/24" cluster_network: "192.168.68.0/24" -monitor_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" radosgw_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" journal_size: 100 osd_objectstore: "bluestore" diff --git a/tests/functional/add-rbdmirrors/group_vars/all b/tests/functional/add-rbdmirrors/group_vars/all index 119d13167..6b6d1dc9b 100644 --- a/tests/functional/add-rbdmirrors/group_vars/all +++ b/tests/functional/add-rbdmirrors/group_vars/all @@ -4,7 +4,6 @@ ceph_repository: community cluster: ceph public_network: "192.168.65.0/24" cluster_network: "192.168.66.0/24" -monitor_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" radosgw_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" journal_size: 100 osd_objectstore: "bluestore" diff --git a/tests/functional/add-rgws/container/group_vars/all b/tests/functional/add-rgws/container/group_vars/all index 1de1eea6f..cc232ecb1 100644 --- a/tests/functional/add-rgws/container/group_vars/all +++ b/tests/functional/add-rgws/container/group_vars/all @@ -6,7 +6,6 @@ containerized_deployment: true cluster: ceph public_network: "192.168.71.0/24" cluster_network: "192.168.72.0/24" -monitor_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" radosgw_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" journal_size: 100 osd_objectstore: "bluestore" diff --git a/tests/functional/add-rgws/group_vars/all b/tests/functional/add-rgws/group_vars/all index e7326ec8e..2aae86059 100644 --- a/tests/functional/add-rgws/group_vars/all +++ b/tests/functional/add-rgws/group_vars/all @@ -4,7 +4,6 @@ ceph_repository: community cluster: ceph public_network: "192.168.69.0/24" cluster_network: "192.168.70.0/24" -monitor_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" radosgw_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" journal_size: 100 osd_objectstore: "bluestore" diff --git a/tests/functional/all-in-one/container/group_vars/all b/tests/functional/all-in-one/container/group_vars/all index daa915a65..ce364b0fe 100644 --- a/tests/functional/all-in-one/container/group_vars/all +++ b/tests/functional/all-in-one/container/group_vars/all @@ -4,7 +4,6 @@ docker: True containerized_deployment: True -monitor_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" radosgw_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" radosgw_num_instances: 2 ceph_mon_docker_subnet: "{{ public_network }}" diff --git a/tests/functional/all-in-one/group_vars/all b/tests/functional/all-in-one/group_vars/all index f50a1bba0..1b5ddd634 100644 --- a/tests/functional/all-in-one/group_vars/all +++ b/tests/functional/all-in-one/group_vars/all @@ -2,7 +2,6 @@ containerized_deployment: False ceph_origin: repository ceph_repository: community -monitor_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" radosgw_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" ceph_mon_docker_subnet: "{{ public_network }}" openstack_config: True diff --git a/tests/functional/all_daemons/container/group_vars/all b/tests/functional/all_daemons/container/group_vars/all index 6dfcb137c..4c45ec9c7 100644 --- a/tests/functional/all_daemons/container/group_vars/all +++ b/tests/functional/all_daemons/container/group_vars/all @@ -4,7 +4,6 @@ docker: True containerized_deployment: True -monitor_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" radosgw_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" ceph_mon_docker_subnet: "{{ public_network }}" public_network: "192.168.17.0/24" diff --git a/tests/functional/all_daemons/container/hosts b/tests/functional/all_daemons/container/hosts index fa75c7d79..51d488ccb 100644 --- a/tests/functional/all_daemons/container/hosts +++ b/tests/functional/all_daemons/container/hosts @@ -1,7 +1,7 @@ [mons] -mon0 monitor_address=192.168.17.10 -mon1 monitor_interface="{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" -mon2 monitor_address=192.168.17.12 +mon0 +mon1 +mon2 [mgrs] mgr0 diff --git a/tests/functional/all_daemons/group_vars/all b/tests/functional/all_daemons/group_vars/all index efd2430cf..63104689e 100644 --- a/tests/functional/all_daemons/group_vars/all +++ b/tests/functional/all_daemons/group_vars/all @@ -1,8 +1,8 @@ --- ceph_origin: repository -ceph_repository: community -public_network: "192.168.1.0/24" -cluster_network: "192.168.2.0/24" +ceph_repository: dev +public_network: "192.168.110.0/24" +cluster_network: "192.168.220.0/24" radosgw_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" ceph_conf_overrides: global: @@ -36,3 +36,4 @@ prometheus_container_image: "quay.io/prometheus/prometheus:v2.7.2" alertmanager_container_image: "quay.io/prometheus/alertmanager:v0.16.2" grafana_container_image: "quay.io/ceph/ceph-grafana:6.7.4" grafana_server_group_name: ceph_monitoring +dashboard_enabled: false diff --git a/tests/functional/all_daemons/group_vars/mons b/tests/functional/all_daemons/group_vars/mons index f6ab9a541..bc6941bd2 100644 --- a/tests/functional/all_daemons/group_vars/mons +++ b/tests/functional/all_daemons/group_vars/mons @@ -1,6 +1,6 @@ --- -create_crush_tree: True -crush_rule_config: True +create_crush_tree: true +crush_rule_config: true crush_rule_hdd: name: HDD root: default @@ -8,4 +8,4 @@ crush_rule_hdd: class: hdd default: true crush_rules: - - "{{ crush_rule_hdd }}" \ No newline at end of file + - "{{ crush_rule_hdd }}" diff --git a/tests/functional/all_daemons/group_vars/nfss b/tests/functional/all_daemons/group_vars/nfss index fc280e251..826bdfecd 100644 --- a/tests/functional/all_daemons/group_vars/nfss +++ b/tests/functional/all_daemons/group_vars/nfss @@ -5,6 +5,6 @@ ganesha_conf_overrides: | CACHEINODE { Entries_HWMark = 100000; } -nfs_ganesha_stable: true -nfs_ganesha_dev: false +nfs_ganesha_stable: false +nfs_ganesha_dev: true nfs_ganesha_flavor: "ceph_main" diff --git a/tests/functional/all_daemons/hosts b/tests/functional/all_daemons/hosts index aeb10eed6..8e2019776 100644 --- a/tests/functional/all_daemons/hosts +++ b/tests/functional/all_daemons/hosts @@ -1,7 +1,7 @@ [mons] -mon0 monitor_address=192.168.1.10 -mon1 monitor_interface="{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" -mon2 monitor_address=192.168.1.12 +mon0 +mon1 +mon2 [mgrs] mgr0 diff --git a/tests/functional/all_daemons/hosts-switch-to-containers b/tests/functional/all_daemons/hosts-switch-to-containers index fabb659f0..ceae369eb 100644 --- a/tests/functional/all_daemons/hosts-switch-to-containers +++ b/tests/functional/all_daemons/hosts-switch-to-containers @@ -2,9 +2,9 @@ docker=True [mons] -mon0 monitor_address=192.168.1.10 -mon1 monitor_interface="{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" -mon2 monitor_address=192.168.1.12 +mon0 +mon1 +mon2 [mgrs] mgr0 diff --git a/tests/functional/all_daemons/vagrant_variables.yml b/tests/functional/all_daemons/vagrant_variables.yml index 48653bbbb..5a58fc8b0 100644 --- a/tests/functional/all_daemons/vagrant_variables.yml +++ b/tests/functional/all_daemons/vagrant_variables.yml @@ -19,8 +19,8 @@ mgr_vms: 1 ceph_install_source: stable # SUBNETS TO USE FOR THE VMS -public_subnet: 192.168.1 -cluster_subnet: 192.168.2 +public_subnet: 192.168.110 +cluster_subnet: 192.168.220 # MEMORY # set 1024 for CentOS diff --git a/tests/functional/all_daemons_ipv6/container/group_vars/all b/tests/functional/all_daemons_ipv6/container/group_vars/all index d0c9ee6bc..013fa975e 100644 --- a/tests/functional/all_daemons_ipv6/container/group_vars/all +++ b/tests/functional/all_daemons_ipv6/container/group_vars/all @@ -4,7 +4,6 @@ docker: True containerized_deployment: True -monitor_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" radosgw_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" ceph_mon_docker_subnet: "{{ public_network }}" ip_version: ipv6 diff --git a/tests/functional/all_daemons_ipv6/container/hosts b/tests/functional/all_daemons_ipv6/container/hosts index 81cf5c2dc..51d488ccb 100644 --- a/tests/functional/all_daemons_ipv6/container/hosts +++ b/tests/functional/all_daemons_ipv6/container/hosts @@ -1,7 +1,7 @@ [mons] -mon0 monitor_address="fdec:f1fb:29cd:6940::10" -mon1 monitor_interface="{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" -mon2 monitor_address="fdec:f1fb:29cd:6940::12" +mon0 +mon1 +mon2 [mgrs] mgr0 diff --git a/tests/functional/all_daemons_ipv6/hosts b/tests/functional/all_daemons_ipv6/hosts index 78b212478..8e2019776 100644 --- a/tests/functional/all_daemons_ipv6/hosts +++ b/tests/functional/all_daemons_ipv6/hosts @@ -1,7 +1,7 @@ [mons] -mon0 monitor_address="fdec:f1fb:29cd:6940::10" -mon1 monitor_interface="{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" -mon2 monitor_address="fdec:f1fb:29cd:6940::12" +mon0 +mon1 +mon2 [mgrs] mgr0 diff --git a/tests/functional/cephadm/group_vars/all b/tests/functional/cephadm/group_vars/all index 2e074a271..0acf604ad 100644 --- a/tests/functional/cephadm/group_vars/all +++ b/tests/functional/cephadm/group_vars/all @@ -1,5 +1,4 @@ --- -monitor_interface: eth1 public_network: "192.168.30.0/24" cluster_network: "192.168.31.0/24" dashboard_admin_password: $sX!cD$rYU6qR^B! diff --git a/tests/functional/collocation/container/group_vars/all b/tests/functional/collocation/container/group_vars/all index e6f0fab1e..b60168ab7 100644 --- a/tests/functional/collocation/container/group_vars/all +++ b/tests/functional/collocation/container/group_vars/all @@ -4,7 +4,6 @@ docker: True containerized_deployment: True -monitor_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" radosgw_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" radosgw_num_instances: 2 ceph_mon_docker_subnet: "{{ public_network }}" diff --git a/tests/functional/collocation/group_vars/all b/tests/functional/collocation/group_vars/all index 423ffbac7..8e4061e4d 100644 --- a/tests/functional/collocation/group_vars/all +++ b/tests/functional/collocation/group_vars/all @@ -2,7 +2,6 @@ containerized_deployment: False ceph_origin: repository ceph_repository: community -monitor_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" radosgw_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" ceph_mon_docker_subnet: "{{ public_network }}" public_network: "192.168.15.0/24" diff --git a/tests/functional/docker2podman/group_vars/all b/tests/functional/docker2podman/group_vars/all index 42e97ffd8..84d3dac2b 100644 --- a/tests/functional/docker2podman/group_vars/all +++ b/tests/functional/docker2podman/group_vars/all @@ -5,7 +5,6 @@ docker: True container_binary: docker containerized_deployment: True -monitor_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" radosgw_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" ceph_mon_docker_subnet: "{{ public_network }}" public_network: "192.168.58.0/24" diff --git a/tests/functional/external_clients/container/inventory/group_vars/all b/tests/functional/external_clients/container/inventory/group_vars/all index 940a55ff8..0bf378374 100644 --- a/tests/functional/external_clients/container/inventory/group_vars/all +++ b/tests/functional/external_clients/container/inventory/group_vars/all @@ -4,7 +4,6 @@ docker: True containerized_deployment: True -monitor_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" radosgw_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" radosgw_num_instances: 2 ceph_mon_docker_subnet: "{{ public_network }}" diff --git a/tests/functional/external_clients/inventory/group_vars/all b/tests/functional/external_clients/inventory/group_vars/all index f941ecc7b..1152b04ce 100644 --- a/tests/functional/external_clients/inventory/group_vars/all +++ b/tests/functional/external_clients/inventory/group_vars/all @@ -2,7 +2,6 @@ containerized_deployment: False ceph_origin: repository ceph_repository: community -monitor_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" radosgw_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" ceph_mon_docker_subnet: "{{ public_network }}" openstack_config: True diff --git a/tests/functional/lvm-auto-discovery/container/group_vars/all b/tests/functional/lvm-auto-discovery/container/group_vars/all index dab885f7a..b352cab0e 100644 --- a/tests/functional/lvm-auto-discovery/container/group_vars/all +++ b/tests/functional/lvm-auto-discovery/container/group_vars/all @@ -10,7 +10,6 @@ ceph_repository: dev cluster: ceph public_network: "192.168.39.0/24" cluster_network: "192.168.40.0/24" -monitor_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" radosgw_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" journal_size: 100 osd_objectstore: "bluestore" diff --git a/tests/functional/lvm-auto-discovery/group_vars/all b/tests/functional/lvm-auto-discovery/group_vars/all index 149cd228f..157cb79c7 100644 --- a/tests/functional/lvm-auto-discovery/group_vars/all +++ b/tests/functional/lvm-auto-discovery/group_vars/all @@ -5,7 +5,6 @@ ceph_repository: community cluster: ceph public_network: "192.168.39.0/24" cluster_network: "192.168.40.0/24" -monitor_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" radosgw_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" osd_objectstore: "bluestore" crush_device_class: test diff --git a/tests/functional/lvm-batch/container/group_vars/all b/tests/functional/lvm-batch/container/group_vars/all index a3e868dd3..3e5f21776 100644 --- a/tests/functional/lvm-batch/container/group_vars/all +++ b/tests/functional/lvm-batch/container/group_vars/all @@ -10,7 +10,6 @@ ceph_repository: community cluster: ceph public_network: "192.168.39.0/24" cluster_network: "192.168.40.0/24" -monitor_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" radosgw_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" crush_device_class: test copy_admin_key: true diff --git a/tests/functional/lvm-batch/group_vars/all b/tests/functional/lvm-batch/group_vars/all index 0c432635c..22c46d1aa 100644 --- a/tests/functional/lvm-batch/group_vars/all +++ b/tests/functional/lvm-batch/group_vars/all @@ -5,7 +5,6 @@ ceph_repository: community cluster: ceph public_network: "192.168.39.0/24" cluster_network: "192.168.40.0/24" -monitor_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" radosgw_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" crush_device_class: test copy_admin_key: true diff --git a/tests/functional/lvm-osds/container/group_vars/all b/tests/functional/lvm-osds/container/group_vars/all index 5e812e355..225a5cffe 100644 --- a/tests/functional/lvm-osds/container/group_vars/all +++ b/tests/functional/lvm-osds/container/group_vars/all @@ -8,7 +8,6 @@ ceph_origin: repository ceph_repository: community public_network: "192.168.33.0/24" cluster_network: "192.168.34.0/24" -monitor_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" copy_admin_key: true containerized_deployment: true # test-volume is created by tests/functional/lvm_setup.yml from /dev/sdb diff --git a/tests/functional/lvm-osds/group_vars/all b/tests/functional/lvm-osds/group_vars/all index 3ee80cc07..c8066f013 100644 --- a/tests/functional/lvm-osds/group_vars/all +++ b/tests/functional/lvm-osds/group_vars/all @@ -4,7 +4,6 @@ ceph_origin: repository ceph_repository: community public_network: "192.168.39.0/24" cluster_network: "192.168.40.0/24" -monitor_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" copy_admin_key: true # test-volume is created by tests/functional/lvm_setup.yml from /dev/sdb os_tuning_params: diff --git a/tests/functional/migrate_ceph_disk_to_ceph_volume/group_vars/all b/tests/functional/migrate_ceph_disk_to_ceph_volume/group_vars/all index 5ffdf22bd..657e3015f 100644 --- a/tests/functional/migrate_ceph_disk_to_ceph_volume/group_vars/all +++ b/tests/functional/migrate_ceph_disk_to_ceph_volume/group_vars/all @@ -5,7 +5,6 @@ ceph_repository: community cluster: test public_network: "192.168.1.0/24" cluster_network: "192.168.2.0/24" -monitor_interface: eth1 journal_size: 100 osd_objectstore: "bluestore" devices: diff --git a/tests/functional/podman/group_vars/all b/tests/functional/podman/group_vars/all index 6101343ec..29709d562 100644 --- a/tests/functional/podman/group_vars/all +++ b/tests/functional/podman/group_vars/all @@ -4,7 +4,6 @@ docker: True containerized_deployment: True -monitor_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" radosgw_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" ceph_mon_docker_subnet: "{{ public_network }}" public_network: "192.168.30.0/24" diff --git a/tests/functional/rbdmirror/container/group_vars/all b/tests/functional/rbdmirror/container/group_vars/all index 54924683c..8db0513d9 100644 --- a/tests/functional/rbdmirror/container/group_vars/all +++ b/tests/functional/rbdmirror/container/group_vars/all @@ -6,7 +6,6 @@ ceph_repository: community cluster: ceph public_network: "192.168.144.0/24" cluster_network: "192.168.145.0/24" -monitor_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" radosgw_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" journal_size: 100 osd_objectstore: "bluestore" diff --git a/tests/functional/rbdmirror/container/secondary/group_vars/all b/tests/functional/rbdmirror/container/secondary/group_vars/all index ccc55d1cf..1c5896dca 100644 --- a/tests/functional/rbdmirror/container/secondary/group_vars/all +++ b/tests/functional/rbdmirror/container/secondary/group_vars/all @@ -6,7 +6,6 @@ ceph_repository: community cluster: ceph public_network: "192.168.146.0/24" cluster_network: "192.168.147.0/24" -monitor_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" radosgw_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" journal_size: 100 osd_objectstore: "bluestore" diff --git a/tests/functional/rbdmirror/group_vars/all b/tests/functional/rbdmirror/group_vars/all index 93474c130..ef706caa4 100644 --- a/tests/functional/rbdmirror/group_vars/all +++ b/tests/functional/rbdmirror/group_vars/all @@ -4,7 +4,6 @@ ceph_repository: community cluster: ceph public_network: "192.168.140.0/24" cluster_network: "192.168.141.0/24" -monitor_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" radosgw_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" journal_size: 100 osd_objectstore: "bluestore" diff --git a/tests/functional/rbdmirror/secondary/group_vars/all b/tests/functional/rbdmirror/secondary/group_vars/all index 9c44e89b7..b5bf0eaee 100644 --- a/tests/functional/rbdmirror/secondary/group_vars/all +++ b/tests/functional/rbdmirror/secondary/group_vars/all @@ -4,7 +4,6 @@ ceph_repository: community cluster: ceph public_network: "192.168.142.0/24" cluster_network: "192.168.143.0/24" -monitor_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" radosgw_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" journal_size: 100 osd_objectstore: "bluestore" diff --git a/tests/functional/shrink_mds/container/group_vars/all b/tests/functional/shrink_mds/container/group_vars/all index 43f2de24d..e0cc1865e 100644 --- a/tests/functional/shrink_mds/container/group_vars/all +++ b/tests/functional/shrink_mds/container/group_vars/all @@ -4,7 +4,6 @@ docker: True containerized_deployment: True -monitor_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" ceph_mon_docker_subnet: "{{ public_network }}" public_network: "192.168.79.0/24" cluster_network: "192.168.80.0/24" diff --git a/tests/functional/shrink_mds/group_vars/all b/tests/functional/shrink_mds/group_vars/all index 0ceff4cdb..b82aa455a 100644 --- a/tests/functional/shrink_mds/group_vars/all +++ b/tests/functional/shrink_mds/group_vars/all @@ -3,7 +3,6 @@ ceph_origin: repository ceph_repository: community public_network: "192.168.77.0/24" cluster_network: "192.168.78.0/24" -monitor_interface: eth1 radosgw_interface: eth1 journal_size: 100 osd_objectstore: "bluestore" diff --git a/tests/functional/shrink_mgr/container/group_vars/all b/tests/functional/shrink_mgr/container/group_vars/all index 5488b6c41..671bc426b 100644 --- a/tests/functional/shrink_mgr/container/group_vars/all +++ b/tests/functional/shrink_mgr/container/group_vars/all @@ -4,7 +4,6 @@ docker: True containerized_deployment: True -monitor_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" ceph_mon_docker_subnet: "{{ public_network }}" public_network: "192.168.83.0/24" cluster_network: "192.168.84.0/24" diff --git a/tests/functional/shrink_mgr/group_vars/all b/tests/functional/shrink_mgr/group_vars/all index bc72091a1..9374675e2 100644 --- a/tests/functional/shrink_mgr/group_vars/all +++ b/tests/functional/shrink_mgr/group_vars/all @@ -3,7 +3,6 @@ ceph_origin: repository ceph_repository: dev public_network: "192.168.81.0/24" cluster_network: "192.168.82.0/24" -monitor_interface: eth1 radosgw_interface: eth1 ceph_conf_overrides: global: diff --git a/tests/functional/shrink_mon/container/group_vars/all b/tests/functional/shrink_mon/container/group_vars/all index 2fd03e9b5..7415150db 100644 --- a/tests/functional/shrink_mon/container/group_vars/all +++ b/tests/functional/shrink_mon/container/group_vars/all @@ -4,7 +4,6 @@ docker: True containerized_deployment: True -monitor_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" ceph_mon_docker_subnet: "{{ public_network }}" public_network: "192.168.17.0/24" cluster_network: "192.168.18.0/24" diff --git a/tests/functional/shrink_mon/hosts b/tests/functional/shrink_mon/hosts index c02302146..5d91b7dbd 100644 --- a/tests/functional/shrink_mon/hosts +++ b/tests/functional/shrink_mon/hosts @@ -1,7 +1,7 @@ [mons] -mon0 monitor_address=192.168.1.10 -mon1 monitor_interface="{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" -mon2 monitor_address=192.168.1.12 +mon0 +mon1 +mon2 [osds] osd0 \ No newline at end of file diff --git a/tests/functional/shrink_mon/hosts-switch-to-containers b/tests/functional/shrink_mon/hosts-switch-to-containers index b995e9b99..3ab72318e 100644 --- a/tests/functional/shrink_mon/hosts-switch-to-containers +++ b/tests/functional/shrink_mon/hosts-switch-to-containers @@ -2,9 +2,9 @@ docker=True [mons] -mon0 monitor_address=192.168.1.10 -mon1 monitor_interface="{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" -mon2 monitor_address=192.168.1.12 +mon0 +mon1 +mon2 [osds] osd0 diff --git a/tests/functional/shrink_osd/container/group_vars/all b/tests/functional/shrink_osd/container/group_vars/all index 9e6f481b8..1ae935819 100644 --- a/tests/functional/shrink_osd/container/group_vars/all +++ b/tests/functional/shrink_osd/container/group_vars/all @@ -4,7 +4,6 @@ docker: True containerized_deployment: True -monitor_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" ceph_mon_docker_subnet: "{{ public_network }}" public_network: "192.168.73.0/24" cluster_network: "192.168.74.0/24" diff --git a/tests/functional/shrink_rbdmirror/container/group_vars/all b/tests/functional/shrink_rbdmirror/container/group_vars/all index 7eeffe266..3fe10aa20 100644 --- a/tests/functional/shrink_rbdmirror/container/group_vars/all +++ b/tests/functional/shrink_rbdmirror/container/group_vars/all @@ -5,7 +5,6 @@ docker: True public_network: "192.168.87.0/24" cluster_network: "192.168.88.0/24" containerized_deployment: True -monitor_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" ceph_mon_docker_subnet: "{{ public_network }}" ceph_conf_overrides: global: diff --git a/tests/functional/shrink_rbdmirror/group_vars/all b/tests/functional/shrink_rbdmirror/group_vars/all index 8e2437b48..1a90c972b 100644 --- a/tests/functional/shrink_rbdmirror/group_vars/all +++ b/tests/functional/shrink_rbdmirror/group_vars/all @@ -3,7 +3,6 @@ ceph_origin: repository ceph_repository: community public_network: "192.168.85.0/24" cluster_network: "192.168.86.0/24" -monitor_interface: eth1 osd_objectstore: "bluestore" copy_admin_key: true ceph_conf_overrides: diff --git a/tests/functional/shrink_rgw/container/group_vars/all b/tests/functional/shrink_rgw/container/group_vars/all index 052f9ffc9..9aafb5541 100644 --- a/tests/functional/shrink_rgw/container/group_vars/all +++ b/tests/functional/shrink_rgw/container/group_vars/all @@ -6,7 +6,6 @@ docker: True containerized_deployment: True public_network: "192.168.91.0/24" cluster_network: "192.168.92.0/24" -monitor_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" radosgw_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" ceph_mon_docker_subnet: "{{ public_network }}" ceph_conf_overrides: diff --git a/tests/functional/shrink_rgw/group_vars/all b/tests/functional/shrink_rgw/group_vars/all index f67e92154..26bfeb7d1 100644 --- a/tests/functional/shrink_rgw/group_vars/all +++ b/tests/functional/shrink_rgw/group_vars/all @@ -3,7 +3,6 @@ ceph_origin: repository ceph_repository: dev public_network: "192.168.89.0/24" cluster_network: "192.168.90.0/24" -monitor_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" radosgw_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" osd_objectstore: "bluestore" copy_admin_key: true diff --git a/tests/functional/subset_update/container/group_vars/all b/tests/functional/subset_update/container/group_vars/all index 4b8941b96..ad86c0401 100644 --- a/tests/functional/subset_update/container/group_vars/all +++ b/tests/functional/subset_update/container/group_vars/all @@ -4,7 +4,6 @@ docker: True containerized_deployment: True -monitor_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" radosgw_interface: "{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" ceph_mon_docker_subnet: "{{ public_network }}" public_network: "192.168.5.0/24" diff --git a/tests/functional/subset_update/container/hosts b/tests/functional/subset_update/container/hosts index e7d4fa615..8823f1a85 100644 --- a/tests/functional/subset_update/container/hosts +++ b/tests/functional/subset_update/container/hosts @@ -1,7 +1,7 @@ [mons] -mon0 monitor_address=192.168.5.10 -mon1 monitor_interface="{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" -mon2 monitor_address=192.168.5.12 +mon0 +mon1 +mon2 [mgrs] mon0 diff --git a/tests/functional/subset_update/hosts b/tests/functional/subset_update/hosts index 18669ec1d..ce6362946 100644 --- a/tests/functional/subset_update/hosts +++ b/tests/functional/subset_update/hosts @@ -1,7 +1,7 @@ [mons] -mon0 monitor_address=192.168.3.10 -mon1 monitor_interface="{{ 'eth1' if ansible_facts['distribution'] == 'CentOS' else 'ens6' }}" -mon2 monitor_address=192.168.3.12 +mon0 +mon1 +mon2 [mgrs] mon0