Bug 1010043

Summary: Feature Request: rhc-fix-stale-frontend needs option to run non-interactively
Product: OpenShift Online Reporter: Thomas Wiest <twiest>
Component: ContainersAssignee: Michal Fojtik <mfojtik>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.xCC: mfojtik, qiuzhang
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-17 13:29:47 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 Thomas Wiest 2013-09-19 19:01:42 UTC
Description of problem:

This is a feature request.

right now rhc-fix-stale-frontend requires user interaction from the administration to run the command.  Here is the output:

========================================================
Deleting names and any associated aliases from the frontend:
	kindlebldr-gengcheng.rhcloud.com
Hit 'y' to continue, anything else to abort.
y
Deleting from ApacheDBNodes...
Deleting from ApacheDBAliases...
Deleting from ApacheDBIdler...
Deleting from ApacheDBSTS...
Deleting from NodeJSDBRoutes...
Deleting from GearDB...
Done
========================================================

It would be good to have an option, like -y or -b, to tell the program to do this automatically.  That way we can script this to fix problems without having to be on the instance.


Version-Release number of selected component (if applicable):
rhc-node-1.14.6-1.el6oso.x86_64

How reproducible:
very, simply run the command

Comment 1 openshift-github-bot 2013-09-20 11:04:36 UTC
Commit pushed to master at https://github.com/openshift/li

https://github.com/openshift/li/commit/e32424ba7eded56c8cd8608c2efa4c39ac2c6368
Bug 1010043 - Add -b option for rhc-fix-stale-frontend

Comment 2 Qiushui Zhang 2013-09-23 02:45:16 UTC
Tested on devenv_3810

Now with "-b" option, the script will start automatically, non-interactively.

[root@ip-10-164-80-117 ~]# rhc-fix-stale-frontend -b kindlebldr-gengcheng.rhcloud.com
Deleting names and any associated aliases from the frontend:
	kindlebldr-gengcheng.rhcloud.com
Deleting from ApacheDBNodes...
Deleting from ApacheDBAliases...
Deleting from ApacheDBIdler...
Deleting from ApacheDBSTS...
Deleting from NodeJSDBRoutes...
Deleting from GearDB...
Done

Mark it as fixed.