[ClusterLabs] Antw: [EXT] Re: Q: crm resource start/stop completion

Xin Liang XLiang at suse.com
Wed Dec 16 12:09:25 EST 2020


Hi Ulrich,

In https://github.com/ClusterLabs/crmsh/pull/273/files, the 4.2.0 definitely already included this change.

In my clean environment(0 resources configured cluster):

  1.  crm configure primitive d Dummy   (then resource d will started)
  2.  crm resource stop<TAB><TAB> (or <one space><TAB> after stop, then you will find d completed)
  3.  crm resource start<TAB><TAB> (or <one space><TAB> after start, then you got d completed)

________________________________
From: Users <users-bounces at clusterlabs.org> on behalf of Ulrich Windl <Ulrich.Windl at rz.uni-regensburg.de>
Sent: Wednesday, December 16, 2020 5:57 PM
To: users at clusterlabs.org <users at clusterlabs.org>
Subject: [ClusterLabs] Antw: [EXT] Re: Q: crm resource start/stop completion

>>> Xin Liang <XLiang at suse.com> schrieb am 15.12.2020 um 03:55 in Nachricht
<HE1PR04MB3209C9F526ECB88178E8B222B0C60 at HE1PR04MB3209.eurprd04.prod.outlook.com>

> Hi Ulrich,
>
> crmsh already could do this completion:)

Hi!

Since when? Mine (crmsh-4.2.0+git.1604052559.2a348644-5.26.1.noarch) seems
unable: When I use "crm(live/h16)resource# start " and press TAB, I see
resources that are running already. May be that they don't have a target-role
(so they are started by default).

Can you confirm?

Regards,
Ulrich

>
> Regards,
> Xin
> ________________________________
> From: Users <users‑bounces at clusterlabs.org> on behalf of Ulrich Windl
> <Ulrich.Windl at rz.uni‑regensburg.de>
> Sent: Monday, December 14, 2020 6:51 PM
> To: users at clusterlabs.org <users at clusterlabs.org>
> Subject: [ClusterLabs] Q: crm resource start/stop completion
>
> Hi!
>
> I wonder: Would it be difficult and would it make sense to change crm shell

> to:
> Complete "resource start " with only those resources that aren't running
> (per role) already
> Complete "resource stopt " with only those resources that are running (per
> role)
>
> I came to this after seeing "3 disabled resources" in crm_mon output. As
> crm_mon itself cannot display just those disabled resources (yet? ;‑)), I
used
> crm shell...
>
> Regards,
> Ulrich
>
>
>
> _______________________________________________
> Manage your subscription:
> https://lists.clusterlabs.org/mailman/listinfo/users
>
> ClusterLabs home: https://www.clusterlabs.org/



_______________________________________________
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users

ClusterLabs home: https://www.clusterlabs.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clusterlabs.org/pipermail/users/attachments/20201216/eb3be5eb/attachment.htm>


More information about the Users mailing list