Bug 1371677

Summary: pulp-manage-db should refuse to run if other pulp processes are running locally
Product: Red Hat Satellite Reporter: Mike McCune <mmccune>
Component: PulpAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: high Docs Contact:
Priority: high    
Version: 6.2.0CC: bbuckingham, dkliban, jcallaha, ktordeur, mhrivnak, mmccune
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-21 18:20:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mike McCune 2016-08-30 18:52:53 UTC
pulp db migrations are not meant to be run while pulp processes are active and can cause major data issues if there are active workers.

There should be a test to prevent this at the startup of the pulp-manage-db process.

This can result in duplicate entries and errors trying to migrate data.

See this KCS for errors caused by this:

[Satellite 6.2] pulp raises E11000 duplicate key error index: pulp_database.units_ostree.$remote_id_1_branch_1_commit_1

https://access.redhat.com/solutions/2534911

Comment 3 pulp-infra@redhat.com 2016-10-05 15:01:23 UTC
The Pulp upstream bug status is at ASSIGNED. Updating the external tracker on this bug.

Comment 4 pulp-infra@redhat.com 2016-10-05 15:01:27 UTC
The Pulp upstream bug priority is at Normal. Updating the external tracker on this bug.

Comment 5 pulp-infra@redhat.com 2016-10-07 19:31:09 UTC
The Pulp upstream bug status is at POST. Updating the external tracker on this bug.

Comment 6 pulp-infra@redhat.com 2016-10-11 17:01:15 UTC
The Pulp upstream bug status is at MODIFIED. Updating the external tracker on this bug.

Comment 7 pulp-infra@redhat.com 2016-10-26 05:01:37 UTC
The Pulp upstream bug status is at ON_QA. Updating the external tracker on this bug.

Comment 8 Brian Bouterse 2016-11-21 18:20:34 UTC
This is a duplicate of 1374723. They both are associated with the same upstream Pulp issue also.

*** This bug has been marked as a duplicate of bug 1374723 ***

Comment 9 pulp-infra@redhat.com 2016-12-07 21:01:22 UTC
The Pulp upstream bug status is at ASSIGNED. Updating the external tracker on this bug.

Comment 10 pulp-infra@redhat.com 2016-12-07 21:31:17 UTC
The Pulp upstream bug status is at NEW. Updating the external tracker on this bug.

Comment 11 Red Hat Bugzilla 2023-09-14 03:30:20 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days