Repository navigation
Conversation
|
[test] |
There was a problem hiding this comment.
If we're going to keep this in test-cmd, s/ensure_no_openshift/check_for_running_openshift/
|
@php-coder @stevekuznetsov - I wasn't planning on keeping this code, just using it to help identify the issue. I'll clean it up if we decide to keep it. If you guys have an easier way to reproduce this flake please let me know, looks like it didn't hit it in my initial test and I wasn't able to trigger it locally. |
|
re[test] - c'mon flake! |
|
I have no way of reproducing this - locally, when another instance of OpenShift is running I always see this error, but I'm not certain this is what is happening on Jenkins. I don't think it's a terrible idea to get this code in to |
That's where I'm leaning too. @php-coder I'm going to clean this up a bit based on suggestions however I don't think pgrep is what I need here. I can use pgrep to find the initial process but what I really need is the parent pid of the process. Will incorporate the other feedback. Thanks! |
@pweil- You are right: I missed the idea of gettig parent PID. |
|
@deads2k any objection to this? |
Just confirming: this just displays the information, it doesn't actively kill anything, right? Do you want to check etcd and openshift for |
|
@pweil- are we still trying to put this in ? |
Yes, I got caught up with PSP items. Will have this updated today. |
a97b93c to
6f4fbdc
Compare
Yes, no killing, just reporting. Added checks for test-integration.sh. Example output when running e2e with a pause and running test-integration.sh in another window: I added an extra layer of parent pid reporting as well, it seems to be enough to get all the way up to the shell command. |
6f4fbdc to
b57574b
Compare
|
anyone have any additional comments or suggestions on this (or better ways of debugging)? |
|
Can you add a check for the give up case too? I think I'd like to see it was just dead or what. |
Added check in wait_for_url if it fails |
|
All - is this still useful or does someone have a better approach or more comments on the code? |
|
Evaluated for origin test up to 9a6ad13 |
|
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/528/) |
|
bump, any more feedback? |
There was a problem hiding this comment.
will try. This impl doesn't sit well with me but it was the best I had :-)
There was a problem hiding this comment.
I don't think it's supported to limit depth with pstree but I don't see big downside to showing everything
There was a problem hiding this comment.
$ pstree
-bash: pstree: command not found
There was a problem hiding this comment.
hrm, that's right. It wasn't available...it's all coming back now.
There was a problem hiding this comment.
Damn it. Some of the tests I had written for the Bash trap refactor may use pstree. I can refactor.
@pweil- Bash supports recursion so you could do it this way. I've done something similar here: stevekuznetsov@d24fb54#diff-16f1c9b93f0f57f6b11f9b646fcbdaa7R141
If you do that, be careful to correctly scope everything.
There was a problem hiding this comment.
since I really only care about one more level and am formatting it so it doesn't show headers the second time I think I'm ok with it as is unless anyone feels strongly about it.
If not, anything else jumping out or can we shall we get this merged?
There was a problem hiding this comment.
For getting one level, this seems fine.
|
Are we even seeing this anymore? |
|
haven't seen it in a while and this has had meh response which I think is a good sign. closing but keeping the branch |
|
Seeing a lot of this on the LDAP group extended test job: https://ci.openshift.redhat.com/jenkins/job/ldap_groups_extended/ |
|
gaaaahhhh |
|
Ok @stevekuznetsov final LGTM is in your hands then! |
| local parentsParents=$(ps h -oppid --pid="${1}") | ||
| parentsParents="$(echo -e "${parentsParents}" | sed -e 's/^[[:space:]]*//')" | ||
| if [[ -n "${parentsParents}" && "${parentsParents}" -ne "0" ]]; then | ||
| ps h ww -opid,ppid,cmd --pid="${parentsParents}" |
There was a problem hiding this comment.
Paging @liggitt but I believe everything on ps that has double-dashes is a GNU extension and not OSX compatible.
There was a problem hiding this comment.
ps on OSX does not have ww or --pid. h has no discernable effect. instead of cmd, it has command
There was a problem hiding this comment.
Since this is mostly to catch and inform us of flake conditions, let's just disable on OSX.
|
LGTM other than GNU extensions on |
|
Origin Action Required: Pull request cannot be automatically merged, please rebase your branch from latest HEAD and push again |
|
We can probably close this, we've updated the wait and added more debugging. |
Adding some extra debugging to try and reproduce the flakes in #6031.
I was unable to reproduce it locally without running a test script, pausing, and rerunning the same script in another window. This is attempting to list the parent processes that started the openshift command that seems to be causing the failure so I can see what isn't cleaning up nicely
cc @stevekuznetsov @deads2k @php-coder