exit_trap fails trying to kill root processes when VERBOSE=True
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
BaGPipe |
Fix Released
|
Undecided
|
Unassigned | ||
devstack |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I have a case of a jenkins job for which devstack.sh exit with 0 (success) with VERBOSE=False, but exits with 2 if VERBOSE is True even though no particular error is obvious (stack.sh finishes and output total times, keystone URL,users,password, etc.).
https:/
with VERBOSE=False in local.conf
Works fine, we have err status 0:
http://
2016-04-06 19:10:42.040 | gate_hook.sh: devstack-vm-gate.sh returned: 0
https:/
only difference is that we don't have VERBOSE=False in local.conf
err status is now 2 and the job is marked as fail:
http://
2016-04-06 17:33:25.788 | gate_hook.sh: devstack-vm-gate.sh returned: 2
description: | updated |
summary: |
- stack.sh exiting with 2, with no obvious error + stack.sh exiting with 2, with no obvious error, does not trigger if + VERBOSE=False |
Changed in networking-bagpipe: | |
status: | New → Fix Released |
Well this is an odd one
In [1] you can see
---
exit_trap: cleaning up child processes
./stack.sh: line 480: kill: (23227) - Operation not permitted+ unset GREP_OPTIONS
---
which is trying to kill from [2]
--- /etc/bagpipe- bgp/log. conf
root 1 23227 0.0 0.0 40852 1752 ? S 17:33:22 00:00:00 sudo bagpipe-bgp start --no-daemon --log-file=
---
which is started at [3]
This kill only happens when we are running in VERBOSE mode [4]
Have to think about this ... generally we do not run things with sudo like this because they don't need it, they use tools like rootwrap to do privileged things
[1] http:// logs.openstack. org/60/ 297260/ 29/experimental /gate-install- dsvm-networking -bgpvpn- bagpipe/ ca736ac/ logs/devstack- early.txt. gz logs.openstack. org/60/ 297260/ 29/experimental /gate-install- dsvm-networking -bgpvpn- bagpipe/ ca736ac/ logs/worlddump- 2016-04- 06-173325. txt.gz /github. com/Orange- OpenSource/ bagpipe- bgp/blob/ master/ devstack/ plugin. sh#L116 /git.openstack. org/cgit/ openstack- dev/devstack/ tree/stack. sh#n476
[2] http://
[3] https:/
[4] https:/