Bug #35482
closedACS create fails when same name used with "PG::UniqueViolation: ERROR: duplicate key value violates unique constraint"
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=2119120
Description of problem:
Version-Release number of selected component (if applicable):
Satellite 6.12.0 Snap 6.1
How reproducible:
Always
Steps to Reproduce:
1. Enable ACS lab feature
2. # hammer alternate-content-source create --name test_repo_acs --base-url http://reposerver.example.com:33333/ --subpaths fake_yum0/ --smart-proxy-ids 1
Alternate Content Source created.
3. # hammer alternate-content-source create --name test_repo_acs --base-url http://reposerver.example.com:33333/ --subpaths fake_yum0/
Could not create the Alternate Content Source.:
PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_katello_alternate_content_sources_on_name"
DETAIL: Key (name)=(test_repo_acs) already exists.
Actual results:
Expected results:
Additional info:
Updated by The Foreman Bot about 2 years ago
- Status changed from New to Ready For Testing
- Assignee set to Samir Jha
- Pull request https://github.com/Katello/katello/pull/10261 added
Updated by The Foreman Bot about 2 years ago
- Fixed in Releases Katello 4.7.0 added
Updated by Samir Jha about 2 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|445b0ee69e8ce2e8850f32a377ec0d355757071c.
Updated by Jeremy Lenz about 2 years ago
- Subject changed from ACS create fails when same name used with "PG::UniqueViolation: ERROR: duplicate key value violates unique constraint" to ACS create fails when same name used with "PG::UniqueViolation: ERROR: duplicate key value violates unique constraint"
- Target version set to Katello 4.7.0
- Triaged changed from No to Yes
Updated by Jeremy Lenz over 1 year ago
- Category set to Alternate Content Sources