Bug 981114

Summary: Met NameError when run rhc-fix-stale-frontend
Product: OpenShift Online Reporter: chunchen <chunchen>
Component: ContainersAssignee: Rob Millner <rmillner>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: mfisher, mpatel, wsun
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-07-22 15:21:02 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:
Embargoed:

Description chunchen 2013-07-04 04:28:11 UTC
Description of problem:
When run "rhc-fix-stale-frontend" command, will meet errors like "uninitialized constant OpenShift::GearDB (NameError)"

Version-Release number of selected component (if applicable):
devenv_3447

How reproducible:
always

Steps to Reproduce:
1. Create an app
rhc app create drupal php-5.3 --no-git
2. Add alias for this app
rhc alias add drupal d1.com
3. SSH into the instance and run "rhc-fix-stale-frontend"
rhc-fix-stale-frontend drupal-cdm.dev.rhcloud.com

Actual results:
/usr/bin/rhc-fix-stale-frontend:27:in `<main>': uninitialized constant OpenShift::GearDB (NameError)


Expected results:
rhc-fix-stale-frontend should work well

Additional info:

Comment 1 openshift-github-bot 2013-07-09 16:56:33 UTC
Commit pushed to master at https://github.com/openshift/li

https://github.com/openshift/li/commit/654cfcd3badacf6c11afa38d347e8742f294fdf5
Misc bugs
Bug 981114 - Move to Runtime module missed these classes.
Bug 982403 - catch up to newer calling convention for FrontendHttpServer

Comment 2 Rob Millner 2013-07-09 19:11:24 UTC
Parts of the commit were dropped in rebasing.  New pull request:
https://github.com/openshift/li/pull/1716

Comment 3 openshift-github-bot 2013-07-09 21:15:19 UTC
Commit pushed to master at https://github.com/openshift/li

https://github.com/openshift/li/commit/9b20150a301740c6196141f09ab9a37dddf0a996
Bug 981114 - additional name fixes.

Comment 4 chunchen 2013-07-10 02:04:40 UTC
It's fixed, verified on devenv_3471,please refer to the following results:

# rhc-fix-stale-frontend drupal-cdm.dev.rhcloud.com
Deleting names and any associated aliases from the frontend:
	drupal-cdm.dev.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