Activation Keys lost after upgrade to 6.2.x

Latest response

I performed an upgrade from 6.1.9 to 6.2.1 yesterday, it went relatively well, though postgresql ran out of connections, but I digress.

Post upgrade the activation keys for my organization are still there (I can use them to subscribe a system) however, I am unable to view them via hammer or the web UI. When attempting to deal with host groups which reference the activation keys, an error is displayed saying the activation keys can't be obtained from katello.

Anyone have a similar experience, RH support doesn't seem to know at this point,

-Erinn

Responses

All my activation keys are also missing post 6.1.9 -> 6.2.x upgrade. I have had a support case open for about a month now with still no resolution. The last update from support was that my issue is related to a bug. If I get this fixed up, I will update my response here.

Do you get the following:

# hammer activation-key list --organization=<Your Org> 
undefined method `products' for nil:NilClass

Also:

# foreman-rake console 
irb(main):001:0> User.current = User.first 
irb(main):002:0> Katello::Subscription.import_all 
irb(main):003:0> Katello::Pool.import_all
irb(main):004:0> Katello::Pool.where(:subscription => nil)

The last console command above should not return anything. (you should not have any pools with subscription = nil)

Have you done any customization to manifests/subscriptions with Virtual Data Center Subscription Stacking/Derived SKU's? Have you already resolved this issue?

In my case the problem occured because the satellite-installer run did not complete all the way. Since there is no progress bar, it is kind of hard to tell what all the way is for that, but that is what happened.

However, there was also another fix, from the foreman-rake console:

User.current = User.first
Katello::Subscription.import_all
Katello::Pool.import_all         

This resolved my issue with the activation keys themselves, but I still had broader issues because the installer had not run cleanly all the way through, so I had to fix those up. Following that there were many more issues, but at least none with the activation keys :).

But it looks very much like your issue and mine are probably different, because the above fixed it for me.

-Erinn

Ah, yes, I found reports of this fixing the issue for other customers as well. Unfortunately I still receive an error regarding a nil reference in my db (See previous comment) I will continue to wait for updates to my support case. Thanks for the quick reply.

My solution: https://github.com/Katello/katello/pull/6396

This fix is still not included in Satellite 6.2.3. Hopefully it gets addressed soon.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.