From 9fc5bc32bf9ac5432bf63338526fe2b5a2239def Mon Sep 17 00:00:00 2001 From: scimerman Date: Tue, 6 Jul 2021 09:56:40 +0200 Subject: [PATCH 1/4] Pulp server version locked: pulp_installer==3.12.2 pulpcore==3.12.2 pulp-rpm==3.10.0 --- documentation/Configuring_Pulp.md | 21 +++++++++++++++++++ galaxy-requirements.yml | 4 ++-- .../hyperchicken_cluster/ip_addresses.yml | 14 ++++++------- roles/pulp_server/defaults/main.yml | 4 +++- 4 files changed, 33 insertions(+), 10 deletions(-) diff --git a/documentation/Configuring_Pulp.md b/documentation/Configuring_Pulp.md index 72fd7d489..47613f2dd 100644 --- a/documentation/Configuring_Pulp.md +++ b/documentation/Configuring_Pulp.md @@ -139,6 +139,27 @@ Furthermore the role cannot know when you want to sync a _repo_ with a _remote_ ### Manual work following the pulp_server role +For the `pulpcore` version `3.12.2` and `pulp-rpm` version `3.10.0` you need to downgrade the package `productmd` to version `1.32` + +```bash +[root @ reposrv ] # cd /usr/local/lib/pulp/ +[root @ reposrv ] # source bin/activate +[root @ reposrv ] # pip install 'productmd==1.32' --force-reinstall +[root @ reposrv ] # shutdown -r now +``` +And then check for core and plugin versions + +```bash +[ repoadmin @ reposrv ] $ pulp status +... +- component: core + version: 3.12.2 +- component: rpm + version: 3.10.0 +- component: file + version: 1.7.0 +``` + The following steps must be performed manually for now: * Add content (RPMs) to a _repository_ for the ones without _remote_. diff --git a/galaxy-requirements.yml b/galaxy-requirements.yml index 1600e3757..66e99b392 100644 --- a/galaxy-requirements.yml +++ b/galaxy-requirements.yml @@ -16,8 +16,8 @@ collections: - name: ansible.posix version: '>=1.2.0' - name: pulp.pulp_installer - version: '>=3.12.2' + version: '==3.12.2' - name: pulp.squeezer - version: '>=0.0.8' + v$ersion: '>=0.0.8' ... diff --git a/group_vars/hyperchicken_cluster/ip_addresses.yml b/group_vars/hyperchicken_cluster/ip_addresses.yml index ebca42e19..1dc67793a 100644 --- a/group_vars/hyperchicken_cluster/ip_addresses.yml +++ b/group_vars/hyperchicken_cluster/ip_addresses.yml @@ -1,22 +1,22 @@ --- ip_addresses: hc-repo: - addr: 10.10.1.167 + addr: 10.10.1.87 mask: /32 vlan: hc_internal_management fqdn: - hc-dai: - addr: 10.10.1.86 + hc-sai: + addr: 10.10.1.70 mask: /32 vlan: hc_internal_management fqdn: - desc: Deploy Admin Interface - hc-sai: - addr: 10.10.1.237 + desc: Sys Admin Interface + hc-dai: + addr: 10.10.1.75 mask: /32 vlan: hc_internal_management fqdn: - desc: Sys Admin Interface + desc: Deploy Admin Interface hc-vcompute01: addr: 10.10.1.31 mask: /32 diff --git a/roles/pulp_server/defaults/main.yml b/roles/pulp_server/defaults/main.yml index 2a64ec7b3..00c43abbf 100644 --- a/roles/pulp_server/defaults/main.yml +++ b/roles/pulp_server/defaults/main.yml @@ -19,6 +19,7 @@ pulp_api_host: localhost pulp_api_port: 24817 pulp_api_baseurl: "http://{{ pulp_api_host }}:{{ pulp_api_port }}" pulp_default_admin_password: "{{ pulp_api_password }}" +pulpcore_version: "==3.12.2" pulp_install_plugins: # galaxy-ng: {} # pulp-2to3-migration: {} @@ -32,7 +33,8 @@ pulp_install_plugins: # pulp-maven: {} # pulp-npm: {} # pulp-python: {} - pulp-rpm: {} + pulp-rpm: + version: "==3.10.0" pulp_settings: secret_key: "{{ pulp_secret }}" content_origin: "{{ pulp_webserver_disable_https | default(false) | ternary('http', 'https') }}://{{ ansible_fqdn }}" From 433e40745cd46de27ebef03612a9cc418e22253e Mon Sep 17 00:00:00 2001 From: scimerman Date: Tue, 6 Jul 2021 14:17:24 +0200 Subject: [PATCH 2/4] Updated the documentation about the pulp bug --- documentation/Configuring_Pulp.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/Configuring_Pulp.md b/documentation/Configuring_Pulp.md index 47613f2dd..9ffad5233 100644 --- a/documentation/Configuring_Pulp.md +++ b/documentation/Configuring_Pulp.md @@ -139,7 +139,7 @@ Furthermore the role cannot know when you want to sync a _repo_ with a _remote_ ### Manual work following the pulp_server role -For the `pulpcore` version `3.12.2` and `pulp-rpm` version `3.10.0` you need to downgrade the package `productmd` to version `1.32` +For the `pulpcore` version `3.12.2` and `pulp-rpm` version `3.10.0` you need to downgrade the package `productmd` to version `1.32` due to the [known bug](https://pulp.plan.io/issues/8825) ```bash [root @ reposrv ] # cd /usr/local/lib/pulp/ From 9ae9cb9ed059d1e33a181cee725c891bcde2b8c8 Mon Sep 17 00:00:00 2001 From: scimerman <80223690+scimerman@users.noreply.github.com> Date: Tue, 6 Jul 2021 15:23:50 +0200 Subject: [PATCH 3/4] Typo resolved --- galaxy-requirements.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/galaxy-requirements.yml b/galaxy-requirements.yml index 66e99b392..5640bd7fc 100644 --- a/galaxy-requirements.yml +++ b/galaxy-requirements.yml @@ -18,6 +18,6 @@ collections: - name: pulp.pulp_installer version: '==3.12.2' - name: pulp.squeezer - v$ersion: '>=0.0.8' + version: '>=0.0.8' ... From 77e2bcfac134c60bc0c17606deecb67f9c776e5a Mon Sep 17 00:00:00 2001 From: scimerman Date: Tue, 6 Jul 2021 16:35:37 +0200 Subject: [PATCH 4/4] Fixed yaml typo --- roles/pulp_server/defaults/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/pulp_server/defaults/main.yml b/roles/pulp_server/defaults/main.yml index 00c43abbf..c0defe0e8 100644 --- a/roles/pulp_server/defaults/main.yml +++ b/roles/pulp_server/defaults/main.yml @@ -33,7 +33,7 @@ pulp_install_plugins: # pulp-maven: {} # pulp-npm: {} # pulp-python: {} - pulp-rpm: + pulp-rpm: version: "==3.10.0" pulp_settings: secret_key: "{{ pulp_secret }}"