Pulp upgrade fails with: Could not find a version that matches pulpcore

Problem:
I’m trying to upgrade pulp to the latest version and I’ve encountered the following error:

"stderr": "Could not find a version that matches pulpcore<3.55,>=3.40.0,>=3.44.1,~=3.21.0\nTried: 3.0.0, 3.0.0, 3.0.1,...

At first I’ve tried with latest version of pulp_installer. Later I’ve installed version “3.21.6” but in both cases upgrade fails. Any ideas how can I proceed now?

More detailed log:

TASK [pulp_common : Run pip-compile to check pulpcore/plugin compatibility] *********************************************************************
....
    "changed": false,
    "cmd": [
        "/usr/local/lib/pulp/bin/pip-compile",
        "-P",
        "pulpcore",
        "-P",
        "pulp-file",
        "-P",
        "pulp-ansible",
        "-P",
        "pulp-rpm"
    ],
    "delta": "0:00:02.233635",
    "end": "2024-03-21 19:50:01.275147",
    "failed_when_result": true,
    "invocation": {
        "module_args": {
            "_raw_params": "/usr/local/lib/pulp/bin/pip-compile  -P pulpcore    -P pulp-file    -P pulp-ansible    -P pulp-rpm  ",
            "_uses_shell": false,
            "argv": null,
            "chdir": "/usr/local/lib/pulp",
            "creates": null,
            "executable": null,
            "removes": null,
            "stdin": null,
            "stdin_add_newline": true,
            "strip_empty_ends": true,
            "warn": true
        }
    },
    "msg": "non-zero return code",
    "rc": 2,
    "start": "2024-03-21 19:49:59.041512",
    "stderr": "Could not find a version that matches pulpcore<3.55,>=3.40.0,>=3.44.1,~=3.21.0\nTried: 3.0.0, 3.0.0, 3.0.1, 3.0.1, 3.1.0, 3.1.0, 3                                              .1.1, 3.1.1, 3.2.0, 3.2.0, 3.2.1, 3.2.1, 3.3.0, 3.3.0, 3.3.1, 3.3.1, 3.4.0, 3.4.0, 3.4.1, 3.4.1, 3.5.0, 3.5.0, 3.6.0, 3.6.0, 3.6.1, 3.6.1, 3.6.2,                                               3.6.2, 3.6.3, 3.6.3, 3.6.4, 3.6.4, 3.6.5.post1, 3.6.5.post1, 3.6.5.post2, 3.6.5.post2, 3.7.0, 3.7.0, 3.7.1, 3.7.1, 3.7.2, 3.7.2, 3.7.3, 3.7.3, 3                                              .7.4, 3.7.4, 3.7.5, 3.7.5, 3.7.5.post0, 3.7.5.post0, 3.7.6, 3.7.6, 3.7.7, 3.7.7, 3.7.8, 3.7.8, 3.7.9, 3.7.9, 3.8.0, 3.8.0, 3.8.1, 3.8.1, 3.9.0, 3                                              .9.0, 3.9.1, 3.9.1, 3.10.0, 3.10.0, 3.11.0, 3.11.0, 3.11.0.post0, 3.11.0.post0, 3.11.1, 3.11.1, 3.11.2, 3.11.2, 3.12.0, 3.12.0, 3.12.1, 3.12.1, 3                                              .12.2, 3.12.2, 3.13.0, 3.13.0, 3.14.0, 3.14.0, 3.14.1, 3.14.1, 3.14.2, 3.14.2, 3.14.3, 3.14.3, 3.14.4, 3.14.4, 3.14.5, 3.14.5, 3.14.6, 3.14.6, 3.                                              14.7, 3.14.7, 3.14.8, 3.14.8, 3.14.9, 3.14.9, 3.14.10, 3.14.10, 3.14.11, 3.14.11, 3.14.12, 3.14.12, 3.14.13, 3.14.13, 3.14.14, 3.14.14, 3.14.15,                                               3.14.15, 3.14.16, 3.14.16, 3.14.17, 3.14.17, 3.14.18, 3.14.18, 3.14.19, 3.14.19, 3.15.0, 3.15.0, 3.15.1, 3.15.1, 3.15.2, 3.15.2, 3.15.3, 3.15.3,                                               3.15.4, 3.15.4, 3.15.5, 3.15.5, 3.15.6, 3.15.6, 3.15.7, 3.15.7, 3.15.8, 3.15.8, 3.15.9, 3.15.9, 3.16.0, 3.16.0, 3.16.1, 3.16.1, 3.16.2, 3.16.2, 3                                              .16.3, 3.16.3, 3.16.4, 3.16.4, 3.16.5, 3.16.5, 3.16.6, 3.16.6, 3.16.7, 3.16.7, 3.16.8, 3.16.8, 3.16.9, 3.16.9, 3.16.10, 3.16.10, 3.16.11, 3.16.11                                              , 3.16.12, 3.16.12, 3.16.13, 3.16.13, 3.16.14, 3.16.14, 3.16.15, 3.16.15, 3.16.16, 3.16.16, 3.16.17, 3.16.17, 3.16.18, 3.16.18, 3.16.19, 3.16.19,                                               3.16.20, 3.16.20, 3.16.21, 3.16.21, 3.16.22, 3.16.22, 3.16.23, 3.16.23, 3.16.24, 3.16.24, 3.17.0, 3.17.0, 3.17.1, 3.17.1, 3.17.2, 3.17.2, 3.17.3                                              , 3.17.3, 3.17.4, 3.17.4, 3.17.5, 3.17.5, 3.17.6, 3.17.6, 3.17.7, 3.17.7, 3.17.8, 3.17.8, 3.18.0, 3.18.0, 3.18.1, 3.18.1, 3.18.2, 3.18.2, 3.18.3,                                               3.18.3, 3.18.4, 3.18.4, 3.18.5, 3.18.5, 3.18.6, 3.18.6, 3.18.7, 3.18.7, 3.18.8, 3.18.8, 3.18.9, 3.18.9, 3.18.10, 3.18.10, 3.18.11, 3.18.11, 3.18                                              .12, 3.18.12, 3.18.13, 3.18.13, 3.18.14, 3.18.14, 3.18.15, 3.18.15, 3.18.16, 3.18.16, 3.18.17, 3.18.17, 3.18.18, 3.18.18, 3.18.19, 3.18.19, 3.18.                                              20, 3.18.20, 3.18.21, 3.18.21, 3.18.22, 3.18.22, 3.18.23, 3.18.23, 3.18.24, 3.18.24, 3.18.25, 3.18.25, 3.18.26, 3.18.26, 3.18.27, 3.18.27, 3.18.2                                              8, 3.18.28, 3.18.29, 3.18.29, 3.18.30, 3.18.30, 3.18.31, 3.18.31, 3.18.32, 3.18.32, 3.18.33, 3.18.33, 3.18.34, 3.18.34, 3.18.35, 3.18.35, 3.19.0,                                               3.19.0, 3.19.1, 3.19.1, 3.20.0, 3.20.0, 3.21.0, 3.21.0, 3.21.1, 3.21.1, 3.21.2, 3.21.2, 3.21.3, 3.21.3, 3.21.4, 3.21.4, 3.21.5, 3.21.5, 3.21.6,                                               3.21.6, 3.21.7, 3.21.7, 3.21.8, 3.21.8, 3.21.9, 3.21.9, 3.21.10, 3.21.10, 3.21.11, 3.21.11, 3.21.12, 3.21.12, 3.21.13, 3.21.13, 3.21.14, 3.21.14,                                               3.21.15, 3.21.15, 3.21.16, 3.21.16, 3.21.17, 3.21.17, 3.21.18, 3.21.18, 3.21.19, 3.21.19, 3.21.20, 3.21.20, 3.21.21, 3.21.21, 3.21.22, 3.21.22,                                               3.21.23, 3.21.23, 3.21.24, 3.21.24, 3.21.25, 3.21.25, 3.21.26, 3.21.26, 3.22.0, 3.22.0, 3.22.1, 3.22.1, 3.22.2, 3.22.2, 3.22.3, 3.22.3, 3.22.4, 3                                              .22.5, 3.22.5, 3.22.6, 3.22.6, 3.22.7, 3.22.7, 3.22.8, 3.22.8, 3.22.9, 3.22.9, 3.22.10, 3.22.10, 3.22.11, 3.22.11, 3.22.12, 3.22.12, 3.22.13, 3.2                                              2.13, 3.22.14, 3.22.14, 3.22.15, 3.22.15, 3.22.16, 3.22.16, 3.22.17, 3.22.17, 3.22.18, 3.22.18, 3.22.19, 3.22.19, 3.22.20, 3.22.20, 3.22.21, 3.22                                              .21, 3.22.22, 3.22.22, 3.23.0, 3.23.0, 3.23.1, 3.23.1, 3.23.2, 3.23.2, 3.23.3, 3.23.3, 3.23.4, 3.23.4, 3.23.5, 3.23.5, 3.23.6, 3.23.6, 3.23.7, 3.                                              23.7, 3.23.8, 3.23.8, 3.23.9, 3.23.9, 3.23.10, 3.23.10, 3.23.11, 3.23.11, 3.23.12, 3.23.12, 3.23.13, 3.23.13, 3.23.14, 3.23.14, 3.23.15, 3.23.15,                                               3.23.16, 3.23.16, 3.23.17, 3.23.17, 3.23.18, 3.23.18, 3.23.19, 3.23.19, 3.23.20, 3.23.20, 3.23.21, 3.23.21, 3.23.22, 3.23.22, 3.23.23, 3.23.23,                                               3.23.24, 3.23.24, 3.24.0, 3.24.0, 3.24.1, 3.24.1, 3.25.0, 3.25.0, 3.25.1, 3.25.1, 3.26.0, 3.26.0, 3.26.1, 3.26.1, 3.26.2, 3.26.2, 3.27.0, 3.27.0,                                               3.27.1, 3.27.1, 3.27.2, 3.27.2, 3.28.0, 3.28.0, 3.28.1, 3.28.1, 3.28.2, 3.28.2, 3.28.3, 3.28.3, 3.28.4, 3.28.4, 3.28.5, 3.28.5, 3.28.6, 3.28.6,                                               3.28.7, 3.28.7, 3.28.8, 3.28.8, 3.28.9, 3.28.9, 3.28.10, 3.28.10, 3.28.11, 3.28.11, 3.28.12, 3.28.12, 3.28.13, 3.28.13, 3.28.14, 3.28.14, 3.28.15                                              , 3.28.15, 3.28.16, 3.28.16, 3.28.17, 3.28.17, 3.28.18, 3.28.18, 3.28.19, 3.28.19, 3.28.20, 3.28.20, 3.28.21, 3.28.21, 3.28.22, 3.28.22, 3.28.23,                                               3.28.23, 3.28.24, 3.28.24, 3.29.0, 3.29.0, 3.29.1, 3.29.1, 3.29.2, 3.29.2, 3.29.3, 3.29.3, 3.29.4, 3.29.4, 3.29.5, 3.29.5, 3.29.6, 3.29.6, 3.29.                                              7, 3.29.7, 3.29.8, 3.29.8, 3.30.0, 3.30.0, 3.31.0, 3.31.0, 3.32.0, 3.32.0, 3.32.1, 3.32.1, 3.33.0, 3.33.0, 3.34.0, 3.34.0, 3.35.0, 3.35.0, 3.36.0                                              , 3.36.0, 3.37.0, 3.37.0, 3.38.0, 3.38.0, 3.38.1, 3.38.1, 3.39.0, 3.39.0, 3.39.1, 3.39.1, 3.39.2, 3.39.2, 3.39.3, 3.39.3, 3.39.4, 3.39.4, 3.39.5,                                               3.39.5, 3.39.6, 3.39.6, 3.39.7, 3.39.7, 3.39.8, 3.39.8, 3.39.9, 3.39.9, 3.39.10, 3.39.10, 3.39.11, 3.39.11, 3.40.0, 3.40.0, 3.40.1, 3.40.1, 3.40                                              .2, 3.40.2, 3.40.3, 3.40.3, 3.40.4, 3.40.4, 3.41.0, 3.41.0, 3.41.1, 3.41.1, 3.42.0, 3.42.0, 3.43.0, 3.43.0, 3.43.1, 3.43.1, 3.43.2, 3.43.2, 3.43.                                              3, 3.43.3, 3.44.0, 3.44.0, 3.44.1, 3.44.1, 3.45.0, 3.45.0, 3.45.1, 3.45.1, 3.45.2, 3.45.2, 3.45.3, 3.45.3, 3.46.0, 3.46.0\nSkipped pre-versions:                                               3.0.0b1, 3.0.0b1, 3.0.0b2, 3.0.0b2, 3.0.0b3, 3.0.0b3, 3.0.0b4, 3.0.0b4, 3.0.0b5, 3.0.0b5, 3.0.0b6, 3.0.0b6, 3.0.0b7, 3.0.0b7, 3.0.0b8, 3.0.0b8, 3                                              .0.0b9, 3.0.0b9, 3.0.0b10, 3.0.0b10, 3.0.0b11, 3.0.0b11, 3.0.0b12, 3.0.0b12, 3.0.0b13, 3.0.0b13, 3.0.0b14, 3.0.0b14, 3.0.0b15, 3.0.0b15, 3.0.0b16                                              , 3.0.0b16, 3.0.0b17, 3.0.0b18, 3.0.0b18, 3.0.0b19, 3.0.0b19, 3.0.0b20, 3.0.0b20, 3.0.0b21, 3.0.0b21, 3.0.0b22, 3.0.0b22, 3.0.0b23, 3.0.0b23, 3.0                                              .0rc1, 3.0.0rc1, 3.0.0rc2, 3.0.0rc2, 3.0.0rc3, 3.0.0rc3, 3.0.0rc4, 3.0.0rc4, 3.0.0rc5, 3.0.0rc5, 3.0.0rc6, 3.0.0rc6, 3.0.0rc7, 3.0.0rc7, 3.0.0rc8                                              , 3.0.0rc8, 3.0.0rc9, 3.0.0rc9\nThere are incompatible versions in the resolved dependencies:\n  pulpcore\n  pulpcore~=3.21.0 (from -r requiremen                                              ts.in (line 1))\n  pulpcore>=3.40.0 (from pulp-file==1.16.0)\n  pulpcore<3.55,>=3.40.0 (from pulp-ansible==0.21.3)\n  pulpcore<3.55,>=3.44.1 (fro                                              m pulp-rpm==3.25.1)",
    "stderr_lines": [
        "Could not find a version that matches pulpcore<3.55,>=3.40.0,>=3.44.1,~=3.21.0",
        "Tried: 3.0.0, 3.0.0, 3.0.1, 3.0.1, 3.1.0, 3.1.0, 3.1.1, 3.1.1, 3.2.0, 3.2.0, 3.2.1, 3.2.1, 3.3.0, 3.3.0, 3.3.1, 3.3.1, 3.4.0, 3.4.0, 3.4                                              .1, 3.4.1, 3.5.0, 3.5.0, 3.6.0, 3.6.0, 3.6.1, 3.6.1, 3.6.2, 3.6.2, 3.6.3, 3.6.3, 3.6.4, 3.6.4, 3.6.5.post1, 3.6.5.post1, 3.6.5.post2, 3.6.5.post2                                              , 3.7.0, 3.7.0, 3.7.1, 3.7.1, 3.7.2, 3.7.2, 3.7.3, 3.7.3, 3.7.4, 3.7.4, 3.7.5, 3.7.5, 3.7.5.post0, 3.7.5.post0, 3.7.6, 3.7.6, 3.7.7, 3.7.7, 3.7.8                                              , 3.7.8, 3.7.9, 3.7.9, 3.8.0, 3.8.0, 3.8.1, 3.8.1, 3.9.0, 3.9.0, 3.9.1, 3.9.1, 3.10.0, 3.10.0, 3.11.0, 3.11.0, 3.11.0.post0, 3.11.0.post0, 3.11.1                                              , 3.11.1, 3.11.2, 3.11.2, 3.12.0, 3.12.0, 3.12.1, 3.12.1, 3.12.2, 3.12.2, 3.13.0, 3.13.0, 3.14.0, 3.14.0, 3.14.1, 3.14.1, 3.14.2, 3.14.2, 3.14.3,                                               3.14.3, 3.14.4, 3.14.4, 3.14.5, 3.14.5, 3.14.6, 3.14.6, 3.14.7, 3.14.7, 3.14.8, 3.14.8, 3.14.9, 3.14.9, 3.14.10, 3.14.10, 3.14.11, 3.14.11, 3.14                                              .12, 3.14.12, 3.14.13, 3.14.13, 3.14.14, 3.14.14, 3.14.15, 3.14.15, 3.14.16, 3.14.16, 3.14.17, 3.14.17, 3.14.18, 3.14.18, 3.14.19, 3.14.19, 3.15.                                              0, 3.15.0, 3.15.1, 3.15.1, 3.15.2, 3.15.2, 3.15.3, 3.15.3, 3.15.4, 3.15.4, 3.15.5, 3.15.5, 3.15.6, 3.15.6, 3.15.7, 3.15.7, 3.15.8, 3.15.8, 3.15.9                                              , 3.15.9, 3.16.0, 3.16.0, 3.16.1, 3.16.1, 3.16.2, 3.16.2, 3.16.3, 3.16.3, 3.16.4, 3.16.4, 3.16.5, 3.16.5, 3.16.6, 3.16.6, 3.16.7, 3.16.7, 3.16.8,                                               3.16.8, 3.16.9, 3.16.9, 3.16.10, 3.16.10, 3.16.11, 3.16.11, 3.16.12, 3.16.12, 3.16.13, 3.16.13, 3.16.14, 3.16.14, 3.16.15, 3.16.15, 3.16.16, 3.1                                              6.16, 3.16.17, 3.16.17, 3.16.18, 3.16.18, 3.16.19, 3.16.19, 3.16.20, 3.16.20, 3.16.21, 3.16.21, 3.16.22, 3.16.22, 3.16.23, 3.16.23, 3.16.24, 3.16                                              .24, 3.17.0, 3.17.0, 3.17.1, 3.17.1, 3.17.2, 3.17.2, 3.17.3, 3.17.3, 3.17.4, 3.17.4, 3.17.5, 3.17.5, 3.17.6, 3.17.6, 3.17.7, 3.17.7, 3.17.8, 3.17                                              .8, 3.18.0, 3.18.0, 3.18.1, 3.18.1, 3.18.2, 3.18.2, 3.18.3, 3.18.3, 3.18.4, 3.18.4, 3.18.5, 3.18.5, 3.18.6, 3.18.6, 3.18.7, 3.18.7, 3.18.8, 3.18.                                              8, 3.18.9, 3.18.9, 3.18.10, 3.18.10, 3.18.11, 3.18.11, 3.18.12, 3.18.12, 3.18.13, 3.18.13, 3.18.14, 3.18.14, 3.18.15, 3.18.15, 3.18.16, 3.18.16,                                               3.18.17, 3.18.17, 3.18.18, 3.18.18, 3.18.19, 3.18.19, 3.18.20, 3.18.20, 3.18.21, 3.18.21, 3.18.22, 3.18.22, 3.18.23, 3.18.23, 3.18.24, 3.18.24, 3                                              .18.25, 3.18.25, 3.18.26, 3.18.26, 3.18.27, 3.18.27, 3.18.28, 3.18.28, 3.18.29, 3.18.29, 3.18.30, 3.18.30, 3.18.31, 3.18.31, 3.18.32, 3.18.32, 3.                                              18.33, 3.18.33, 3.18.34, 3.18.34, 3.18.35, 3.18.35, 3.19.0, 3.19.0, 3.19.1, 3.19.1, 3.20.0, 3.20.0, 3.21.0, 3.21.0, 3.21.1, 3.21.1, 3.21.2, 3.21.                                              2, 3.21.3, 3.21.3, 3.21.4, 3.21.4, 3.21.5, 3.21.5, 3.21.6, 3.21.6, 3.21.7, 3.21.7, 3.21.8, 3.21.8, 3.21.9, 3.21.9, 3.21.10, 3.21.10, 3.21.11, 3.2                                              1.11, 3.21.12, 3.21.12, 3.21.13, 3.21.13, 3.21.14, 3.21.14, 3.21.15, 3.21.15, 3.21.16, 3.21.16, 3.21.17, 3.21.17, 3.21.18, 3.21.18, 3.21.19, 3.21                                              .19, 3.21.20, 3.21.20, 3.21.21, 3.21.21, 3.21.22, 3.21.22, 3.21.23, 3.21.23, 3.21.24, 3.21.24, 3.21.25, 3.21.25, 3.21.26, 3.21.26, 3.22.0, 3.22.0                                              , 3.22.1, 3.22.1, 3.22.2, 3.22.2, 3.22.3, 3.22.3, 3.22.4, 3.22.5, 3.22.5, 3.22.6, 3.22.6, 3.22.7, 3.22.7, 3.22.8, 3.22.8, 3.22.9, 3.22.9, 3.22.10                                              , 3.22.10, 3.22.11, 3.22.11, 3.22.12, 3.22.12, 3.22.13, 3.22.13, 3.22.14, 3.22.14, 3.22.15, 3.22.15, 3.22.16, 3.22.16, 3.22.17, 3.22.17, 3.22.18,                                               3.22.18, 3.22.19, 3.22.19, 3.22.20, 3.22.20, 3.22.21, 3.22.21, 3.22.22, 3.22.22, 3.23.0, 3.23.0, 3.23.1, 3.23.1, 3.23.2, 3.23.2, 3.23.3, 3.23.3,                                               3.23.4, 3.23.4, 3.23.5, 3.23.5, 3.23.6, 3.23.6, 3.23.7, 3.23.7, 3.23.8, 3.23.8, 3.23.9, 3.23.9, 3.23.10, 3.23.10, 3.23.11, 3.23.11, 3.23.12, 3.2                                              3.12, 3.23.13, 3.23.13, 3.23.14, 3.23.14, 3.23.15, 3.23.15, 3.23.16, 3.23.16, 3.23.17, 3.23.17, 3.23.18, 3.23.18, 3.23.19, 3.23.19, 3.23.20, 3.23                                              .20, 3.23.21, 3.23.21, 3.23.22, 3.23.22, 3.23.23, 3.23.23, 3.23.24, 3.23.24, 3.24.0, 3.24.0, 3.24.1, 3.24.1, 3.25.0, 3.25.0, 3.25.1, 3.25.1, 3.26                                              .0, 3.26.0, 3.26.1, 3.26.1, 3.26.2, 3.26.2, 3.27.0, 3.27.0, 3.27.1, 3.27.1, 3.27.2, 3.27.2, 3.28.0, 3.28.0, 3.28.1, 3.28.1, 3.28.2, 3.28.2, 3.28.                                              3, 3.28.3, 3.28.4, 3.28.4, 3.28.5, 3.28.5, 3.28.6, 3.28.6, 3.28.7, 3.28.7, 3.28.8, 3.28.8, 3.28.9, 3.28.9, 3.28.10, 3.28.10, 3.28.11, 3.28.11, 3.                                              28.12, 3.28.12, 3.28.13, 3.28.13, 3.28.14, 3.28.14, 3.28.15, 3.28.15, 3.28.16, 3.28.16, 3.28.17, 3.28.17, 3.28.18, 3.28.18, 3.28.19, 3.28.19, 3.2                                              8.20, 3.28.20, 3.28.21, 3.28.21, 3.28.22, 3.28.22, 3.28.23, 3.28.23, 3.28.24, 3.28.24, 3.29.0, 3.29.0, 3.29.1, 3.29.1, 3.29.2, 3.29.2, 3.29.3, 3.                                              29.3, 3.29.4, 3.29.4, 3.29.5, 3.29.5, 3.29.6, 3.29.6, 3.29.7, 3.29.7, 3.29.8, 3.29.8, 3.30.0, 3.30.0, 3.31.0, 3.31.0, 3.32.0, 3.32.0, 3.32.1, 3.3                                              2.1, 3.33.0, 3.33.0, 3.34.0, 3.34.0, 3.35.0, 3.35.0, 3.36.0, 3.36.0, 3.37.0, 3.37.0, 3.38.0, 3.38.0, 3.38.1, 3.38.1, 3.39.0, 3.39.0, 3.39.1, 3.39                                              .1, 3.39.2, 3.39.2, 3.39.3, 3.39.3, 3.39.4, 3.39.4, 3.39.5, 3.39.5, 3.39.6, 3.39.6, 3.39.7, 3.39.7, 3.39.8, 3.39.8, 3.39.9, 3.39.9, 3.39.10, 3.39                                              .10, 3.39.11, 3.39.11, 3.40.0, 3.40.0, 3.40.1, 3.40.1, 3.40.2, 3.40.2, 3.40.3, 3.40.3, 3.40.4, 3.40.4, 3.41.0, 3.41.0, 3.41.1, 3.41.1, 3.42.0, 3.                                              42.0, 3.43.0, 3.43.0, 3.43.1, 3.43.1, 3.43.2, 3.43.2, 3.43.3, 3.43.3, 3.44.0, 3.44.0, 3.44.1, 3.44.1, 3.45.0, 3.45.0, 3.45.1, 3.45.1, 3.45.2, 3.4                                              5.2, 3.45.3, 3.45.3, 3.46.0, 3.46.0",
        "Skipped pre-versions: 3.0.0b1, 3.0.0b1, 3.0.0b2, 3.0.0b2, 3.0.0b3, 3.0.0b3, 3.0.0b4, 3.0.0b4, 3.0.0b5, 3.0.0b5, 3.0.0b6, 3.0.0b6, 3.0.0b                                              7, 3.0.0b7, 3.0.0b8, 3.0.0b8, 3.0.0b9, 3.0.0b9, 3.0.0b10, 3.0.0b10, 3.0.0b11, 3.0.0b11, 3.0.0b12, 3.0.0b12, 3.0.0b13, 3.0.0b13, 3.0.0b14, 3.0.0b1                                              4, 3.0.0b15, 3.0.0b15, 3.0.0b16, 3.0.0b16, 3.0.0b17, 3.0.0b18, 3.0.0b18, 3.0.0b19, 3.0.0b19, 3.0.0b20, 3.0.0b20, 3.0.0b21, 3.0.0b21, 3.0.0b22, 3.                                              0.0b22, 3.0.0b23, 3.0.0b23, 3.0.0rc1, 3.0.0rc1, 3.0.0rc2, 3.0.0rc2, 3.0.0rc3, 3.0.0rc3, 3.0.0rc4, 3.0.0rc4, 3.0.0rc5, 3.0.0rc5, 3.0.0rc6, 3.0.0rc                                              6, 3.0.0rc7, 3.0.0rc7, 3.0.0rc8, 3.0.0rc8, 3.0.0rc9, 3.0.0rc9",
        "There are incompatible versions in the resolved dependencies:",
        "  pulpcore",
        "  pulpcore~=3.21.0 (from -r requirements.in (line 1))",
        "  pulpcore>=3.40.0 (from pulp-file==1.16.0)",
        "  pulpcore<3.55,>=3.40.0 (from pulp-ansible==0.21.3)",
        "  pulpcore<3.55,>=3.44.1 (from pulp-rpm==3.25.1)"
    ],
    "stdout": "",
    "stdout_lines": []
}

PLAY RECAP **************************************************************************************************************************************

Expected outcome:
Successful upgrade of pulppcore and plugins

Pulpcore version:

“component”: “core”,
“version”: “3.21.3”,
“package”: “pulpcore”

Pulp plugins installed and their versions:

{
“component”: “rpm”,
“version”: “3.18.9”,
“package”: “pulp-rpm”
},
{
“component”: “file”,
“version”: “1.11.2”,
“package”: “pulp-file”
},
{
“component”: “ansible”,
“version”: “0.16.0”,
“package”: “pulp-ansible”
}

Operating system - distribution and version:

RHEL 7.9

Other relevant data:

So this part is a problem. You can’t have pulpcore version > 3.40 and ~=3.21.0 at the same time

That ~=3.21.0 comes from requirements.in file in /usr/local/lib/pulp

pulpcore~=3.21.0
pulp-file
pulp-ansible
pulp-rpm
# Any plugins listed below were already installed but not specified in
# pulp_install_plugins

Jinja2
pygments
setproctitle

How requirements.in is created? Can it be modified?

After setting false to upgrade plugins in my playbook and running it again it worked. However it updates pulpcore to version 3.22 only. Is there a way to upgrade to later versions?