Bug 1296341 - Unable to launch CFME VM if RHEV DataCenter and Cluster Names were changed from Default: undefined method `id' for nil:NilClass app/lib/actions/fusor/deployment/rhev/cfme_launch.rb:54
Summary: Unable to launch CFME VM if RHEV DataCenter and Cluster Names were changed fr...
Keywords:
Status: CLOSED DUPLICATE of bug 1296342
Alias: None
Product: Red Hat Quickstart Cloud Installer
Classification: Red Hat
Component: Installation - RHEV
Version: 1.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: TP2
: 1.0
Assignee: John Matthews
QA Contact: Dave Johnson
Dan Macpherson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-01-06 22:58 UTC by John Matthews
Modified: 2016-04-29 16:22 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-01-14 13:35:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
tarball of /var/log/foreman (159.75 KB, application/x-gzip)
2016-01-06 22:58 UTC, John Matthews
no flags Details

Description John Matthews 2016-01-06 22:58:50 UTC
Created attachment 1112293 [details]
tarball of /var/log/foreman

Description of problem:

Nenad saw an issue running RHEV + CFME.
The Data Center and Cluster names were modified

Data Center:  RHCI  
Cluster:      My_Cluster


Exception:

[E] undefined method `id' for nil:NilClass (NoMethodError)
/opt/rh/ruby193/root/usr/share/gems/gems/fusor_server-0.0.1/app/lib/actions/fusor/deployment/rhev/cfme_launch.rb:54:in `
create_compute_profile'


cat /var/log/foreman/First-1/deployment.log

2016-01-05 11:45:41 [D] ====== RHEV Compute Resource run method ======
2016-01-05 11:45:44 [D] === Leaving RHEV Compute Resource run method ===
2016-01-05 11:45:44 [I] ================ Planning CFME Deployment ====================
2016-01-05 11:45:46 [I] ================ TransferImage run method ====================
2016-01-05 11:49:29 [I] ================ Leaving TransferImage run method ====================
2016-01-05 11:49:29 [I] ================ UploadImage run method ====================
2016-01-05 11:51:15 [I] image uploaded
2016-01-05 11:51:15 [I] image uploaded
2016-01-05 11:51:15 [I] ================ Leaving UploadImage run method ====================
2016-01-05 11:51:15 [I] ================ ImportTemplate run method ====================
2016-01-05 11:51:15 [I] Running: /usr/share/fusor_ovirt/bin/ovirt_import_template.py --api_user 'admin@internal' --api_pass 100yard- --api_host 192.168.0.150 --cluster_name My_Cluster --data_center_name RHCI --export_domain_name my_export --storage_domain_name my_storage --vm_template_name First-cfme-template
2016-01-05 11:53:01 [D] Status: 0, output: ["Template was imported successfully\n", "Waiting for Template to reach \"ok\" status\n"]
2016-01-05 11:53:01 [I] ================ Leaving ImportTemplate run method ====================
2016-01-05 11:53:01 [D] ====== CFME Launch run method ======



/var/log/foreman/production.log-20160106
 searched for around 11:53 and saw some exceptions

2016-01-05 11:52:47 [I] Completed 201 Created in 692ms (Views: 13.4ms | ActiveRecord: 0.6ms)
2016-01-05 11:52:48 [I] Processing by HostsController#externalNodes as YML
2016-01-05 11:52:48 [I]   Parameters: {"name"=>"hypervisor.refarch.bos.redhat.com"}
2016-01-05 11:52:48 [I]   Rendered text template (0.0ms)
2016-01-05 11:52:48 [I] Completed 200 OK in 466ms (Views: 1.0ms | ActiveRecord: 33.4ms)
2016-01-05 11:52:49 [I] Processing by Api::V2::ReportsController#create as JSON
2016-01-05 11:52:49 [I]   Parameters: {"report"=>"[FILTERED]", "apiv"=>"v2"}
2016-01-05 11:52:49 [I] processing report for hypervisor.refarch.bos.redhat.com
2016-01-05 11:52:49 [I] Imported report for hypervisor.refarch.bos.redhat.com in 0.03 seconds
2016-01-05 11:52:49 [I] Completed 201 Created in 91ms (Views: 42.8ms | ActiveRecord: 0.0ms)
2016-01-05 11:53:01 [I] ================ Leaving ImportTemplate run method ====================
2016-01-05 11:53:01 [I] Successfully decrypted field for Foreman::Model::Ovirt First-RHEV
2016-01-05 11:53:01 [E] undefined method `id' for nil:NilClass (NoMethodError)
/opt/rh/ruby193/root/usr/share/gems/gems/fusor_server-0.0.1/app/lib/actions/fusor/deployment/rhev/cfme_launch.rb:54:in `
create_compute_profile'
/opt/rh/ruby193/root/usr/share/gems/gems/fusor_server-0.0.1/app/lib/actions/fusor/deployment/rhev/cfme_launch.rb:33:in `
run'





Version-Release number of selected component (if applicable):
# rpm -qa | grep fusor
fusor-utils-0.0.1-1.el7.noarch
ruby193-rubygem-fusor_ui-0.0.1-94.el7.noarch
fusor-selinux-1.0.0-13.el7.noarch
fusor-installer-0.0.14-23.el7.noarch
ruby193-rubygem-fusor_server-0.0.1-83.el7.noarch
fusor_ovirt-0.1-11.el7.x86_64
fusor-initial-setup-0.0.21-10.el7.noarch

Comment 1 John Matthews 2016-01-14 13:35:10 UTC

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


Note You need to log in before you can comment on or make changes to this bug.