Problem:
I deleted a repository from my CV/available repository to make a test, I tried to re-add it but this error appear:
Relative URL [ATS-vCentre/Library/content/dist/rhel/server/7/7Server/x86_64/os] for repository [03965942-2178-4673-a146-d660b97f5df8] conflicts with existing relative URL [ATS-vCentre/Library/content/dist/rhel/server/7/7Server/x86_64/os] for repository [d8946303-7782-4197-a43d-7e60be8a11a6]
Expected outcome:
I can re-add the repository
Foreman and Proxy versions:
1.19.1
katello 3.8.1
Foreman and Proxy plugin versions:
pulp-admin-client.noarch 2.16.4-1.el7 @pulp
pulp-client.noarch 1.0-1 installed
pulp-deb-plugins.noarch 1.7.1-1.el7 @pulp
pulp-docker-plugins.noarch 3.1.4-2.el7 @pulp
pulp-katello.noarch 1.0.2-1.el7 @katello
pulp-puppet-plugins.noarch 2.16.4-1.el7 @pulp
pulp-puppet-tools.noarch 2.16.4-1.el7 @pulp
pulp-rpm-plugins.noarch 2.16.4-1.el7 @pulp
pulp-selinux.noarch 2.16.4-1.el7 @pulp
pulp-server.noarch 2.16.4-1.el7 @pulp
Other relevant data:
I removed the repo from CV, available products etc, all works fine. I re-add the repos and this appear:
I searched into pulp and it exists:
pulp-admin -u admin -p $pulpAdminPassword repo list
Id: d8946303-7782-4197-a43d-7e60be8a11a6
Display Name: Red Hat Enterprise Linux 7 Server RPMs x86_64 7Server
Description: None
Content Unit Counts:
Erratum: 3440
Package Category: 9
Package Environment: 6
Package Group: 76
Package Langpacks: 1
Rpm: 23339
Srpm: 1
Yum Repo Metadata File: 1
and all files are also present into
/var/lib/pulp/published/yum/master/yum_distributor/d8946303-7782-4197-a43d-7e60be8a11a6
/var/lib/pulp/importers/d8946303-7782-4197-a43d-7e60be8a11a6-yum_importer
but i’m not able to delete it with
pulp-admin -u admin -p $pulpAdminPassword yum repo delete --repo-id=d8946303-7782-4197-a43d-7e60be8a11a6
There is a way to delete it?
A second question, not related: which is the best practice to delete all repos and all configuration file for the repos (xml,key,etc) in foreman+katello?