Bug 1402769

Summary: Disk space checking report error and skipped for etcd backup on standalone etcd hosts
Product: OpenShift Container Platform Reporter: Anping Li <anli>
Component: Cluster Version OperatorAssignee: Scott Dodson <sdodson>
Status: CLOSED DUPLICATE QA Contact: Anping Li <anli>
Severity: low Docs Contact:
Priority: unspecified    
Version: 3.4.0CC: aos-bugs, bleanhar, jokerman, mmccomas
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-08-24 15:53:40 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:

Description Anping Li 2016-12-08 10:12:23 UTC
Description of problem:
There are no such directory  /var/lib/origin in standalone etcd host , so the TASK [Check available disk space for etcd backup] report error and skipped.

Version-Release number of selected component (if applicable):
openshift-ansible-playbooks-3.4.35-1.git.0.2e13650.el7.noarch

How reproducible:
always

Steps to Reproduce:
1. install ocp v3.3 with standalone etcd 
2. upgrade etcd
ansile-playbook -i hosts /usr/share/ansible/openshift-ansible/playbooks/byo/openshift-cluster/upgrades/upgrade_etcd.yml

Actual results:
TASK [Create origin symlink if necessary] **************************************
skipping: [openshift-220.lab.eng.nay.redhat.com] => {
    "changed": false,
    "skip_reason": "Conditional check failed",
    "skipped": true
}

TASK [Check available disk space for etcd backup] ******************************
changed: [openshift-220.lab.eng.nay.redhat.com] => {
    "changed": true,
    "cmd": "df --output=avail -k /var/lib/origin | tail -n 1",
    "delta": "0:00:00.004593",
    "end": "2016-12-08 04:10:56.619575",
    "rc": 0,
    "start": "2016-12-08 04:10:56.614982",
    "warnings": []
}

STDERR:

df: ‘/var/lib/origin’: No such file or directory

TASK [Check current embedded etcd disk usage] **********************************
skipping: [openshift-220.lab.eng.nay.redhat.com] => {
    "changed": false,
    "skip_reason": "Conditional check failed",
    "skipped": true
}

TASK [Abort if insufficient disk space for etcd backup] ************************
skipping: [openshift-220.lab.eng.nay.redhat.com] => {
    "changed": false,
    "skip_reason": "Conditional check failed",
    "skipped": true
}





Expected results:


Additional info:

Comment 1 Brenton Leanhardt 2017-08-24 15:53:40 UTC

*** This bug has been marked as a duplicate of bug 1433272 ***