Katello 2.4 > 3.0 - Virtual Datacenter Subscription Issue(s)

I hesitate to post on here for issues I’m experiencing until I’ve
thoroughly troubleshot them, but I’m banging my head against a wall here,
so here I go… :slight_smile: I initially installed Katello 2.4 on a RHEL7 system,
and as we have a small set of Virtual Datacenter Licenses, I followed the
steps outlined in https://access.redhat.com/solutions/659563 in order to
facilitate the use of them in Katello. I was successfully able to attach
the VDC subscription to ten ESXi hosts, and I could see the derived
subscriptions on the “Red Hat Subscriptions” page underneath the primary
*“Red Hat Enterprise Linux for Virtual Datacenters, Standard” *entry. However,
I quickly found that I was unable to add all the derived subscriptions to a
given Activation Key, as it reported an error that basically indicated the
derived subscriptions shared the same Product ID and would not allow
duplicate additions. This particular phenomenon appears to have been
documented in Bug #13844: Can't attach Red Hat Virtual Datacenter subscriptions to activation key - Katello - Foreman, so I had been
watching it intently, and based on a recent update, this particular issue
has reportedly been fixed in Katello 3.0.

All that being said, I had updated said Katello instance to version 3,
hopeful to take advantage of the bug fix, among other benefits. However, a
few things were immediately obvious to me : 1) After the upgrade, none of
the VDC subscriptions stayed attached to my ESXi hosts. This was easily
remedied by going back through the process of attaching the VDC
subscription to our ESXi hosts, but an odd outcome, nonetheless. However,
after doing so, I found that the derived subscriptions were not appearing
on the “Red Hat Subscriptions” page as they were in Katello 2.4. As I
suspected, that also meant that they are unavailable for me to attach to an
Activation Key. Even more confounding, if I were to hop on a guest of one
of the subscribed ESXi hosts and execute “subscription-manager list
–available”, I could actually see that DERIVED SKU license was available
for me to use if I wanted to manually do so, just not within the context of
Katello.

TL;DR - In Katello 2.4, I was able to attach VDC subscriptions to ESXi
hypervisors, and view the derived subscriptions in both “Red Hat
Subscriptions
” and “Activation Keys” > “Subscriptions” > "Add", but
was unable to add multiple derived subscriptions due to the duplicate
Product ID issue reported in Bug #13844: Can't attach Red Hat Virtual Datacenter subscriptions to activation key - Katello - Foreman. This
has reportedly been fixed in Katello 3.0, but unfortunately an upgrade from
2.4 to 3.0 has resulted in a different issue where the derived licenses are
not visible on the “Red Hat Subscriptions Page”, nor the “Activation
Keys
” one, but can be seen directly from the “subscription-manager
command on a subscribed hypervisor guest.

My intent with this is to see if there’s anyone else out there experiencing
the same behavior, as well as possibly getting some advice on a fix from
the experts out there, and/or get some confirmation that this is a
legitimate bug that deserves to be reported (Hopefully with a fix in 3.1 if
so! :-)). Thanks to anyone who may be able to provide some insight and/or
assistance!

Barry,

I believe this is a reported issue, I am digging around for the related bug
and will post if I find something.

Can you do this:

foreman-rake console

> Katello::Subscription.import_all
> Katello::Pool.import_all

and then see if the missing subscriptions show?

John Mitsch
Red Hat Engineering
(860)-967-7285
irc: jomitsch

··· On Thu, Jul 28, 2016 at 12:26 PM, Barry Gestwicki wrote:

I hesitate to post on here for issues I’m experiencing until I’ve
thoroughly troubleshot them, but I’m banging my head against a wall here,
so here I go… :slight_smile: I initially installed Katello 2.4 on a RHEL7 system,
and as we have a small set of Virtual Datacenter Licenses, I followed the
steps outlined in https://access.redhat.com/solutions/659563 in order to
facilitate the use of them in Katello. I was successfully able to attach
the VDC subscription to ten ESXi hosts, and I could see the derived
subscriptions on the “Red Hat Subscriptions” page underneath the
primary *“Red Hat Enterprise Linux for Virtual Datacenters, Standard
*entry. However, I quickly found that I was unable to add all the
derived subscriptions to a given Activation Key, as it reported an error
that basically indicated the derived subscriptions shared the same Product
ID and would not allow duplicate additions. This particular phenomenon
appears to have been documented in
Bug #13844: Can't attach Red Hat Virtual Datacenter subscriptions to activation key - Katello - Foreman, so I had been watching it
intently, and based on a recent update, this particular issue has
reportedly been fixed in Katello 3.0.

All that being said, I had updated said Katello instance to version 3,
hopeful to take advantage of the bug fix, among other benefits. However,
a few things were immediately obvious to me : 1) After the upgrade, none of
the VDC subscriptions stayed attached to my ESXi hosts. This was easily
remedied by going back through the process of attaching the VDC
subscription to our ESXi hosts, but an odd outcome, nonetheless. However,
after doing so, I found that the derived subscriptions were not appearing
on the “Red Hat Subscriptions” page as they were in Katello 2.4. As I
suspected, that also meant that they are unavailable for me to attach to an
Activation Key. Even more confounding, if I were to hop on a guest of
one of the subscribed ESXi hosts and execute “subscription-manager list
–available”, I could actually see that DERIVED SKU license was available
for me to use if I wanted to manually do so, just not within the context of
Katello.

TL;DR - In Katello 2.4, I was able to attach VDC subscriptions to ESXi
hypervisors, and view the derived subscriptions in both “Red Hat
Subscriptions
” and “Activation Keys” > “Subscriptions” > “Add”,
but was unable to add multiple derived subscriptions due to the duplicate
Product ID issue reported in Bug #13844: Can’t attach Red Hat Virtual Datacenter subscriptions to activation key - Katello - Foreman.
This has reportedly been fixed in Katello 3.0, but unfortunately an
upgrade from 2.4 to 3.0 has resulted in a different issue where the derived
licenses are not visible on the “Red Hat Subscriptions Page”, nor the “Activation
Keys
” one, but can be seen directly from the “subscription-manager
command on a subscribed hypervisor guest.

My intent with this is to see if there’s anyone else out there
experiencing the same behavior, as well as possibly getting some advice on
a fix from the experts out there, and/or get some confirmation that this is
a legitimate bug that deserves to be reported (Hopefully with a fix in 3.1
if so! :-)). Thanks to anyone who may be able to provide some insight
and/or assistance!


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 https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

HI John!

You're a savior! I've taken the steps you've suggested, and the derived
subscriptions for "guest of xxxxxxxx" now show up on the "Red Hat
Subscriptions" page! However, this also facilitated my ability to attempt
to add them to an Activation Key, but after attempting to add two out of
the bunch to a key, I get the error message outlined in Bug #13844, which
is "Katello::Resources::Candlepin::ActivationKey: 400 Bad Request
{"displayMessage":"Product ID "RH00002RN" has already been registered
with this activation
key","requestUuid":"6b2cf4a2-d2de-4bac-ab89-fd4d61300810"} (POST
/candlepin/activation_keys/4c5fab9c5482bd090154878a21c702dc/product/RH00002RN)".
As such, this appears to have not yet been fixed, however unfortunate…

However, that falls outside the scope of this particular string, and you've
provided me with a sufficient workaround to address the core issue of not
even being able to see nor manage the derived subscriptions, so a
tremendous "Thanks!" for that! :wink: Now on to updating said bug report in
an effort to get it re-opened… :slight_smile: Thanks again, John!

You are most welcome! Glad to hear the subscriptions are showing now. I'll
comment back if I find the issue or if I can't find it we can file a new
one.

John Mitsch
Red Hat Engineering
(860)-967-7285
irc: jomitsch

··· On Thu, Jul 28, 2016 at 2:21 PM, Barry Gestwicki wrote:

HI John!

You’re a savior! I’ve taken the steps you’ve suggested, and the derived
subscriptions for “guest of xxxxxxxx” now show up on the “Red Hat
Subscriptions” page! However, this also facilitated my ability to attempt
to add them to an Activation Key, but after attempting to add two out of
the bunch to a key, I get the error message outlined in Bug #13844, which
is “Katello::Resources::Candlepin::ActivationKey: 400 Bad Request
{“displayMessage”:“Product ID “RH00002RN” has already been registered
with this activation
key”,“requestUuid”:“6b2cf4a2-d2de-4bac-ab89-fd4d61300810”} (POST
/candlepin/activation_keys/4c5fab9c5482bd090154878a21c702dc/product/RH00002RN)”.
As such, this appears to have not yet been fixed, however unfortunate…

However, that falls outside the scope of this particular string, and
you’ve provided me with a sufficient workaround to address the core issue
of not even being able to see nor manage the derived subscriptions, so a
tremendous “Thanks!” for that! :wink: Now on to updating said bug report in
an effort to get it re-opened… :slight_smile: Thanks again, John!


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 https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

One thing I thought of - Is your "Listen on candlepin events" task errored
at all?

You can search for it in the tasks page "label =
Actions::Candlepin::ListenOnCandlepinEvents"

That may be causing these indexing issues.

John Mitsch
Red Hat Engineering
(860)-967-7285
irc: jomitsch

··· On Thu, Jul 28, 2016 at 2:51 PM, John Mitsch wrote:

You are most welcome! Glad to hear the subscriptions are showing now. I’ll
comment back if I find the issue or if I can’t find it we can file a new
one.

John Mitsch
Red Hat Engineering
(860)-967-7285
irc: jomitsch

On Thu, Jul 28, 2016 at 2:21 PM, Barry Gestwicki <barrygestwicki@gmail.com > > wrote:

HI John!

You’re a savior! I’ve taken the steps you’ve suggested, and the derived
subscriptions for “guest of xxxxxxxx” now show up on the “Red Hat
Subscriptions” page! However, this also facilitated my ability to attempt
to add them to an Activation Key, but after attempting to add two out of
the bunch to a key, I get the error message outlined in Bug #13844, which
is “Katello::Resources::Candlepin::ActivationKey: 400 Bad Request
{“displayMessage”:“Product ID “RH00002RN” has already been registered
with this activation
key”,“requestUuid”:“6b2cf4a2-d2de-4bac-ab89-fd4d61300810”} (POST
/candlepin/activation_keys/4c5fab9c5482bd090154878a21c702dc/product/RH00002RN)”.
As such, this appears to have not yet been fixed, however unfortunate…

However, that falls outside the scope of this particular string, and
you’ve provided me with a sufficient workaround to address the core issue
of not even being able to see nor manage the derived subscriptions, so a
tremendous “Thanks!” for that! :wink: Now on to updating said bug report in
an effort to get it re-opened… :slight_smile: Thanks again, John!


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 https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Hi,
I noticed similar issues, those are not caused by a hung task here. I reported it a couple of days ago Bug #15687: Katello 3.0.2 Hypervisor Based Subscriptions not working - Katello - Foreman

Kind regards,
Klaas Demter
IT-Consultant

E-Mail: demter@atix.de
XING: https://www.xing.com/profiles/Klaas_Demter
LinkedIn: http://de.linkedin.com/pub/klaas-demter/87/500/b50/

ATIX - The Linux & Open Source Company

ATIX Informationstechnologie und Consulting AG
Einsteinstraße 10
85716 Unterschleißheim
www.atix.de

----- Ursprüngliche Mail -----

··· Von: "John Mitsch" An: foreman-users@googlegroups.com Gesendet: Freitag, 29. Juli 2016 22:00:24 Betreff: Re: [foreman-users] Katello 2.4 > 3.0 - Virtual Datacenter Subscription Issue(s)

One thing I thought of - Is your “Listen on candlepin events” task errored
at all?

You can search for it in the tasks page “label =
Actions::Candlepin::ListenOnCandlepinEvents”

That may be causing these indexing issues.

John Mitsch
Red Hat Engineering
(860)-967-7285
irc: jomitsch

On Thu, Jul 28, 2016 at 2:51 PM, John Mitsch jomitsch@redhat.com wrote:

You are most welcome! Glad to hear the subscriptions are showing now. I’ll
comment back if I find the issue or if I can’t find it we can file a new
one.

John Mitsch
Red Hat Engineering
(860)-967-7285
irc: jomitsch

On Thu, Jul 28, 2016 at 2:21 PM, Barry Gestwicki <barrygestwicki@gmail.com > > wrote:

HI John!

You’re a savior! I’ve taken the steps you’ve suggested, and the derived
subscriptions for “guest of xxxxxxxx” now show up on the “Red Hat
Subscriptions” page! However, this also facilitated my ability to attempt
to add them to an Activation Key, but after attempting to add two out of
the bunch to a key, I get the error message outlined in Bug #13844, which
is “Katello::Resources::Candlepin::ActivationKey: 400 Bad Request
{“displayMessage”:“Product ID “RH00002RN” has already been registered
with this activation
key”,“requestUuid”:“6b2cf4a2-d2de-4bac-ab89-fd4d61300810”} (POST
/candlepin/activation_keys/4c5fab9c5482bd090154878a21c702dc/product/RH00002RN)”.
As such, this appears to have not yet been fixed, however unfortunate…

However, that falls outside the scope of this particular string, and
you’ve provided me with a sufficient workaround to address the core issue
of not even being able to see nor manage the derived subscriptions, so a
tremendous “Thanks!” for that! :wink: Now on to updating said bug report in
an effort to get it re-opened… :slight_smile: Thanks again, John!


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 https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


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 https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Hi John!

Sorry for the delayed reply… I took a look at any
"Actions::Candlepin::ListenOnCandlepinEvents" tasks I had, but all appear
to to have "Stopped / Success" in regards to the State and Result, with no
errors listed in the "Errors" tab, so all looks well there.

great,

thanks for the update!

John Mitsch
Red Hat Engineering
(860)-967-7285
irc: jomitsch

··· On Mon, Aug 1, 2016 at 5:10 PM, Barry Gestwicki wrote:

Hi John!

Sorry for the delayed reply… I took a look at any
"Actions::Candlepin::ListenOnCandlepinEvents" tasks I had, but all appear
to to have “Stopped / Success” in regards to the State and Result, with no
errors listed in the “Errors” tab, so all looks well there.


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 https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.