Project

General

Profile

Actions

Bug #24988

closed

ActiveRecord::RecordInvalid error when syncing RHEL 7 s390x kickstart repo

Added by Justin Sherrill over 5 years ago. Updated over 5 years ago.

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

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1628544

Description of problem:

Sync of RHEL 7 s390x Kickstart repo ends with the following error:

2018-09-13T10:29:31 [I|aud|] create event for Architecture with id 5
2018-09-13T10:29:31 [E|bac|] Validation failed: Name has already been taken (ActiveRecord::RecordInvalid)
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.6/lib/active_record/validations.rb:78:in `raise_validation_error'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.6/lib/active_record/validations.rb:50:in `save!'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.6/lib/active_record/attribute_methods/dirty.rb:43:in `save!'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.6/lib/active_record/transactions.rb:313:in `block in save!'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.6/lib/active_record/transactions.rb:384:in `block in with_transaction_returning_status'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.6/lib/active_record/connection_adapters/abstract/database_statements.rb:233:in `transaction'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.6/lib/active_record/transactions.rb:210:in `transaction'
...
the rest of lo0g is in an attachment

it seems that it failed to create architecture, s390x is not in the database after that:

foreman=# select * from architectures;
id | name | created_at | updated_at
----+--------+----------------------------+----------------------------
1 | x86_64 | 2018-09-10 13:15:04.713612 | 2018-09-10 13:15:04.713612
2 | i386 | 2018-09-10 13:15:04.719019 | 2018-09-10 13:15:04.719019
(2 rows)

Version-Release number of selected component (if applicable):
Sat 6.4 snap 21

How reproducible:
always

Steps to Reproduce:
1. hammer repository-set enable --name 'Red Hat Enterprise Linux 7 for System Z (Kickstart)' --product 'Red Hat Enterprise Linux for IBM z Systems' --organization-id 1 --basearch s390x --releasever 7.2
2. sync

Actions #1

Updated by The Foreman Bot over 5 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Justin Sherrill
  • Pull request https://github.com/Katello/katello/pull/7712 added
Actions #2

Updated by Andrew Kofink over 5 years ago

  • Target version set to Katello 3.9.0
  • Triaged changed from No to Yes
Actions #3

Updated by Andrew Kofink over 5 years ago

  • Target version changed from Katello 3.9.0 to 931
Actions #4

Updated by Justin Sherrill over 5 years ago

  • Status changed from Ready For Testing to Closed
Actions #5

Updated by Jonathon Turel over 5 years ago

  • Target version changed from 931 to Katello 3.8.1
Actions

Also available in: Atom PDF