vitabaks / postgresql_cluster

PostgreSQL High-Availability Cluster (based on "Patroni" and DCS "etcd" or "consul"). Automating with Ansible.
MIT License
1.29k stars 352 forks source link

Patroni requirements: Pin ydiff version to 1.2.0 #620

Closed vitabaks closed 1 month ago

vitabaks commented 1 month ago

Fixed:

  fatal: [10.172.0.20]: FAILED! => {"changed": false, "cmd": ["patronictl", "-c", "/etc/patroni/patroni.yml", "list"], "delta": "0:00:00.116068", "end": "2024-04-03 06:10:20.240113", "msg": "non-zero return code", "rc": 1, "start": "2024-04-03 06:10:20.124045", "stderr": "Traceback (most recent call last):\n  File \"/usr/local/lib/python3.7/dist-packages/patroni/ctl.py\", line 45, in <module>\n    from ydiff import markup_to_pager, PatchStream  # pyright: ignore [reportMissingModuleSource]\nImportError: cannot import name 'PatchStream' from 'ydiff' (/usr/local/lib/python3.7/dist-packages/ydiff.py)\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File \"/usr/local/bin/patronictl\", line 5, in <module>\n    from patroni.ctl import ctl\n  File \"/usr/local/lib/python3.7/dist-packages/patroni/ctl.py\", line 47, in <module>\n    from cdiff import markup_to_pager, PatchStream  # pyright: ignore [reportMissingModuleSource]\nModuleNotFoundError: No module named 'cdiff'", "stderr_lines": ["Traceback (most recent call last):", "  File \"/usr/local/lib/python3.7/dist-packages/patroni/ctl.py\", line 45, in <module>", "    from ydiff import markup_to_pager, PatchStream  # pyright: ignore [reportMissingModuleSource]", "ImportError: cannot import name 'PatchStream' from 'ydiff' (/usr/local/lib/python3.7/dist-packages/ydiff.py)", "", "During handling of the above exception, another exception occurred:", "", "Traceback (most recent call last):", "  File \"/usr/local/bin/patronictl\", line 5, in <module>", "    from patroni.ctl import ctl", "  File \"/usr/local/lib/python3.7/dist-packages/patroni/ctl.py\", line 47, in <module>", "    from cdiff import markup_to_pager, PatchStream  # pyright: ignore [reportMissingModuleSource]", "ModuleNotFoundError: No module named 'cdiff'"], "stdout": "", "stdout_lines": []}

Until the release of the new version of patronictl:

https://github.com/zalando/patroni/commit/3fd7c98d2ba394587409aa1d0ff9c447f75402ce