-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor drivers code #131
Conversation
Signed-off-by: Raul Sevilla <[email protected]>
9d1bc90
to
8676851
Compare
Signed-off-by: Raul Sevilla <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to dig into this failure a bit more
panic: runtime error: index out of range [0] with length 0
goroutine 1 [running]:
main.executeWorkload({0x1, 0xa, {0xc00022d6f0, 0xa}, 0x3, 0x400, 0x0, {0x1ee68ee, 0x4}, 0x1}, ...)
/home/jtaleric/code/k8s-netperf/cmd/k8s-netperf/k8s-netperf.go:358 +0xfc6
main.glob..func1(0xc000231900?, {0x1ee698e?, 0x4?, 0x1ee6992?})
/home/jtaleric/code/k8s-netperf/cmd/k8s-netperf/k8s-netperf.go:187 +0x1065
github.com/spf13/cobra.(*Command).execute(0x3299a20, {0xc000132010, 0x1, 0x1})
/home/jtaleric/go/pkg/mod/github.com/spf13/[email protected]/command.go:920 +0x863
github.com/spf13/cobra.(*Command).ExecuteC(0x3299a20)
/home/jtaleric/go/pkg/mod/github.com/spf13/[email protected]/command.go:1044 +0x3a5
github.com/spf13/cobra.(*Command).Execute(...)
/home/jtaleric/go/pkg/mod/github.com/spf13/[email protected]/command.go:968
main.main()
/home/jtaleric/code/k8s-netperf/cmd/k8s-netperf/k8s-netperf.go:464 +0x3c7
jtaleric at polaris in ~/code/k8s-netperf on interface-refactor△ $ git checkout main
I just ran w/ ./bin/amd64/k8s-netperf --debug
I patched the
|
Signed-off-by: Raul Sevilla <[email protected]>
I can't reproduce it, what was the exact command you used? |
weird. All I am doing is and I see
Checking version
|
k8s-netperf/cmd/k8s-netperf/k8s-netperf.go Line 187 in 996f2d3
this should be
|
Update... The fields are. So, with this, the update to line - k8s-netperf/cmd/k8s-netperf/k8s-netperf.go Line 187 in 996f2d3
|
Signed-off-by: Raul Sevilla <[email protected]>
Signed-off-by: Raul Sevilla <[email protected]>
👀 |
alright, it should be ready now |
Signed-off-by: Raul Sevilla <[email protected]>
Signed-off-by: Raul Sevilla <[email protected]>
2984860
to
adb6cad
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
hm, just ran into this...
We must need to set netperf to true by default. |
and i see we default it to true here - https://github.com/cloud-bulldozer/k8s-netperf/pull/131/files#diff-2f4a29be1c0731286fb79f835c6fab35e1993e5d96990fc51e93953bfeeb8323R431 I think this might be the Cobra bug wrt bools... |
Nope, this is even weirder... we see it ran some tcp stream tests in the output i shared 😕 |
Signed-off-by: Raul Sevilla <[email protected]>
I can't reproduce it: $ ./bin/amd64/k8s-netperf
INFO[2024-02-21 23:56:41] 📒 Reading netperf.yml file.
INFO[2024-02-21 23:56:41] 📒 Reading netperf.yml file - using ConfigV2 Method.
INFO[2024-02-21 23:56:41] Cleaning resources created by k8s-netperf
INFO[2024-02-21 23:56:42] ⏰ Waiting for client-across Deployment to deleted...
INFO[2024-02-21 23:56:54] ⏰ Waiting for server Deployment to deleted...
INFO[2024-02-21 23:56:58] 🔬 prometheus discovered at openshift-monitoring
WARN[2024-02-21 23:57:00] ⚠️ Single node per zone and/or no zone labels
INFO[2024-02-21 23:57:01] 🚀 Creating service for iperf-service in namespace netperf
INFO[2024-02-21 23:57:01] 🚀 Creating service for uperf-service in namespace netperf
INFO[2024-02-21 23:57:02] 🚀 Creating service for netperf-service in namespace netperf
INFO[2024-02-21 23:57:02] 🚀 Starting Deployment for: client-across in namespace: netperf
INFO[2024-02-21 23:57:02] ⏰ Checking for client-across Pods to become ready...
INFO[2024-02-21 23:57:05] 🚀 Starting Deployment for: server in namespace: netperf
INFO[2024-02-21 23:57:05] ⏰ Checking for server Pods to become ready...
INFO[2024-02-21 23:57:11] 🗒️ Running netperf TCP_STREAM (service false) for 10s
INFO[2024-02-21 23:57:25] 🗒️ Running netperf TCP_STREAM (service false) for 10s
INFO[2024-02-21 23:57:38] 🗒️ Running netperf TCP_STREAM (service false) for 10s
INFO[2024-02-21 23:57:53] 🗒️ Running netperf TCP_STREAM (service false) for 10s
INFO[2024-02-21 23:58:06] 🗒️ Running netperf TCP_STREAM (service false) for 10s
INFO[2024-02-21 23:58:20] 🗒️ Running netperf TCP_STREAM (service false) for 10s
INFO[2024-02-21 23:58:34] 🗒️ Running netperf UDP_STREAM (service false) for 10s
INFO[2024-02-21 23:58:47] 🗒️ Running netperf UDP_STREAM (service false) for 10s
INFO[2024-02-21 23:59:00] 🗒️ Running netperf UDP_STREAM (service false) for 10s
INFO[2024-02-21 23:59:15] 🗒️ Running netperf TCP_CRR (service false) for 10s
INFO[2024-02-21 23:59:30] 🗒️ Running netperf TCP_CRR (service false) for 10s
INFO[2024-02-21 23:59:45] 🗒️ Running netperf TCP_CRR (service false) for 10s
INFO[2024-02-22 00:00:01] 🗒️ Running netperf TCP_CRR (service true) for 10s
INFO[2024-02-22 00:00:17] 🗒️ Running netperf TCP_CRR (service true) for 10s
INFO[2024-02-22 00:00:32] 🗒️ Running netperf TCP_CRR (service true) for 10s
INFO[2024-02-22 00:00:49] 🗒️ Running netperf TCP_RR (service false) for 10s
INFO[2024-02-22 00:01:02] 🗒️ Running netperf TCP_RR (service false) for 10s
INFO[2024-02-22 00:01:16] 🗒️ Running netperf TCP_RR (service false) for 10s
blablabla
INFO[2024-02-22 00:01:38] Cleaning resources created by k8s-netperf
INFO[2024-02-22 00:01:39] ⏰ Waiting for client-across Deployment to deleted...
INFO[2024-02-22 00:02:10] ⏰ Waiting for server Deployment to deleted... |
Type of change
Description
Refactoring drivers code, all drivers code has been moved to the drivers package, and they implement the new
Driver
interface. Resulting in a more intuitive and reduced code.Now is also possible to select what driver to use, by default
netperf
is enabled, but it's possible to run the test with different combinations of drivers, i.e:$ k8s-netperf --iperf # Will run the test using iperf and netperf
or
$ k8s-netperf --netperf=false --uperf # Will run the test using uperf
Related Tickets & Documents
Checklist before requesting a review