<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi Ulrich,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
In <a href="https://github.com/ClusterLabs/crmsh/pull/273/files">https://github.com/ClusterLabs/crmsh/pull/273/files</a>, the 4.2.0 definitely already included this change.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
In my clean environment(0 resources configured cluster):</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<ol>
<li>crm configure primitive d Dummy   (then resource d will started)<br>
</li><li>crm resource stop<TAB><TAB> (or <one space><TAB> after stop, then you will find d completed)</li><li>crm resource start<TAB><TAB> (or <one space><TAB> after start, then you got d completed)</li></ol>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Users <users-bounces@clusterlabs.org> on behalf of Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de><br>
<b>Sent:</b> Wednesday, December 16, 2020 5:57 PM<br>
<b>To:</b> users@clusterlabs.org <users@clusterlabs.org><br>
<b>Subject:</b> [ClusterLabs] Antw: [EXT] Re: Q: crm resource start/stop completion</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">>>> Xin Liang <XLiang@suse.com> schrieb am 15.12.2020 um 03:55 in Nachricht<br>
<HE1PR04MB3209C9F526ECB88178E8B222B0C60@HE1PR04MB3209.eurprd04.prod.outlook.com><br>
<br>
> Hi Ulrich,<br>
> <br>
> crmsh already could do this completion:)<br>
<br>
Hi!<br>
<br>
Since when? Mine (crmsh-4.2.0+git.1604052559.2a348644-5.26.1.noarch) seems<br>
unable: When I use "crm(live/h16)resource# start " and press TAB, I see<br>
resources that are running already. May be that they don't have a target-role<br>
(so they are started by default).<br>
<br>
Can you confirm?<br>
<br>
Regards,<br>
Ulrich<br>
<br>
> <br>
> Regards,<br>
> Xin<br>
> ________________________________<br>
> From: Users <users‑bounces@clusterlabs.org> on behalf of Ulrich Windl <br>
> <Ulrich.Windl@rz.uni‑regensburg.de><br>
> Sent: Monday, December 14, 2020 6:51 PM<br>
> To: users@clusterlabs.org <users@clusterlabs.org><br>
> Subject: [ClusterLabs] Q: crm resource start/stop completion<br>
> <br>
> Hi!<br>
> <br>
> I wonder: Would it be difficult and would it make sense to change crm shell<br>
<br>
> to:<br>
> Complete "resource start " with only those resources that aren't running <br>
> (per role) already<br>
> Complete "resource stopt " with only those resources that are running (per <br>
> role)<br>
> <br>
> I came to this after seeing "3 disabled resources" in crm_mon output. As <br>
> crm_mon itself cannot display just those disabled resources (yet? ;‑)), I<br>
used <br>
> crm shell...<br>
> <br>
> Regards,<br>
> Ulrich<br>
> <br>
> <br>
> <br>
> _______________________________________________<br>
> Manage your subscription:<br>
> <a href="https://lists.clusterlabs.org/mailman/listinfo/users">https://lists.clusterlabs.org/mailman/listinfo/users</a>
<br>
> <br>
> ClusterLabs home: <a href="https://www.clusterlabs.org/">https://www.clusterlabs.org/</a>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Manage your subscription:<br>
<a href="https://lists.clusterlabs.org/mailman/listinfo/users">https://lists.clusterlabs.org/mailman/listinfo/users</a><br>
<br>
ClusterLabs home: <a href="https://www.clusterlabs.org/">https://www.clusterlabs.org/</a><br>
</div>
</span></font></div>
</body>
</html>