[ClusterLabs] Not even ChatGPT can translate your example constraints from pcs to crmsh!

Alejandro Imass aimass at yabarana.com
Thu Apr 18 06:38:51 EDT 2024


On Wed, Apr 17, 2024 at 11:21 PM Alejandro Imass <aimass at yabarana.com>
wrote:

> I am trying to translate the last three rules of the Wiki example for Pg
> to crmsh, and I think I've tried everything in the doc and even tried with
> ChatGPT and it gave up.
>
> This is the Wiki example:
>
> https://projects.clusterlabs.org/w/cluster_administration/pgsql_replicated_cluster/
>
> And these are the last three rules:
> pcs constraint colocation add master-group with Master msPostgresql
> INFINITY
> pcs constraint order promote msPostgresql then start master-group
> symmetrical=false score=INFINITY
> pcs constraint order demote  msPostgresql then stop  master-group
> symmetrical=false score=0
>
>
[...]


> ChatGPT
> Thank you for providing the exact version. It seems there's a discrepancy
> in the syntax or handling of constraints in Pacemaker 2.1.6.
> Given the challenges encountered, I recommend consulting the Pacemaker
> documentation specific to version 2.1.6 or seeking assistance from the
> Pacemaker community or support channels. They can provide insights into any
> changes in syntax or constraints introduced in this version and offer
> guidance on how to define constraints correctly.
> Additionally, you might consider checking the release notes for Pacemaker
> 2.1.6, as they may contain information about any syntax changes or known
> issues related to constraint definitions.
> If you have any further questions or need assistance with other aspects,
> feel free to ask!
>
>
>
Well, no wonder even ChatGPT is confused! The FreeBSD crmsh package is
labeled as 4.6.0 and the Python code inside seems from 4.3.1 !!
Anyway, leaving this here to spare the grief for another poor soul who
stumbles upon this, until we get an upstream fix of the pkg.

Best,

-- 
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/users/attachments/20240418/d73b8f1a/attachment.htm>


More information about the Users mailing list