| gpowerd_config { |
| state_monitor_config [ |
| { |
| state_name: "system_0_PowerState" |
| state_gathering_info { |
| redfish { uri: "/redfish/v1/Systems/system1" json_key: "PowerState" } |
| collection_interval_ms: 1000 |
| prototype { power_state { state: POWER_STATE_POWERING_ON } } |
| } |
| system_component { node_entity_tag: " host-compute-node-0" } |
| }, |
| { |
| state_name: "system_1_PowerState" |
| state_gathering_info { |
| redfish { uri: "/redfish/v1/Systems/system2" json_key: "PowerState" } |
| collection_interval_ms: 1000 |
| prototype { power_state { state: POWER_STATE_POWERING_ON } } |
| } |
| system_component { node_entity_tag: "host-compute-node-1" } |
| } |
| |
| ] |
| } |
| |
| action_configs { |
| action_name: "host_0_reboot_force" |
| action { |
| action_type: ACTION_TYPE_REBOOT |
| action_severity: ACTION_SEVERITY_FORCE |
| target_component { |
| node_entity_tag: "host-compute-node-0" |
| } |
| } |
| redfish { |
| uri: "/redfish/v1/Systems/system1/Actions/ComputerSystem.Reset" |
| json_body: "{\"ResetType\" : \"ForceRestart\"}" |
| ip: "127.0.0.1" |
| port: 80 |
| } |
| } |
| |
| action_configs { |
| action_name: "host_1_reboot_force" |
| action { |
| action_type: ACTION_TYPE_REBOOT |
| action_severity: ACTION_SEVERITY_FORCE |
| target_component { |
| node_entity_tag: "host-compute-node-1" |
| } |
| } |
| redfish { |
| uri: "/redfish/v1/Systems/system2/Actions/ComputerSystem.Reset" |
| json_body: "{\"ResetType\" : \"ForceRestart\"}" |
| ip: "127.0.0.1" |
| port: 80 |
| } |
| } |
| |
| action_configs { |
| action_name: "host_0_on_force" |
| action { |
| action_type: ACTION_TYPE_ON |
| action_severity: ACTION_SEVERITY_FORCE |
| target_component { |
| node_entity_tag: "host-compute-node-0" |
| } |
| } |
| redfish { |
| uri: "/redfish/v1/Systems/system1/Actions/ComputerSystem.Reset" |
| json_body: "{\"ResetType\" : \"ForceOn\"}" |
| ip: "127.0.0.1" |
| port: 80 |
| } |
| } |
| |
| action_configs { |
| action_name: "host_1_on_force" |
| action { |
| action_type: ACTION_TYPE_ON |
| action_severity: ACTION_SEVERITY_FORCE |
| target_component { |
| node_entity_tag: "host-compute-node-1" |
| } |
| } |
| redfish { |
| uri: "/redfish/v1/Systems/system2/Actions/ComputerSystem.Reset" |
| json_body: "{\"ResetType\" : \"ForceOn\"}" |
| ip: "127.0.0.1" |
| port: 80 |
| } |
| } |
| |
| action_configs { |
| action_name: "host_0_off_force" |
| action { |
| action_type: ACTION_TYPE_OFF |
| action_severity: ACTION_SEVERITY_FORCE |
| target_component { |
| node_entity_tag: "host-compute-node-0" |
| } |
| } |
| redfish { |
| uri: "/redfish/v1/Systems/system1/Actions/ComputerSystem.Reset" |
| json_body: "{\"ResetType\" : \"ForceOff\"}" |
| ip: "127.0.0.1" |
| port: 80 |
| } |
| } |
| |
| action_configs { |
| action_name: "host_1_off_force" |
| action { |
| action_type: ACTION_TYPE_OFF |
| action_severity: ACTION_SEVERITY_FORCE |
| target_component { |
| node_entity_tag: "host-compute-node-1" |
| } |
| } |
| redfish { |
| uri: "/redfish/v1/Systems/system2/Actions/ComputerSystem.Reset" |
| json_body: "{\"ResetType\" : \"ForceOff\"}" |
| ip: "127.0.0.1" |
| port: 80 |
| } |
| } |