Bug 1646887 - Fail to upgrade system container ocp due to missing required arguments for atomic_container module
Summary: Fail to upgrade system container ocp due to missing required arguments for at...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Cluster Version Operator
Version: 3.11.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 3.11.z
Assignee: Scott Dodson
QA Contact: liujia
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-11-06 08:47 UTC by liujia
Modified: 2019-02-05 05:49 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-11-26 15:55:08 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description liujia 2018-11-06 08:47:53 UTC
Description of problem:
Upgrade against system container ocp from v3.10 to v3.11. Upgrade failed at task 
TASK [openshift_certificate_expiry : Ensure python dateutil library is present] *********************************************************************************************
task path: /usr/share/ansible/openshift-ansible/roles/openshift_certificate_expiry/tasks/main.yml:2
...
Using module file /usr/lib/python2.7/site-packages/ansible/modules/cloud/atomic/atomic_container.py

<x> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o 'IdentityFile="/root/libra.pem"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/564d39a3cc -tt x '/bin/sh -c '"'"'/usr/bin/python /root/.ansible/tmp/ansible-tmp-1541491042.81-21164426333992/atomic_container.py && sleep 0'"'"''

<x> (1, '\r\n{"msg": "missing required arguments: image, backend", "failed": true, "invocation": {"module_args": {"state": "present", "values": [], "name": "python-dateutil"}}}\r\n', 'Shared connection to x closed.\r\n')

...
<x> (0, '', '')
fatal: [ec2-54-211-36-153.compute-1.amazonaws.com]: FAILED! => {
    "changed": false, 
    "invocation": {
        "module_args": {
            "name": "python-dateutil", 
            "state": "present", 
            "values": []
        }
    }, 
    "msg": "missing required arguments: image, backend"
}
	to retry, use: --limit @/usr/share/ansible/openshift-ansible/playbooks/byo/openshift-cluster/upgrades/v3_11/upgrade_control_plane.retry

Version-Release number of the following components:
openshift-ansible-3.11.38-1.git.0.d146f83.el7.noarch
ansible-2.6.5-1.el7ae.noarch

How reproducible:
always

Steps to Reproduce:
1. Fresh install ocp v3.10 on atomic host
2. Upgrade above ocp
3.

Actual results:
Upgrade failed

Expected results:
Upgrade succeed.

Additional info:
Please attach logs from ansible-playbook with the -vvv flag

Comment 3 liujia 2018-11-06 08:50:54 UTC
Block upgrade test and bug verify against system container ocp

Comment 4 Scott Dodson 2018-11-07 17:37:06 UTC
Sorry forgot to link the PR.

https://github.com/openshift/openshift-ansible/pull/10621

Comment 5 liujia 2018-11-08 02:41:03 UTC
The pr was not merged in latest v3.11.40

Comment 6 Scott Dodson 2018-11-08 15:44:59 UTC
In openshift-ansible-3.11.41-1

Comment 7 liujia 2018-11-09 09:11:16 UTC
Verified on openshift-ansible-3.11.41-1.git.0.f711b2d.el7.noarch


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