[BVT] master fails to build because fuelmenu errors with 'ImportError: cannot import name ssl_match_hostname'

Bug #1585817 reported by Alex Schultz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
Critical
Alex Schultz

Bug Description

Detailed bug description:
 BVT #227 fails with 2016-05-25 17:47:37,071 - ERROR __init__.py:66 -- wait_for_provisioning raised: error(111, 'Connection refused')

In looking at the environment, the bootstrap_admin_node.sh is failing:
+ fuelmenu --save-only --iface=enp0s3
Traceback (most recent call last):
  File "/usr/bin/fuelmenu", line 9, in <module>
    load_entry_point('fuelmenu==10.0.0', 'console_scripts', 'fuelmenu')()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 558, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2682, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2355, in load
    return self.resolve()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2361, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python2.7/site-packages/fuelmenu/fuelmenu.py", line 24, in <module>
    from fuelmenu import modules
  File "/usr/lib/python2.7/site-packages/fuelmenu/modules/__init__.py", line 17, in <module>
    from fuelmenu.modules.bootstrapimg import BootstrapImage
  File "/usr/lib/python2.7/site-packages/fuelmenu/modules/bootstrapimg.py", line 18, in <module>
    import requests
  File "/usr/lib/python2.7/site-packages/requests/__init__.py", line 61, in <module>
    from .packages.urllib3.exceptions import DependencyWarning
  File "/usr/lib/python2.7/site-packages/requests/packages/__init__.py", line 29, in <module>
    import urllib3
  File "/usr/lib/python2.7/site-packages/urllib3/__init__.py", line 8, in <module>
    from .connectionpool import (
  File "/usr/lib/python2.7/site-packages/urllib3/connectionpool.py", line 33, in <module>
    from .packages.ssl_match_hostname import CertificateError
  File "/usr/lib/python2.7/site-packages/urllib3/packages/__init__.py", line 3, in <module>
    from . import ssl_match_hostname
ImportError: cannot import name ssl_match_hostname

This is due to an update of urllib3 (to 1.15.1 from 1.13.1) that drops the ssl_match_hostname support since we're using python 2.7.5

Steps to reproduce:
Deploy with python-urllib3-1.15.1-1.el7~mos1.noarch

Expected results:
 Master should bootstrap

Actual result:
Error during setup.

Reproducibility:
Always with python-urllib3-1.15.1-1.el7~mos1.noarch

Workaround:
Nonme

Impact:
Complete failure during deployment

Tags: bvt-failure
description: updated
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix proposed to packages/centos7/python-urllib3 (master)

Fix proposed to branch: master
Change author: Alex Schultz <email address hidden>
Review: https://review.fuel-infra.org/21250

Changed in fuel:
status: New → In Progress
Changed in fuel:
assignee: nobody → Alex Schultz (alex-schultz)
ruhe (ruhe)
tags: added: bvt-failure
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix merged to packages/centos7/python-urllib3 (master)

Reviewed: https://review.fuel-infra.org/21250
Submitter: Pkgs Jenkins <email address hidden>
Branch: master

Commit: e420dfe2f95ad6d131c44c8b1dc7af13eb673e5d
Author: Alex Schultz <email address hidden>
Date: Wed May 25 22:32:24 2016

Add ssl_match_hostname support back in

During the 1.15.1 update, we accidently lost the workaround for the
ssl_match_hostname support under centos7. This change puts it back in as
we need it.

Change-Id: Ica90043d0a9a7521a0b6be37111f9b675f2ad530
Closes-Bug: #1585817

Changed in fuel:
status: In Progress → Fix Committed
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.