Bug #34299
Updated by Justin Sherrill almost 3 years ago
Upgrade Satellite upgrade from Katello 4.1 6.10.2 (and 6.10.1) to 4.3 7.0 fails during db:seed with ActiveRecord::RecordNotDestroyed: Failed to destroy the record Empty \n\nEmpty satellite was used. *How reproducible:* 100% *Steps used.\n\n*Version-Release number of selected component (if applicable):*\nSatellite 7.0.0 Snap6\n\n*How reproducible:*\n100%\n\n*Steps to Reproduce:* 1. Reproduce:*\n1. Have a empty and registered foreman/katello 4.1 2. Satellite 6.10.2 \n2. Upgrade to 4.3 directly # 7.0.0\n\n# satellite-maintain upgrade run --target-version 7.0 -w repositories-validate,repositories-setup -y ... Running -y\n...\n\nRunning Migration scripts to Satellite 7.0 ================================================================================ Setup 7.0\n================================================================================\nSetup repositories: [SKIPPED] -------------------------------------------------------------------------------- Unlock [SKIPPED]\n--------------------------------------------------------------------------------\nUnlock packages: [OK] -------------------------------------------------------------------------------- Update [OK]\n--------------------------------------------------------------------------------\nUpdate package(s) : [OK] -------------------------------------------------------------------------------- Procedures::Installer::Upgrade: [OK]\n--------------------------------------------------------------------------------\nProcedures::Installer::Upgrade: [FAIL] Failed [FAIL]\nFailed executing LANG=en_US.utf-8 satellite-installer --disable-system-checks, exit status 6: ... 2022-01-20 6:\n...\n\n2022-01-20 17:18:28 [ERROR ] [configure] /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]: Failed to call refresh: '/usr/sbin/foreman-rake db:seed' returned 1 instead of one of [0] 2022-01-20 [0]\n2022-01-20 17:18:28 [ERROR ] [configure] /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]: '/usr/sbin/foreman-rake db:seed' returned 1 instead of one of [0] ... Scenario [0]\n...\n\nScenario [Migration scripts to Satellite 7.0] failed. The failed.\n\nThe following steps ended up in failing state: [installer-upgrade] *Actual results:* failed state:\n\n [installer-upgrade]\n\n\n*Actual results:*\nfailed upgrade due to failing db:seed *Expected results:* successful db:seed\n\n*Expected results:*\nsuccessful upgrade"