[ClusterLabs] Antw: Antw: [EXT] anothe rcompletion bug in crm shell (2.1.2+git132.gbc9fde0 of SLES11)
Ulrich Windl
Ulrich.Windl at rz.uni-regensburg.de
Thu Aug 20 02:24:02 EDT 2020
Hi another time!
I apologize for not having used crm shell a lot recently. After having sent
the last message, I realized that the node attributes displayed by the command
are the static ("original") values, not the dynamic (current) ones. For example
"ptest -LU" would show:
Utilization information:
Original: n01 capacity: utl_cpu=200 utl_ram=1240
Original: n01 capacity: utl_cpu=200 utl_ram=1240
Original: n03 capacity: utl_cpu=200 utl_ram=1240
...
Remaining: n01 capacity: utl_cpu=140 utl_ram=748
Remaining: n02 capacity: utl_cpu=100 utl_ram=728
Remaining: n03 capacity: utl_cpu=110 utl_ram=584
Still after reading the man poage of crm shell, I could not identify the
command to output the current values of the utilization atributes.
Browsing the output of "cibadmin -Q" I realized that the "current" utilization
values don't seem to be part of the CIB, not even the status section... 8-(
Regards,
Ulrich
>>> "Ulrich Windl" <Ulrich.Windl at rz.uni-regensburg.de> schrieb am 20.08.2020
um
08:10 in Nachricht <5F3E13F0020000A10003AB45 at gwsmtp.uni-regensburg.de>:
> Hi again!
>
> While talking about it, I can imagine two useful extensions to "crm node
> utilization":
>
> 1) Allow leaving out the attribute name, showing all utilization atributes
> (much like "crm configure show" shows all resources)
> 2) Allow "*" as valid host name (to fulfill the syntax requirement of
having
> an argument at the position, expanding to all hosts
>
> crm node utilization node|* show [attribute]
>
> So "crm node utilization node1 show " would show all utilization attributes
> for node1.
> So "crm node utilization * show attr" would show all utilization
> attribute"attr" for all nodes.
> So "crm node utilization *" would show all utilization attributes for all
> nodes.
>
> Maybe repositioning the arguments would make it even easier:
> Instead of "crm utilization <node> <command> <attribute>" using "crm
> utilization <command> [<node> [<attribute>]]" would make the syntax even
more
> straight-forward:
> "crm node utilization show" would show all utilization attributes for all
> nodes,
> "crm node utilization show node" would show all utilization attributes for
> "node", and
> "crm node utilization show node attr" would show attribute "attr" for node
> "node".
> The probably less common case would be "crm node utilization show * attr"
to
> show all attribute "attr" for all nodes...
>
> Maybe "[<attribute>]" could even be "[<attribzte>...]" (a list of
attributes
> to show)
>
> Maybe even more clever syntax exists... ;-)
>
> Regards,
> Ulrich
>
>>>> "Ulrich Windl" <Ulrich.Windl at rz.uni-regensburg.de> schrieb am 20.08.2020
> um
> 07:56 in Nachricht <5F3E1090020000A10003AB41 at gwsmtp.uni-regensburg.de>:
>> Hi!
>>
>> After having booted a cluster node yesterday, I checked the logs today (as
>> the resources were expected to be rebalanced in the evening, controlled by
>> rules).
>> When trying to check the utilization interactively using crm shell, I
>> realized that completion is wrong:
>>
>> When typing "utilization show <TAB>" in "crm(live)node#", I see a list of
>> cluster resources, but not the list of utilization attributes. (Here it's
>> easy as all utilization attributes start with "utl_", while primitives and
>> closes start with "prm_" or "cln_", respectively.
>>
>> This is for SLES11 SP4 without LTSS (Long‑term support). However this bug
is
>
>> fixed in crmsh‑4.1.0+git.1585823743.3acb5567 of SLES12 SP5 already.
>>
>> 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/
More information about the Users
mailing list