Bug 1423444
Summary: | OCP 3.5 installation failed due to a symbolic link error | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Wenkai Shi <weshi> |
Component: | Installer | Assignee: | Jan Chaloupka <jchaloup> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Wenkai Shi <weshi> |
Severity: | urgent | Docs Contact: | |
Priority: | urgent | ||
Version: | 3.5.0 | CC: | anli, aos-bugs, jchaloup, jokerman, mmccomas, pprakash, weshi, wmeng |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-03-13 12:03:07 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: |
Description
Wenkai Shi
2017-02-17 10:53:09 UTC
Do you have openshift-ansible-roles package installed? I think our rpm dependencies are messed up and we've lost that. Before adjusting anything can you provide me the output of this rpm -qa openshift*\ | sort (In reply to Scott Dodson from comment #2) > Before adjusting anything can you provide me the output of this > > rpm -qa openshift*\ | sort [root@ansible ~]# rpm -qa openshift*\ | sort [root@ansible ~]# rpm -qa | grep openshift| sort atomic-openshift-utils-3.5.10-1.git.0.ba66b63.el7.noarch openshift-ansible-3.5.10-1.git.0.ba66b63.el7.noarch openshift-ansible-callback-plugins-3.5.10-1.git.0.ba66b63.el7.noarch openshift-ansible-docs-3.5.10-1.git.0.ba66b63.el7.noarch openshift-ansible-filter-plugins-3.5.10-1.git.0.ba66b63.el7.noarch openshift-ansible-lookup-plugins-3.5.10-1.git.0.ba66b63.el7.noarch openshift-ansible-playbooks-3.5.10-1.git.0.ba66b63.el7.noarch openshift-ansible-roles-3.5.10-1.git.0.ba66b63.el7.noarch Listing files on the openshift-ansible-roles-3.5.10-1.git.0.ba66b63.el7.noarch.rpm the oo_filters.py is there: $ rpm -qpl openshift-ansible-roles-3.5.10-1.git.0.ba66b63.el7.noarch.rpm | grep oo_filters /usr/share/ansible/openshift-ansible/roles/openshift_master_facts/filter_plugins/oo_filters.py Wenkai, can you run the same command and see if the file is installed? I.e.: $ rpm -ql openshift-ansible-roles | grep oo_filters (In reply to Jan Chaloupka from comment #5) > Listing files on the > openshift-ansible-roles-3.5.10-1.git.0.ba66b63.el7.noarch.rpm the > oo_filters.py is there: > > $ rpm -qpl openshift-ansible-roles-3.5.10-1.git.0.ba66b63.el7.noarch.rpm | > grep oo_filters > /usr/share/ansible/openshift-ansible/roles/openshift_master_facts/ > filter_plugins/oo_filters.py > > Wenkai, can you run the same command and see if the file is installed? I.e.: > $ rpm -ql openshift-ansible-roles | grep oo_filters [root@ansible ~]# rpm -ql openshift-ansible-roles | grep oo_filters /usr/share/ansible/openshift-ansible/roles/openshift_master_facts/filter_plugins/oo_filters.py Jan, It was installed as a symbol link file which linked to a non-existent file. [root@anli ~]# ls -l /usr/share/ansible/openshift-ansible/playbooks/byo/roles/openshift_master_facts/filter_plugins total 80 lrwxrwxrwx. 1 root root 37 Feb 20 18:51 oo_filters.py -> ../../../filter_plugins/oo_filters.py -rw-r--r--. 1 root root 23489 Feb 17 09:59 openshift_master.py -rw-r--r--. 2 root root 25159 Feb 17 10:04 openshift_master.pyc -rw-r--r--. 2 root root 25159 Feb 17 10:04 openshift_master.pyo ls: cannot access /usr/share/ansible/openshift-ansible/playbooks/byo/roles/openshift_master_facts/filter_plugins/../../../filter_plugins/oo_filters.py: No such file or directory Right, the openshift-ansible-roles-3.5.10-1.git.0.ba66b63.el7.noarch.rpm expects the oo_filter.py under /usr/share/ansible/openshift-ansible/filter_plugins/oo_filters.py. However, that is no longer true in the rpm based installation. The filter_plugins directory is actually under /usr/share/ansible_plugins/filter_plugins which belongs to openshift-ansible-filter-plugins-3.5.10-1.git.0.ba66b63.el7.noarch.rpm. So either update the symlink or replace the symlink with a copy of the oo_filters.py file. I don't like symlinks that reach out of a single rpm. On the other hand a user can intentionally modify file in /usr/share/ansible_plugins/filter_plugins/oo_filters.py without knowing there is actually a duplicate. Given the openshift-ansible-filter-plugins is a runtime requirement of openshift-ansible-roles, the symlink is the smaller evil I guess. Commit pushed to master at https://github.com/openshift/openshift-ansible https://github.com/openshift/openshift-ansible/commit/2848c0e28732d795017e555817f9d0406a1296cb Fix symlink to filter_plugins/oo_filters.py Bug 1423444 No this issue if I upgrade with openshift-ansible-3.5.13-1.git.0.562e91d.el7.noarch Verified with version openshift-ansible-3.5.13-1.git.0.562e91d.el7.noarch, installation succeed. [root@ansible ~]# ls -l /usr/share/ansible/openshift-ansible/playbooks/byo/roles/openshift_master_facts/filter_plugins/oo_filters.py lrwxrwxrwx. 1 root root 59 Feb 22 14:45 /usr/share/ansible/openshift-ansible/playbooks/byo/roles/openshift_master_facts/filter_plugins/oo_filters.py -> ../../../../../ansible_plugins/filter_plugins/oo_filters.py |