Bug 1388445 - Issues within playbook while upgrade from 3.X to 3.Y version
Summary: Issues within playbook while upgrade from 3.X to 3.Y version
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Cluster Version Operator
Version: 3.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Steve Milner
QA Contact: Anping Li
URL:
Whiteboard:
: 1387636 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-25 11:39 UTC by Vladislav Walek
Modified: 2019-12-16 07:13 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: tar was not listed as a dependency Consequence: On systems where tar is not part of the base system the installer could fail Fix: tar was added as a dependency Result: The installer is able to use tar during installation/upgrade
Clone Of:
Environment:
Last Closed: 2017-04-12 18:48:01 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 Vladislav Walek 2016-10-25 11:39:47 UTC
Description of problem:

When running the containerized upgrade from 3.2 to 3.3 an error appears while running task openshift_examples from post.yml playbook:

FAILED! => {"changed": false, "cmd": "tar -C /usr/share/ansible/openshift-ansible/roles/openshift_examples/files/examples/v1.3/ -cvf /tmp/openshift-ansible-bIBcjVF/openshift-examples.tar .", "failed": true, "msg": "[Errno 2] No such file or directory", "rc": 2}
	to retry, use: --limit @/usr/share/ansible/openshift-ansible/playbooks/byo/openshift-cluster/upgrades/v3_3/upgrade.retry

The ansible fails on running the examples. This tasks should not be critical and should not fail the entire installation. Could you please fix that?

Also if running the upgrade from container itself, the ansible is not checking if tar is available or not. Could be there a check if tar is available? 


Version-Release number of selected component (if applicable):

OpenShift Container Platform 3.3


Actual results:

The upgrade fails on post.yml playbook on openshift_examples task. 


Expected results:

The upgrade should skip the example tasks in order to finish the installation, but showing that upgrade was not able to upgrade the examples and this tasks should be executed manually.


Additional info:

Would be better if in docs could be information or known issue about containerized upgrade in container and openshift_examples. I got information that in order to skip it, the inventory file should contain openshift_install_examples=false.

Comment 2 Scott Dodson 2016-10-26 15:27:58 UTC
https://github.com/ansible/ansible/pull/18205 opened upstream to add tar to the specfile requirements ensuring that tar is installed when ansible is installed into a container. There may be other issues at hand here.

Comment 3 Scott Dodson 2016-10-27 13:33:42 UTC
*** Bug 1387636 has been marked as a duplicate of this bug. ***

Comment 5 liujia 2016-11-03 07:46:56 UTC
It has the same issue when run installer on container.

Version:
imageopenshift3/installer   latest

1. docker pull openshift3/installer image
2. trigger an installer on container
3. the install will fail becase no tar command in installer container
Play 17/29 (Additional master configuration)
.......................................................................................................fatal: [openshift-136.x.x.x -> localhost]: FAILED! => {"changed": false, "cmd": "tar -C /usr/share/ansible/openshift-ansible/roles/openshift_examples/files/examples/v1.3/ -cvf /tmp/openshift-ansible-MdF0qgU/openshift-examples.tar .", "failed": true, "msg": "[Errno 2] No such file or directory", "rc": 2}

localhost                  : ok=12   changed=9    unreachable=0    failed=0   
openshift-136.lab.eng.nay.redhat.com : ok=296  changed=68   unreachable=0    failed=1

Comment 6 Brenton Leanhardt 2017-01-05 21:29:55 UTC
Troy, we're thinking we could workaround this by having openshift-ansible depend on tar.

Comment 7 Scott Dodson 2017-01-19 15:38:26 UTC
We'll make openshift-ansible depend on tar.

Comment 8 Steve Milner 2017-01-19 15:51:43 UTC
Changes in PR https://github.com/openshift/openshift-ansible/pull/3124

Comment 9 Steve Milner 2017-01-19 16:16:38 UTC
https://github.com/openshift/openshift-ansible/pull/3124 has been merged.

Comment 10 Anping Li 2017-02-04 10:43:29 UTC
Waiting puddle for testing

Comment 11 Anping Li 2017-02-10 04:53:08 UTC
The tar packages was added as dependency package when install openshift-ansible in openshift-ansible-3.5.5

Comment 13 errata-xmlrpc 2017-04-12 18:48:01 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/RHBA-2017:0903


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