+++ This bug was initially created as a clone of Bug #1455078 +++ Description of problem: Currently python-idna-2.0 is shipped in RHEL 7.3. This version consumes around 25MB of memory only to load: >>> import resource >>> resource.getrusage(resource.RUSAGE_SELF).ru_maxrss 5052 >>> import idna >>> resource.getrusage(resource.RUSAGE_SELF).ru_maxrss 31344 >>> Some memory optimizations have been applied upstream from release 2.0 until latest one, 2.5 leading to a huge improvement: >>> import resource >>> resource.getrusage(resource.RUSAGE_SELF).ru_maxrss 5048 >>> import idna >>> resource.getrusage(resource.RUSAGE_SELF).ru_maxrss 5888 >>> Reviewing the commits from v2.0..v2.5, there have been no changes in the public methods of the library, so it seems to be fully compatible with version 2.0, so i'd say it should be safe to update it. OpenStack services using eventlet are using idna via import from python-dns, which is leading to increase memory usage.
rebuilding latest 2.5 from Fedora with a small patch to disable py3: https://github.com/rdo-common/python-idna/commit/183eb7316a0e0687c7224103d75d04f351072511
Tagged for common-pending repo, please test if it is safe for common-testing.
Successfully tested for pike-testing in: https://ci.centos.org/job/weirdo-generic-puppet-openstack-scenario001/1725 https://ci.centos.org/job/weirdo-generic-puppet-openstack-scenario002/1704 https://ci.centos.org/job/weirdo-generic-puppet-openstack-scenario003/1710 https://ci.centos.org/job/weirdo-generic-packstack-scenario001/647 https://ci.centos.org/job/weirdo-generic-packstack-scenario002/647 https://ci.centos.org/job/weirdo-generic-packstack-scenario003/622 I'll test it for ocata and newton also so that we can push it to common-testing.
Successfully tested for newton and ocata testing + current-passed-ci repos also: newton-testing SUCCESS https://ci.centos.org/job/weirdo-generic-puppet-openstack-scenario001/1727 newton-testing SUCCESS https://ci.centos.org/job/weirdo-generic-puppet-openstack-scenario002/1706 newton-testing SUCCESS https://ci.centos.org/job/weirdo-generic-puppet-openstack-scenario003/1712 newton-testing SUCCESS https://ci.centos.org/job/weirdo-generic-packstack-scenario001/648 newton-testing SUCCESS https://ci.centos.org/job/weirdo-generic-packstack-scenario002/648 newton-testing SUCCESS https://ci.centos.org/job/weirdo-generic-packstack-scenario003/623 ocata-testing SUCCESS https://ci.centos.org/job/weirdo-generic-puppet-openstack-scenario001/1728 ocata-testing SUCCESS https://ci.centos.org/job/weirdo-generic-puppet-openstack-scenario002/1707 ocata-testing SUCCESS https://ci.centos.org/job/weirdo-generic-puppet-openstack-scenario003/1713 ocata-testing SUCCESS https://ci.centos.org/job/weirdo-generic-packstack-scenario001/649 ocata-testing SUCCESS https://ci.centos.org/job/weirdo-generic-packstack-scenario002/649 ocata-testing SUCCESS https://ci.centos.org/job/weirdo-generic-packstack-scenario003/624
in common-testing
Tagged in common-release since