Project

General

Profile

Bug #26472

race condition when importing manifest with registered hypervisors

Added by Justin Sherrill about 3 years ago. Updated almost 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

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'" 

History

#1 Updated by Justin Sherrill about 3 years ago

  • Bugzilla link set to 1693793

#2 Updated by Jonathon Turel about 3 years ago

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

#3 Updated by John Mitsch almost 3 years ago

  • Target version changed from Katello 3.13.0 to Katello Backlog

Also available in: Atom PDF