Project

General

Profile

Actions

Bug #25676

closed

UUID error on syncing repo with module errata

Added by Partha Aji over 5 years ago. Updated over 5 years ago.

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

Description

Sync a repo with module errata but missing module definition (https://partha.fedorapeople.org/test-repos/rpm-with-modules-el8-missing-modules/).
During indexing of the errata Katello tries to create a ModuleStream if it cant find the module listed in the errata.
During the creation of that module stream if that module does not exist in Pulp we get a non null violation.

[[0m|675c0] PG::NotNullViolation: ERROR:  null value in column "uuid" violates not-null constraint
 | DETAIL:  Failing row contains (9, duck, null, 201809302113907, deadbeef, 0, noarch, 2018-12-11 23:25:08.111841, 2018-12-11 23:25:08.111841, null, null).
 | : INSERT INTO "katello_module_streams" ("name", "version", "context", "stream", "arch", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" (ActiveRecord::NotNullViolation)

Steps:
1) Sync https://partha.fedorapeople.org/test-repos/rpm-with-modules-el8-missing-modules/

Expected:
Successful sync with the missing duck:0.9 module ignored

Actual

[[0m|675c0] PG::NotNullViolation: ERROR:  null value in column "uuid" violates not-null constraint
 | DETAIL:  Failing row contains (9, duck, null, 201809302113907, deadbeef, 0, noarch, 2018-12-11 23:25:08.111841, 2018-12-11 23:25:08.111841, null, null).
 | : INSERT INTO "katello_module_streams" ("name", "version", "context", "stream", "arch", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" (ActiveRecord::NotNullViolation)

 | /home/vagrant/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.1/lib/active_record/relation.rb:108:in `first_or_create!'
 | /home/vagrant/git/katello/app/models/katello/erratum.rb:221:in `block (2 levels) in update_modules'
 | /home/vagrant/git/katello/app/models/katello/erratum.rb:218:in `each'
 | /home/vagrant/git/katello/app/models/katello/erratum.rb:218:in `block in update_modules'
 | /home/vagrant/git/katello/app/models/katello/erratum.rb:162:in `run_until'
 | /home/vagrant/git/katello/app/models/katello/erratum.rb:244:in `update_modules'
 | /home/vagrant/git/katello/app/models/katello/erratum.rb:122:in `update_from_json'
 | /home/vagrant/git/katello/app/models/katello/concerns/pulp_database_unit.rb:57:in `block (2 levels) in import_all'
Actions #1

Updated by The Foreman Bot over 5 years ago

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

Updated by Anonymous over 5 years ago

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

Updated by Partha Aji over 5 years ago

  • Bugzilla link set to 1660646
Actions #4

Updated by John Mitsch over 5 years ago

  • Target version set to Katello 3.10.1
  • Triaged changed from No to Yes
Actions

Also available in: Atom PDF