]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
rhcs: remove ISO install method
authorDimitri Savineau <dsavinea@redhat.com>
Mon, 28 Jun 2021 15:01:22 +0000 (11:01 -0400)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 30 Jun 2021 18:33:44 +0000 (20:33 +0200)
Starting RHCS 5, there's no ISO available anymore.
This removes all ISO variables and the ceph_repository_type variable.

Closes: #6626
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit a05730b38aba12478269c22887178c2917578cbe)

docs/source/installation/non-containerized.rst
group_vars/all.yml.sample
group_vars/rhcs.yml.sample
infrastructure-playbooks/purge-cluster.yml
infrastructure-playbooks/rolling_update.yml
roles/ceph-common/tasks/installs/prerequisite_rhcs_iso_install.yml [deleted file]
roles/ceph-common/tasks/installs/redhat_rhcs_repository.yml
roles/ceph-common/templates/redhat_storage_repo.j2 [deleted file]
roles/ceph-defaults/defaults/main.yml
roles/ceph-validate/tasks/check_system.yml
roles/ceph-validate/tasks/main.yml

index f56bdec2aed9d45cb09c6498da8535ea0a37716b..e7b4d5d7f3b4b4aaec4960d98f1af21533d85761 100644 (file)
@@ -15,7 +15,7 @@ Origin: Repository
 If ``ceph_origin`` is set to ``repository``, you now have the choice between a couple of repositories controlled by the ``ceph_repository`` option:
 
 - ``community``: fetches packages from http://download.ceph.com, the official community Ceph repositories
-- ``rhcs``: means you are a Red Hat customer, additionally you will have to select a repository type through ``ceph_repository_type`` (``cdn`` or ``iso``)
+- ``rhcs``: means you are a Red Hat customer
 - ``dev``: fetches packages from shaman, a gitbuilder based package system
 - ``uca``: fetches packages from Ubuntu Cloud Archive
 - ``custom``: fetches packages from a specific repository
@@ -33,7 +33,6 @@ RHCS repository
 RHCS is the Red Hat Ceph Storage product from Red Hat, the enterprise version of Ceph.
 If ``ceph_repository`` is set to ``rhcs``, packages you will be installed from Red Hat sources.
 
-Additionally you will have to select a repository type through ``ceph_repository_type``, it can be ``cdn`` or ``iso``.
 To choose a specific version of RHCS you can set the ``ceph_rhcs_version`` variable accordingly, e.g: ``ceph_rhcs_version: 2``.
 
 UCA repository
index 21120e3bc6994e808d556ba7ed855a891ec41a8c..3ac184445b788a18d9d87df42466e2ff87680b7d 100644 (file)
@@ -109,8 +109,6 @@ dummy:
 ###########
 # INSTALL #
 ###########
-#ceph_repository_type: dummy
-
 # ORIGIN SOURCE
 #
 # Choose between:
@@ -162,12 +160,6 @@ dummy:
 # This version is supported on RHEL 8
 #
 #ceph_rhcs_version: "{{ ceph_stable_rh_storage_version | default(5) }}"
-#valid_ceph_repository_type:
-#  - cdn
-#  - iso
-#ceph_rhcs_iso_path: "{{ ceph_stable_rh_storage_iso_path | default('') }}"
-#ceph_rhcs_mount_path: "{{ ceph_stable_rh_storage_mount_path | default('/tmp/rh-storage-mount') }}"
-#ceph_rhcs_repository_path: "{{ ceph_stable_rh_storage_repository_path | default('/tmp/rh-storage-repo') }}" # where to copy iso's content
 
 
 # REPOSITORY: UBUNTU CLOUD ARCHIVE
index 74a4e0e38d3285f8ab94f0465d4ca433200e3e57..e22b965569e320c541226c12d0b3a958524be5c8 100644 (file)
@@ -109,8 +109,6 @@ dummy:
 ###########
 # INSTALL #
 ###########
-#ceph_repository_type: dummy
-
 # ORIGIN SOURCE
 #
 # Choose between:
@@ -162,12 +160,6 @@ ceph_repository: rhcs
 # This version is supported on RHEL 8
 #
 ceph_rhcs_version: 5
-#valid_ceph_repository_type:
-#  - cdn
-#  - iso
-#ceph_rhcs_iso_path: "{{ ceph_stable_rh_storage_iso_path | default('') }}"
-#ceph_rhcs_mount_path: "{{ ceph_stable_rh_storage_mount_path | default('/tmp/rh-storage-mount') }}"
-#ceph_rhcs_repository_path: "{{ ceph_stable_rh_storage_repository_path | default('/tmp/rh-storage-repo') }}" # where to copy iso's content
 
 
 # REPOSITORY: UBUNTU CLOUD ARCHIVE
index 016926ebe49cecf12748e68c985946ef5b52e450..7f4f28cdf0df9de8fe2a7dc4cd0ec6a912fe872d 100644 (file)
     command: dnf clean all
     when: ansible_facts['pkg_mgr'] == 'dnf'
 
-  - name: purge rpm cache in /tmp
-    file:
-      path: /tmp/rh-storage-repo
-      state: absent
-
   - name: clean apt
     command: apt-get clean  # noqa 303
     when: ansible_facts['pkg_mgr'] == 'apt'
     with_items:
       - ceph-dev
       - ceph_stable
-      - rh_storage
     when: ansible_facts['os_family'] == 'RedHat'
 
   - name: check for anything running ceph
index a52125062cb3f6045b9dfce71af3d5b18895e663..6092369ed8a9a7235c343aed6a6dd5f18c91634e 100644 (file)
@@ -9,9 +9,7 @@
 #
 # If you run a Ceph community version, you have to change the variable: ceph_stable_release to the new release
 #
-# If you run Red Hat Ceph Storage and are doing a **major** update (e.g: from 2 to 3), you have two options:
-#   - if you use a CDN, you have to change the ceph_rhcs_version to a newer one
-#   - if you use an ISO, you have to change the ceph_rhcs_iso_path to the directory containing the new Ceph version
+# If you run Red Hat Ceph Storage and are doing a **major** update (e.g: from 2 to 3), you have to change the ceph_rhcs_version to a newer one
 #
 
 - name: block upgrade if nfs+rgw deployed
diff --git a/roles/ceph-common/tasks/installs/prerequisite_rhcs_iso_install.yml b/roles/ceph-common/tasks/installs/prerequisite_rhcs_iso_install.yml
deleted file mode 100644 (file)
index f0899d6..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
----
-- name: create red hat storage package directories for redhat systems
-  file:
-    path: "{{ item }}"
-    state: directory
-  with_items:
-    - "{{ ceph_rhcs_mount_path }}"
-    - "{{ ceph_rhcs_repository_path }}"
-
-- name: ensure destination iso directory exists for redhat systems
-  file:
-    path: "{{ ceph_rhcs_iso_path | dirname }}"
-    state: directory
-    recurse: yes
-  when: ceph_rhcs_iso_path | dirname != '/'
-
-- name: fetch the red hat storage iso from the ansible server for redhat systems
-  copy:
-    src: "{{ ceph_rhcs_iso_path }}"
-    dest: "{{ ceph_rhcs_iso_path }}"
-
-# assumption: ceph_rhcs_mount_path does not specify directory
-
-- name: mount red hat storage iso file for redhat systems
-  mount:
-    name: "{{ ceph_rhcs_mount_path }}"
-    src: "{{ ceph_rhcs_iso_path }}"
-    fstype: iso9660
-    opts: ro,loop,noauto
-    passno: 2
-    state: mounted
-
-- name: copy red hat storage iso content for redhat systems
-  shell: cp -r {{ ceph_rhcs_mount_path }}/* {{ ceph_rhcs_repository_path }}
-  args:
-    creates: "{{ ceph_rhcs_repository_path+'/README' if not rolling_update | bool else 'dummy' }}"
-
-- name: unmount red hat storage iso file for redhat systems
-  mount:
-    name: "{{ ceph_rhcs_mount_path }}"
-    src: "{{ ceph_rhcs_iso_path }}"
-    fstype: iso9660
-    state: unmounted
-
-- name: install red hat storage repository key for redhat systems
-  rpm_key:
-    key: "{{ ceph_rhcs_repository_path }}/RPM-GPG-KEY-redhat-release"
-    state: present
-  register: result
-  until: result is succeeded
-
-- name: add red hat storage repository for redhat systems
-  template:
-    src: "{{ role_path }}/templates/redhat_storage_repo.j2"
-    dest: /etc/yum.repos.d/rh_storage.repo
-    owner: root
-    group: root
-    mode: 0644
index 78cfca717a5e9d66f2a947deb91d9f86683777b7..5763b7386b3881913f9a62e64f756eb769901d43 100644 (file)
@@ -1,8 +1,3 @@
 ---
-- name: include prerequisite_rhcs_iso_install.yml
-  include_tasks: prerequisite_rhcs_iso_install.yml
-  when: ceph_repository_type == 'iso'
-
 - name: include prerequisite_rhcs_cdn_install.yml
   include_tasks: prerequisite_rhcs_cdn_install.yml
-  when: ceph_repository_type == 'cdn'
diff --git a/roles/ceph-common/templates/redhat_storage_repo.j2 b/roles/ceph-common/templates/redhat_storage_repo.j2
deleted file mode 100644 (file)
index 16f57c4..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-# {{ ansible_managed }}
-[rh_storage_mon]
-name=Red Hat Ceph Storage - local packages for Ceph monitor
-baseurl=file://{{ ceph_rhcs_repository_path }}/MON
-enabled=1
-gpgcheck=1
-priority=1
-
-[rh_storage_osd]
-name=Red Hat Ceph Storage - local packages for Ceph OSD
-baseurl=file://{{ ceph_rhcs_repository_path }}/OSD
-enabled=1
-gpgcheck=1
-priority=1
-
-[rh_storage_tools]
-name=Red Hat Ceph Storage - local packages for Ceph client, MDS, and RGW
-baseurl=file://{{ ceph_rhcs_repository_path }}/Tools
-enabled=1
-gpgcheck=1
-priority=1
index e14390bf8ac55b6680bd9d16116ad22a038f6b9f..77283e7f66e81e09a48d0685f867814a15188af2 100644 (file)
@@ -101,8 +101,6 @@ ceph_directories_mode: "0755"
 ###########
 # INSTALL #
 ###########
-ceph_repository_type: dummy
-
 # ORIGIN SOURCE
 #
 # Choose between:
@@ -154,12 +152,6 @@ nfs_ganesha_stable_deb_repo: "{{ ceph_mirror }}/nfs-ganesha/deb-{{ nfs_ganesha_s
 # This version is supported on RHEL 8
 #
 ceph_rhcs_version: "{{ ceph_stable_rh_storage_version | default(5) }}"
-valid_ceph_repository_type:
-  - cdn
-  - iso
-ceph_rhcs_iso_path: "{{ ceph_stable_rh_storage_iso_path | default('') }}"
-ceph_rhcs_mount_path: "{{ ceph_stable_rh_storage_mount_path | default('/tmp/rh-storage-mount') }}"
-ceph_rhcs_repository_path: "{{ ceph_stable_rh_storage_repository_path | default('/tmp/rh-storage-repo') }}" # where to copy iso's content
 
 
 # REPOSITORY: UBUNTU CLOUD ARCHIVE
index 62b36089b78cbf3dd077fe6dacdb84194f87d899..f3c47bd5ce3b8b15b103f9d04d20d9ca3fa20b0a 100644 (file)
@@ -44,7 +44,6 @@
       when: ansible_facts['distribution_version'] is version('8.2', '<')
 
     - name: subscription manager related tasks
-      when: ceph_repository_type == 'cdn'
       block:
         - name: determine if node is registered with subscription-manager
           command: subscription-manager identity
index 775cb7a553804e703426c0dcea45e3c35040ff6e..227be918a712428b1128d03201ac336855790853 100644 (file)
         - ceph_repository == 'community'
         - ceph_stable_release not in ['pacific']
 
-    - name: validate ceph_repository_type
-      fail:
-        msg: "ceph_repository_type must be either 'cdn' or 'iso'"
-      when:
-        - ceph_origin == 'repository'
-        - ceph_repository == 'rhcs'
-        - ceph_repository_type not in ['cdn', 'iso']
-
 - name: validate osd_objectstore
   fail:
     msg: "osd_objectstore must be either 'bluestore' or 'filestore'"