'Try to reach a URL from ansible control host.
Raise an OpenShiftCheckException if anything goes wrong.'

@staticmethod
def _verify_url_external(url):

    ctx = ssl.create_default_context()
    ctx.check_hostname = False
    ctx.verify_mode = ssl.CERT_NONE
    try:
        return_code = urllib2.urlopen(url, context=ctx).getcode()
    except HTTPError as httperr:
        return httperr.reason
    except URLError as urlerr:
        return str(urlerr)
    if (return_code != 200):
        return 'Expected    success    (200)    but    got    return    code    {}'.format(int(return_code))
    return None
