Bug #34299
closedUpgrade fails during db:seed with ActiveRecord::RecordNotDestroyed: Failed to destroy the record
Description
Upgrade from Katello 4.1 to 4.3 fails during db:seed with ActiveRecord::RecordNotDestroyed: Failed to destroy the record
Empty satellite was used.
How reproducible:
100%
Steps to Reproduce:
1. Have a empty and registered foreman/katello 4.1
2. Upgrade to 4.3 directly
- satellite-maintain upgrade run --target-version 7.0 -w repositories-validate,repositories-setup -y
...
Running Migration scripts to Satellite 7.0
================================================================================
Setup repositories: [SKIPPED]
--------------------------------------------------------------------------------
Unlock packages: [OK]
--------------------------------------------------------------------------------
Update package(s) : [OK]
--------------------------------------------------------------------------------
Procedures::Installer::Upgrade: [FAIL]
Failed executing LANG=en_US.utf-8 satellite-installer --disable-system-checks, exit status 6:
...
2022-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 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 [Migration scripts to Satellite 7.0] failed.
The following steps ended up in failing state:
[installer-upgrade]
Actual results:
failed upgrade due to failing db:seed
Expected results:
successful upgrade"
Updated by Justin Sherrill almost 3 years ago
- Subject changed from upgrade fails during db:seed with ActiveRecord::RecordNotDestroyed: Failed to destroy the record to upgrade fails during db:seed with ActiveRecord::RecordNotDestroyed: Failed to destroy the record
- Description updated (diff)
Updated by The Foreman Bot almost 3 years ago
- Status changed from New to Ready For Testing
- Assignee set to Justin Sherrill
- Pull request https://github.com/theforeman/foreman/pull/9046 added
Updated by Justin Sherrill almost 3 years ago
- Category changed from TFTP to Templates
Updated by Justin Sherrill almost 3 years ago
- Related to Bug #30843: seeding fails with 'This template is locked. Please clone it to a new template to customize.' added
Updated by Justin Sherrill almost 3 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman|f73d7393455319e29039f2c0ed6f9d2da35c43b8.
Updated by Amit Upadhye over 2 years ago
- Subject changed from upgrade fails during db:seed with ActiveRecord::RecordNotDestroyed: Failed to destroy the record to Upgrade fails during db:seed with ActiveRecord::RecordNotDestroyed: Failed to destroy the record