Post by AMI_Mani on Mar 24, 2022 18:15:10 GMT
Hi,
I'm able to see below content in ComputerSystem.v1_17_0.json for ForceRestart(like power cycle)
"Reset": {
"additionalProperties": false,
"description": "This action resets the system.",
"longDescription": "This action shall reset the system represented by the resource. For systems that implement ACPI Power Button functionality, the PushPowerButton value shall perform or emulate an ACPI Power Button Push. The ForceOff value shall remove power from the system or perform an ACPI Power Button Override, commonly known as a four-second hold of the Power Button. The ForceRestart value shall perform a ForceOff action, followed by an On action.",
"parameters": {
"ResetType": {
"$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/ResetType",
"description": "The type of reset.",
"longDescription": "This parameter shall contain the type of reset. The service can accept a request without the parameter and perform an implementation-specific default reset. Services should include the @redfish.AllowableValues annotation for this parameter to ensure compatibility with clients, even when ActionInfo has been implemented."
}
},
But in redfish.dmtf.org/schemas/v1/Resource.json#/definitions/ResetType, Forcerestart is not like power cycle operation from definition
"ResetType": {
"enum": [
"On",
"ForceOff",
"GracefulShutdown",
"GracefulRestart",
"ForceRestart",
"Nmi",
"ForceOn",
"PushPowerButton",
"PowerCycle",
"Suspend",
"Pause",
"Resume"
],
"enumDescriptions": {
"ForceOff": "Turn off the unit immediately (non-graceful shutdown).",
"ForceOn": "Turn on the unit immediately.",
"ForceRestart": "Shut down immediately and non-gracefully and restart the system.",
"GracefulRestart": "Shut down gracefully and restart the system.",
"GracefulShutdown": "Shut down gracefully and power off.",
"Nmi": "Generate a diagnostic interrupt, which is usually an NMI on x86 systems, to stop normal operations, complete diagnostic actions, and, typically, halt the system.",
"On": "Turn on the unit.",
"Pause": "Pause execution on the unit but do not remove power. This is typically a feature of virtual machine hypervisors.",
"PowerCycle": "Power cycle the unit. Behaves like a full power removal, followed by a power restore to the resource.",
"PushPowerButton": "Simulate the pressing of the physical power button on this unit.",
"Resume": "Resume execution on the paused unit. This is typically a feature of virtual machine hypervisors.",
"Suspend": "Write the state of the unit to disk before powering off. This allows for the state to be restored when powered back on."
},
ForceRestart definition is different between two places, please confirm whether it's expected or it will be changed in schema?
Thanks,
Mani
I'm able to see below content in ComputerSystem.v1_17_0.json for ForceRestart(like power cycle)
"Reset": {
"additionalProperties": false,
"description": "This action resets the system.",
"longDescription": "This action shall reset the system represented by the resource. For systems that implement ACPI Power Button functionality, the PushPowerButton value shall perform or emulate an ACPI Power Button Push. The ForceOff value shall remove power from the system or perform an ACPI Power Button Override, commonly known as a four-second hold of the Power Button. The ForceRestart value shall perform a ForceOff action, followed by an On action.",
"parameters": {
"ResetType": {
"$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/ResetType",
"description": "The type of reset.",
"longDescription": "This parameter shall contain the type of reset. The service can accept a request without the parameter and perform an implementation-specific default reset. Services should include the @redfish.AllowableValues annotation for this parameter to ensure compatibility with clients, even when ActionInfo has been implemented."
}
},
But in redfish.dmtf.org/schemas/v1/Resource.json#/definitions/ResetType, Forcerestart is not like power cycle operation from definition
"ResetType": {
"enum": [
"On",
"ForceOff",
"GracefulShutdown",
"GracefulRestart",
"ForceRestart",
"Nmi",
"ForceOn",
"PushPowerButton",
"PowerCycle",
"Suspend",
"Pause",
"Resume"
],
"enumDescriptions": {
"ForceOff": "Turn off the unit immediately (non-graceful shutdown).",
"ForceOn": "Turn on the unit immediately.",
"ForceRestart": "Shut down immediately and non-gracefully and restart the system.",
"GracefulRestart": "Shut down gracefully and restart the system.",
"GracefulShutdown": "Shut down gracefully and power off.",
"Nmi": "Generate a diagnostic interrupt, which is usually an NMI on x86 systems, to stop normal operations, complete diagnostic actions, and, typically, halt the system.",
"On": "Turn on the unit.",
"Pause": "Pause execution on the unit but do not remove power. This is typically a feature of virtual machine hypervisors.",
"PowerCycle": "Power cycle the unit. Behaves like a full power removal, followed by a power restore to the resource.",
"PushPowerButton": "Simulate the pressing of the physical power button on this unit.",
"Resume": "Resume execution on the paused unit. This is typically a feature of virtual machine hypervisors.",
"Suspend": "Write the state of the unit to disk before powering off. This allows for the state to be restored when powered back on."
},
ForceRestart definition is different between two places, please confirm whether it's expected or it will be changed in schema?
Thanks,
Mani