Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1231685

Summary: Error on configuring BMC interface: Failed to fetch bmc information: ERF12-1772 [ProxyAPI::ProxyException]: Unable to perform power BMC operation
Product: Red Hat Satellite Reporter: Sachin Ghai <sghai>
Component: WebUIAssignee: Ohad Levy <ohadlevy>
WebUI sub component: Foreman QA Contact: Sachin Ghai <sghai>
Status: CLOSED DUPLICATE Docs Contact:
Severity: high    
Priority: unspecified CC: lzap, mmccune
Version: 6.1.0Keywords: Regression
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-15 11:22:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
on configuring BMC interface while provisioning a discovered host raises error.
none
BMC feature is enabled on default capsule none

Description Sachin Ghai 2015-06-15 08:48:52 UTC
Created attachment 1038828 [details]
on configuring BMC interface while provisioning a discovered host raises error.

Description of problem:
I was trying to configure BMC interface. I discovered a host and while provisioning it manually, I defined a new BMC interface. As soon as I submit the edit_host form, UI raises error:

Failure: ERF12-1772 [ProxyAPI::ProxyException]: Unable to perform power BMC operation ([RestClient::BadRequest]: 400 Bad Request) for proxy https://cloud-qe-21.idmqe.lab.eng.bos.redhat.com:9090/bmc


Please note that I tried to configure BMC interface earlier with same BMC IP/credentials. It was working before.

Also BMC feature is enabled on default capsule.

production.log:
==============
2015-06-15 04:35:37 [I] Processing by HostsController#bmc as HTML
2015-06-15 04:35:37 [I]   Parameters: {"id"=>"mac5254003e2982.idmqe.lab.eng.bos.redhat.com"}
2015-06-15 04:35:37 [I]   Rendered hosts/_bmc.html.erb (88.0ms)
2015-06-15 04:35:37 [W] Failed to fetch bmc information: ERF12-1772 [ProxyAPI::ProxyException]: Unable to perform power BMC operation ([RestClient::BadRequest]: 400 Bad Request) for proxy https://cloud-qe-21.idmqe.lab.eng.bos.redhat.com:9090/bmc
2015-06-15 04:35:37 [I]   Rendered text template (0.0ms)
2015-06-15 04:35:37 [I] Completed 200 OK in 103ms (Views: 0.4ms | ActiveRecord: 1.0ms)



Version-Release number of selected component (if applicable):
sat6.1 GA snap8 (RC1)

How reproducible:
always

Steps to Reproduce:
1. discover a host
2. provsion it with BMC interface
3.

Actual results:
Failure: ERF12-1772 [ProxyAPI::ProxyException]: Unable to perform power BMC operation ([RestClient::BadRequest]: 400 Bad Request) for proxy https://cloud-qe-21.idmqe.lab.eng.bos.redhat.com:9090/bmc

Expected results:
BMC interface should be configured successfully and user should be able to perform power operations

Additional info:

Comment 2 Sachin Ghai 2015-06-15 08:51:25 UTC
Created attachment 1038830 [details]
BMC feature is enabled on default capsule

Comment 4 Sachin Ghai 2015-06-15 09:37:54 UTC
Logs from proxy.log:
======================

10.16.96.140 - - [15/Jun/2015 04:10:25] "PUT /discovery/192.168.100.17/reboot HTTP/1.1" 200 32 0.0166
E, [2015-06-15T04:10:28.006148 #9413] ERROR -- : undefined method `logger=' for Rubyipmi:Module
10.16.96.140 - - [15/Jun/2015 04:10:28] "GET /bmc/10.35.19.35/chassis/power/status HTTP/1.1" 400 46 0.0255
E,

Comment 5 Lukas Zapletal 2015-06-15 11:22:29 UTC
This is actually a regression introduced by 1206361. The bug FAILED_QA, I recommend to close this one.

Sachin I have upgraded the RPM package on your instance so you can continue testing BMC.

Comment 6 Lukas Zapletal 2015-06-15 11:22:47 UTC

*** This bug has been marked as a duplicate of bug 1206361 ***