Created attachment 1507883 [details] all.yml Description of problem: After installation of OpenShift on Openstack the master has a duplicate domain name in .kube/config and when getting the project name [stack@undercloud-0 ~]$ grep master ~/.kube/config server: https://master-0.openshift.example.com.openshift.example.com:8443 name: master-0-openshift-example-com-openshift-example-com:8443 user: system:admin/master-0-openshift-example-com-openshift-example-com:8443 cluster: master-0-openshift-example-com-openshift-example-com:8443 user: system:admin/master-0-openshift-example-com-openshift-example-com:8443 name: default/master-0-openshift-example-com-openshift-example-com:8443/system:admin current-context: default/master-0-openshift-example-com-openshift-example-com:8443/system:admin - name: system:admin/master-0-openshift-example-com-openshift-example-com:8443 [stack@undercloud-0 ~]$ [stack@undercloud-0 ~]$ oc project Using project "default" on server "https://master-0.openshift.example.com.openshift.example.com:8443". Version-Release number of the following components: openshift-ansible-3.11.44-1.git.0.11d174e.el7.noarch ansible-2.6.7-1.el7ae.noarch ansible 2.6.7 config file = /etc/ansible/ansible.cfg configured module search path = [u'/home/cloud-user/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible python version = 2.7.5 (default, Sep 12 2018, 05:31:16) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)] How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Please include the entire output from the last TASK line through the end of output if an error is generated Expected results: Additional info: Please attach logs from ansible-playbook with the -vvv flag
Created attachment 1507884 [details] OSEv3.yml
Can you elaborate on the problem you're facing? What's actually broken or doesn't work as you'd expect? Please provide `oc config view` output
Output of 'oc config view' apiVersion: v1 clusters: - cluster: certificate-authority-data: REDACTED server: https://console.openshift.example.com:8443 name: console-openshift-example-com:8443 - cluster: certificate-authority-data: REDACTED server: https://master-0.openshift.example.com.openshift.example.com:8443 name: master-0-openshift-example-com-openshift-example-com:8443 contexts: - context: cluster: console-openshift-example-com:8443 namespace: default user: system:admin/master-0-openshift-example-com-openshift-example-com:8443 name: default/console-openshift-example-com:8443/system:admin - context: cluster: master-0-openshift-example-com-openshift-example-com:8443 namespace: default user: system:admin/master-0-openshift-example-com-openshift-example-com:8443 name: default/master-0-openshift-example-com-openshift-example-com:8443/system:admin current-context: default/master-0-openshift-example-com-openshift-example-com:8443/system:admin kind: Config preferences: {} users: - name: system:admin/master-0-openshift-example-com-openshift-example-com:8443 user: client-certificate-data: REDACTED client-key-data: REDACTED
*** Bug 1656061 has been marked as a duplicate of this bug. ***
Verified fix on 3.11 [root@master-0 ~]# hostname -A master-0.openshift.example.com master-0.openshift.example.com [root@master-0 ~]# hostname -f master-0.openshift.example.com [root@master-0 ~]# grep console .kube/config server: https://console.openshift.example.com:8443 name: console-openshift-example-com:8443 cluster: console-openshift-example-com:8443 user: system:admin/console-openshift-example-com:8443 name: default/console-openshift-example-com:8443/system:admin current-context: default/console-openshift-example-com:8443/system:admin - name: system:admin/console-openshift-example-com:8443
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/RHBA-2019:0024