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
Created attachment 1112294 [details] tarball of /var/log/foreman
*** Bug 1296341 has been marked as a duplicate of this bug. ***
testing a fix. We were not specifying the DC when creating the CR in Foreman, meaning we always used Default.
https://github.com/fusor/fusor/pull/628
Renamed both DataCenter and Cluster and saw a successful RHEV deployment. Marking as verified. RHCI-6.0-RHEL-7-20160201.0-RHCI-x86_64-dvd1.iso
When I wrote 'successful RHEV deployment' I meant 'successful RHEV+CFME deployment'.