Impossible to re-enable puppet plugin if it was disabled and removed using -f or --remove-all-data option
Issue
-
It is not possible to re-enable the puppet-plugin after it was disabled and purged forcefully.
-
Attempt to re-enabling it fails satellite-installer on the
db:migratestate.2022-05-17 04:45:47 [NOTICE] [configure] 1250 configuration steps out of 2097 steps complete. 2022-05-17 04:46:39 [ERROR ] [configure] '/usr/sbin/foreman-rake db:migrate' returned 1 instead of one of [0] 2022-05-17 04:46:39 [ERROR ] [configure] /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]/returns: change from 'notrun' to ['0'] failed: '/usr/sbin/foreman-rake db:migrate' returned 1 instead of one of [0]The
db:migrateexecution itself fails with the following error:== 20121018152459 CreateHostgroupClasses: migrating =========================== -- rename_table(:hostgroups_puppetclasses, :hostgroup_classes) rake aborted! StandardError: An error has occurred, this and all later migrations canceled: PG::UndefinedTable: ERROR: relation "hostgroups_puppetclasses" does not exist
Environment
- Red Hat Satellite 6.11 - 6.17
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.