From 15b72aec5090ae4fa252adee1dfb6a865388fe72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Mon, 13 Aug 2018 11:40:56 +0200 Subject: [PATCH] fail if fqdn deployment attempted fqdn configuration possibility caused a lot of trouble, it's adding a lot of complexity because of multiple cases and the relation between ceph-ansible and ceph-container. Moreover, there is no benefit for such a feature. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1613155 Signed-off-by: Guillaume Abrioux --- group_vars/all.yml.sample | 6 ++++++ group_vars/rhcs.yml.sample | 6 ++++++ roles/ceph-common/tasks/checks/check_mandatory_vars.yml | 7 +++++++ roles/ceph-defaults/defaults/main.yml | 7 +++++++ roles/ceph-docker-common/tasks/check_mandatory_vars.yml | 7 +++++++ 5 files changed, 33 insertions(+) diff --git a/group_vars/all.yml.sample b/group_vars/all.yml.sample index a68999ee3..b05682fe1 100644 --- a/group_vars/all.yml.sample +++ b/group_vars/all.yml.sample @@ -616,3 +616,9 @@ dummy: # - { name: client.gnocchi, caps: { mon: "profile rbd", osd: "profile rbd pool={{ openstack_gnocchi_pool.name }}"}, mode: "0600", } # - { name: client.openstack, caps: { mon: "profile rbd", osd: "profile rbd pool={{ openstack_glance_pool.name }}, profile rbd pool={{ openstack_nova_pool.name }}, profile rbd pool={{ openstack_cinder_pool.name }}, profile rbd pool={{ openstack_cinder_backup_pool.name }}"}, mode: "0600" } + +############### +# DEPRECATION # +############### + +#use_fqdn_yes_i_am_sure: false diff --git a/group_vars/rhcs.yml.sample b/group_vars/rhcs.yml.sample index 2b25c3a2a..9bd2d3c42 100644 --- a/group_vars/rhcs.yml.sample +++ b/group_vars/rhcs.yml.sample @@ -616,3 +616,9 @@ ceph_rhcs_version: 3 # - { name: client.gnocchi, caps: { mon: "profile rbd", osd: "profile rbd pool={{ openstack_gnocchi_pool.name }}"}, mode: "0600", } # - { name: client.openstack, caps: { mon: "profile rbd", osd: "profile rbd pool={{ openstack_glance_pool.name }}, profile rbd pool={{ openstack_nova_pool.name }}, profile rbd pool={{ openstack_cinder_pool.name }}, profile rbd pool={{ openstack_cinder_backup_pool.name }}"}, mode: "0600" } + +############### +# DEPRECATION # +############### + +#use_fqdn_yes_i_am_sure: false diff --git a/roles/ceph-common/tasks/checks/check_mandatory_vars.yml b/roles/ceph-common/tasks/checks/check_mandatory_vars.yml index b19848adf..497378d98 100644 --- a/roles/ceph-common/tasks/checks/check_mandatory_vars.yml +++ b/roles/ceph-common/tasks/checks/check_mandatory_vars.yml @@ -82,3 +82,10 @@ - radosgw_interface == 'interface' - radosgw_address == 'address' - radosgw_address_block == 'subnet' + +- name: warning deprecation for fqdn configuration + fail: + msg: "fqdn configuration is not supported anymore. Use 'use_fqdn_yes_i_am_sure: true' if you really want to use it. See release notes for more details" + when: + - mon_use_fqdn or mds_use_fqdn + - not use_fqdn_yes_i_am_sure \ No newline at end of file diff --git a/roles/ceph-defaults/defaults/main.yml b/roles/ceph-defaults/defaults/main.yml index 863f95fb8..f47749cd6 100644 --- a/roles/ceph-defaults/defaults/main.yml +++ b/roles/ceph-defaults/defaults/main.yml @@ -608,3 +608,10 @@ openstack_keys: - { name: client.cinder-backup, caps: { mon: "profile rbd", osd: "profile rbd pool={{ openstack_cinder_backup_pool.name }}"}, mode: "0600" } - { name: client.gnocchi, caps: { mon: "profile rbd", osd: "profile rbd pool={{ openstack_gnocchi_pool.name }}"}, mode: "0600", } - { name: client.openstack, caps: { mon: "profile rbd", osd: "profile rbd pool={{ openstack_glance_pool.name }}, profile rbd pool={{ openstack_nova_pool.name }}, profile rbd pool={{ openstack_cinder_pool.name }}, profile rbd pool={{ openstack_cinder_backup_pool.name }}"}, mode: "0600" } + + +############### +# DEPRECATION # +############### + +use_fqdn_yes_i_am_sure: false \ No newline at end of file diff --git a/roles/ceph-docker-common/tasks/check_mandatory_vars.yml b/roles/ceph-docker-common/tasks/check_mandatory_vars.yml index 011433b20..3e3e1e0f0 100644 --- a/roles/ceph-docker-common/tasks/check_mandatory_vars.yml +++ b/roles/ceph-docker-common/tasks/check_mandatory_vars.yml @@ -16,3 +16,10 @@ - radosgw_interface == 'interface' - radosgw_address == 'address' - radosgw_address_block == 'subnet' + +- name: warning deprecation for fqdn configuration + fail: + msg: "fqdn configuration is not supported anymore. Use 'use_fqdn_yes_i_am_sure: true' if you really want to use it. See release notes for more details" + when: + - mon_use_fqdn or mds_use_fqdn + - not use_fqdn_yes_i_am_sure \ No newline at end of file