Seagate / halon

High availability solution
Apache License 2.0
1 stars 0 forks source link

scripts/h0: Add `hosts' command #1514

Closed 1468ca0b-2a64-4fb4-8e52-ea5806644b4c closed 5 years ago

1468ca0b-2a64-4fb4-8e52-ea5806644b4c commented 5 years ago

Created by: vvv

1468ca0b-2a64-4fb4-8e52-ea5806644b4c commented 5 years ago

Created by: andriytk

Show comma-separated list of cluster nodes

Well... :)

1468ca0b-2a64-4fb4-8e52-ea5806644b4c commented 5 years ago

Created by: vvv

The primary motive for adding h0 hosts was to simplify pdsh calls.

pdsh -w $(h0 hosts) ...  # assuming ~/.m0-cluster.yaml exists

(I thought about adding h0 pdsh, but decided not to go that far.)

1468ca0b-2a64-4fb4-8e52-ea5806644b4c commented 5 years ago

Created by: vvv

I mean, ugh!

😃

1468ca0b-2a64-4fb4-8e52-ea5806644b4c commented 5 years ago

Created by: vvv

The word “hosts” is used everywhere else in this script (as well as in ssh(1) and pdsh(1)).

1468ca0b-2a64-4fb4-8e52-ea5806644b4c commented 5 years ago

Created by: vvv

No, thanks. :)

1468ca0b-2a64-4fb4-8e52-ea5806644b4c commented 5 years ago

Created by: andriytk

Why not nodes?

1468ca0b-2a64-4fb4-8e52-ea5806644b4c commented 5 years ago

Created by: chumakd

alternative formatting:

    for exe in dix/utils/m0dixinit \
               mero/m0d \
               utils/mkfs/m0mkfs \
               utils/trace/m0traced \
               utils/trace/m0tracedump
    do
        $M0_SRC_DIR/$exe -h &>/dev/null || true
    done