Red Hat Bugzilla – Bug 1194641
User shouldn't be allowed to create BMC interface without mac
Last modified: 2017-02-23 15:27:50 EST
Description of problem: I tried to create BMC interface and didn't specify the mac. I marked it as managed too. I think UI should validate the form. Form was submitted successfully. I believe BMC interfaces should have mac as physical network interfaces. Version-Release number of selected component (if applicable): sat6.1 beta snap3 Satellite-6.1.0-RHEL-6-20150217.0 How reproducible: always Steps to Reproduce: 1. Add BMC interface without specifying mac 2. 3. Actual results: No error on UI Expected results: UI should raise validation error. Additional info:
Created redmine issue http://projects.theforeman.org/issues/9497 from this bug
Moving to POST since upstream bug http://projects.theforeman.org/issues/9497 has been closed ------------- Marek Hulán Applied in changeset commit:6a2fce1fa6a80865bb8292e76a8bd285e714a5c8.
Verified with: sat6.1 beta snap6 compose2 (Satellite-6.1.0-RHEL-6-20150311.1). I didn't see any change after fix. If I didn't specify mac of BMC interface then nothig happens on UI, new host form was submitted and BMC doesn't configured. so it is still failing silently. I was expecting an error message like 'can't be blank' if I don't specify mac. Moving back to assigned.
Moving back to ON_QA as it's blocker by a separate issue tracked as https://bugzilla.redhat.com/show_bug.cgi?id=1191913
Found different behaviour with sat6.1 GA snap3. I really not sure what should be the intended behaviour here. When I filed this bz then I defined the BMC interface without mac and provisioned the host. Host was provisioned successfully. But later when I checked the BMC interface then it was not configured. It means that BMC configuration fails silently without throwing any error on UI. This is very annoying situation where you get to know something is failing at the end of workflow instead of beginning. Now, if I didn't specify the mac for BMC interface, UI actually configure it. Is it expected ? If that's the case then I'm assuming mac is not a mandatory option for BMC configuration ?
Created attachment 1023461 [details] BMC interface is configured without defining mac
Created attachment 1023462 [details] I can see BMC tab and power-cycle options on right
The MAC for BMC is only required if the BMC is managed so it can create DHCP reservation (and I see validation error). If you choose to have BMC unmanaged then no MAC is needed and BMC is saved. If host has BMC you can see the BMC tab displaying data from BMC (no MAC is needed for this) so I think the behaviour is correct.
@Marek.. Thanks for reply. I just tried configuring Managed BMC interface without mac and this time I got validation error: mac can't be blank" thanks.
Created attachment 1024201 [details] valiadation error while configurating managed BMC without mac
Thanks for retesting.
Verified with sat6.1 GA snap3. Based on comments 10-15. Moving this to verified. thanks for fixing the issue.
This bug is slated to be released with Satellite 6.1.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2015:1592