Bug 1715084

Summary: NoMethodError: undefined method `storage_domain' for nil:NilClass
Product: Red Hat Satellite Reporter: Lukáš Hellebrandt <lhellebr>
Component: Compute Resources - RHEVAssignee: orabin
Status: CLOSED ERRATA QA Contact: Lukáš Hellebrandt <lhellebr>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.6.0CC: egolov, inecas, mshira, orabin
Target Milestone: 6.6.0Keywords: Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: foreman-1.22.0.14-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-10-22 19:47:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
production.log none

Description Lukáš Hellebrandt 2019-05-29 14:30:43 UTC
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.

How reproducible:
Always, at least on my configuration

Steps to Reproduce:
1. Hosts -> Create host
2. Fill in the form
3. Submit

Actual results:
NoMethodError: undefined method `storage_domain' for nil:NilClass

Expected results:
No error, host and VM created

Comment 4 Lukáš Hellebrandt 2019-05-29 14:32:43 UTC
Created attachment 1574831 [details]
production.log

Comment 5 orabin 2019-05-30 14:06:26 UTC
Created redmine issue https://projects.theforeman.org/issues/26919 from this bug

Comment 6 Bryan Kearney 2019-05-30 16:02:07 UTC
Upstream bug assigned to orabin

Comment 7 Bryan Kearney 2019-05-30 16:02:08 UTC
Upstream bug assigned to orabin

Comment 8 Bryan Kearney 2019-08-01 16:02:00 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/26919 has been resolved.

Comment 10 Lukáš Hellebrandt 2019-08-27 11:50:02 UTC
Verified with Sat 6.6 snap 17.

Used reproducer from OP, tried with both PXE-based and image-based provisioning, both succeeded.

Comment 11 Bryan Kearney 2019-10-22 19:47:28 UTC
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.

https://access.redhat.com/errata/RHSA-2019:3172