Bug 1426705

Summary: [3.4] Installer is failing when `ansible_user` is set to Windows Login which requires dom\user format
Product: OpenShift Container Platform Reporter: Scott Dodson <sdodson>
Component: InstallerAssignee: Scott Dodson <sdodson>
Status: CLOSED ERRATA QA Contact: Wenkai Shi <weshi>
Severity: medium Docs Contact:
Priority: high    
Version: 3.4.1CC: bleanhar, gpei, jialiu, jokerman, mmccomas, pdwyer, sdodson, sreber
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Previously if ansible_user was a Windows domain user in the format of "dom\user" the installation playbooks would fail. This user name is now escaped properly ensuring playbooks run successfully.
Story Points: ---
Clone Of: 1414276 Environment:
Last Closed: 2017-03-06 16:39:14 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:
Bug Depends On: 1426703    
Bug Blocks: 1267746    

Comment 2 Wenkai Shi 2017-02-28 11:16:10 UTC
Verified with version openshift-ansible-3.4.67-1.git.0.14a0b4d.el7, installation succeed with ansible user 'dom\user'.

# cat hosts
[OSEv3:children]
masters
nodes
nfs

[OSEv3:vars]
ansible_ssh_user='dom\user'
ansible_become=yes
debug_level=5
deployment_type=openshift-enterprise
openshift_release=v3.4

oreg_url=...
openshift_docker_additional_registries=...
openshift_docker_insecure_registries=...
openshift_examples_modify_imagestreams=true
osm_use_cockpit=false
osm_cockpit_plugins="['cockpit-kubernetes']"

openshift_additional_repos=[{'id': 'ose-devel', 'name': 'ose-devel', 'baseurl': '...', 'enabled': 1, 'gpgcheck': 0}]

openshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login': 'true', 'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider', 'filename': '/etc/origin/master/htpasswd'}]
openshift_master_htpasswd_users={'weshi': '$apr1$64.bNFRx$hasOByTx4S9hcMUy0qlsm1', 'wkshi': '$apr1$2PsVtrnA$DrtSyupkggQhqL1OWmYhs0'}

openshift_hosted_router_selector="role=node,router=enabled"
openshift_hosted_registry_selector="role=node,registry=enabled"

openshift_hosted_registry_storage_kind=nfs
openshift_hosted_registry_storage_access_modes=['ReadWriteMany']
openshift_hosted_registry_storage_nfs_directory=/exports
openshift_hosted_registry_storage_nfs_options='*(rw,root_squash,sync)'
openshift_hosted_registry_storage_volume_name=registry
openshift_hosted_registry_storage_volume_size=10Gi

openshift_set_hostname=true
openshift_override_hostname_check=true

[masters]
openshift.example.com openshift_hostname="openshift.example.com" openshift_public_hostname="openshift.example.com"

[nodes]
openshift.example.com openshift_hostname="openshift.example.com" openshift_public_hostname="openshift.example.com" openshift_node_labels="{'role': 'node', 'registry': 'enabled', 'router': 'enabled'}" openshift_schedulable=True

[nfs]
openshift.example.com

Comment 4 errata-xmlrpc 2017-03-06 16:39:14 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2017:0448