]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
stable-2.2: drop nfs_obj_gw
authorFlorian Haas <florian@hastexo.com>
Thu, 21 Sep 2017 16:21:49 +0000 (18:21 +0200)
committerFlorian Haas <florian@hastexo.com>
Thu, 21 Sep 2017 20:59:49 +0000 (22:59 +0200)
As Ali Maredia explains (in
https://github.com/ceph/ceph-ansible/issues/1907#issuecomment-331200448),
since the Ceph RGW/NFS gateway (with the nfs-ganesha RGW FSAL) is not
supported for any stable Ceph release prior to Luminous, the
nfs_obj_gw variable does not serve any real purpose in this
branch. Thus, remove it along with all references that use it.

group_vars/all.yml.sample
group_vars/nfss.yml.sample
roles/ceph-common/defaults/main.yml
roles/ceph-common/tasks/installs/debian_ceph_repository.yml
roles/ceph-common/tasks/installs/install_on_redhat.yml
roles/ceph-nfs/defaults/main.yml
roles/ceph-nfs/tasks/docker/create_configs.yml
roles/ceph-nfs/tasks/pre_requisite.yml
roles/ceph-rgw/tasks/docker/copy_configs.yml [deleted file]

index 457c4a1792e78590f587f2f67a6313d89586a6fa..cec049a8a76960a97381b084233333780c86f491 100644 (file)
@@ -406,8 +406,6 @@ dummy:
 #
 # Set this to true to enable File access via NFS.  Requires an MDS role.
 #nfs_file_gw: true
-# Set this to true to enable Object access via NFS. Requires an RGW role.
-#nfs_obj_gw: false
 
 # this is only here for usage with the rolling_update.yml playbook
 # do not ever change this here
index 952b0922995a206a4f11193b5a85dd7e0d6c3727..91dc917efbbecc1a904e99bc7ece57fe9e6f5097 100644 (file)
@@ -23,7 +23,6 @@ dummy:
 #######################
 # Access type options #
 #######################
-# These are currently in ceph-common defaults because nfs_obj_gw shared with ceph-rgw
 # Enable NFS File access
 #nfs_file_gw: true
 # Enable NFS Object access
index 00864361d3a86444a9bcdda1aa7c7ad8a1170334..dd7447bfc795dbd61b420ee3e103d32c9f7250db 100644 (file)
@@ -398,8 +398,6 @@ mon_containerized_default_ceph_conf_with_kv: false
 #
 # Set this to true to enable File access via NFS.  Requires an MDS role.
 nfs_file_gw: true
-# Set this to true to enable Object access via NFS. Requires an RGW role.
-nfs_obj_gw: false
 
 # this is only here for usage with the rolling_update.yml playbook
 # do not ever change this here
index e7b798cacf77fb850e130dfe844b0b48835105a7..24a45477e73674b3fb10d6664281d67f8e8ebaf0 100644 (file)
@@ -60,5 +60,5 @@
     - ppa:gluster/nfs-ganesha-2.5
   changed_when: false
   when:
-    - (nfs_obj_gw or nfs_file_gw)
+    - nfs_file_gw
     - not ansible_distribution == "Debian"
index a99c7d08ce166b0a963445ec687d6bcb9e4afa95..ed51949fd8db0eb137497d9711b212f8a196650d 100644 (file)
     - nfs_group_name in group_names
     - nfs_file_gw
 
-- name: install nfs rgw gateway
-  package:
-    name: "{{ item }}"
-  with_items:
-    - nfs-ganesha-rgw
-    - ceph-radosgw
-  when:
-    - nfs_group_name in group_names
-    - nfs_obj_gw
-
 - name: install ceph mgr
   package:
     name: ceph-mgr
index 2ba3636827a27aea0ee063f0ed84f0cfbd543d44..31fb56a3d16fc69a8ef77237f14e232faf347eb3 100644 (file)
@@ -15,11 +15,8 @@ cephx: true
 #######################
 # Access type options #
 #######################
-# These are currently in ceph-common defaults because nfs_obj_gw shared with ceph-rgw
 # Enable NFS File access
 #nfs_file_gw: true
-# Enable NFS Object access
-#nfs_obj_gw: false
 
 ######################
 # NFS Ganesha Config #
index c30dd7c914a117f593986ea9d4cc940aebfb9209..cda4a3ce81932fb642a4789a9d4f61675a4c18f5 100644 (file)
@@ -7,18 +7,6 @@
     group: root
     mode: 0644
 
-- name: create the nfs rgw user
-  docker:
-    image: "{{ ceph_docker_image }}:{{ ceph_docker_image_tag }}"
-    name: ceph-rgw-user-{{ ansible_hostname }}
-    hostname: "{{ ansible_hostname }}"
-    expose: "{{ ceph_rgw_civetweb_port }}"
-    ports: "{{ ceph_rgw_civetweb_port }}:{{ ceph_rgw_civetweb_port }}"
-    state: running
-    env: "CEPH_DAEMON=RGW_USER,RGW_USERNAME={{ ceph_nfs_rgw_user }},RGW_USER_ACCESS_KEY={{ ceph_nfs_rgw_access_key }},RGW_USER_SECRET_KEY={{ ceph_nfs_rgw_secret_key }}"
-    volumes: "/var/lib/ceph:/var/lib/ceph,/etc/ceph:/etc/ceph"
-  when: nfs_obj_gw
-
 - name: get user create output
   command: docker logs ceph-rgw-user-{{ ansible_hostname }}
   always_run: true
index 9da9f256a0fdfa2ce991e2392db38e58ec09ad4c..f2e8784dc67076f1c9587be5cce791bc11b27fba 100644 (file)
     - /var/lib/nfs/ganesha
     - /var/run/ganesha
 
-- name: create rgw nfs user
-  command: radosgw-admin user create --uid={{ ceph_nfs_rgw_user }} --display-name="RGW NFS User"
-  register: rgwuser
-  when: nfs_obj_gw
-
-- name: set access key
-  set_fact:
-    ceph_nfs_rgw_access_key: "{{ (rgwuser.stdout | from_json)['keys'][0]['access_key'] }}"
-  when: nfs_obj_gw
-
-- name: set secret key
-  set_fact:
-    ceph_nfs_rgw_secret_key: "{{(rgwuser.stdout | from_json)['keys'][0]['secret_key']}}"
-  when: nfs_obj_gw
-
 - name: generate ganesha configuration file
   action: config_template
   args:
diff --git a/roles/ceph-rgw/tasks/docker/copy_configs.yml b/roles/ceph-rgw/tasks/docker/copy_configs.yml
deleted file mode 100644 (file)
index a05d638..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
----
-- name: set config and keys paths
-  set_fact:
-    rgw_config_keys:
-      - "/var/lib/ceph/radosgw/{{ ansible_hostname }}/keyring"
-  when: nfs_obj_gw
-
-- name: wait for rgw keyring
-  wait_for: path="/var/lib/ceph/radosgw/{{ ansible_hostname }}/keyring"
-  when:
-    - nfs_obj_gw
-    - inventory_hostname == groups[rgw_group_name][0]
-
-- name: stat for config and keys
-  local_action: stat path={{ fetch_directory }}/docker_mon_files/{{ item }}
-  with_items: "{{ rgw_config_keys }}"
-  changed_when: false
-  become: false
-  failed_when: false
-  always_run: true
-  register: statconfig
-  when:
-    - nfs_obj_gw
-    - inventory_hostname == groups[rgw_group_name][0]
-
-- name: push ceph files to the ansible server
-  fetch:
-    src: "{{ item.0 }}"
-    dest: "{{ fetch_directory }}/docker_mon_files/var/lib/ceph/radosgw/keyring"
-    flat: yes
-  with_together:
-    - "{{ rgw_config_keys }}"
-    - "{{ statconfig.results }}"
-  when:
-    - nfs_obj_gw
-    - item.1.stat.exists == false
-    - inventory_hostname == groups[rgw_group_name][0]