Satellite 6 : Unable to register client with Activation key which is associated with a host collection
Environment
Red Hat Satellite 6
Issue
- Unable to register client with Activation key which is associated with a host collection and have the limit option set.
- Registration in satellite 6 failed with below error message :
# subscription-manager register --org="myORG" --activationkey="hcak1"
undefined method `systems' for #<Katello::HostCollection:0x00007f677ecc6b80>
Resolution
Currently the bugzilla is still open.
Workaround :
From GUI : Hosts > Host Collections > Select Host collection > Content Host Limit > Select "Unlimited"
For more KB articles/solutions related to Red Hat Satellite 6.x Client Subscription Issues, please refer to the Red Hat Satellite Consolidated Troubleshooting Article for Red Hat Satellite 6.x Client Subscription Issues
Root Cause
- This was bug which has been fixed on Satellite 6.11.
Diagnostic Steps
Steps to Reproduce:
- You will need two systems: your Satellite and a second host
- Create a new host collection named hc1 and put a limit 10
- Create a new activationkey named hc1ak1 and add hc1 to is as its host collection
- Install the candlepin cert rpm into your host
- Register your host to the satellite using the activationkey hc1ak1:
# subscription-manager register --org="GSS" --activationkey="hc1ak1"
undefined method `systems' for #<Katello::HostCollection:0x00007f775bd0ef88>
Production.log:
==> /var/log/foreman/production.log <==
2018-06-28 04:44:22 e17c6296 [katello/cp_proxy] [E] NoMethodError: undefined method `systems' for #<Katello::HostCollection:0x00007f340f84e8c0>
| /opt/rh/rh-ror42/root/usr/share/gems/gems/activemodel-4.2.6/lib/active_model/attribute_methods.rb:433:in `method_missing'
| /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.4.5.64.2/app/services/katello/registration_manager.rb:133:in `block in set_host_collections'
| /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.4.5.64.2/app/services/katello/registration_manager.rb:130:in `each'
| /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.4.5.64.2/app/services
..
..
/request_handler.rb:441:in `block (3 levels) in start_threads'
| /opt/theforeman/tfm/root/usr/share/gems/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `block in create_with_logging_context'
2018-06-28 04:44:22 e17c6296 [app] [I] Completed 500 Internal Server Error in
SBR
Product(s)
Components
Category
Tags
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.