Vcenter-only: contrail-status broken due to ImportError: cannot import name SubjectAltNameWarning

Bug #1691603 reported by Sarath
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R4.0
Fix Committed
Critical
Nikhil Bansal
Trunk
Fix Committed
Critical
Nikhil Bansal

Bug Description

This is seen on Sanity / Vcenter-only on latest R4.0 # 6

Note: earlier the similar issue found on Openstack setup and fixed part of Bug#1689675 and looks we still need some fix for Vcenter-only as I see the fix code part of this build #6 but problem seen

root@nodec4:~#
root@nodec4:~# contrail-status
Traceback (most recent call last):
  File "/usr/bin/contrail-status", line 17, in <module>
    from urllib3.exceptions import SubjectAltNameWarning
ImportError: cannot import name SubjectAltNameWarning

Sarath (nsarath)
description: updated
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R4.0

Review in progress for https://review.opencontrail.org/31771
Submitter: Nikhil Bansal (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/31374
Submitter: Nikhil Bansal (<email address hidden>)

Jeba Paulaiyan (jebap)
tags: added: blocker
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/31771
Committed: http://github.com/Juniper/contrail-controller/commit/2d0027b5aee134a41c3ecad9372327b5ac6832d4
Submitter: Zuul (<email address hidden>)
Branch: R4.0

commit 2d0027b5aee134a41c3ecad9372327b5ac6832d4
Author: Nikhil B <email address hidden>
Date: Thu May 18 08:44:32 2017 +0530

Need to ignore import errors

Vcenter only builds have old urllib3 package which does not have a few
exceptions. Script should ignore import error for them
Closes-Bug: #1691603

Change-Id: Icba8d2b795e48553ae4de87bc786c7df1bb583c6

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/31374
Committed: http://github.com/Juniper/contrail-controller/commit/22ecd1060f86150cde40063d1ad0a24d1937b909
Submitter: Zuul (<email address hidden>)
Branch: master

commit 22ecd1060f86150cde40063d1ad0a24d1937b909
Author: Nikhil B <email address hidden>
Date: Thu May 11 08:47:35 2017 +0530

using system level urllib3 if not preent in requests package

Some requests packages have their own urllib3 package bundled but some others
don't. Need to take care of both the cases
Closes-Bug: #1689675
Closes-Bug: #1691603
Change-Id: Ia88e5e110544e8f4c2a3ac2dc5b72ed0fa0d087b
(cherry picked from commit b866f7937808ec6fd71f0f878d83b37927f097e3)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.