Actions
Bug #26472
openrace condition when importing manifest with registered hypervisors
Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
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'"
Updated by Jonathon Turel about 6 years ago
- Target version set to Katello 3.13.0
- Triaged changed from No to Yes
Updated by John Mitsch almost 6 years ago
- Target version changed from Katello 3.13.0 to Katello Backlog
Actions