)]}'
{"devstack/plugin.sh":[{"author":{"_account_id":6469,"name":"Carlos Gonçalves","display_name":"Carlos Goncalves","email":"cgoncalves@redhat.com","username":"cgoncalves"},"change_message_id":"b4a2b888f27f9e8b572b3058d9d203e7ea68bbc5","unresolved":true,"context_lines":[{"line_number":24,"context_line":"        # stable/wallaby during the X cycle."},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"        # Get last python3-setuptools package name"},{"line_number":27,"context_line":"        package\u003d$(curl -s https://trunk.rdoproject.org/centos8/deps/latest/noarch/ | \\"},{"line_number":28,"context_line":"            sed -n \u0027/python3-setuptools/{s/.* href\u003d\"\\(python3-setuptools[^\"]*\\)\"\u003e.*/\\1/;p}\u0027 | tail -1)"},{"line_number":29,"context_line":"        install_package https://trunk.rdoproject.org/centos8/deps/latest/noarch/$package"},{"line_number":30,"context_line":"    fi"}],"source_content_type":"text/x-sh","patch_set":4,"id":"29f2d90f_0ffc7a09","line":27,"updated":"2021-02-16 12:26:15.000000000","message":"If I am understanding this correctly, there are two aspects to consider:\n\n1. Branched devstack (stable/* branches) would install setuptools from master. We would need to update this code we branch for an upcoming GA release.\n\n2. \"pip will not upgrade it and will not break it\": not sure this is how it goes. Devstack installs setuptools via pip [1] matching version in upper-constraints.txt [2]. So, setuptools is upgraded and pip fails to clean up te directory from the RPM as you mentioned above. The reason why this patch works around the issue is because it re-installs setuptools from RPM *after* after pip installs setuptools (i.e. RPM install -\u003e pip install -\u003e RPM install). This means we end up having two setuptools installed and most likely with mismatched versions:\n\n  $ rpm -q python3-setuptools\n  python3-setuptools-50.3.2-1.el8.noarch\n  $ python3 -c \"import sys; import setuptools; print(setuptools.version.__version__)\"\n  53.0.0\n\n[1] https://github.com/openstack/devstack/blob/556f84aea90c572873fc9834292635b41e590224/tools/install_pip.sh#L153-L155\n[2] https://github.com/openstack/requirements/blob/fead914306d23aae6e149f3f75dbf19f563bb83d/upper-constraints.txt#L587","commit_id":"5f47c1bbc754c84f13fec95987102fd817ea55ac"}]}
