This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug testsuite/16326] client.exp and local stap-server interactions
- From: "mcermak at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Wed, 18 Dec 2013 09:39:52 +0000
- Subject: [Bug testsuite/16326] client.exp and local stap-server interactions
- Auto-submitted: auto-generated
- References: <bug-16326-6586 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=16326
--- Comment #6 from Martin Cermak <mcermak at redhat dot com> ---
Created attachment 7329
--> https://sourceware.org/bugzilla/attachment.cgi?id=7329&action=edit
logfile acquired using client.exp 8b68fe58c64f
Not yet there. The testcase fails in case there is a local trusted server
*running*.
Have one local and one remote servers running before executing our testcase.
Now edit the testcase like this:
verbose -log "SLEEP..."
exec sleep 40
# Now start our own server and make sure we can work with it.
if {! [setup_server] || $avahi_ok_p != 1} {
untested "Compile-server client tests against a server"
return;
}
verbose -log "SLEEP..."
exec sleep 40
1) check before running the testcase:
# stap --list-servers=all; stap --list-servers=online; stap
--list-servers=signer; stap --list-servers=trusted
Systemtap Compile Server Status for 'all'
host=box3.blah.redhat.com address=XX.XX.XX.XX port=56334
sysinfo="3.10.0-61.el7.x86_64 x86_64" version=2.4 certinfo="00:9d:b8:18:bb"
host=box1.blah.redhat.com address=YY.YY.YY.YY port=48702
sysinfo="3.10.0-55.el7.x86_64 x86_64" version=2.4 certinfo="00:9d:a3:a2:73"
Systemtap Compile Server Status for 'online'
host=box1.blah.redhat.com address=YY.YY.YY.YY port=48702
sysinfo="3.10.0-55.el7.x86_64 x86_64" version=2.4 certinfo="00:9d:a3:a2:73"
host=box3.blah.redhat.com address=XX.XX.XX.XX port=56334
sysinfo="3.10.0-61.el7.x86_64 x86_64" version=2.4 certinfo="00:9d:b8:18:bb"
Systemtap Compile Server Status for 'signer'
host=box1.blah.redhat.com address=YY.YY.YY.YY port=48702
sysinfo="3.10.0-55.el7.x86_64 x86_64" version=2.4 certinfo="00:9d:a3:a2:73"
host=box3.blah.redhat.com address=XX.XX.XX.XX port=56334
sysinfo="3.10.0-61.el7.x86_64 x86_64" version=2.4 certinfo="00:9d:b8:18:bb"
Systemtap Compile Server Status for 'trusted'
host=box1.blah.redhat.com address=YY.YY.YY.YY port=48702
sysinfo="3.10.0-55.el7.x86_64 x86_64" version=2.4 certinfo="00:9d:a3:a2:73"
host=box3.blah.redhat.com address=XX.XX.XX.XX port=56334
sysinfo="3.10.0-61.el7.x86_64 x86_64" version=2.4 certinfo="00:9d:b8:18:bb"
2) check within the first sleep
# stap --list-servers=all; stap --list-servers=online; stap
--list-servers=signer; stap --list-servers=trusted
Systemtap Compile Server Status for 'all'
host=box1.blah.redhat.com address=YY.YY.YY.YY port=48702
sysinfo="3.10.0-55.el7.x86_64 x86_64" version=2.4 certinfo="00:9d:a3:a2:73"
host=box3.blah.redhat.com address=XX.XX.XX.XX port=56334
sysinfo="3.10.0-61.el7.x86_64 x86_64" version=2.4 certinfo="00:9d:b8:18:bb"
Systemtap Compile Server Status for 'online'
host=box1.blah.redhat.com address=YY.YY.YY.YY port=48702
sysinfo="3.10.0-55.el7.x86_64 x86_64" version=2.4 certinfo="00:9d:a3:a2:73"
host=box3.blah.redhat.com address=XX.XX.XX.XX port=56334
sysinfo="3.10.0-61.el7.x86_64 x86_64" version=2.4 certinfo="00:9d:b8:18:bb"
Systemtap Compile Server Status for 'signer'
host=box1.blah.redhat.com address=YY.YY.YY.YY port=48702
sysinfo="3.10.0-55.el7.x86_64 x86_64" version=2.4 certinfo="00:9d:a3:a2:73"
host=box3.blah.redhat.com address=XX.XX.XX.XX port=56334
sysinfo="3.10.0-61.el7.x86_64 x86_64" version=2.4 certinfo="00:9d:b8:18:bb"
Systemtap Compile Server Status for 'trusted'
host=box1.blah.redhat.com address=YY.YY.YY.YY port=48702
sysinfo="3.10.0-55.el7.x86_64 x86_64" version=2.4 certinfo="00:9d:a3:a2:73"
host=box3.blah.redhat.com address=XX.XX.XX.XX port=56334
sysinfo="3.10.0-61.el7.x86_64 x86_64" version=2.4 certinfo="00:9d:b8:18:bb"
3) check within the second sleep
# stap --list-servers=all; stap --list-servers=online; stap
--list-servers=signer; stap --list-servers=trusted
Systemtap Compile Server Status for 'all'
host=box1.blah.redhat.com address=YY.YY.YY.YY port=60632
sysinfo="3.10.0-55.el7.x86_64 x86_64" version=2.4 certinfo="00:9d:b9:55:00"
host=box3.blah.redhat.com address=XX.XX.XX.XX port=56334
sysinfo="3.10.0-61.el7.x86_64 x86_64" version=2.4 certinfo="00:9d:b8:18:bb"
host=box1 address=YY.YY.YY.YY port=48702 sysinfo="3.10.0-55.el7.x86_64 x86_64"
version=2.4 certinfo="00:9d:a3:a2:73"
host=box1.blah.redhat.com address=offline port=unknown sysinfo="unknown"
version=unknown certinfo="00:9d:a3:a2:73"
Systemtap Compile Server Status for 'online'
host=box1.blah.redhat.com address=YY.YY.YY.YY port=60632
sysinfo="3.10.0-55.el7.x86_64 x86_64" version=2.4 certinfo="00:9d:b9:55:00"
host=box3.blah.redhat.com address=XX.XX.XX.XX port=56334
sysinfo="3.10.0-61.el7.x86_64 x86_64" version=2.4 certinfo="00:9d:b8:18:bb"
host=box1 address=YY.YY.YY.YY port=48702 sysinfo="3.10.0-55.el7.x86_64 x86_64"
version=2.4 certinfo="00:9d:a3:a2:73"
Systemtap Compile Server Status for 'signer'
host=box3.blah.redhat.com address=XX.XX.XX.XX port=56334
sysinfo="3.10.0-61.el7.x86_64 x86_64" version=2.4 certinfo="00:9d:b8:18:bb"
host=box1 address=YY.YY.YY.YY port=48702 sysinfo="3.10.0-55.el7.x86_64 x86_64"
version=2.4 certinfo="00:9d:a3:a2:73"
host=box1.blah.redhat.com address=offline port=unknown sysinfo="unknown"
version=unknown certinfo="00:9d:a3:a2:73"
Systemtap Compile Server Status for 'trusted'
host=box3.blah.redhat.com address=XX.XX.XX.XX port=56334
sysinfo="3.10.0-61.el7.x86_64 x86_64" version=2.4 certinfo="00:9d:b8:18:bb"
host=box1 address=YY.YY.YY.YY port=48702 sysinfo="3.10.0-55.el7.x86_64 x86_64"
version=2.4 certinfo="00:9d:a3:a2:73"
host=box1.blah.redhat.com address=offline port=unknown sysinfo="unknown"
version=unknown certinfo="00:9d:a3:a2:73"
4) check after the testcasse finish
# stap --list-servers=all; stap --list-servers=online; stap
--list-servers=signer; stap --list-servers=trusted
Systemtap Compile Server Status for 'all'
host=box1.blah.redhat.com address=YY.YY.YY.YY port=48702
sysinfo="3.10.0-55.el7.x86_64 x86_64" version=2.4 certinfo="00:9d:a3:a2:73"
host=box3.blah.redhat.com address=XX.XX.XX.XX port=56334
sysinfo="3.10.0-61.el7.x86_64 x86_64" version=2.4 certinfo="00:9d:b8:18:bb"
Systemtap Compile Server Status for 'online'
host=box1.blah.redhat.com address=YY.YY.YY.YY port=48702
sysinfo="3.10.0-55.el7.x86_64 x86_64" version=2.4 certinfo="00:9d:a3:a2:73"
host=box3.blah.redhat.com address=XX.XX.XX.XX port=56334
sysinfo="3.10.0-61.el7.x86_64 x86_64" version=2.4 certinfo="00:9d:b8:18:bb"
Systemtap Compile Server Status for 'signer'
host=box1.blah.redhat.com address=YY.YY.YY.YY port=48702
sysinfo="3.10.0-55.el7.x86_64 x86_64" version=2.4 certinfo="00:9d:a3:a2:73"
host=box3.blah.redhat.com address=XX.XX.XX.XX port=56334
sysinfo="3.10.0-61.el7.x86_64 x86_64" version=2.4 certinfo="00:9d:b8:18:bb"
Systemtap Compile Server Status for 'trusted'
host=box1.blah.redhat.com address=YY.YY.YY.YY port=48702
sysinfo="3.10.0-55.el7.x86_64 x86_64" version=2.4 certinfo="00:9d:a3:a2:73"
host=box3.blah.redhat.com address=XX.XX.XX.XX port=56334
sysinfo="3.10.0-61.el7.x86_64 x86_64" version=2.4 certinfo="00:9d:b8:18:bb"
I see 3 issues:
1) After *careful* text-diffing these outputs it appears that one can't rely on
the line order produced by --list-servers, which may complicate array key-val
comparisons in the testcase.
2) I'm a bit confused about what happens when additional local server is
started: Let's have following initial state:
# stap --list-servers=all; netstat -tlpn | grep stap
Systemtap Compile Server Status for 'all'
host=box1.blah.redhat.com address=YY.YY.YY.YY port=48702
sysinfo="3.10.0-55.el7.x86_64 x86_64" version=2.4 certinfo="00:9d:a3:a2:73"
host=box3.blah.redhat.com address=XX.XX.XX.XX port=56334
sysinfo="3.10.0-61.el7.x86_64 x86_64" version=2.4 certinfo="00:9d:b8:18:bb"
tcp6 0 0 :::48702 :::* LISTEN
27016/stap-serverd
Now let's fire up an extra local server by executing
`/usr/libexec/systemtap/stap-serv --log=/tmp/mystaplog` under some regular user
(this is what the testcase does). Now I got:
# stap --list-servers=all; netstat -tlpn | grep stap
Systemtap Compile Server Status for 'all'
host=box1.blah.redhat.com address=YY.YY.YY.YY port=35053
sysinfo="3.10.0-55.el7.x86_64 x86_64" version=2.4 certinfo="00:9d:b9:70:b9"
host=box3.blah.redhat.com address=XX.XX.XX.XX port=56334
sysinfo="3.10.0-61.el7.x86_64 x86_64" version=2.4 certinfo="00:9d:b8:18:bb"
host=box1 address=YY.YY.YY.YY port=48702 sysinfo="3.10.0-55.el7.x86_64 x86_64"
version=2.4 certinfo="00:9d:a3:a2:73"
host=box1.blah.redhat.com address=offline port=unknown sysinfo="unknown"
version=unknown certinfo="00:9d:a3:a2:73"
tcp6 0 0 :::35053 :::* LISTEN
17991/stap-serverd
tcp6 0 0 :::48702 :::* LISTEN
27016/stap-serverd
Not sure what does "host=box1.blah.redhat.com address=offline" mean..
3) It might be useful to move those newly created array_* procs to some shared
library, possibly lib/systemtap.exp
--
You are receiving this mail because:
You are the assignee for the bug.