Nullify the cluster_id on hosts when deleted
Nullify the cluster_id on hosts when deleted

When Clusters are deleted, the ems_cluster_id should be nullified on residual
hosts.

As a performance concern, hosts are not automatically deleted when an
infrastructure provider is deleted.  However, the clusters may be.  In such
cases, the old ems_cluster_id will remain on the host record.

Then, if the same infrastructure provider is added back, and an ems_refresh is
initiated, the hosts attempt to resolve the ems_cluster_id (which points to
nothing now) and ends up with an object not found error from active record.

https://bugzilla.redhat.com/show_bug.cgi?id=1087476

mresti/manageiq,borod108/manageiq,mzazrivec/manageiq,syncrou/manageiq,agrare/manageiq,mfeifer/manageiq,agrare/manageiq,syncrou/manageiq,KevinLoiseau/manageiq,ilackarms/manageiq,josejulio/manageiq,billfitzgerald0120/manageiq,gerikis/manageiq,skateman/manageiq,chessbyte/manageiq,billfitzgerald0120/manageiq,djberg96/manageiq,NickLaMuro/manageiq,syncrou/manageiq,maas-ufcg/manageiq,andyvesel/manageiq,tzumainn/manageiq,andyvesel/manageiq,tinaafitz/manageiq,kbrock/manageiq,jameswnl/manageiq,yaacov/manageiq,romaintb/manageiq,KevinLoiseau/manageiq,fbladilo/manageiq,jameswnl/manageiq,skateman/manageiq,KevinLoiseau/manageiq,jameswnl/manageiq,josejulio/manageiq,aufi/manageiq,pkomanek/manageiq,djberg96/manageiq,jntullo/manageiq,mkanoor/manageiq,yaacov/manageiq,yaacov/manageiq,juliancheal/manageiq,tinaafitz/manageiq,ilackarms/manageiq,lpichler/manageiq,agrare/manageiq,billfitzgerald0120/manageiq,matobet/manageiq,branic/manageiq,KevinLoiseau/manageiq,chessbyte/manageiq,tinaafitz/manageiq,maas-ufcg/manageiq,kbrock/manageiq,lpichler/manageiq,mzazrivec/manageiq,gerikis/manageiq,chessbyte/manageiq,maas-ufcg/manageiq,gmcculloug/manageiq,djberg96/manageiq,d-m-u/manageiq,ailisp/manageiq,pkomanek/manageiq,agrare/manageiq,mfeifer/manageiq,aufi/manageiq,tzumainn/manageiq,matobet/manageiq,ailisp/manageiq,hstastna/manageiq,hstastna/manageiq,djberg96/manageiq,juliancheal/manageiq,d-m-u/manageiq,NaNi-Z/manageiq,durandom/manageiq,fbladilo/manageiq,maas-ufcg/manageiq,ManageIQ/manageiq,branic/manageiq,andyvesel/manageiq,NaNi-Z/manageiq,skateman/manageiq,hstastna/manageiq,ilackarms/manageiq,romanblanco/manageiq,pkomanek/manageiq,durandom/manageiq,ManageIQ/manageiq,jvlcek/manageiq,jvlcek/manageiq,d-m-u/manageiq,jntullo/manageiq,gmcculloug/manageiq,tzumainn/manageiq,maas-ufcg/manageiq,josejulio/manageiq,jrafanie/manageiq,jrafanie/manageiq,aufi/manageiq,hstastna/manageiq,NaNi-Z/manageiq,ailisp/manageiq,mkanoor/manageiq,KevinLoiseau/manageiq,NickLaMuro/manageiq,romanblanco/manageiq,syncrou/manageiq,romaintb/manageiq,kbrock/manageiq,skateman/manageiq,gmcculloug/manageiq,fbladilo/manageiq,mzazrivec/manageiq,maas-ufcg/manageiq,mkanoor/manageiq,NickLaMuro/manageiq,chessbyte/manageiq,josejulio/manageiq,mresti/manageiq,tzumainn/manageiq,ManageIQ/manageiq,fbladilo/manageiq,romanblanco/manageiq,borod108/manageiq,branic/manageiq,NaNi-Z/manageiq,borod108/manageiq,branic/manageiq,israel-hdez/manageiq,kbrock/manageiq,israel-hdez/manageiq,juliancheal/manageiq,aufi/manageiq,jameswnl/manageiq,romaintb/manageiq,romaintb/manageiq,andyvesel/manageiq,gerikis/manageiq,mzazrivec/manageiq,d-m-u/manageiq,NickLaMuro/manageiq,mresti/manageiq,mresti/manageiq,jvlcek/manageiq,jrafanie/manageiq,mkanoor/manageiq,romanblanco/manageiq,jrafanie/manageiq,ailisp/manageiq,borod108/manageiq,israel-hdez/manageiq,gmcculloug/manageiq,mfeifer/manageiq,israel-hdez/manageiq,ilackarms/manageiq,KevinLoiseau/manageiq,yaacov/manageiq,durandom/manageiq,juliancheal/manageiq,jvlcek/manageiq,romaintb/manageiq,durandom/manageiq,billfitzgerald0120/manageiq,mfeifer/manageiq,matobet/manageiq,lpichler/manageiq,matobet/manageiq,jntullo/manageiq,gerikis/manageiq,pkomanek/manageiq,romaintb/manageiq,ManageIQ/manageiq,lpichler/manageiq,jntullo/manageiq,tinaafitz/manageiq