Project

Profile

Help

Issue #8603

Updated by jsherril@redhat.com over 3 years ago

With pulpcore 3.11.0 

 ~~~ 
 pulp [34656514-03a4-4255-b3b7-8986492b87b1]: rq.worker:ERROR: Traceback (most recent call last): 
 File "/usr/lib/python3.6/site-packages/django/db/backends/base/base.py", line 240, in _commit 
 return self.connection.commit() 
 psycopg2.errors.ForeignKeyViolation: update or delete on table "core_reservedresource" violates foreign key constraint "core_taskreservedres_resource_id_ee0b7c62_fk_core_rese" on table "core_taskreservedresource" 
 DETAIL:    Key (pulp_id)=(c0b7db83-401e-4a46-8d9e-07f5ab70de1e) is still referenced from table "core_taskreservedresource". 
 The above exception was the direct cause of the following exception: 
 Traceback (most recent call last): 
 File "/usr/lib/python3.6/site-packages/rq/worker.py", line 984, in perform_job 
 started_job_registry=started_job_registry) 
 File "/usr/lib/python3.6/site-packages/pulpcore/tasking/worker.py", line 146, in handle_job_success 
 task.release_resources() 
 File "/usr/lib/python3.6/site-packages/pulpcore/app/models/task.py", line 430, in release_resources 
 reservation.delete() 
 File "/usr/lib/python3.6/site-packages/django_lifecycle/mixins.py", line 146, in delete 
 value = super().delete(*args, **kwargs) 
 File "/usr/lib/python3.6/site-packages/django/db/models/base.py", line 922, in delete 
 return collector.delete() 
 File "/usr/lib/python3.6/site-packages/django/db/models/deletion.py", line 318, in delete 
 sender=model, instance=obj, using=self.using 
 File "/usr/lib/python3.6/site-packages/django/db/transaction.py", line 240, in __exit__ 
 connection.commit() 
 File "/usr/lib/python3.6/site-packages/django/db/backends/base/base.py", line 262, in commit 
 self._commit() 
 File "/usr/lib/python3.6/site-packages/django/db/backends/base/base.py", line 240, in _commit 
 return self.connection.commit() 
 File "/usr/lib/python3.6/site-packages/django/db/utils.py", line 89, in __exit__ 
 raise dj_exc_value.with_traceback(traceback) from exc_value 
 File "/usr/lib/python3.6/site-packages/django/db/backends/base/base.py", line 240, in _commit 
 return self.connection.commit() 
 django.db.utils.IntegrityError: update or delete on table "core_reservedresource" violates foreign key constraint "core_taskreservedres_resource_id_ee0b7c62_fk_core_rese" on table "core_taskreservedresource" 
 DETAIL:    Key (pulp_id)=(c0b7db83-401e-4a46-8d9e-07f5ab70de1e) is still referenced from table "core_taskreservedresource". 
 Traceback (most recent call last): 
 File "/usr/lib/python3.6/site-packages/django/db/backends/base/base.py", line 240, in _commit 
 return self.connection.commit() 
 psycopg2.errors.ForeignKeyViolation: update or delete on table "core_reservedresource" violates foreign key constraint "core_taskreservedres_resource_id_ee0b7c62_fk_core_rese" on table "core_taskreservedresource" 
 DETAIL:    Key (pulp_id)=(c0b7db83-401e-4a46-8d9e-07f5ab70de1e) is still referenced from table "core_taskreservedresource". 
 The above exception was the direct cause of the following exception: 
 Traceback (most recent call last): 
 File "/usr/lib/python3.6/site-packages/rq/worker.py", line 984, in perform_job 
 started_job_registry=started_job_registry) 
 File "/usr/lib/python3.6/site-packages/pulpcore/tasking/worker.py", line 146, in handle_job_success 
 task.release_resources() 
 File "/usr/lib/python3.6/site-packages/pulpcore/app/models/task.py", line 430, in release_resources 
 reservation.delete() 
 File "/usr/lib/python3.6/site-packages/django_lifecycle/mixins.py", line 146, in delete 
 value = super().delete(*args, **kwargs) 
 File "/usr/lib/python3.6/site-packages/django/db/models/base.py", line 922, in delete 
 return collector.delete() 
 File "/usr/lib/python3.6/site-packages/django/db/models/deletion.py", line 318, in delete 
 sender=model, instance=obj, using=self.using 
 File "/usr/lib/python3.6/site-packages/django/db/transaction.py", line 240, in __exit__ 
 connection.commit() 
 File "/usr/lib/python3.6/site-packages/django/db/backends/base/base.py", line 262, in commit 
 self._commit() 
 File "/usr/lib/python3.6/site-packages/django/db/backends/base/base.py", line 240, in _commit 
 return self.connection.commit() 
 File "/usr/lib/python3.6/site-packages/django/db/utils.py", line 89, in __exit__ 
 raise dj_exc_value.with_traceback(traceback) from exc_value 
 File "/usr/lib/python3.6/site-packages/django/db/backends/base/base.py", line 240, in _commit 
 return self.connection.commit() 
 django.db.utils.IntegrityError: update or delete on table "core_reservedresource" violates foreign key constraint "core_taskreservedres_resource_id_ee0b7c62_fk_core_rese" on table "core_taskreservedresource" 
 DETAIL:    Key (pulp_id)=(c0b7db83-401e-4a46-8d9e-07f5ab70de1e) is still referenced from table "core_taskreservedresource". 
 pulp [None]: rq.worker:INFO: 28341@pipe-up-katello-proxy-nightly-centos7.n60.example.com: a9f5653c-8d52-47ea-b36b-52f86d91e9a3 

 ~~~

Back