Skip to content

Commit

Permalink
Include all status of hosts except online (#433)
Browse files Browse the repository at this point in the history
Currently, the DM only checks for the offline state, not the
power-off state, when hosts are not in simplex mode.
This change ensures that all host statuses, except online, are included.

Test-Plan
PASS: Deploy AIO-DX on VDM
PASS: DM adding the controller-1, check the controller-1 is added into the "system host-list",
power off the controller-1 using "system host-power-off controller-1
Signed-off-by: sbhardwa <sharang.bhardwaj@windriver.com>
  • Loading branch information
sharbhar authored Dec 6, 2024
1 parent 22a2c62 commit bc5a0fe
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -840,11 +840,11 @@
host_reconcile_retries: >
{{ 120 if hosts_count.stdout | int == 2 else 240 }}
- name: Get offline hosts if not simplex
- name: Get hosts not online or not available if not simplex
shell: >
kubectl get hosts -o custom-columns='NAME:.metadata.name,
OPERATIONAL:.status.availabilityStatus' -n deployment |
awk '$NF ~ /offline/ {print}'
awk '$NF !~ /online/ {print}'
environment:
KUBECONFIG: "/etc/kubernetes/admin.conf"
register: get_offline_hosts
Expand Down

0 comments on commit bc5a0fe

Please sign in to comment.