Actions
Bug #25676
closedUUID error on syncing repo with module errata
Difficulty:
Triaged:
Yes
Bugzilla link:
Pull request:
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'
Updated by The Foreman Bot about 6 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/7884 added
Updated by Anonymous about 6 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|b3e388743286b320111f97487d7ad07cdb35c49f.
Updated by John Mitsch about 6 years ago
- Target version set to Katello 3.10.1
- Triaged changed from No to Yes
Actions