[LU-14034] test-framework and sanity-hsm use libtool nonsensically Created: 14/Oct/20 Updated: 13/Nov/22 Resolved: 22/Jan/21 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.14.0 |
| Type: | Task | Priority: | Minor |
| Reporter: | John Hammond | Assignee: | John Hammond |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||||||||||||||||||
| Description |
|
We use libtool several places in lustre/tests/ but only one place uses it correctly: lustre/tests/conf-sanity.sh: do_facet ${facet} "libtool execute l_tunedisk ${device}"
All of the following uses are nonsensical: lustre/tests/sanity-hsm.sh: do_nodesv $hosts "libtool execute pgrep -x $HSMTOOL" lustre/tests/sanity-hsm.sh: "do_nodesv $agents libtool execute pkill -CONT -x '$HSMTOOL' || true" EXIT lustre/tests/sanity-hsm.sh: do_nodesv $agents "libtool execute pkill -STOP -x $HSMTOOL" || return 0 lustre/tests/sanity-hsm.sh: local mntpnt=$(do_rpc_nodes $agent libtool execute ps -C $HSMTOOL -o args= | lustre/tests/sanity.sh: # strip out libtool wrappers for in-tree executables lustre/tests/test-framework.sh: do_nodesv $agents "libtool execute pkill -CONT -x $HSMTOOL" || return 0 lustre/tests/test-framework.sh: do_nodesv $hosts "libtool execute killall -q $HSMTOOL" || true lustre/tests/test-framework.sh: stack_trap "do_facet $facet libtool execute pkill -x '$HSMTOOL' || true" EXIT Asking libtool to execute pkill, pgrep, or killall does not fix the problem that this was intended to solve (namely that lhmstool_posix is sometimes a libtool script that execs lt-lhsmtool_posix (which needs to be passed as lt-lhsmtool_pos when used with pkill and pgrep)). |
| Comments |
| Comment by Gerrit Updater [ 14/Oct/20 ] |
|
John L. Hammond (jhammond@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/40253 |
| Comment by Gerrit Updater [ 22/Jan/21 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/40253/ |
| Comment by Peter Jones [ 22/Jan/21 ] |
|
Landed for 2.14 |