Bug 1423425 - Fail to start upgrade process due to syntax error of storage_upgrade.yml
Summary: Fail to start upgrade process due to syntax error of storage_upgrade.yml
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Cluster Version Operator
Version: 3.5.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Scott Dodson
QA Contact: liujia
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-02-17 09:55 UTC by liujia
Modified: 2017-07-24 14:11 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
undefined
Clone Of:
Environment:
Last Closed: 2017-03-08 14:07:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:0903 0 normal SHIPPED_LIVE OpenShift Container Platform atomic-openshift-utils bug fix and enhancement 2017-04-12 22:45:42 UTC

Description liujia 2017-02-17 09:55:25 UTC
Description of problem:
Run upgrade_control_plane.yml to upgrade masters, playbook can not proceed because a syntax problem of storage_upgrade.yml.

ERROR! 'inlcude' is not a valid attribute for a Play

The error appears to have been in '/usr/share/ansible/openshift-ansible/playbooks/byo/openshift-cluster/upgrades/v3_5/upgrade_control_plane.yml': line 111, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:


- inlcude: ../../../../common/openshift-cluster/upgrades/v3_5/storage_upgrade.yml
  ^ here
---------------------------------------------------------------------------
Change "inlcude" to "include" manually to run upgrade again, still failed for another error.

ERROR! the role 'openshift_cli' was not found in /usr/share/ansible/openshift-ansible/playbooks/byo/openshift-cluster/upgrades/v3_5/../../../../common/openshift-cluster/upgrades/v3_5/roles:/etc/ansible/roles:/usr/share/ansible/openshift-ansible/playbooks/byo/openshift-cluster/upgrades/v3_5/../../../../common/openshift-cluster/upgrades/v3_5

The error appears to have been in '/usr/share/ansible/openshift-ansible/playbooks/common/openshift-cluster/upgrades/v3_5/storage_upgrade.yml': line 8, column 5, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  roles:
  - { role: openshift_cli }
    ^ here


Version-Release number of selected component (if applicable):
atomic-openshift-utils-3.5.10-1.git.0.ba66b63.el7.noarch
ansible-2.2.1.0-2.el7.noarch

How reproducible:
always

Steps to Reproduce:
1. containerized install ocp on rhel hosts.
2. trigger upgrade from 3.4 to 3.5
# ansible-playbook -i /tmp/hosts /usr/share/ansible/openshift-ansible/playbooks/byo/openshift-cluster/upgrades/v3_5/upgrade_control_plane.yml

Actual results:
Fail to start upgrade process.

Expected results:
Upgrade successfully.

Additional info:

Comment 2 openshift-github-bot 2017-02-17 14:29:38 UTC
Commit pushed to master at https://github.com/openshift/openshift-ansible

https://github.com/openshift/openshift-ansible/commit/11f0e203e81d1aa0571fd57b566b452ddf59eb49
Fix typo, add symlinks for roles

Fixes Bug 1423425

Comment 4 liujia 2017-02-22 05:31:39 UTC
# cat playbooks/byo/openshift-cluster/upgrades/v3_5/upgrade.yml | grep storage
- include: ../../../../common/openshift-cluster/upgrades/v3_5/storage_upgrade.yml
# cat playbooks/byo/openshift-cluster/upgrades/v3_5/upgrade_control_plane.yml | grep storage
- include: ../../../../common/openshift-cluster/upgrades/v3_5/storage_upgrade.yml
# ls -la common/openshift-cluster/upgrades/v3_5/ | grep roles
lrwxrwxrwx.  1 root root    21 Feb 21 23:40 roles -> ../../../../../roles/


Version:
atomic-openshift-utils-3.5.13-1.git.0.562e91d.el7.noarch

Steps:
1. upgrade ocp3.4 to 3.5(for containerized env)

Upgrade can be launched and proceed successfully.


Note You need to log in before you can comment on or make changes to this bug.