kube-burner / kube-burner-ocp

OpenShift integrations and workloads for kube-burner
https://kube-burner.github.io/kube-burner-ocp/
Apache License 2.0
4 stars 18 forks source link

[BUG] web-burner workload is broken for newer kube-burner versions #42

Closed josecastillolema closed 6 months ago

josecastillolema commented 6 months ago

Bug Description

Output of kube-burner-ocp version

$ kube-burner-ocp version
Version: 1.2.2

Describe the bug

When using kube-burner 1.7.12 web-burner workload completes successfully. When moving to 1.9.5 several objects creation fails:

time="2024-04-03 11:12:28" level=error msg="Error creating object ServiceAccount/internal-kubectl: namespaces \"serving-ns-0\" not found" file="create.go:296"
rsevilla87 commented 6 months ago

What web-burner workload is that?

rsevilla87 commented 6 months ago

What web-burner workload is that?

Nevermind, just realized is web-burner-init...

The ServiceAccount internal-kubectl defined in https://github.com/kube-burner/kube-burner-ocp/blob/712d88051dd74016504f1502ae59ee2b05c5e18a/cmd/config/web-burner-init/permissionsServiceAccount.yml#L1-L5 is the only object defined in the job and has the namespace defined in it, meaning that kube-burner-ocp won't create it.

This behaviour was introduced in https://github.com/kube-burner/kube-burner/pull/533 which is part of https://github.com/kube-burner/kube-burner/releases/tag/v1.9.0, the different version of kube-burner-ocp depends on this kube-burner version or higher,

To fix the issue I recommend you to remove the namespace declaration from the objects where is not necessary.