Description of problem: Engine+hypervisor RHEV Deployment w/ one hypervisor fails during the RHEV deployment task at 3.6%. Foreman task error shows that the host failed to be converted to a managed host: **** Action: Actions::Fusor::Host::TriggerProvisioning Input: {"deployment_id"=>2, "hostgroup_name"=>"RHEV-Hypervisor", "host_id"=>4, "puppet_overrides"=>nil, "locale"=>"en"} Output: {} Exception: RuntimeError: Host with id 4 was not converted to a managed host. Backtrace: /opt/theforeman/tfm/root/usr/share/gems/gems/fusor_server-1.0.0/app/lib/actions/fusor/host/trigger_provisioning.rb:116:in `block in assign_host_to_hostgroup' /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `block in transaction' /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:209:in `within_new_transaction' /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `transaction' /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/transactions.rb:208:in `transaction' /usr/share/foreman/app/models/host.rb:15:in `method_missing' /opt/theforeman/tfm/root/usr/share/gems/gems/fusor_server-1.0.0/app/lib/actions/fusor/host/trigger_provisioning.rb:93:in `assign_host_to_hostgroup' /opt/theforeman/tfm/root/usr/share/gems/gems/fusor_server-1.0.0/app/lib/actions/fusor/host/trigger_provisioning.rb:34:in `run' /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/action.rb:506:in `block (3 levels) in execute_run' /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware/stack.rb:26:in `call' /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware/stack.rb:26:in `pass' /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware.rb:17:in `pass' /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/action/progress.rb:30:in `with_progress_calculation' /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/action/progress.rb:16:in `run' /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware/stack.rb:22:in `call' **** Version-Release number of selected component (if applicable): QCI-1.0-RHEL-7-20160727.t.0 How reproducible: 100% Steps to Reproduce: 1.) Start deployment for 1 hypervisor + engine. 2.) Get error at 3.6% during the RHEV deployment. Actual results: Failed deployment. Expected results: Successful deployment. Additional info:
Closing, please re-open if you hit this again at which point please include the satellite logs. We need the foreman/production.log to be able to debug this further.
For me, this was solved by adding Satellite IP as a DNS server to /etc/resolv.conf. The file got changed because I had another NIC up where DHCP was running. For more, look at bug 1360422.
Also seen deploying: RHV Engine + Hypervisor + CloudForms at 46.4%
Excerpt from deployment.log: D, [2016-08-16T12:43:55.875677 #19999] DEBUG -- : ================ Finished validating discovered host facts ==================== D, [2016-08-16T12:43:55.934445 #19999] DEBUG -- : assignee host type is now: Host::Managed D, [2016-08-16T12:43:55.934793 #19999] DEBUG -- : saving host of type: Host::Managed D, [2016-08-16T12:43:55.935116 #19999] DEBUG -- : calling save production.log 2016-08-16 12:43:55 [app] [I] Waiting for host <<hypervisor_fqdn>>'s puppet run to complete 2016-08-16 12:43:55 [app] [I] Starting host 24 deployment... 2016-08-16 12:43:56 [foreman-tasks/action] [E] Host with id 24 was not converted to a managed host. (RuntimeError) | /opt/theforeman/tfm/root/usr/share/gems/gems/fusor_server-1.0.1/app/lib/actions/fusor/host/trigger_provisioning.rb:116:in `block in assign_host_to_hostgroup' | /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `block in transaction' | /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:209:in `within_new_transaction' | /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `transaction' | /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/transactions.rb:208:in `transaction' | /usr/share/foreman/app/models/host.rb:15:in `method_missing' | /opt/theforeman/tfm/root/usr/share/gems/gems/fusor_server-1.0.1/app/lib/actions/fusor/host/trigger_provisioning.rb:93:in `assign_host_to_hostgroup' | /opt/theforeman/tfm/root/usr/share/gems/gems/fusor_server-1.0.1/app/lib/actions/fusor/host/trigger_provisioning.rb:34:in `run' | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/action.rb:506:in `block (3 levels) in execute_run' | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware/stack.rb:26:in `call' | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware/stack.rb:26:in `pass' | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware.rb:17:in `pass' | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/action/progress.rb:30:in `with_progress_calculation' | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/action/progress.rb:16:in `run' | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware/stack.rb:22:in `call' | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware/stack.rb:26:in `pass' | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware.rb:17:in `pass' | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.70/app/lib/actions/middleware/keep_locale.rb:11:in `block in run' | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.70/app/lib/actions/middleware/keep_locale.rb:22:in `with_locale' | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.70/app/lib/actions/middleware/keep_locale.rb:11:in `run' | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware/stack.rb:22:in `call' | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/middleware/stack.rb:26:in `pass' [snip] Host 24 is not in "hammer list" but is in "hammer discovery list". The MAC address of host 24 and 25 is the same -- all facts are the same. The ID, name, and Last report differ. Host names are fdi.cfme.lab.eng.rdu2.redhat.com "hammer discovery facts" also displays "Error: undefined method `meta' for #<Array:0x0000000462a580>"
Possibly tied to DHCP/Discovery/Subnet. Workaround: hammer host list hammer host delete --id=x where x > 1 ^^^^ Use with extreme caution
May also need: * Infrastructure > Subnet * Select "default" * Change Start of IP range/End of IP range so it does not overlap the pool in /etc/dhcp/dhcpd.conf
Moving to 1.2 release as this BZ depends on a fix to Satellite we expect to be in Sat 6.3.
QCI has sunset. Closing the BZ's