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 1348657 - Power Control does not appear to work
Summary: Power Control does not appear to work
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Power & BMC
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: Unspecified
Assignee: Lukas Zapletal
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-06-21 16:44 UTC by Thom Carlin
Modified: 2016-07-08 07:24 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-08 07:24:28 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1348647 0 unspecified CLOSED [RFE] Display host power state in web UI 2021-02-22 00:41:40 UTC

Internal Links: 1348647

Description Thom Carlin 2016-06-21 16:44:52 UTC
Description of problem:

Attempting to power control a system 

Version-Release number of selected component (if applicable):

6.2 beta

How reproducible:

100% for me

Steps to Reproduce:
1. Install QCI 1.2 (Sat 6.2) on bare metal
2. Log in to run launch-fusor-installer (a.k.a. Sat 6.2)
3. Power on host(s)
4. Verify host(s) are discovered
5. Deploy RHEV (a.k.a. Hosts > All Hosts, select host(s)
6. Select Action, Change Power State

Actual results:

Power states do not appear to change

Expected results:

Power states to change as requested
Some method of showing errors/power state

Additional info:

BMC controls through vendor-supplied utility or IPMITOOL work

Comment 1 Thom Carlin 2016-06-21 17:27:37 UTC
I see in production.log 
2016-06-21 12:31:46 [app] [I] Completed 200 OK in 100ms (Views: 95.7ms | ActiveRecord: 1.4ms)
2016-06-21 12:31:51 [app] [I] Started POST "/hosts/update_multiple_power_state?host_ids%5B%5D=2" for <ip_address> at 2016-06-21 12:31:51 -0400
2016-06-21 12:31:51 [app] [I] Processing by HostsController#update_multiple_power_state as HTML
2016-06-21 12:31:51 [app] [I]   Parameters: {"utf8"=>"✓", "authenticity_token"=>"<token>", "power"=>{"action"=>"poweroff"}, "host_ids"=>["2"]}
2016-06-21 12:31:51 [app] [I] Redirected to https://hp-dl320e-03.cfme.lab.eng.rdu2.redhat.com/hosts
2016-06-21 12:31:51 [app] [I] Completed 302 Found in 10ms (ActiveRecord: 2.2ms)

and 
2016-06-21 12:28:55 [app] [I] Started GET "/hosts" for <same_ip> at 2016-06-21 12:28:55 -0400

In proxy.log:
ERROR -- : Attempt to remove nonexistent client certificate for <hostname>

Comment 4 Lukas Zapletal 2016-06-25 08:25:39 UTC
Bare metal BMC is not configured by default in Satellite 6, you need to enable the plugin on Capsule and then integrate it with your hosts. I don't think this is even documented in our docs.

https://theforeman.org/manuals/1.11/index.html#4.3.3BMC

If you are using PXE provisioning for virtualized hosts (and not using Compute Resource), the Foreman does not know these hosts are virtualized and power capability is not even turned on for them.

There is a RFE to detect virtual platforms and enable power capabilities, but that's a different story.

Note BMC and Power are two different capabilities. I am not sure which one you expect to work, none of them will work by default, the other one will only work when using Compute Resources.

Please confirm, I think this is NOTABUG.

Comment 6 Lukas Zapletal 2016-07-08 07:24:28 UTC
BMC power buttons are only available when you have at least one BMC NIC with username and password set:

  def bmc_available?
    ipmi = bmc_nic
    return false if ipmi.nil?
    ipmi.password.present? && ipmi.username.present? && ipmi.provider == 'IPMI'
  end

Compute resource power buttons are only available if you manage a virtual host.

I am closing this, if you want to improve something, please report upstream only feature and we will triage it. Thanks!


Note You need to log in before you can comment on or make changes to this bug.