Update of the Registry Name Pattern fails
Description of problem:
Update of the Registry Name Pattern fails if a Container repo already exists.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Sync a Container image repo (for example foreman/foreman from quay.io)
2. In UI > Content > Lifecycle Envs > Library try to change the Registry Name Pattern to one of the provided in examples
Fails with `An error occurred saving the Environment: There was an issue with the backend service pulp: 404 Not Found`
No error and successful update of existing repository
#1 Updated by Ian Ballou 8 months ago
- Subject changed from Update of the Registry Name Pattern fails to Update of the Registry Name Pattern fails
I'm not seeing this error on master, but I am seeing a different one:
18:21:04 rails.1 | 2021-09-21T18:21:04 [E|app|5798cdd8] ArgumentError: wrong number of arguments (given 1, expected 2..3) 18:21:04 rails.1 | 5798cdd8 | /home/vagrant/katello/app/lib/actions/pulp3/orchestration/repository/refresh_if_needed.rb:6:in `plan'
The logic for refreshing distributions needs to be updated too. Currently, changing container registry naming patterns for lifecycle environments creates orphaned distributions.