Skip to content

[DNM] introduce monkeythreading package - #2256

Open
kshtsk wants to merge 4 commits into
ceph:mainfrom
kshtsk:wip-monkeythreading
Open

kshtsk wants to merge 4 commits into
ceph:mainfrom
kshtsk:wip-monkeythreading

Conversation

@kshtsk

@kshtsk kshtsk commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Instead of monkey patching in teuthology/init locking all modules for patching, let modules be able to work without monkey-patching, and only initiate patching from cli scripts just including teuthology.monkeythreading

Kyr Shatskyy added 2 commits September 15, 2026 12:13
Move monkey patching to a separate module, so any
teuthology module that is not related on multithreading
can be imported without patching.

When the monkey patching is needed the module should
be imported from the top of cli tools so all necessary
functioned patched correctly:

  import monkeythreading
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@clyso.com>
@kshtsk
kshtsk requested a review from a team as a code owner September 15, 2026 10:14
@kshtsk
kshtsk requested review from amathuria and deepssin and removed request for a team September 15, 2026 10:14
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@clyso.com>
@kshtsk

kshtsk commented Sep 16, 2026

Copy link
Copy Markdown
Contributor Author

The failure iin integration test is unrelated the ansible error:

ERROR! [DEPRECATED]: community.postgresql.postgresql_set has been removed. Use community.postgresql.postgresql_alter_system instead. This feature was removed from community.postgresql in
version 5.0.0. Please update your playbooks.

The error appears to be in '/root/src/github.com_ceph_ceph-cm-ansible_main/roles/paddles/tasks/setup_db.yml': line 2, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

only associated with ceph-cm-ansible.

The github action integration/test check fails with error in ansible.

    ERROR! [DEPRECATED]: community.postgresql.postgresql_set has been removed. Use community.postgresql.postgresql_alter_system instead. This feature was removed from community.postgresql in
    version 5.0.0. Please update your playbooks.

    The error appears to be in '/root/src/github.com_ceph_ceph-cm-ansible_main/roles/paddles/tasks/setup_db.yml': line 2, column 3, but may
    be elsewhere in the file depending on the exact syntax problem.

let's try to bound the postgresql on older version than latest 5.0.0
to avoid changes in ceph-cm-ansible for now.

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@clyso.com>
@kshtsk

kshtsk commented Sep 16, 2026

Copy link
Copy Markdown
Contributor Author

@djgalloway @zmc does it makes sense to stick the postgresql collection to <5.0.0 or it is better to fix in ceph-cm-ansbile?

@djgalloway

Copy link
Copy Markdown
Contributor

@djgalloway @zmc does it makes sense to stick the postgresql collection to <5.0.0 or it is better to fix in ceph-cm-ansbile?

Made more sense to update the role IMO: https://github.com/ceph/ceph-cm-ansible/pull/892/changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants