Bug 1464025
Summary: | pre_upgrade checking failed for upgrades/etcd/noop.yml does not exist | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Anping Li <anli> |
Component: | Cluster Version Operator | Assignee: | Russell Teague <rteague> |
Status: | CLOSED ERRATA | QA Contact: | liujia <jiajliu> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 3.6.0 | CC: | aos-bugs, byount, jokerman, mmccomas, rhowe, trankin, wsun |
Target Milestone: | --- | ||
Target Release: | 3.7.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | openshift-ansible-3.7.0-0.126.1.git.0.0bb5b0c.el7.noarch | Doc Type: | Bug Fix |
Doc Text: |
When Ansible tags are used for evaluating some of the tasks in a set of playbooks, the conditional for including a task file was not properly evaluated. The logic modification allows the conditional to evaluate properly and skip running the task.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2017-11-28 21:58:09 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
Anping Li
2017-06-22 10:09:09 UTC
Moving this to 3.6.1 as running with tags is not common. PR updated with proposed fix. Version: atomic-openshift-utils-3.7.0-0.125.0.git.0.91043b6.el7.noarch Steps: 1. Install 3.6 cluster with dedicated etcd. 2. Pre-check upgrade # ansible-playbook -i hosts /usr/share/ansible/openshift-ansible/playbooks/byo/openshift-cluster/upgrades/v3_7/upgrade.yml --tags pre_upgrade Pre-upgrade still failed. TASK [etcd_common : Include main action task file] ************************************************************************************************************************** task path: /usr/share/ansible/openshift-ansible/roles/etcd_common/tasks/main.yml:7 fatal: [openshift-178.x.x.x]: FAILED! => { "failed": true, "reason": "the file_name '/usr/share/ansible/openshift-ansible/playbooks/common/openshift-cluster/upgrades/etcd/noop.yml' does not exist, or is not readable" } Proposed: https://github.com/openshift/openshift-ansible/pull/5338 Side note: The usage of tags to run `pre_upgrade` does not produce an acceptable user experience due to the many skipped tasks. The upgrade playbooks will be refactored to allow an entry point to just run upgrade checks if they are desired. The use of tags as a whole in openshift-ansible will eventually be deprecated. Bug verification blocked by bug 1451023. Version: atomic-openshift-utils-3.7.0-0.126.4.git.0.3fc2b9b.el7.noarch Steps: 1. Install 3.6 cluster with dedicated etcd. 2. Pre-check upgrade # ansible-playbook -i hosts /usr/share/ansible/openshift-ansible/playbooks/byo/openshift-cluster/upgrades/v3_7/upgrade.yml --tags pre_upgrade Pre_check succeed. If this is not being fixed in 3.6 should to documentation on using the tags be removed https://docs.openshift.com/container-platform/3.6/install_config/upgrading/automated_upgrades.html#upgrading-to-ocp-3-6 This issue was fixed in the 3.6 branch with this PR: https://github.com/openshift/openshift-ansible/pull/5411 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:3188 |