Project

General

Profile

Actions

Bug #35482

closed

ACS create fails when same name used with "PG::UniqueViolation: ERROR: duplicate key value violates unique constraint"

Added by Samir Jha about 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Alternate Content Sources
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

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:

Actions #1

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
Actions #2

Updated by The Foreman Bot about 2 years ago

  • Fixed in Releases Katello 4.7.0 added
Actions #3

Updated by Samir Jha about 2 years ago

  • Status changed from Ready For Testing to Closed
Actions #4

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
Actions #5

Updated by Jeremy Lenz over 1 year ago

  • Category set to Alternate Content Sources
Actions

Also available in: Atom PDF