Bug 1211376
Summary: | Fetching host power state using "power_action": "status" fails for VMs | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Jan Krocil <jkrocil> |
Component: | Provisioning | Assignee: | Shlomi Zadok <szadok> |
Status: | CLOSED ERRATA | QA Contact: | Roman Plevka <rplevka> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.0.8 | CC: | bkearney, cwelton, ehelms, kbidarka, lzap, ohadlevy, rplevka, szadok |
Target Milestone: | Unspecified | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
URL: | http://projects.theforeman.org/issues/13430 | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-07-27 11:22:19 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: | |||
Bug Depends On: | 1341149 | ||
Bug Blocks: |
Description
Jan Krocil
2015-04-13 19:32:38 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been set to ? to ensure that it is properly evaluated for this release. Valid bug, we should return same flags for both bare metal and hypervisors. Created redmine issue http://projects.theforeman.org/issues/11642 from this bug Upstream bug component is Power & BMC Connecting redmine issue http://projects.theforeman.org/issues/13430 from this bug Upstream bug component is Provisioning Moving to POST since upstream bug http://projects.theforeman.org/issues/13430 has been closed ------------- Anonymous Applied in changeset commit:1bf5ff536572e0209095532d7f5c7dd986d2aa19. VERIFIED on sat6.2.0 snap18.1 <pre> # curl -ku admin:changeme -X PUT -H 'Content-Type:application/json' -d '{"power_action": "off"}' https://$(hostname)/api/v2/hosts/3/power/ {"power":true} [root ~]# curl -ku admin:changeme -X PUT -H 'Content-Type:application/json' -d '{"power_action": "state"}' https://$(hostname)/api/v2/hosts/3/power/ {"power":"off"} [root ~]# curl -ku admin:changeme -X PUT -H 'Content-Type:application/json' -d '{"power_action": "on"}' https://$(hostname)/api/v2/hosts/3/power/ {"power":true} [root ~]# curl -ku admin:changeme -X PUT -H 'Content-Type:application/json' -d '{"power_action": "state"}' https://$(hostname)/api/v2/hosts/3/power/ {"power":"running"} </pre> 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/RHBA-2016:1501 |