From c5e059734581d20cb3ba0a0b16c234971627d67f Mon Sep 17 00:00:00 2001 From: Tony Garcia Date: Thu, 12 Sep 2024 09:39:43 -0500 Subject: [PATCH] Remove pyghmi,crypto package references (#1060) The RDO repository removed the rhel8/centos8 packages[0] as CentOS Stream 8 is EOL by the end of May. The role[1] has been modified to avoid the need of such requirement. [0] https://lists.rdoproject.org/archives/list/dev@lists.rdoproject.org/thread/Q3AD6A5B3RM5ENAN6MCXICCVTQJYNLTD/ [1] https://github.com/redhatci/ansible-collection-redhatci-ocp/pull/314 --- .../ansible-playbook-fully-disconnected.adoc | 1 - ...aybook-appendix-python3-crypto-pyghmi.adoc | 34 ----------------- .../modules/ansible-playbook-checklist.adoc | 1 - ...install-python3-crypto-python3-pyghmi.adoc | 38 ------------------- .../modules/ansible-playbook-gotchas.adoc | 1 - .../ansible-playbook-prerequisites.adoc | 2 - 6 files changed, 77 deletions(-) delete mode 100644 documentation/ansible-playbook/modules/ansible-playbook-appendix-python3-crypto-pyghmi.adoc delete mode 100644 documentation/ansible-playbook/modules/ansible-playbook-failed-to-install-python3-crypto-python3-pyghmi.adoc diff --git a/documentation/ansible-playbook/ansible-playbook-fully-disconnected.adoc b/documentation/ansible-playbook/ansible-playbook-fully-disconnected.adoc index 8d090b88b9..d0be6a23fb 100644 --- a/documentation/ansible-playbook/ansible-playbook-fully-disconnected.adoc +++ b/documentation/ansible-playbook/ansible-playbook-fully-disconnected.adoc @@ -52,6 +52,5 @@ include::modules/ansible-playbook-contents-of-the-webserver.adoc[leveloffset=+1] include::modules/ansible-playbook-checklist.adoc[leveloffset=+1] include::modules/ansible-playbook-disconnected-running-the-playbook.adoc[leveloffset=+1] include::modules/ansible-playbook-appendix-creating-local-repository.adoc[] -include::modules/ansible-playbook-appendix-python3-crypto-pyghmi.adoc[] include::modules/ansible-playbook-appendix-env-vars-sh.adoc[] include::modules/ansible-playbook-appendix-helper-script-sh.adoc[] diff --git a/documentation/ansible-playbook/modules/ansible-playbook-appendix-python3-crypto-pyghmi.adoc b/documentation/ansible-playbook/modules/ansible-playbook-appendix-python3-crypto-pyghmi.adoc deleted file mode 100644 index 549e979958..0000000000 --- a/documentation/ansible-playbook/modules/ansible-playbook-appendix-python3-crypto-pyghmi.adoc +++ /dev/null @@ -1,34 +0,0 @@ -[id="ansible-playbook-appendix-appendix-python3-crypto-pyghmi"] - -[[packages]] -[appendix] -== Installing `python3-crypto` and `python3-pyghmi` - -The Ansible playbook uses the https://docs.ansible.com/ansible/latest/modules/ipmi_power_module.html[`ipmi_power`] -module to power off the OpenShift cluster nodes prior to deployment. This -particular module has a dependency for two packages: -`python3-crypto` and `python3-pyghmi`. When using Red Hat Enterprise Linux 8, -these packages do not reside in BaseOS nor AppStream repositories. If using -`subscription-manager`, they reside in the OpenStack repositories such as -`openstack-16-for-rhel-8-x86_64-rpms`, however, to simplify the installation -of these packages, the playbook uses the available versions from -`trunk.rdoproject.org`. - -The playbook assumes that the rpm packages are manually installed on -provision host. - -When the provision host packages are -not already installed on the system, the following error can be expected - -```sh -TASK [node_prep : Install required packages] ************************************************************************************************ -Thursday 07 May 2020 19:11:35 +0000 (0:00:00.161) 0:00:11.940 ********** -fatal: [provisioner.example.com]: FAILED! => {"changed": false, "failures": ["No package python3-crypto available.", "No package python3-pyghmi available."], "msg": "Failed to install some of the specified packages", "rc": 1, "results": []} -``` ---- - -The `python3-crypto` and `python3-pyghmi` can be downloaded from the following -links for install on an offline provision host and transferred locally for local install of the rpms. - -- https://trunk.rdoproject.org/rhel8-master/deps/latest/Packages/python3-crypto-2.6.1-18.el8ost.x86_64.rpm[python3-crypto] -- https://trunk.rdoproject.org/rhel8-master/deps/latest/Packages/python3-pyghmi-1.0.22-2.el8ost.noarch.rpm[python3-pyghmi] diff --git a/documentation/ansible-playbook/modules/ansible-playbook-checklist.adoc b/documentation/ansible-playbook/modules/ansible-playbook-checklist.adoc index f039888566..298b24e12b 100644 --- a/documentation/ansible-playbook/modules/ansible-playbook-checklist.adoc +++ b/documentation/ansible-playbook/modules/ansible-playbook-checklist.adoc @@ -19,7 +19,6 @@ include::../../ipi-install/modules/ipi-install-validation-checklist-for-nodes.ad == Validation checklist for Ansible playbook installation * [ ] Create a local repository using a RHEL 8 Installation DVD to install packages -* [ ] Manually install `python3-crypto` and `python3-pyghmi` on the provision host (packages not part of RHEL installation DVD) * [ ] Suppress `Unable to read consumer identity` messages when using `subscription-manager` via `/etc/yum.conf` * [ ] Ensure `release.txt` file exists within the webserver path/to/webserver/ * [ ] Ensure `rhcos.json` file exists within the webserver path/to/webserver/ diff --git a/documentation/ansible-playbook/modules/ansible-playbook-failed-to-install-python3-crypto-python3-pyghmi.adoc b/documentation/ansible-playbook/modules/ansible-playbook-failed-to-install-python3-crypto-python3-pyghmi.adoc deleted file mode 100644 index a51191f9b0..0000000000 --- a/documentation/ansible-playbook/modules/ansible-playbook-failed-to-install-python3-crypto-python3-pyghmi.adoc +++ /dev/null @@ -1,38 +0,0 @@ -[id="ansible-playbook-failed-to-install-python3-crypto-python3-pyghmi"] - -= Failed to install `python3-crypto` & `python3-pyghmi` - -The Ansible playbook uses the -https://docs.ansible.com/ansible/latest/modules/ipmi_power_module.html[`ipmi_power`] -module to power off the OpenShift cluster nodes prior to deployment. -This particular module has a dependency for two packages: -`python3-crypto` and `python3-pyghmi`. When using Red Hat Enterprise -Linux 8, these packages do not reside in BaseOS nor AppStream -repositories. If using `subscription-manager`, they reside in the -OpenStack repositories such as `openstack-16-for-rhel-8-x86_64-rpms`, -however, to simplify the installation of these packages, the playbook -uses the available versions from `trunk.rdoproject.org`. - -The playbook assumes that the provision host can access -`trunk.rdoproject.org` or that the rpm packages are manually installed -on provision host. - -When the provision host cannot reach `trunk.rdopoject.org` and the -packages are not already installed on the system, the following error -can be expected - -[source,bash] ----- -TASK [node_prep : Install required packages] ************************************************************************************************ -Thursday 07 May 2020 19:11:35 +0000 (0:00:00.161) 0:00:11.940 ********** -fatal: [provisioner.example.com]: FAILED! => {"changed": false, "failures": ["No package python3-crypto available.", "No package python3-pyghmi available."], "msg": "Failed to install some of the specified packages", "rc": 1, "results": []} ----- - -[NOTE] -==== -The `python3-crypto` and `python3-pyghmi` can be downloaded from the -following links if required for an offline provision host: - -* https://trunk.rdoproject.org/rhel8-master/deps/latest/Packages/python3-crypto-2.6.1-18.el8ost.x86_64.rpm[python3-crypto] -* https://trunk.rdoproject.org/rhel8-master/deps/latest/Packages/python3-pyghmi-1.0.22-2.el8ost.noarch.rpm[python3-pyghmi] -==== diff --git a/documentation/ansible-playbook/modules/ansible-playbook-gotchas.adoc b/documentation/ansible-playbook/modules/ansible-playbook-gotchas.adoc index 420ae327f9..32d21c0e1e 100644 --- a/documentation/ansible-playbook/modules/ansible-playbook-gotchas.adoc +++ b/documentation/ansible-playbook/modules/ansible-playbook-gotchas.adoc @@ -3,5 +3,4 @@ = Gotchas include::ansible-playbook-using-become-yes-within-ansiblecfg-or-inside-playbookyml.adoc[leveloffset=+1] -include::ansible-playbook-failed-to-install-python3-crypto-python3-pyghmi.adoc[leveloffset=+1] include::ansible-playbook-failed-to-connect-to-bus-no-file-or-directory.adoc[leveloffset=+1] diff --git a/documentation/ansible-playbook/modules/ansible-playbook-prerequisites.adoc b/documentation/ansible-playbook/modules/ansible-playbook-prerequisites.adoc index 5e643fab3b..86e493754b 100644 --- a/documentation/ansible-playbook/modules/ansible-playbook-prerequisites.adoc +++ b/documentation/ansible-playbook/modules/ansible-playbook-prerequisites.adoc @@ -53,5 +53,3 @@ chmod 0440 /etc/sudoers.d/kni ---- + . Enable a `dnf` <> on the provision host - -. Manually install <> packages on the provision host