Bug #10727
closedUI should raise an error on creating a host with BMC interface, when BMC feature is not enabled on proxy
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1218876
Description of problem:
I was trying to provision a host and added a new BMC interface from new_host form. I submitted the form and later I realized I forgot to enable the BMC feature on proxy.
Provisioning on the host started without throwing any error on UI. However production.log raises a warning:
--
2015-05-06 11:43:25 [I] Processing by HostsController#bmc as HTML
2015-05-06 11:43:25 [I] Parameters: {"id"=>"mac525400c75a5e.englab.pnq.redhat.com"}
2015-05-06 11:43:25 [I] Rendered hosts/_bmc.html.erb (13.7ms)
2015-05-06 11:43:25 [W] Failed to fetch bmc information: ERF42-1518 [Foreman::Exception]: Unable to find a proxy with BMC feature
2015-05-06 11:43:25 [I] Rendered text template (0.0ms)
2015-05-06 11:43:25 [I] Completed 200 OK in 52ms (Views: 0.7ms | ActiveRecord: 1.6ms)
---
Moreover, when I see the BMC tab on host details page and on clicking the 'BMC' tab, it was showing: Failure: ERF42-1518 [Foreman::Exception]: Unable to find a proxy with BMC feature
This is a usability issue, on submit the form, user should get a proper error message: "Unable to find a proxy with BMC feature"
and it should be popped-up on UI.
Version-Release number of selected component (if applicable):
sat6.1 GA Snap2 (Satellite-6.1.0-RHEL-7-20150429.2)
How reproducible:
always
Steps to Reproduce:
1. provision a host with BMC interface and without enabling BMC feature on proxy
2.
3.
Actual results:
when user provisioned a host with BMC interface and without enabling BMC feature, provisioning starts without throwing any error
Expected results:
on submit the form, user should get a proper error message: "Unable to find a proxy with BMC feature"
and it should be popped-up on UI.
Additional info:
Please see the BMC tab in attachment.. UI is throwing error under BMC tab only. It should be properly popped-up before actual provisioning starts.