Bug 853559
Summary: | Unable to remove gear when user dir doesn't exist | ||
---|---|---|---|
Product: | OKD | Reporter: | Matt Woodson <mwoodson> |
Component: | Containers | Assignee: | Jhon Honce <jhonce> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 2.x | CC: | jhonce, jhou, mpatel, qgong, twiest, xtian |
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: | 2012-09-17 21:29:23 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
Matt Woodson
2012-08-31 20:51:26 UTC
This case needs to be handled by app-destroy on the node. It should either ignore the case completely and return success (after cleaning up any user or proxy data if still there). If for some reason you want app-destroy to not completely ignore this case then I would be ok with a special error code to indicate to the caller what happened and let them make the choice to ignore. I disagree with the second half of comment 1. I don't think destroying the gear should be optional. If we've asked to destroy a gear (or a user has), then the gear should be destroyed. Leaving anything around will cause our broken gears alerting to go off, and cause us to have to go manually clean up the gears, which is exactly what we're trying to get away from. If we, or the user has asked to destroy the gear, then we know the risks and we want the gear gone. jhon to discuss with Rob (In reply to comment #4) > https://github.com/openshift/crankcase/pull/468 It's merged in devenv_2148, move it to ON_QA to verify. Verifier on devenv_2148 [root@ip-10-123-18-148 stickshift]# ls 06115b1edd75441e97758e50adefad1e 06115b1edd-joydev1 6a9385c83dc5418aabda86f818c61493 dd464d34005c4ea89b3ac6072b1e6b45 jboss1-joydev1 last_access.log qruby18-qgong1 quota1-joydev1 [root@ip-10-123-18-148 stickshift]# rhc-admin-ctl-app -b -l qgong -c destroy -a qruby18 Successfully destroyed application: qruby18 [root@ip-10-123-18-148 stickshift]# ls 06115b1edd75441e97758e50adefad1e 06115b1edd-joydev1 6a9385c83dc5418aabda86f818c61493 dd464d34005c4ea89b3ac6072b1e6b45 jboss1-joydev1 last_access.log quota1-joydev1 Verified on devenv_2159 Steps: 1. Create an app and remove gear dir from node [root@ip-10-4-39-173 stickshift]# ls 615c39382ab14aed843791d97d889933 last_access.log php1-2159t1 [root@ip-10-4-39-173 stickshift]# mv 615c39382ab14aed843791d97d889933 /tmp/ [root@ip-10-4-39-173 stickshift]# ls last_access.log php1-2159t1 2. Destroy app [root@ip-10-4-39-173 stickshift]# rhc-admin-ctl-app -b -a php1 -l jhou -c destroy Successfully destroyed application: php1 [root@ip-10-4-39-173 stickshift]# ls last_access.log |