Hide Forgot
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:
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): > > 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
oo-admin-gear -a destroygear can delete the gear's remaining files on node. Move bug to verified.