-
Notifications
You must be signed in to change notification settings - Fork 66
/
Host.interface.yaml
142 lines (134 loc) · 5.31 KB
/
Host.interface.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
description: >
Implement to provide host state management
properties:
- name: RequestedHostTransition
type: enum[self.Transition]
default: "Off"
description: >
The desired host transition. This will be preserved across AC power
cycles of the BMC.
errors:
- xyz.openbmc_project.State.Host.Error.BMCNotReady
- xyz.openbmc_project.Common.Error.NotAllowed
- xyz.openbmc_project.Common.Error.Unavailable
- name: AllowedHostTransitions
type: set[enum[self.Transition]]
flags:
- const
description: >
A const property describing the allowed host transitions. Some systems
may not support all transitions so this property can be filled in with
only the supported transitions. If this property is empty then all are
supported. This list is valid from any CurrentHostState.
- name: CurrentHostState
type: enum[self.HostState]
description: >
A read-only property describing the current state of the host
firmware. A user can determine if a system is in transition by
comparing the CurrentHostState and the RequestedHostTransition
properties.
- name: RestartCause
type: enum[self.RestartCause]
default: "Unknown"
description: >
A property to define restart cause of a host.
enumerations:
- name: Transition
description: >
The desired transition for host firmware
values:
- name: "Off"
description: >
Host firmware should be off
- name: "On"
description: >
Host firmware should be on
- name: "Reboot"
description: >
Host firmware should be rebooted. Chassis power will be cycled
from off to on during this reboot
- name: "GracefulWarmReboot"
description: >
Host firmware be will notified to shutdown and once complete,
the host firmware will be rebooted. Chassis power will remain on
throughout the reboot
- name: "ForceWarmReboot"
description: >
Host firmware will be rebooted without notification and chassis
power will remain on throughout the reboot
- name: HostState
description: >
The current state of the host firmware
values:
- name: "Off"
description: >
Host firmware is not running
- name: "TransitioningToOff"
description: >
Host firmware is transitioning to an Off state
- name: "Standby"
description: >
Host firmware is in a standby state. It is awaiting a Transition
request to On to move to Running. This is an intermediate state
that some implementations of this object may move to between Off
and Running.
- name: "Running"
description: >
Host firmware is running
- name: "TransitioningToRunning"
description: >
Host firmware is transitioning to a Running state
- name: "Quiesced"
description: >
Host firmware is quiesced. The host firmware is enabled but
either unresponsive or only processing a restricted set of
commands. This state can be a result of the host entering an
error state or booting into a BIOS setup environment. The
BootProgress property will provide details on which it is.
- name: "DiagnosticMode"
description: >
Host firmware is capturing debug information. Powering off your
system while the host is in this state will prevent the debug
data from being properly collected. The host will move to one of
the other states once complete.
- name: RestartCause
description: >
The reason for host restart.
values:
- name: "Unknown"
description: >
Reason Unknown
- name: "RemoteCommand"
description: >
Remote command issued
- name: "ResetButton"
description: >
Reset button pressed
- name: "PowerButton"
description: >
Power button pressed
- name: "WatchdogTimer"
description: >
Watchdog Timer expired
- name: "PowerPolicyAlwaysOn"
description: >
Power Policy Host Always on
- name: "PowerPolicyPreviousState"
description: >
Power Policy Previous State of Host
- name: "SoftReset"
description: >
Soft reset of Host
- name: "ScheduledPowerOn"
description: >
The restart was scheduled via the
xyz.openbmc_project.State.ScheduledHostTransition interface
- name: "HostCrash"
description: >
The host firmware crashed and the BMC has automatically
initiated a restart of the host firmware
paths:
- namespace: /xyz/openbmc_project/state
segments:
- name: Host
value: host