In my trials with generating a katello node cert using
'node-certs-generate', I eventually did create a product named
'node-certs'. I wish I could give more details, but at some point,
subscribing a katello node to the activation key 'node-installer' which has
a the 'node-certs' product as an attached subscription stopped working. By
that I mean, while the initial registration went ok, the generated cert was
not available.
With that out of the way (sort of), I went about attempting to
troubleshoot. It seemed logical to me to go ahead and remove the
activation key 'node-installer', and remove the product 'node-certs'.
Activation key removal was no issue, but upon attempting to remove the
'node-certs' product from the WebUI, I encountered a significant delay
followed by no apparent effect. Attempting to move forward, I renamed the
'node-certs' product to 'BADPRODUCT' and let 'node-certs-generate' go ahead
and create a new 'node-certs' product. This worked without issue and
performed as expected when subscribing my katello node, eventually allowing
me to start syncing to the node.
I'm still unable to remove the product 'BADPRODUCT' (formerly 'node-certs')
via the WebUI or the command-line (for the record, performing a
katello-service restart did not help). So, I tried removing each repo
listed under the product…no luck.
Here's what I'm seeing for a product list:
katello product list --org ORG
···
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Product List For Organization ORG, Environment
‘Library’
ID Name Label Provider ID
Provider Name Sync Plan Name Last Sync GPG key
1394065951861 node-certs node-certs_1394065951861 5
node-installer None never
1393969264522 BADPRODUCT node-certs 5
node-installer None never
1393464135966 rhel6-epel rhel6-epel 2
default daily 2014/03/06 03:20:13 RPM-GPG-KEY-EPEL-6
1393464844524 rhel6-server rhel6-server 2
default daily 2014/03/06 03:36:28
1393462282120 rhel6-workstation rhel6-workstation 2
default daily 2014/03/06 03:36:39
1393461237002 puppetlabs puppetlab 2
default daily 2014/03/06 03:03:23 RPM-GPG-KEY-puppetlabs
And here’s what happens when I attempt to remove the product ‘BADPRODUCT’
katello product delete --id 1393969264522 --org ORG
Content with id 1393969266106 could not be found.
Ok, so maybe I should try to delete the repos contained in the product
first? Here’s a list of my repos:
katello repo list --org ORG
Repo List For Org ORG Environment Library
ID Name Label
Type Package Count Puppet Module Count Last
Sync
30 sonoma.example.com sonoma_example_com_cn
yum 1 0 never
19 paso.example.com paso_example_com_cn
yum 0 0 never
20 sonoma.example.com sonoma_example_com_cn
yum 10 0 never
12 epel x86_64 epel_x86_64
yum 10523 0
2014/03/06 03:20:13
13 Server rhel-6-server-optional-rpms
Server_rhel-6-server-optional-rpms yum 7005 0
2014/03/06 03:15:26
14 Server rhel-6-server-realtime-rpms
Server_rhel-6-server-realtime-rpms yum 269 0
2014/03/06 03:11:55
15 Server rhel-6-server-rpms
Server_rhel-6-server-rpms yum 12299 0
2014/03/06 03:36:28
16 Server rhel-6-server-supplementary-rpms
Server_rhel-6-server-supplementary-rpms yum 531 0
2014/03/06 03:04:04
17 Server rhel-server-rhscl-6-rpms
Server_rhel-server-rhscl-6-rpms yum 510 0
2014/03/06 03:04:12
8 Workstation rhel-6-workstation-optional-rpms
Workstation_rhel-6-workstation-optional-rpms yum 6058 0
2014/03/06 03:14:42
9 Workstation rhel-6-workstation-rpms
Workstation_rhel-6-workstation-rpms yum 13232 0
2014/03/06 03:36:39
10 Workstation rhel-6-workstation-supplementary-rpms
Workstation_rhel-6-workstation-supplementary-rpms yum 529 0
2014/03/06 03:03:39
11 Workstation rhel-workstation-rhscl-6-rpms
Workstation_rhel-workstation-rhscl-6-rpms yum 510 0
2014/03/06 03:04:00
1 puppetlabs el 6Server dependencies x86_64
puppetlabs_el_6Server_dependencies_x86_64 yum 60 0
2014/03/06 03:00:40
2 puppetlabs el 6Server devel x86_64
puppetlabs_el_6Server_devel_x86_64 yum 160 0
2014/03/06 03:01:49
3 puppetlabs el 6Server products x86_64
puppetlabs_el_6Server_products_x86_64 yum 342 0
2014/03/06 03:03:23
Repos with ID’s 19 and 20 are the culprits in this case, so let’s try to
delete those:
katello repo delete --id 19 --org ORG
Content with id 1393969266106 could not be found.
katello repo delete --id 20 --org ORG
Content with id 1393970754890 could not be found.
So, assuming that these repos have somehow been orphaned, what can be done
about deleting them?
Thanks,
–Heig