Project

General

Profile

Actions

Bug #34299

closed

Upgrade fails during db:seed with ActiveRecord::RecordNotDestroyed: Failed to destroy the record

Added by Justin Sherrill almost 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Category:
Templates
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

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

  1. 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"


Related issues 1 (0 open1 closed)

Related to Foreman - Bug #30843: seeding fails with 'This template is locked. Please clone it to a new template to customize.'ClosedJustin SherrillActions
Actions

Also available in: Atom PDF