Skip to content

CP-49446: expose SR health values to Python #5747

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions ocaml/xapi-storage-script/main.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1046,6 +1046,10 @@ let bind ~volume_script_dir =
Healthy
| Xapi_storage.Control.Recovering _ ->
Recovering
| Xapi_storage.Control.Unreachable _ ->
Unreachable
| Xapi_storage.Control.Unavailable _ ->
Unavailable
)
}
in
Expand Down Expand Up @@ -1405,6 +1409,10 @@ let bind ~volume_script_dir =
Healthy
| Xapi_storage.Control.Recovering _ ->
Recovering
| Xapi_storage.Control.Unreachable _ ->
Unreachable
| Xapi_storage.Control.Unavailable _ ->
Unavailable
)
}
)
Expand Down
4 changes: 4 additions & 0 deletions ocaml/xapi-storage/generator/lib/control.ml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ type health =
| Healthy of string (** Storage is fully available *)
| Recovering of string
(** Storage is busy recovering, e.g. rebuilding mirrors *)
| Unreachable of string
(** Storage is unreachable but may be recoverable with admin intervention *)
| Unavailable of string
(** Storage is unavailable, a host reboot will be required *)
[@@deriving rpcty]

type volume_type =
Expand Down
Loading