Project

General

Profile

Actions

Bug #10727

closed

UI should raise an error on creating a host with BMC interface, when BMC feature is not enabled on proxy

Added by Shimon Shtein almost 9 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Host creation
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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.

Actions #1

Updated by Dominic Cleal almost 9 years ago

  • Category set to Host creation
Actions #2

Updated by The Foreman Bot almost 9 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/2441 added
  • Pull request deleted ()
Actions #3

Updated by Dominic Cleal over 8 years ago

  • translation missing: en.field_release set to 35
Actions #4

Updated by Shimon Shtein over 8 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF