Bug 1024149 - oo-devel-node app-destroy doesn't work
Summary: oo-devel-node app-destroy doesn't work
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Dan McPherson
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-29 01:07 UTC by Adam Miller
Modified: 2015-05-14 23:31 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-30 00:49:37 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Adam Miller 2013-10-29 01:07:46 UTC
Trying to clean up oo-accept-node failures:
[admiller ~]$ sudo oo-accept-node
FAIL: Process 28494 is owned by a gear that's no longer on the system, uid: 5192
FAIL: Process 28495 is owned by a gear that's no longer on the system, uid: 5192
FAIL: Process 28503 is owned by a gear that's no longer on the system, uid: 5192
FAIL: Process 28508 is owned by a gear that's no longer on the system, uid: 5192
FAIL: user 526ed74903ef64dc7e0000e6 must have 1 tc class entry: actual=0
FAIL: user 526ed74903ef64dc7e0000e6 does not have quotas imposed
FAIL: directory 526ecbdb6cec0ebcb5000002 doesn't have a cartridge directory
FAIL: directory 526ed26303ef645d5f00009d doesn't have a cartridge directory
FAIL: directory 526ecf696cec0ebcb5000021 doesn't have a cartridge directory
FAIL: directory 526ecd6003ef64be5900000f doesn't have a cartridge directory
FAIL: directory 526ed74903ef64dc7e0000e6 doesn't have a cartridge directory
FAIL: directory 526ec8c303ef6499d7000091 doesn't have a cartridge directory
FAIL: directory 526ecd286cec0e088600000f doesn't have a cartridge directory
FAIL: directory 526ecbb403ef64956d000001 doesn't have a cartridge directory
FAIL: directory 526ecd1903ef641bf60000cf doesn't have a cartridge directory
FAIL: httpd config references UUID without associated gear: '526ea5d06cec0e9d1c0000a3'
FAIL: httpd config references UUID without associated gear: '526ed74903ef64dc7e0000e6'
17 ERRORS

The following command doesn't do anything, nor does it report any useful information.

[admiller ~]$ sudo oo-devel-node app-destroy -c 526ed74903ef64dc7e0000e6 --trace
Could not determine gear information for:
[admiller ~]$

Comment 1 Dan McPherson 2013-10-29 14:56:15 UTC
oo-devel-node app-destroy doesn't work for gears that half way exist (they really need their env vars).  Will try to get a better message.

Does the SOP actually point to this command?

Comment 2 Dan McPherson 2013-10-29 16:52:44 UTC
I have fixed up the error handling with:

https://github.com/openshift/origin-server/pull/4031

Wesley is going to open a trello request to get the feature you are looking for.

Comment 3 Qiushui Zhang 2013-10-30 10:13:21 UTC
Tested on devenv_3968.

[root@ip-10-137-41-211 openshift]# ls -l
total 4
drwxr-x---. 14 root 5270dab5edff0c5d8e000007 4096 Oct 30 06:09 5270dab5edff0c5d8e000007
lrwxrwxrwx.  1 root root                       24 Oct 30 06:09 aa-walter -> 5270dab5edff0c5d8e000007
[root@ip-10-137-41-211 openshift]# oo-devel-node app-destroy -c 5270dab5edff0c5d8e000007
[root@ip-10-137-41-211 openshift]# ls -l
total 0
[root@ip-10-137-41-211 openshift]# oo-devel-node app-destroy -c 5270dab5edff0c5d8e000007

5270dab5edff0c5d8e000007 is missing or not a valid gear: can't find user for 5270dab5edff0c5d8e000007


Mark the bug as verified.


Note You need to log in before you can comment on or make changes to this bug.