<div dir="ltr"><div><font size="4">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:</font><br></div><div><br></div><font face="courier new, monospace">$ diff -Naur plug_19/pulp-profile-update.py plug_20/pulp-profile-update.py <br>--- plug_19/pulp-profile-update.py      2019-05-30 15:16:40.000000000 +0300<br>+++ plug_20/pulp-profile-update.py 2019-07-10 23:41:04.000000000 +0300<br>@@ -41,7 +41,15 @@<br>             cfg['filesystem']['id_cert_dir'],<br>             cfg['filesystem']['id_cert_filename'])<br>         ssl = cfg.parse_bool(cfg['server']['verify_ssl'])<br>-        connection = PulpConnection(host, port, cert_filename=cert, verify_ssl=ssl)<br>+        proxy_host = cfg['server']['proxy_host']<br>+        proxy_port = int(cfg['server']['proxy_port'])<br>+        connection = PulpConnection(<br>+            host,<br>+            port,<br>+            cert_filename=cert,<br>+            verify_ssl=ssl,<br>+            proxy_host=proxy_host,<br>+            proxy_port=proxy_port)<br>         Bindings.__init__(self, connection)</font><br><div><br></div><div><font size="4">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.</font></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">вс, 14 июл. 2019 г. в 23:54, Konstantin M. Khankin <<a href="mailto:khankin.konstantin@gmail.com">khankin.konstantin@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><font size="4">Hi!</font><div><font size="4"><br></font></div><div><font size="4">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.</font></div><div><br></div><div><font size="4">I took one client which was not updated and didn't have this issue and ran "yum update":</font></div><div><br></div><div><font face="courier new, monospace"># yum upgrade<br><b>Loaded plugins: fastestmirror, pulp-profile-update, versionlock<br></b>Loading mirror speeds from cached hostfile<br>Resolving Dependencies<br>--> Running transaction check<br>---> Package pulp-agent.noarch 0:2.19.1-1.el7 will be updated<br>---> Package pulp-agent.noarch 0:2.20.0-1.el7 will be an update<br>---> Package pulp-consumer-client.noarch 0:2.19.1-1.el7 will be updated<br>---> Package pulp-consumer-client.noarch 0:2.20.0-1.el7 will be an update<br>---> Package pulp-puppet-consumer-extensions.noarch 0:2.19.1-1.el7 will be updated<br>---> Package pulp-puppet-consumer-extensions.noarch 0:2.20.0-1.el7 will be an update<br>---> Package pulp-puppet-handlers.noarch 0:2.19.1-1.el7 will be updated<br>---> Package pulp-puppet-handlers.noarch 0:2.20.0-1.el7 will be an update<br>---> Package pulp-rpm-consumer-extensions.noarch 0:2.19.1-1.el7 will be updated<br>---> Package pulp-rpm-consumer-extensions.noarch 0:2.20.0-1.el7 will be an update<br>---> Package pulp-rpm-handlers.noarch 0:2.19.1-1.el7 will be updated<br>---> Package pulp-rpm-handlers.noarch 0:2.20.0-1.el7 will be an update<br>---> Package pulp-rpm-yumplugins.noarch 0:2.19.1-1.el7 will be updated<br>---> Package pulp-rpm-yumplugins.noarch 0:2.20.0-1.el7 will be an update<br>---> Package python-pulp-agent-lib.noarch 0:2.19.1-1.el7 will be updated<br>---> Package python-pulp-agent-lib.noarch 0:2.20.0-1.el7 will be an update<br>---> Package python-pulp-bindings.noarch 0:2.19.1-1.el7 will be updated<br>---> Package python-pulp-bindings.noarch 0:2.20.0-1.el7 will be an update<br>---> Package python-pulp-client-lib.noarch 0:2.19.1-1.el7 will be updated<br>---> Package python-pulp-client-lib.noarch 0:2.20.0-1.el7 will be an update<br>---> Package python-pulp-common.noarch 0:2.19.1-1.el7 will be updated<br>---> Package python-pulp-common.noarch 0:2.20.0-1.el7 will be an update<br>---> Package python-pulp-puppet-common.noarch 0:2.19.1-1.el7 will be updated<br>---> Package python-pulp-puppet-common.noarch 0:2.20.0-1.el7 will be an update<br>---> Package python-pulp-rpm-common.noarch 0:2.19.1-1.el7 will be updated<br>---> Package python-pulp-rpm-common.noarch 0:2.20.0-1.el7 will be an update<br>--> Finished Dependency Resolution<br></font><span style="font-family:"courier new",monospace">...</span>  <br><div><br></div><div><font size="4">Now this client has this issue:</font></div><div><br></div><div><font face="courier new, monospace"># yum upgrade<br><b>Plugin "pulp-profile-update" can't be imported<br></b>Loaded plugins: fastestmirror, versionlock<br>Loading mirror speeds from cached hostfile<br>^C</font><br></div><div><br></div><div><font size="4">Downgrade to 2.19.1 helps:</font></div><div><br></div><div><font face="courier new, monospace"># 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<br><b>Plugin "pulp-profile-update" can't be imported<br></b>Loaded plugins: fastestmirror, versionlock<br>Loading mirror speeds from cached hostfile<br>Resolving Dependencies<br>--> Running transaction check<br>---> Package pulp-agent.noarch 0:2.19.1-1.el7 will be a downgrade<br>---> Package pulp-agent.noarch 0:2.20.0-1.el7 will be erased<br>---> Package pulp-consumer-client.noarch 0:2.19.1-1.el7 will be a downgrade<br>---> Package pulp-consumer-client.noarch 0:2.20.0-1.el7 will be erased<br>---> Package pulp-puppet-consumer-extensions.noarch 0:2.19.1-1.el7 will be a downgrade<br>---> Package pulp-puppet-consumer-extensions.noarch 0:2.20.0-1.el7 will be erased<br>---> Package pulp-puppet-handlers.noarch 0:2.19.1-1.el7 will be a downgrade<br>---> Package pulp-puppet-handlers.noarch 0:2.20.0-1.el7 will be erased<br>---> Package pulp-rpm-consumer-extensions.noarch 0:2.19.1-1.el7 will be a downgrade<br>---> Package pulp-rpm-consumer-extensions.noarch 0:2.20.0-1.el7 will be erased<br>---> Package pulp-rpm-handlers.noarch 0:2.19.1-1.el7 will be a downgrade<br>---> Package pulp-rpm-handlers.noarch 0:2.20.0-1.el7 will be erased<br>---> Package pulp-rpm-yumplugins.noarch 0:2.19.1-1.el7 will be a downgrade<br>---> Package pulp-rpm-yumplugins.noarch 0:2.20.0-1.el7 will be erased<br>---> Package python-pulp-agent-lib.noarch 0:2.19.1-1.el7 will be a downgrade<br>---> Package python-pulp-agent-lib.noarch 0:2.20.0-1.el7 will be erased<br>---> Package python-pulp-bindings.noarch 0:2.19.1-1.el7 will be a downgrade<br>---> Package python-pulp-bindings.noarch 0:2.20.0-1.el7 will be erased<br>---> Package python-pulp-client-lib.noarch 0:2.19.1-1.el7 will be a downgrade<br>---> Package python-pulp-client-lib.noarch 0:2.20.0-1.el7 will be erased<br>---> Package python-pulp-common.noarch 0:2.19.1-1.el7 will be a downgrade<br>---> Package python-pulp-common.noarch 0:2.20.0-1.el7 will be erased<br>---> Package python-pulp-puppet-common.noarch 0:2.19.1-1.el7 will be a downgrade<br>---> Package python-pulp-puppet-common.noarch 0:2.20.0-1.el7 will be erased<br>---> Package python-pulp-rpm-common.noarch 0:2.19.1-1.el7 will be a downgrade<br>---> Package python-pulp-rpm-common.noarch 0:2.20.0-1.el7 will be erased<br>--> Finished Dependency Resolution<br></font></div><div><font face="courier new, monospace">...</font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace"># yum upgrade<br><b>Loaded plugins: fastestmirror, pulp-profile-update, versionlock</b><br>Loading mirror speeds from cached hostfile<br>Resolving Dependencies<br>--> Running transaction check<br>---> Package pulp-agent.noarch 0:2.19.1-1.el7 will be updated<br>---> Package pulp-agent.noarch 0:2.20.0-1.el7 will be an update</font><br></div><div><font face="courier new, monospace">...</font></div><div><br></div><div><font size="4">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.</font></div><div><font size="4"><br></font></div><div><font size="4">What could be the cause?</font></div><div><font size="4"><br></font></div><div><font size="4">Thanks!</font></div><div><br></div>-- <br><div dir="ltr" class="gmail-m_-9082600299663262186gmail_signature">Konstantin Khankin</div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Ханкин Константин<br></div>