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:
This is likely fixed upstream in code that won't be back-portable to 6.12
Never mind, it's the same in upstream!
Created redmine issue https://projects.theforeman.org/issues/35482 from this bug
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/35482 has been resolved.
Verified. Tested on Satellite 6.12.0 Snap 12.0 Steps: 1. # hammer alternate-content-source create --name test_repo_acs --base-url http://reposerver.example.com:33333/ --subpaths fake_yum0/ --smart-proxy-ids 1 Observation: Above command ran twice as mentioned in comment 1, and the validation included for the name says "Validation failed: Name has already been taken" and there were no DB errors returned.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Important: Satellite 6.12 Release), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:8506
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days