Bug 1402769 - Disk space checking report error and skipped for etcd backup on standalone etcd hosts
Summary: Disk space checking report error and skipped for etcd backup on standalone et...
Keywords:
Status: CLOSED DUPLICATE of bug 1433272
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Cluster Version Operator
Version: 3.4.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: ---
Assignee: Scott Dodson
QA Contact: Anping Li
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-08 10:12 UTC by Anping Li
Modified: 2017-08-24 15:53 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-24 15:53:40 UTC
Target Upstream Version:


Attachments (Terms of Use)

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 ***


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