Bug 1686817
Summary: | [osp15] nova is broken on the undercloud with ssl | ||
---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Michele Baldessari <michele> |
Component: | openstack-nova | Assignee: | Matthew Booth <mbooth> |
Status: | CLOSED DUPLICATE | QA Contact: | OSP DFG:Compute <osp-dfg-compute> |
Severity: | urgent | Docs Contact: | |
Priority: | urgent | ||
Version: | 15.0 (Stein) | CC: | dasmith, eglynn, jhakimra, jstransk, kchamart, lmiccini, lyarwood, mschuppe, rrasouli, sbauza, sgordon, vromanso, yobshans |
Target Milestone: | --- | Keywords: | Triaged |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-03-28 10:52:23 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Michele Baldessari
2019-03-08 11:56:57 UTC
I spent some time trying to reproduce this when it was first reported and could not. Please can you provide access to a reproducer system? Here's a trivial reproducer: === #!/usr/bin/python3 import eventlet import sys from ironicclient import client eventlet.monkey_patch() token=sys.argv[1] endpoint=sys.argv[2] ironic = client.get_client(1, os_auth_token=token, ironic_url=endpoint) ironic.node.list() === Usage: ironic-list <token> <ironic https endpoint> This raises the recursion error on the reproducer system. By moving monkey patching before importing ironicclient the issue is no longer reproduced: === #!/usr/bin/python3 import eventlet eventlet.monkey_patch() import sys from ironicclient import client token=sys.argv[1] endpoint=sys.argv[2] ironic = client.get_client(1, os_auth_token=token, ironic_url=endpoint) ironic.node.list() === This is in line with my expectations documented in https://review.openstack.org/#/c/626952/. python3-eventlet-0.24.1-4.el8ost.noarch python36-3.6.8-1.module+el8+2710+846623d6.x86_64 python3-urllib3-1.23-5.el8ost.noarch I just manually applied https://review.openstack.org/#/c/626952/ to the nova compute container and there are no longer any recursion errors. The problem is with urllib3, not ssl. The above 'fixed' version can be minimally made to reproduce again by importing 'urllib3' before eventlet.monkey_patch(): === #!/usr/bin/python3 import urllib3 import eventlet eventlet.monkey_patch() import sys from ironicclient import client token=sys.argv[1] endpoint=sys.argv[2] ironic = client.get_client(1, os_auth_token=token, ironic_url=endpoint) ironic.node.list() === (In reply to Matthew Booth from comment #7) > The problem is with urllib3, not ssl. The above 'fixed' version can be > minimally made to reproduce again by importing 'urllib3' before > eventlet.monkey_patch(): N.B.: This is not the case if you import ssl instead. I've posted a longer discussion of this bug here: http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003870.html *** Bug 1691049 has been marked as a duplicate of this bug. *** *** This bug has been marked as a duplicate of bug 1670996 *** |