-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
katello-attach-subscription/lib/katello_attach_subscription/fact_analyzer.rb:10:in system_type_from_facts': undefined method
[]' for nil:NilClass (NoMethodError)
#68
Comments
Hey Scott, Satellite version running? |
Satellite 6.5.1-1 Debug Output:
|
Hey Scott, If you are using the current released version of KAS, the error is triggered in It would be useful to show the detail for host virt-who-esxprod05.[...], can you share it? On top of it, the difference seems to me that on host virt-who-esxprod05 no guests are added. But my feeling is that this is an effect, not a cause. HTH, |
KAS = is the v0.0.2, basically, we did a virt-who-esxprod05 is alive, last week we tried to pre-assign sub before we converted host to sat 6. 05 is on the same vsphere as 04, 03, etc. what if I exclude it for now, to see if that would allow the script to run. for the hostname match line, how can I say include all the esx* but exclude 05 from the mix? |
As by RedHatSatellite#68, if a host does not have any guest, and facts is not populated, fail. The resolution is to make use of virtwho option, which will gather the facts from virtwho directly. Still no fatal error will be given anymore after the patch, but a WARNING in stderr. This is due to a candlepin bug which does not expose (yet) the facts for a hypervisor.
Hey Scott, It's a while that i do not look deeply into the code, so @mossicrue for sure can reply better. But,
The failing line is anyway related to https://github.com/RedHatSatellite/katello-attach-subscription/blob/master/lib/katello_attach_subscription/fact_analyzer.rb#L28 because (and this is the opposite of what i wrote above) given that there are no guests, KAS cannot be sure if this is a host or not. Back to how to move on with the issue, not having an infrastructure to replicate the issue, i would suggest fix it in fact_analyzer.rb, based on the above comment. You will get anyway UNKNOWN for that specific host, unless you have facts (see below if you want to avoid it). Feel free to check the patch created just now, totally untested, and to improve it if you feel so :) Related hint: HTH, |
Hi Scott, what pointed out by @Rocco83 is correct. Also, looking at this bugzilla I think that the Hth |
Getting this error when running
katello-attach-subscription
:Here is the inside of
myconfig.yml
:The text was updated successfully, but these errors were encountered: