Please try out the following patch; https://patch-diff.githubusercontent.com/raw/pulp/pulp/pull/3943.patch and let the list know if that fixes the problem for you.
On Mon, Jul 15, 2019 at 10:42 AM Dennis Kliban <[email protected]> wrote: > Konstantin, I already filed an issue[0] myself so that we can attach it to > the patch that fixes it. Once the patch is merged, it will be associated > with the issue in pulp.plan.io. > > > [0] https://pulp.plan.io/issues/5126 > > On Mon, Jul 15, 2019 at 10:05 AM Dennis Kliban <[email protected]> wrote: > >> Please file an issue at https://pulp.plan.io/issues/new/. This is >> definitely a regression. >> >> On Mon, Jul 15, 2019 at 4:47 AM Konstantin M. Khankin < >> [email protected]> wrote: >> >>> >>> d, m = os.path.split('/usr/lib/yum-plugins/pulp-profile-update.py') >>> >>> m = m.split('.py')[0] >>> >>> m >>> 'pulp-profile-update' >>> >>> d >>> '/usr/lib/yum-plugins' >>> >>> imp.find_module(m, [d]) >>> (<open file '/usr/lib/yum-plugins/pulp-profile-update.py', mode 'U' at >>> 0x7f996857d540>, '/usr/lib/yum-plugins/pulp-profile-update.py', ('.py', >>> 'U', 1)) >>> >>> f, p, d = imp.find_module(m, [d]) >>> >>> imp.load_module(m, f, p, d) >>> Traceback (most recent call last): >>> File "<stdin>", line 1, in <module> >>> File "/usr/lib/yum-plugins/pulp-profile-update.py", line 5, in <module> >>> from pulp.bindings.server import PulpConnection >>> File "/usr/lib/python2.7/site-packages/pulp/bindings/server.py", line >>> 18, in <module> >>> from pulp.common.constants import DEFAULT_CA_PATH >>> File "/usr/lib/python2.7/site-packages/pulp/common/constants.py", line >>> 5, in <module> >>> PULP_VERSION = pkg_resources.require('pulp-server')[0].version >>> File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 728, in >>> require >>> needed = self.resolve(parse_requirements(requirements)) >>> File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 626, in >>> resolve >>> raise DistributionNotFound(req) >>> pkg_resources.DistributionNotFound: pulp-server >>> >>> "PULP_VERSION = pkg_resources.require('pulp-server')[0].version" was >>> introduced in >>> https://github.com/pulp/pulp/commit/19a527036d4e1b3ed06037ada70a5de5cd556940 >>> and >>> was released with 2.20.0. I checked 2.19.1 RPM does not include this line. >>> Obviously client side will not have pulp-server package and will thus fail. >>> >>> пн, 15 июл. 2019 г. в 11:14, Konstantin M. Khankin < >>> [email protected]>: >>> >>>> I tried to compare the content >>>> of pulp-rpm-yumplugins-2.19.1-1.el7.noarch.rpm >>>> and pulp-rpm-yumplugins-2.20.0-1.el7.noarch.rpm but the only difference >>>> found was: >>>> >>>> $ diff -Naur plug_19/pulp-profile-update.py >>>> plug_20/pulp-profile-update.py >>>> --- plug_19/pulp-profile-update.py 2019-05-30 15:16:40.000000000 +0300 >>>> +++ plug_20/pulp-profile-update.py 2019-07-10 23:41:04.000000000 +0300 >>>> @@ -41,7 +41,15 @@ >>>> cfg['filesystem']['id_cert_dir'], >>>> cfg['filesystem']['id_cert_filename']) >>>> ssl = cfg.parse_bool(cfg['server']['verify_ssl']) >>>> - connection = PulpConnection(host, port, cert_filename=cert, >>>> verify_ssl=ssl) >>>> + proxy_host = cfg['server']['proxy_host'] >>>> + proxy_port = int(cfg['server']['proxy_port']) >>>> + connection = PulpConnection( >>>> + host, >>>> + port, >>>> + cert_filename=cert, >>>> + verify_ssl=ssl, >>>> + proxy_host=proxy_host, >>>> + proxy_port=proxy_port) >>>> Bindings.__init__(self, connection) >>>> >>>> Tried to uncomment proxy_port and proxy_host in the config but it >>>> didn't help. I also tried to remove .pyc and .pyo, but no effect. >>>> >>>> вс, 14 июл. 2019 г. в 23:54, Konstantin M. Khankin < >>>> [email protected]>: >>>> >>>>> Hi! >>>>> >>>>> I've upgraded my clients to 2.20.0 and now each of them >>>>> reports "Plugin "pulp-profile-update" can't be imported" on any yum >>>>> operation. >>>>> >>>>> I took one client which was not updated and didn't have this issue and >>>>> ran "yum update": >>>>> >>>>> # yum upgrade >>>>> >>>>> *Loaded plugins: fastestmirror, pulp-profile-update, versionlock*Loading >>>>> mirror speeds from cached hostfile >>>>> Resolving Dependencies >>>>> --> Running transaction check >>>>> ---> Package pulp-agent.noarch 0:2.19.1-1.el7 will be updated >>>>> ---> Package pulp-agent.noarch 0:2.20.0-1.el7 will be an update >>>>> ---> Package pulp-consumer-client.noarch 0:2.19.1-1.el7 will be updated >>>>> ---> Package pulp-consumer-client.noarch 0:2.20.0-1.el7 will be an >>>>> update >>>>> ---> Package pulp-puppet-consumer-extensions.noarch 0:2.19.1-1.el7 >>>>> will be updated >>>>> ---> Package pulp-puppet-consumer-extensions.noarch 0:2.20.0-1.el7 >>>>> will be an update >>>>> ---> Package pulp-puppet-handlers.noarch 0:2.19.1-1.el7 will be updated >>>>> ---> Package pulp-puppet-handlers.noarch 0:2.20.0-1.el7 will be an >>>>> update >>>>> ---> Package pulp-rpm-consumer-extensions.noarch 0:2.19.1-1.el7 will >>>>> be updated >>>>> ---> Package pulp-rpm-consumer-extensions.noarch 0:2.20.0-1.el7 will >>>>> be an update >>>>> ---> Package pulp-rpm-handlers.noarch 0:2.19.1-1.el7 will be updated >>>>> ---> Package pulp-rpm-handlers.noarch 0:2.20.0-1.el7 will be an update >>>>> ---> Package pulp-rpm-yumplugins.noarch 0:2.19.1-1.el7 will be updated >>>>> ---> Package pulp-rpm-yumplugins.noarch 0:2.20.0-1.el7 will be an >>>>> update >>>>> ---> Package python-pulp-agent-lib.noarch 0:2.19.1-1.el7 will be >>>>> updated >>>>> ---> Package python-pulp-agent-lib.noarch 0:2.20.0-1.el7 will be an >>>>> update >>>>> ---> Package python-pulp-bindings.noarch 0:2.19.1-1.el7 will be updated >>>>> ---> Package python-pulp-bindings.noarch 0:2.20.0-1.el7 will be an >>>>> update >>>>> ---> Package python-pulp-client-lib.noarch 0:2.19.1-1.el7 will be >>>>> updated >>>>> ---> Package python-pulp-client-lib.noarch 0:2.20.0-1.el7 will be an >>>>> update >>>>> ---> Package python-pulp-common.noarch 0:2.19.1-1.el7 will be updated >>>>> ---> Package python-pulp-common.noarch 0:2.20.0-1.el7 will be an update >>>>> ---> Package python-pulp-puppet-common.noarch 0:2.19.1-1.el7 will be >>>>> updated >>>>> ---> Package python-pulp-puppet-common.noarch 0:2.20.0-1.el7 will be >>>>> an update >>>>> ---> Package python-pulp-rpm-common.noarch 0:2.19.1-1.el7 will be >>>>> updated >>>>> ---> Package python-pulp-rpm-common.noarch 0:2.20.0-1.el7 will be an >>>>> update >>>>> --> Finished Dependency Resolution >>>>> ... >>>>> >>>>> Now this client has this issue: >>>>> >>>>> # yum upgrade >>>>> >>>>> *Plugin "pulp-profile-update" can't be imported*Loaded plugins: >>>>> fastestmirror, versionlock >>>>> Loading mirror speeds from cached hostfile >>>>> ^C >>>>> >>>>> Downgrade to 2.19.1 helps: >>>>> >>>>> # yum downgrade pulp-rpm-yumplugins python-pulp-bindings >>>>> python-pulp-common python-pulp-puppet-common pulp-consumer-client >>>>> python-pulp-client-lib pulp-agent python-pulp-agent-lib >>>>> python-pulp-rpm-common pulp-puppet-handlers >>>>> pulp-puppet-consumer-extensions pulp-rpm-handlers >>>>> pulp-rpm-consumer-extensions >>>>> >>>>> *Plugin "pulp-profile-update" can't be imported*Loaded plugins: >>>>> fastestmirror, versionlock >>>>> Loading mirror speeds from cached hostfile >>>>> Resolving Dependencies >>>>> --> Running transaction check >>>>> ---> Package pulp-agent.noarch 0:2.19.1-1.el7 will be a downgrade >>>>> ---> Package pulp-agent.noarch 0:2.20.0-1.el7 will be erased >>>>> ---> Package pulp-consumer-client.noarch 0:2.19.1-1.el7 will be a >>>>> downgrade >>>>> ---> Package pulp-consumer-client.noarch 0:2.20.0-1.el7 will be erased >>>>> ---> Package pulp-puppet-consumer-extensions.noarch 0:2.19.1-1.el7 >>>>> will be a downgrade >>>>> ---> Package pulp-puppet-consumer-extensions.noarch 0:2.20.0-1.el7 >>>>> will be erased >>>>> ---> Package pulp-puppet-handlers.noarch 0:2.19.1-1.el7 will be a >>>>> downgrade >>>>> ---> Package pulp-puppet-handlers.noarch 0:2.20.0-1.el7 will be erased >>>>> ---> Package pulp-rpm-consumer-extensions.noarch 0:2.19.1-1.el7 will >>>>> be a downgrade >>>>> ---> Package pulp-rpm-consumer-extensions.noarch 0:2.20.0-1.el7 will >>>>> be erased >>>>> ---> Package pulp-rpm-handlers.noarch 0:2.19.1-1.el7 will be a >>>>> downgrade >>>>> ---> Package pulp-rpm-handlers.noarch 0:2.20.0-1.el7 will be erased >>>>> ---> Package pulp-rpm-yumplugins.noarch 0:2.19.1-1.el7 will be a >>>>> downgrade >>>>> ---> Package pulp-rpm-yumplugins.noarch 0:2.20.0-1.el7 will be erased >>>>> ---> Package python-pulp-agent-lib.noarch 0:2.19.1-1.el7 will be a >>>>> downgrade >>>>> ---> Package python-pulp-agent-lib.noarch 0:2.20.0-1.el7 will be erased >>>>> ---> Package python-pulp-bindings.noarch 0:2.19.1-1.el7 will be a >>>>> downgrade >>>>> ---> Package python-pulp-bindings.noarch 0:2.20.0-1.el7 will be erased >>>>> ---> Package python-pulp-client-lib.noarch 0:2.19.1-1.el7 will be a >>>>> downgrade >>>>> ---> Package python-pulp-client-lib.noarch 0:2.20.0-1.el7 will be >>>>> erased >>>>> ---> Package python-pulp-common.noarch 0:2.19.1-1.el7 will be a >>>>> downgrade >>>>> ---> Package python-pulp-common.noarch 0:2.20.0-1.el7 will be erased >>>>> ---> Package python-pulp-puppet-common.noarch 0:2.19.1-1.el7 will be a >>>>> downgrade >>>>> ---> Package python-pulp-puppet-common.noarch 0:2.20.0-1.el7 will be >>>>> erased >>>>> ---> Package python-pulp-rpm-common.noarch 0:2.19.1-1.el7 will be a >>>>> downgrade >>>>> ---> Package python-pulp-rpm-common.noarch 0:2.20.0-1.el7 will be >>>>> erased >>>>> --> Finished Dependency Resolution >>>>> ... >>>>> >>>>> # yum upgrade >>>>> *Loaded plugins: fastestmirror, pulp-profile-update, versionlock* >>>>> Loading mirror speeds from cached hostfile >>>>> Resolving Dependencies >>>>> --> Running transaction check >>>>> ---> Package pulp-agent.noarch 0:2.19.1-1.el7 will be updated >>>>> ---> Package pulp-agent.noarch 0:2.20.0-1.el7 will be an update >>>>> ... >>>>> >>>>> I tried debugging with yum -v, yum -e 10 and with strace but can't >>>>> find difference. I added new options to the config consumer.conf but they >>>>> are commented out so should not influence. I tried to go with yum source >>>>> code to see how it imports plugins but also couldn't find an issue. >>>>> >>>>> What could be the cause? >>>>> >>>>> Thanks! >>>>> >>>>> -- >>>>> Konstantin Khankin >>>>> >>>> >>>> >>>> -- >>>> Ханкин Константин >>>> >>> >>> >>> -- >>> Ханкин Константин >>> _______________________________________________ >>> Pulp-list mailing list >>> [email protected] >>> https://www.redhat.com/mailman/listinfo/pulp-list >> >>
_______________________________________________ Pulp-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/pulp-list
