Bug 1279949 - undefined variables was print if there isn't available disk space
Summary: undefined variables was print if there isn't available disk space
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Cluster Version Operator
Version: 2.0.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Jason DeTiberus
QA Contact: Johnny Liu
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-10 15:02 UTC by Anping Li
Modified: 2016-10-28 13:53 UTC (History)
4 users (show)

Fixed In Version: openshift-ansible-3.0.7-1.git.171.825ef4c
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-10-28 13:53:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Anping Li 2015-11-10 15:02:50 UTC
Description of problem:
if there isn't available disk space to backup etcd database. upgrade will report undefined variable.
 
Version-Release number of selected component (if applicable):
atomic-openshift-utils-3.0.7-1.git.156.70ed54c.el7aos.noarch

How reproducible:
always

Steps to Reproduce:
1.
2.
3.

Actual results:

TASK: [Check available disk space for etcd backup] ****************************
changed: [10.14.6.120]

TASK: [Check current embedded etcd disk usage] ********************************
fatal: [10.14.6.120] => One or more undefined variables: 'dict object' has no attribute 'etcd_data_dir'

FATAL: all hosts have already failed -- aborting


Expected results:
Upgrade should print meaningful messages as design.

Additional info:

Comment 2 Devan Goodwin 2015-11-11 13:20:01 UTC
I don't think this is related to not having enough disk space rather just a plain bug we hit yesterday. It should be fixed in last nights build.

http://buildvm-devops.usersys.redhat.com/puddle/build/AtomicOpenShift/3.1/latest/RH7-RHAOS-3.1/

Comment 3 Anping Li 2015-11-12 02:43:45 UTC
The feature works well on openshift-ansible-3.0.12-1. so move bug to verified.

TASK: [Abort if insufficient disk space for etcd backup] ********************** 
failed: [10.14.6.120] => {"failed": true}
msg: 20871084 Kb disk space required for etcd backup, 3833912 Kb available.

FATAL: all hosts have already failed -- aborting


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