There's an race condition in setting console mode for shellinabox
Bug #1587313 reported by
Zhenguo Niu
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ironic |
Fix Released
|
Medium
|
Dmitry Galkin |
Bug Description
Currently, the locks of node are released before really starting/stopping shellinabox process, then there can be multi threads running the codes at the same time, the pid file may be unlinked by thread A, and thread B gets success returned value but pid file doesn't exit, it will be stuck in popen.communica
Changed in ironic: | |
assignee: | nobody → Zhenguo Niu (niu-zglinux) |
description: | updated |
Changed in ironic: | |
status: | New → Confirmed |
Changed in ironic: | |
importance: | Undecided → Medium |
Changed in ironic: | |
status: | Confirmed → Triaged |
Changed in ironic: | |
assignee: | Dmitry Galkin (galkindmitrii) → Julia Kreger (juliaashleykreger) |
Changed in ironic: | |
assignee: | Julia Kreger (juliaashleykreger) → Dmitry Galkin (galkindmitrii) |
Changed in ironic: | |
assignee: | Dmitry Galkin (galkindmitrii) → Julia Kreger (juliaashleykreger) |
Changed in ironic: | |
assignee: | Julia Kreger (juliaashleykreger) → Dmitry Galkin (galkindmitrii) |
To post a comment you must log in.
#!/bin/bash
for i in `seq 1 10000`; do console- mode bm-1 true console- mode bm-1 false
echo $i
ironic node-set-
ironic node-set-
done
when testing with be above script, the conductor will be stuck after a few loop.