Project

General

Profile

Actions

Bug #26472

open

race condition when importing manifest with registered hypervisors

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

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

Description

Reproduction steps:

1. register a bunch of hypervisors
2. import a manifest with virt supported subs
3. delete the manifest and repeat 2 a few times until you hit an warning


ActiveRecord::InvalidForeignKey

PG::ForeignKeyViolation: ERROR: update or delete on table "katello_pools" violates foreign key constraint "katello_pool_products_pool_id_fk" on table "katello_pool_products" DETAIL: Key (id)=(247) is still referenced from table "katello_pool_products". : DELETE FROM "katello_pools" WHERE "katello_pools"."id" = $1

- "/home/vagrant/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.1/lib/active_record/transactions.rb:305:in
  `destroy'" 
- "/home/vagrant/git/katello/app/models/katello/glue/candlepin/candlepin_object.rb:49:in
  `block (2 levels) in import_all'" 
- "/home/vagrant/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.1/lib/active_record/relation/delegation.rb:41:in
  `each'" 
- "/home/vagrant/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.1/lib/active_record/relation/delegation.rb:41:in
  `each'" 
- "/home/vagrant/git/katello/app/models/katello/glue/candlepin/candlepin_object.rb:44:in
  `block in import_all'" 
Actions #1

Updated by Justin Sherrill about 5 years ago

  • Bugzilla link set to 1693793
Actions #2

Updated by Jonathon Turel about 5 years ago

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

Updated by John Mitsch over 4 years ago

  • Target version changed from Katello 3.13.0 to Katello Backlog
Actions

Also available in: Atom PDF