redfish_codegen/registries/storage_device/
v1_1_0.rs

1// Generated by redfish-codegen. Do not modify.
2
3use redfish_macros::IntoRedfishMessage;
4
5/// This registry defines the messages for storage devices.
6#[derive(Clone, Debug, IntoRedfishMessage)]
7#[message(crate::models::message::v1_1_2::Message)]
8pub enum StorageDevice {
9    /// This message shall be used to indicate a volume offline condition was detected.  This may occur if the volume configuration is not supported or needs to be imported.
10    #[message(message = "The volume '%1' attached to the storage controller located in '%2' is offline.")]
11    #[message(id = "StorageDevice.1.1.0.VolumeOffine")]
12    #[message(severity = "crate::models::resource::Health::Critical")]
13    #[message(resolution = "Use storage sofware to enable, repair, or import the volume.  You may also delete or move volume back to the original controller.")]
14    VolumeOffine(
15        /// The value of this argument shall be a string containing an identifier for the volume.  The identifier may contain `Id`, `Name`, `Identifiers`, `LogicalUnitNumber`, or other data used to uniquely identify the volume.
16        String,
17        /// The value of this argument shall be a string containing the storage controller location.
18        String,
19    ),
20    /// This message shall be used to indicate a drive predictive failure condition has been detected.
21    #[message(message = "A predictive failure condition for the drive located in '%1' has been detected.")]
22    #[message(id = "StorageDevice.1.1.0.DrivePredictiveFailure")]
23    #[message(severity = "crate::models::resource::Health::Warning")]
24    #[message(resolution = "If this drive is not part of a fault-tolerant volume, first back up all data, then replace the drive and restore all data afterward.  If this drive is part of a fault-tolerant volume, replace this drive as soon as possible as long as the volume health is OK.")]
25    DrivePredictiveFailure(
26        /// The value of this argument shall be a string containing the drive location.
27        String,
28    ),
29    /// This message shall be used to indicate a drive has been removed.
30    #[message(message = "The drive located in '%1' was removed.")]
31    #[message(id = "StorageDevice.1.1.0.DriveRemoved")]
32    #[message(severity = "crate::models::resource::Health::Critical")]
33    #[message(resolution = "If the drive is still displayed, attempt to refresh the cached data.")]
34    DriveRemoved(
35        /// The value of this argument shall be a string containing the drive location.
36        String,
37    ),
38    /// This message shall be used to indicate that the storage controller password was accepted.  Normally this is used by storage controllers that require a controller password during boot to unlock encrypted volumes or drives.
39    #[message(message = "A password was entered for the storage controller located in '%1'.")]
40    #[message(id = "StorageDevice.1.1.0.ControllerPasswordAccepted")]
41    #[message(severity = "crate::models::resource::Health::OK")]
42    #[message(resolution = "No action required.")]
43    ControllerPasswordAccepted(
44        /// The value of this argument shall be a string containing the storage controller location.
45        String,
46    ),
47    /// This message shall be used to indicate the write cache is reporting loss of data in posted-writes cache memory due to loss of battery power when the server lost power or a hardware error.
48    #[message(message = "The write cache on the storage controller located in '%1' has data loss.")]
49    #[message(id = "StorageDevice.1.1.0.WriteCacheDataLoss")]
50    #[message(severity = "crate::models::resource::Health::Critical")]
51    #[message(resolution = "Check the controller resource properties to determine cause of the write cache data loss.")]
52    WriteCacheDataLoss(
53        /// The value of this argument shall be a string containing the storage controller location.
54        String,
55    ),
56    /// This message shall be used to indicate a battery health has changed to OK.
57    #[message(message = "The health of the battery located in '%1' has changed to OK.")]
58    #[message(id = "StorageDevice.1.1.0.BatteryOK")]
59    #[message(severity = "crate::models::resource::Health::OK")]
60    #[message(resolution = "No action needed.")]
61    BatteryOK(
62        /// The value of this argument shall be a string containing the battery location.
63        String,
64    ),
65    /// This message shall be used to indicate that an unreported storage controller error condition has been detected prior to reboot.
66    #[message(message = "A previous error condition for the storage controller located in '%1' has been detected due to '%2'.")]
67    #[message(id = "StorageDevice.1.1.0.ControllerPreviousError")]
68    #[message(severity = "crate::models::resource::Health::Warning")]
69    #[message(resolution = "Update the controller to the latest firmware version.  If the issue persists, replace the controller.")]
70    ControllerPreviousError(
71        /// The value of this argument shall be a string containing the storage controller location.
72        String,
73        /// The value of this argument shall be a string containing the reason for failure.
74        String,
75    ),
76    /// This message shall be used to indicate a controller port degraded condition has been detected.
77    #[message(message = "A degraded condition for the controller port located in '%1' has been detected due to reason '%2'.")]
78    #[message(id = "StorageDevice.1.1.0.ControllerPortDegraded")]
79    #[message(severity = "crate::models::resource::Health::Warning")]
80    #[message(resolution = "Ensure all cables are properly and securly connected.  Replace faulty cables.")]
81    ControllerPortDegraded(
82        /// The value of this argument shall be a string containing the controller port location.
83        String,
84        /// The value of this argument shall be a string containing the reason for the degraded controller port.
85        String,
86    ),
87    /// This message shall be used to indicate a volume online condition was detected.
88    #[message(message = "The volume '%1' attached to the storage controller located in '%2' is online.")]
89    #[message(id = "StorageDevice.1.1.0.VolumeOfflineCleared")]
90    #[message(severity = "crate::models::resource::Health::OK")]
91    #[message(resolution = "No action needed.")]
92    VolumeOfflineCleared(
93        /// The value of this argument shall be a string containing an identifier for the volume.  The identifier may contain `Id`, `Name`, `Identifiers`, `LogicalUnitNumber`, or other data used to uniquely identify the volume.
94        String,
95        /// The value of this argument shall be a string containing the storage controller location.
96        String,
97    ),
98    /// This message shall be used to indicate a controller write cache state is in protected mode.
99    #[message(message = "The write cache state on the storage controller located in '%1' is in protected mode.")]
100    #[message(id = "StorageDevice.1.1.0.WriteCacheProtected")]
101    #[message(severity = "crate::models::resource::Health::OK")]
102    #[message(resolution = "No action needed.")]
103    WriteCacheProtected(
104        /// The value of this argument shall be a string containing the storage controller location.
105        String,
106    ),
107    /// This message shall be used to indicate a battery is below the required capacity and is charging.
108    #[message(message = "A charging condition for the battery located in '%1' has been detected.")]
109    #[message(id = "StorageDevice.1.1.0.BatteryCharging")]
110    #[message(severity = "crate::models::resource::Health::Warning")]
111    #[message(resolution = "No action needed.  There may be reduced performance and features while the battery is charging.")]
112    BatteryCharging(
113        /// The value of this argument shall be a string containing the battery location.
114        String,
115    ),
116    /// This message shall be used to indicate a predictive failure condition on a drive has been cleared, but any other failure conditions remain.
117    #[message(message = "A predictive failure condition for the drive located in '%1' has been cleared.")]
118    #[message(id = "StorageDevice.1.1.0.DrivePredictiveFailureCleared")]
119    #[message(severity = "crate::models::resource::Health::OK")]
120    #[message(resolution = "No action needed.")]
121    DrivePredictiveFailureCleared(
122        /// The value of this argument shall be a string containing the drive location.
123        String,
124    ),
125    /// This message shall be used to indicate a drive offline condition has been cleared.
126    #[message(message = "An offline condition for the the drive located in '%1' has been cleared.")]
127    #[message(id = "StorageDevice.1.1.0.DriveOfflineCleared")]
128    #[message(severity = "crate::models::resource::Health::OK")]
129    #[message(resolution = "No action needed.")]
130    DriveOfflineCleared(
131        /// The value of this argument shall be a string containing the drive location.
132        String,
133    ),
134    /// This message shall be used to indicate a drive has been inserted.
135    #[message(message = "The drive located in '%1' was inserted.")]
136    #[message(id = "StorageDevice.1.1.0.DriveInserted")]
137    #[message(severity = "crate::models::resource::Health::OK")]
138    #[message(resolution = "If the drive is not properly displayed, attempt to refresh the cached data.")]
139    DriveInserted(
140        /// The value of this argument shall be a string containing the drive location.
141        String,
142    ),
143    /// This message shall be used to indicate a battery failure condition has been detected.
144    #[message(message = "A failure condition for the battery located in '%1' has been detected.")]
145    #[message(id = "StorageDevice.1.1.0.BatteryFailure")]
146    #[message(severity = "crate::models::resource::Health::Critical")]
147    #[message(resolution = "Ensure all cables are properly and securely connected.  Replace the failed battery.")]
148    BatteryFailure(
149        /// The value of this argument shall be a string containing the battery location.
150        String,
151    ),
152    /// This message shall be used to indicate that a storage controller failure condition has been detected due to a hardware, communication, or firmware failure.
153    #[message(message = "A failure condition for the storage controller located in '%1' has been detected.")]
154    #[message(id = "StorageDevice.1.1.0.ControllerFailure")]
155    #[message(severity = "crate::models::resource::Health::Critical")]
156    #[message(resolution = "Reseat the storage controller in the PCI slot.  Update the controller to the latest firmware version.  If the issue persists, replace the controller.")]
157    ControllerFailure(
158        /// The value of this argument shall be a string containing the storage controller location.
159        String,
160    ),
161    /// This message shall be used to indicate a volume degraded condition was detected due to one or more drives not installed correctly, missing, or has failed.
162    #[message(message = "The volume '%1' attached to the storage controller located in '%2' is degraded.")]
163    #[message(id = "StorageDevice.1.1.0.VolumeDegraded")]
164    #[message(severity = "crate::models::resource::Health::Warning")]
165    #[message(resolution = "Ensure all cables are properly and securely connected.  Replace failed drives.")]
166    VolumeDegraded(
167        /// The value of this argument shall be a string containing an identifier for the volume.  The identifier may contain `Id`, `Name`, `Identifiers`, `LogicalUnitNumber`, or other data used to uniquely identify the volume.
168        String,
169        /// The value of this argument shall be a string containing the storage controller location.
170        String,
171    ),
172    /// This message shall be used to indicate a drive that is required by the configuration is missing.  This message shall exist any time a volume is degraded or failed due to a missing drive.
173    #[message(message = "A missing condition for the drive located in '%1' has been detected.")]
174    #[message(id = "StorageDevice.1.1.0.DriveMissing")]
175    #[message(severity = "crate::models::resource::Health::Critical")]
176    #[message(resolution = "Ensure all cables are properly and securely connected.  Ensure all drives are fully seated.  Replace the defective cables, drive, or both.  Delete the volume if no longer needed.")]
177    DriveMissing(
178        /// The value of this argument shall be a string containing the drive location.
179        String,
180    ),
181    /// This message shall be used to indicate the write cache state degraded due to a missing battery or hardware failure.
182    #[message(message = "The write cache state on the storage controller located in '%1' is degraded.")]
183    #[message(id = "StorageDevice.1.1.0.WriteCacheDegraded")]
184    #[message(severity = "crate::models::resource::Health::Critical")]
185    #[message(resolution = "Check the controller to determine the cause of write cache degraded state, such as a missing battery or hardware failure.")]
186    WriteCacheDegraded(
187        /// The value of this argument shall be a string containing the storage controller location.
188        String,
189    ),
190    /// This message shall be used to indicate that the storage controller health has changed to OK.
191    #[message(message = "The health of the storage controller located in '%1' has changed to OK.")]
192    #[message(id = "StorageDevice.1.1.0.ControllerOK")]
193    #[message(severity = "crate::models::resource::Health::OK")]
194    #[message(resolution = "No action required.")]
195    ControllerOK(
196        /// The value of this argument shall be a string containing the storage controller location.
197        String,
198    ),
199    /// This message shall be used to indicate a previous drive missing condition has been cleared.
200    #[message(message = "A missing condition for the drive located in '%1' has been cleared.")]
201    #[message(id = "StorageDevice.1.1.0.DriveMissingCleared")]
202    #[message(severity = "crate::models::resource::Health::OK")]
203    #[message(resolution = "No action needed.")]
204    DriveMissingCleared(
205        /// The value of this argument shall be a string containing the drive location.
206        String,
207    ),
208    /// This message shall be used to indicate a drive health has changed to OK.
209    #[message(message = "The health of the drive located in '%1' has changed to OK.")]
210    #[message(id = "StorageDevice.1.1.0.DriveOK")]
211    #[message(severity = "crate::models::resource::Health::OK")]
212    #[message(resolution = "No action needed.")]
213    DriveOK(
214        /// The value of this argument shall be a string containing the drive location.
215        String,
216    ),
217    /// This message shall be used to indicate a drive offline condition has been detected.  This may occur when a drive is unconfigured, encrypted by a foreign controller, offline during a background operation, or unsupported.
218    #[message(message = "An offline condition for the the drive located in '%1' has been detected.")]
219    #[message(id = "StorageDevice.1.1.0.DriveOffline")]
220    #[message(severity = "crate::models::resource::Health::Critical")]
221    #[message(resolution = "If the drive is unconfigured or needs an import, configure the drive.  If the drive operation is in progress, wait for the operation to complete.  If the drive is not supported, replace it.")]
222    DriveOffline(
223        /// The value of this argument shall be a string containing the drive location.
224        String,
225    ),
226    /// This message shall be used to indicate a volume health has changed to OK.
227    #[message(message = "The health of volume '%1' that is attached to the storage controller located in '%2' has changed to OK.")]
228    #[message(id = "StorageDevice.1.1.0.VolumeOK")]
229    #[message(severity = "crate::models::resource::Health::OK")]
230    #[message(resolution = "No action needed.")]
231    VolumeOK(
232        /// The value of this argument shall be a string containing an identifier for the volume.  The identifier may contain `Id`, `Name`, `Identifiers`, `LogicalUnitNumber`, or other data used to uniquely identify the volume.
233        String,
234        /// The value of this argument shall be a string containing the storage controller location.
235        String,
236    ),
237    /// This message shall be used to indicate a battery that is required by the configuration is missing.
238    #[message(message = "The battery located in '%1' is missing.")]
239    #[message(id = "StorageDevice.1.1.0.BatteryMissing")]
240    #[message(severity = "crate::models::resource::Health::Critical")]
241    #[message(resolution = "Attach the battery.  Ensure all cables are properly and securely connected.")]
242    BatteryMissing(
243        /// The value of this argument shall be a string containing the battery location.
244        String,
245    ),
246    /// This message shall be used to indicate a failure condition on a drive has been cleared, but any predictive failure or other conditions remain.
247    #[message(message = "A failure condition for the drive located in '%1' has been cleared.")]
248    #[message(id = "StorageDevice.1.1.0.DriveFailureCleared")]
249    #[message(severity = "crate::models::resource::Health::OK")]
250    #[message(resolution = "No action needed.")]
251    DriveFailureCleared(
252        /// The value of this argument shall be a string containing the drive location.
253        String,
254    ),
255    /// This message shall be used to indicate a controller port failure condition has been detected.
256    #[message(message = "A failure condition for the controller port located in '%1' has been detected.")]
257    #[message(id = "StorageDevice.1.1.0.ControllerPortFailure")]
258    #[message(severity = "crate::models::resource::Health::Critical")]
259    #[message(resolution = "Ensure all cables are properly and securly connected.  Replace faulty cables.")]
260    ControllerPortFailure(
261        /// The value of this argument shall be a string containing the controller port location.
262        String,
263    ),
264    /// This message shall be used to indicate a controller port health has changed to OK.
265    #[message(message = "The health of the controller port located in '%1' has changed to OK.")]
266    #[message(id = "StorageDevice.1.1.0.ControllerPortOK")]
267    #[message(severity = "crate::models::resource::Health::OK")]
268    #[message(resolution = "No action needed.")]
269    ControllerPortOK(
270        /// The value of this argument shall be a string containing the controller port location.
271        String,
272    ),
273    /// This message shall be used to indicate a volume failure condition was detected due to one or more drives not installed correctly, missing, or has failed.
274    #[message(message = "The volume '%1' attached to the storage controller located in '%2' has failed.")]
275    #[message(id = "StorageDevice.1.1.0.VolumeFailure")]
276    #[message(severity = "crate::models::resource::Health::Critical")]
277    #[message(resolution = "Ensure all cables are properly and securely connected.  Ensure all drives are fully seated and operational.")]
278    VolumeFailure(
279        /// The value of this argument shall be a string containing an identifier for the volume.  The identifier may contain `Id`, `Name`, `Identifiers`, `LogicalUnitNumber`, or other data used to uniquely identify the volume.
280        String,
281        /// The value of this argument shall be a string containing the storage controller location.
282        String,
283    ),
284    /// This message shall be used to indicate write cache state temporarily degraded due to battery charging or data recovery rebuild operation pending.
285    #[message(message = "The write cache state on the storage controller located in '%1' is temporarily degraded.")]
286    #[message(id = "StorageDevice.1.1.0.WriteCacheTemporarilyDegraded")]
287    #[message(severity = "crate::models::resource::Health::Warning")]
288    #[message(resolution = "Check the controller to determine the cause of write cache temporarily degraded state, such as a battery is charging or a data recovery rebuild operation is pending.")]
289    WriteCacheTemporarilyDegraded(
290        /// The value of this argument shall be a string containing the storage controller location.
291        String,
292    ),
293    /// This message shall be used to indicate that a storage controller degraded condition has been detected.
294    #[message(message = "A degraded condition for the storage controller located in '%1' has been detected due to reason '%2'.")]
295    #[message(id = "StorageDevice.1.1.0.ControllerDegraded")]
296    #[message(severity = "crate::models::resource::Health::Warning")]
297    #[message(resolution = "Reseat the storage controller in the PCI slot.  Update the controller to the latest firmware version.  If the issue persists, replace the controller.")]
298    ControllerDegraded(
299        /// The value of this argument shall be a string containing the storage controller location.
300        String,
301        /// The value of this argument shall be a string containing the reason for the degraded controller.
302        String,
303    ),
304    /// This message shall be used to indicate that the storage controller requires a password.  Normally this is used by storage controllers that require a controller password during boot to unlock encrypted volumes or drives.
305    #[message(message = "The storage controller located in '%1' requires a password.")]
306    #[message(id = "StorageDevice.1.1.0.ControllerPasswordRequired")]
307    #[message(severity = "crate::models::resource::Health::Critical")]
308    #[message(resolution = "Enter the controller password.")]
309    ControllerPasswordRequired(
310        /// The value of this argument shall be a string containing the storage controller location.
311        String,
312    ),
313    /// This message shall be used to indicate a drive failure condition detected due to a drive not installed correctly or has failed.
314    #[message(message = "A failure condition for the drive located in '%1' has been detected.")]
315    #[message(id = "StorageDevice.1.1.0.DriveFailure")]
316    #[message(severity = "crate::models::resource::Health::Critical")]
317    #[message(resolution = "Ensure all cables are properly and securely connected.  Ensure all drives are fully seated.  Replace the defective cables, drive, or both.")]
318    DriveFailure(
319        /// The value of this argument shall be a string containing the drive location.
320        String,
321    ),
322}