Bug 1748330

Summary: Error caught: [NoMethodError] undefined method `cloud_tenant' for #<VmOrTemplate:0x000055d52d74cdd8> Did you mean? cloud_tenant_id
Product: Red Hat CloudForms Management Engine Reporter: Jaroslav Henner <jhenner>
Component: UI - OPSAssignee: Harpreet Kataria <hkataria>
Status: CLOSED DUPLICATE QA Contact: Jaroslav Henner <jhenner>
Severity: high Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: medium    
Version: 5.11.0CC: bmidwood, hkataria, lavenel, mpovolny, obarenbo, tfitzger
Target Milestone: GA   
Target Release: 5.11.z   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-09-03 13:49:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: Openstack Target Upstream Version:
Embargoed:
Attachments:
Description Flags
production.log
none
undefined [] for nil error stack trace none

Description Jaroslav Henner 2019-09-03 11:45:54 UTC
Created attachment 1611112 [details]
production.log

Description of problem:
When provisioning a VM on OpenStack, in the dialog for selecting the image, after clicking on Order get a stack trace in production.log and an error on the webui.

[----] F, [2019-09-03T06:57:01.214730 #7983:2aea915c4fbc] FATAL -- : Error caught: [NoMethodError] undefined method `cloud_tenant' for #<VmOrTemplate:0x000055d52d74cdd8>
Did you mean?  cloud_tenant_id
/opt/rh/cfme-gemset/gems/activemodel-5.1.7/lib/active_model/attribute_methods.rb:432:in `method_missing'
/var/www/miq/vmdb/app/models/miq_provision_virt_workflow.rb:1049:in `create_hash_struct_from_vm_or_template'



Version-Release number of selected component (if applicable):
Version 5.11.0.22.20190827200559_e618ece

How reproducible:
1/1

Steps to Reproduce:
1. Add openstack provider
2. GO to the VMs page, Click on Provision VM button
3. Select VM
4. Click on Contiune

Actual results:
nothing happens on Web UI. Error in production log.

Expected results:
The next provisioning dialog appears


Additional info:

Comment 2 Jaroslav Henner 2019-09-03 12:48:25 UTC
When clicking on Back after the error happens and then selecting the same image, I get:

[----] F, [2019-09-03T07:46:58.886094 #7983:2aea915c578c] FATAL -- : Error caught: [NoMethodError] undefined method `[]' for nil:NilClass

Comment 3 Jaroslav Henner 2019-09-03 12:49:13 UTC
Created attachment 1611126 [details]
undefined [] for nil error stack trace

Comment 5 Tina Fitzgerald 2019-09-03 13:49:03 UTC

*** This bug has been marked as a duplicate of bug 1746931 ***