Project

General

Profile

Actions

Bug #36217

closed

Upgrade from Foreman 3.5.2 to 3.6 shows class Certs::Puppet is already declared

Added by Matt Norwood about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Category:
foreman-installer script
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

I have attempted the upgrade several times:

[root@prlforeman01 foreman]# foreman-maintain service status --brief
Running Status Services ================================================================================
Get status of applicable services:

Displaying the following service(s):
redis, postgresql, pulpcore-api, pulpcore-content, , , tomcat, dynflow-sidekiq@orchestrator, foreman, httpd, puppetserver, dynflow-sidekiq@worker-1, dynflow-sidekiq@worker-hosts-queue-1, foreman-proxy | displaying redis [OK]
/ displaying postgresql [OK]
/ displaying pulpcore-api [OK]
/ displaying pulpcore-content [OK]
/ displaying [OK]
/ displaying [OK]
/ displaying tomcat [OK]
- displaying dynflow-sidekiq@orchestrator [OK]
- displaying foreman [OK]
- displaying httpd [OK]
- displaying puppetserver [OK]
- displaying dynflow-sidekiq@worker-1 [OK]
- displaying dynflow-sidekiq@worker-hosts-queue-1 [OK]
- displaying foreman-proxy [OK]
- All services are running [OK]
--------------------------------------------------------------------------------

[root@prlforeman01 foreman]# hammer status;hammer ping
Version: 3.5.2
API Version: v2
Database:
Status: ok
Server Response: Duration: 0ms
Plugins:
1) Name: foreman-tasks
Version: 7.1.1
2) Name: foreman_ansible
Version: 10.4.1
3) Name: foreman_openscap
Version: 5.2.2
4) Name: foreman_puppet
Version: 5.0.0
5) Name: foreman_remote_execution
Version: 8.2.0
6) Name: katello
Version: 4.7.4
Smart Proxies:
1) Name: prlforeman01.norwood-cs.com
Version: 3.5.2
Status: ok
Features:
1) Name: pulpcore
Version: 3.2.0
2) Name: openscap
Version: 0.9.2
3) Name: dynflow
Version: 0.9.0
4) Name: script
Version: 0.9.0
5) Name: ansible
Version: 3.5.4
6) Name: puppetca
Version: 3.5.2
7) Name: puppet
Version: 3.5.2
8) Name: logs
Version: 3.5.2
Compute Resources:

candlepin:
Status: ok
Server Response: Duration: 35ms
candlepin_auth:
Status: ok
Server Response: Duration: 44ms
candlepin_events:
Status: ok
message: 0 Processed, 0 Failed
Server Response: Duration: 0ms
katello_events:
Status: ok
message: 0 Processed, 0 Failed
Server Response: Duration: 0ms
pulp3:
Status: ok
Server Response: Duration: 764ms
pulp3_content:
Status: ok
Server Response: Duration: 576ms
foreman_tasks:
Status: ok
Server Response: Duration: 4ms

database:
Status: ok
Server Response: Duration: 0ms
candlepin:
Status: ok
Server Response: Duration: 32ms
candlepin_auth:
Status: ok
Server Response: Duration: 32ms
candlepin_events:
Status: ok
message: 0 Processed, 0 Failed
Server Response: Duration: 0ms
katello_events:
Status: ok
message: 0 Processed, 0 Failed
Server Response: Duration: 0ms
pulp3:
Status: ok
Server Response: Duration: 89ms
pulp3_content:
Status: ok
Server Response: Duration: 84ms
foreman_tasks:
Status: ok
Server Response: Duration: 2ms

[root@prlforeman01 ~]# dnf repolist
repo id repo name
appstream Rocky Linux 8 - AppStream
baseos Rocky Linux 8 - BaseOS
centos-ansible-29 CentOS Configmanagement SIG - ansible-29
extras Rocky Linux 8 - Extras
foreman Foreman 3.6
foreman-plugins Foreman plugins 3.6
katello Katello 4.8
katello-candlepin Candlepin: an open source entitlement management system.
powertools Rocky Linux 8 - PowerTools
pulpcore pulpcore: Fetch, Upload, Organize, and Distribute Software Packages.
puppet6 Puppet 6 Repository el 8 - x86_64
zabbix Zabbix Official Repository - x86_64
zabbix-non-supported Zabbix Official Repository non-supported - x86_64

Commands I run:
25313 Mar 22 11:47:41 hammer status;hammer ping
25314 Mar 22 11:48:07 foreman-rake katello:upgrade_check
25315 Mar 22 11:48:59 dnf update -y https://yum.theforeman.org/releases/3.6/el8/x86_64/foreman-release.rpm
25316 Mar 22 11:49:15 dnf update -y https://yum.theforeman.org/katello/4.8/katello/el8/x86_64/katello-repos-latest.rpm
25317 Mar 22 11:49:26 dnf module enable -y katello:el8 pulpcore:el8
25318 Mar 22 11:49:32 dnf clean all
25319 Mar 22 11:49:35 dnf -y update
25320 Mar 22 11:54:29 foreman-maintain service stop
25321 Mar 22 11:55:48 tail -100 /var/log/foreman-installer/katello.log
25322 Mar 22 11:56:02 foreman-installer

Error each time I attempt to upgrade:
2023-03-22 11:56:30 [ERROR ] [configure] Evaluation Error: Error while evaluating a Resource Statement, Duplicate declaration: Class[Certs::Puppet] is already declared; cannot redeclare (file: /usr/share/foreman-installer/modules/foreman_proxy_content/manifests/init.pp, line: 407) (file: /usr/share/foreman-installer/modules/foreman_proxy_content/manifests/init.pp, line: 407, column: 7) on node prlforeman01.norwood-cs.com

From Foreman Installer:
[root@prlforeman01 ~]# foreman-installer
2023-03-22 12:00:31 [NOTICE] [root] Loading installer configuration. This will take some time.
2023-03-22 12:00:37 [NOTICE] [root] Running installer with log based terminal output at level NOTICE.
2023-03-22 12:00:37 [NOTICE] [root] Use -l to set the terminal output log level to ERROR, WARN, NOTICE, INFO, or DEBUG. See --full-help for definitions.
2023-03-22 12:00:48 [NOTICE] [configure] Starting system configuration.
2023-03-22 12:00:57 [ERROR ] [configure] Evaluation Error: Error while evaluating a Resource Statement, Duplicate declaration: Class[Certs::Puppet] is already declared; cannot redeclare (file: /usr/share/foreman-installer/modules/foreman_proxy_content/manifests/init.pp, line: 407) (file: /usr/share/foreman-installer/modules/foreman_proxy_content/manifests/init.pp, line: 407, column: 7) on node prlforeman01.norwood-cs.com
2023-03-22 12:00:57 [NOTICE] [configure] System configuration has finished.

There were errors detected during install.
Please address the errors and re-run the installer to ensure the system is properly configured.
Failing to do so is likely to result in broken functionality.
The full log is at /var/log/foreman-installer/katello.log

Revert back to snapshot. Currently staying on 3.5.2 as it's stable.

Actions

Also available in: Atom PDF