Red Hat Bugzilla – Bug 1030308
when the app gear dir is missing, after deleting the app, the app's httpd config info is still in '.httpd.d/nodes.txt'
Last modified: 2015-05-14 19:32:47 EDT
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):
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
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!
Should be able to remove the frontend config files by destroy gear when the gear home dir is missing.
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.
(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):
> How reproducible:
> 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
oo-admin-gear -a destroygear can delete the gear's remaining files on node.
Move bug to verified.