ClusterLabs / crmsh

Command-line interface for High-Availability cluster management on GNU/Linux systems.
GNU General Public License v2.0
131 stars 94 forks source link

corosync link issue #1546

Open liangxin1300 opened 1 week ago

liangxin1300 commented 1 week ago
  1. Completer of crm corosync link remove not works
  2. When giving out the range index for the remove command, just log an error, it's better not to exit the whole crmsh
    crm(live/alp-1)corosync link# remove 12
    ERROR: list index out of range
    bye

    another example, should give the same error log message:

    crm(live/alp-1)corosync link# update 2 alp-1=20.20.20.61 alp-2=20.20.20.62
    ERROR: corosync.link.update: Link 2 does not exist.
    crm(live/alp-1)corosync link# update 11 alp-1=20.20.20.61 alp-2=20.20.20.62
    ERROR: list index out of range
    bye
  3. Build status is failed now in https://build.opensuse.org/package/show/network:ha-clustering:Factory/crmsh
liangxin1300 commented 1 week ago

@nicholasyang2022 Please take a look, thanks!