Skip to content

Commit

Permalink
[ci_lvmns_storage] Wait for all LVMS nodes to be ready
Browse files Browse the repository at this point in the history
  • Loading branch information
pablintino committed Jul 31, 2024
1 parent 1eb039a commit fe299c4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions roles/ci_lvms_storage/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,3 +154,12 @@
- _cifmw_lvms_storage_cluster_lvmscluster_out.resources[0].status is defined
- _cifmw_lvms_storage_cluster_lvmscluster_out.resources[0].status.ready is defined
- _cifmw_lvms_storage_cluster_lvmscluster_out.resources[0].status.ready | bool
- _cifmw_lvms_storage_cluster_lvmscluster_out.resources[0].status.deviceClassStatuses is defined
- >-
_cifmw_lvms_storage_cluster_lvmscluster_out.resources[0].status.deviceClassStatuses |
selectattr("name", "defined") |
selectattr("nodeStatus", "defined") |
selectattr("name", "equalto", cifmw_lvms_storage_class) |
map(attribute="nodeStatus") | flatten |
selectattr("status", "defined") |
map(attribute="status") | unique | first | default("") == "Ready"

0 comments on commit fe299c4

Please sign in to comment.