Description of problem:
When creating a new host (tested with image-based provisioning), I get "NoMethodError: undefined method `storage_domain' for nil:NilClass" upon submitting the form and the VM is not created. Traceback attached.
Version-Release number of selected component (if applicable):
Reproduced on Sat 6.6 snap 4.
Always, at least on my configuration
Steps to Reproduce:
1. Hosts -> Create host
2. Fill in the form
NoMethodError: undefined method `storage_domain' for nil:NilClass
No error, host and VM created
Created attachment 1574831 [details]
Created redmine issue https://projects.theforeman.org/issues/26919 from this bug
Upstream bug assigned to orabin
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/26919 has been resolved.
Verified with Sat 6.6 snap 17.
Used reproducer from OP, tried with both PXE-based and image-based provisioning, both succeeded.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.