[Katello] orphaned repos?

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

Hello Heig,

It sounds to me like when you initially tried to delete the Repository, it
failed deletion in one of the backend engines (pulp) while it had already
deleted it in another backend engine (candlepin). I'm guessing that pulp
threw an error during the initial deletion that caused this. Would you be
able to send me a katello-debug?

Thanks,

-Justin

··· On Wed, Mar 5, 2014 at 8:07 PM, Heig Gregorian wrote:

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


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/groups/opt_out.

Thanks Justin,

Sent you a PM.

··· On Friday, March 7, 2014 6:11:28 AM UTC-8, Justin Sherrill wrote: > > Hello Heig, > > It sounds to me like when you initially tried to delete the Repository, it > failed deletion in one of the backend engines (pulp) while it had already > deleted it in another backend engine (candlepin). I'm guessing that pulp > threw an error during the initial deletion that caused this. Would you be > able to send me a katello-debug? > > Thanks, > > -Justin > > > On Wed, Mar 5, 2014 at 8:07 PM, Heig Gregorian <the...@gmail.com > > wrote: > >> 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 >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Foreman users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to foreman-user...@googlegroups.com . >> To post to this group, send email to forema...@googlegroups.com >> . >> Visit this group at http://groups.google.com/group/foreman-users. >> For more options, visit https://groups.google.com/groups/opt_out. >> > >