Don't use ipv6 for DNS SAN fields with python3
Don't use ipv6 for DNS SAN fields with python3

Python2 match routines for x509 fields are broken and have to use
the DNS field for ip addresses.

The problem is that if you use ipv6 addresses in the DNS field,
urllib3 fails when trying to encode it.

Since python3 match routines for x509 fields are correct, this patch
disables the hack for python3, encoding the ip address in the
corresponding field only of the certificate.

Partial-Bug: #1794929
Depends-On: https://review.openstack.org/#/c/608468

Change-Id: I7b9cb15ccfa181648afb12be51ee48bed14f9156
Signed-off-by: aojeagarcia <c8e0c38355f7f57684ab5e66aa89e614cc62163d@suse.com>

group-policy/devstack,nawawi/openstack,nawawi/openstack,openstack-dev/devstack,noironetworks/devstack,openstack-dev/devstack,noironetworks/devstack,dtroyer/devstack,group-policy/devstack,dtroyer/devstack