Bug 1030308

Summary: when the app gear dir is missing, after deleting the app, the app's httpd config info is still in '.httpd.d/nodes.txt'
Product: OpenShift Online Reporter: Cong Wei <cowei>
Component: ContainersAssignee: Lokesh Mandvekar <lsm5>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: low    
Version: 2.xCC: bmeng, bparees, dmcphers, jkeck, lsm5, xtian
Target Milestone: ---Keywords: UpcomingRelease
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-26 19:08:15 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 Cong Wei 2013-11-14 10:32:26 UTC
Description of problem:
 
when the app gear dir is missing, after destroy the gear, the app's httpd config still in 'nodes.txt'

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

devenv_4031

How reproducible:
always

Steps to Reproduce:
1.Create an app
  rhc create-app app1 php 

2.Ssh instance, go to /var/lib/openshift, only remove the app dir

3. Destroy this app
  rhc delete-app app1

4. try to delete the http config using "oo-devel-node frontend-destroy"
[root@ip-10-100-215-134 openshift]# oo-devel-node frontend-destroy -c 52849c85eaf50c5dda000007

Actual results:
The app's httpd config still in .httpd.d/node.db.

when run:oo-devel-node frontend-destroy --with-container-uuid 52849c85eaf50c5dda000007
  show: 52849c85eaf50c5dda000007 is missing or not a valid gear: OPENSHIFT_APP_UUID is missing!

Expected results:
Should be able to remove the frontend config files by destroy gear when the gear home dir is missing.

Additional info:

Comment 1 Ben Parees 2013-11-21 16:36:13 UTC
this fails because the .env directory for the app was removed which means the app information cannot be looked up during the frontend-destroy flow.  Will need to determine if this information (app uuid, app name, gear name) can be retrieved in another way.

Comment 3 Lokesh Mandvekar 2014-02-11 22:14:04 UTC
(In reply to Cong Wei from comment #0)
> Description of problem:
>  
> when the app gear dir is missing, after destroy the gear, the app's httpd
> config still in 'nodes.txt'
> 
> Version-Release number of selected component (if applicable):
> 
> devenv_4031
> 
> How reproducible:
> always
> 
> Steps to Reproduce:
> 1.Create an app
>   rhc create-app app1 php 
> 
> 2.Ssh instance, go to /var/lib/openshift, only remove the app dir
> 
> 3. Destroy this app
>   rhc delete-app app1
> 
After this step,
"oo-admin-gear -a destroygear -u $uuid" should purge things

Comment 4 Meng Bo 2014-02-12 05:54:16 UTC
oo-admin-gear -a destroygear can delete the gear's remaining files on node.

Move bug to verified.