Skip to content
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

Successful creation of aggregator for sonobuoy, but e2e plugin not running #1977

Open
whweihe opened this issue Jun 21, 2024 · 0 comments
Open

Comments

@whweihe
Copy link

whweihe commented Jun 21, 2024

What steps did you take and what happened:
[A clear and concise description of what the bug is.]
Execute command "sonobuoy run --e2e-focus=sig-apps --e2e-skip=Feature:DaemonSetUpdateSurge,Feature:IndexedJob,Feature:StatefulSet,Feature:StatefulSetAutoDeletePVC,Feature:StatefulUpgrade,Feature:SuspendJob --plugin-env e2e.E2E_DRYRUN=true --aggregator-permissions=clusterAdmin --skip-preflight --plugin=e2e --wait" to display: "INFO[0000] create request issued name=sonobuoy namespace= resource=namespaces
INFO[0000] create request issued name=sonobuoy-serviceaccount namespace=sonobuoy resource=serviceaccounts
INFO[0000] create request issued name=sonobuoy-serviceaccount-sonobuoy namespace= resource=clusterrolebindings
INFO[0000] create request issued name=sonobuoy-serviceaccount-sonobuoy namespace= resource=clusterroles
INFO[0000] create request issued name=sonobuoy-config-cm namespace=sonobuoy resource=configmaps
INFO[0000] create request issued name=sonobuoy-plugins-cm namespace=sonobuoy resource=configmaps
INFO[0000] create request issued name=sonobuoy namespace=sonobuoy resource=pods
INFO[0000] create request issued name=sonobuoy-aggregator namespace=sonobuoy resource=services
16:35:47 Waiting for the aggregator status to become Running. Currently the status is Status: Running
",
the corresponding pod log message is "time="2024-06-21T08:35:29Z" level=info msg="Scanning plugins in ./plugins.d (pwd: /)"
time="2024-06-21T08:35:29Z" level=info msg="Scanning plugins in /etc/sonobuoy/plugins.d (pwd: /)"
time="2024-06-21T08:35:29Z" level=info msg="Directory (/etc/sonobuoy/plugins.d) does not exist"
time="2024-06-21T08:35:29Z" level=info msg="Scanning plugins in /sonobuoy/plugins.d (pwd: /)"
time="2024-06-21T08:35:29Z" level=info msg="Directory (
/sonobuoy/plugins.d) does not exist"
time="2024-06-21T08:35:29Z" level=warning msg="unable to list pods with label "sonobuoy-component=aggregator": Unauthorized"
time="2024-06-21T08:35:29Z" level=warning msg="retrying with deprecated label "run=sonobuoy-master""
time="2024-06-21T08:35:29Z" level=error msg="error setting initial pod status: failed to get the name of the aggregator pod to set the status on: failed to get aggregator pod: unable to list pods with label "run=sonobuoy-master": Unauthorized"
time="2024-06-21T08:35:29Z" level=warning msg="Unauthorized to query cluster nodes; continuing with empty node list. Daemonset plugins will be ignored as a result."
time="2024-06-21T08:35:29Z" level=info msg="Starting server Expected Results: [{global e2e 0}]"
time="2024-06-21T08:35:29Z" level=info msg="Starting annotation update routine"
time="2024-06-21T08:35:29Z" level=info msg="Starting aggregation server" address=0.0.0.0 port=8080
time="2024-06-21T08:35:29Z" level=warning msg="unable to list pods with label "sonobuoy-component=aggregator": Unauthorized"
time="2024-06-21T08:35:29Z" level=warning msg="retrying with deprecated label "run=sonobuoy-master""
time="2024-06-21T08:35:29Z" level=warning msg="unable to list pods with label "sonobuoy-component=aggregator": Unauthorized"
time="2024-06-21T08:35:29Z" level=warning msg="retrying with deprecated label "run=sonobuoy-master""
time="2024-06-21T08:35:29Z" level=info msg="couldn't annotate sonobuoy pod" error="failed to get name of the aggregator pod to annotate: failed to get aggregator pod: unable to list pods with label "run=sonobuoy-master": Unauthorized"
time="2024-06-21T08:35:29Z" level=info msg="Last update to annotations on exit"
time="2024-06-21T08:35:29Z" level=warning msg="unable to list pods with label "sonobuoy-component=aggregator": Unauthorized"
time="2024-06-21T08:35:29Z" level=warning msg="retrying with deprecated label "run=sonobuoy-master""
time="2024-06-21T08:35:29Z" level=info msg="couldn't annotate sonobuoy pod" error="failed to get name of the aggregator pod to annotate: failed to get aggregator pod: unable to list pods with label "run=sonobuoy-master": Unauthorized"
time="2024-06-21T08:35:29Z" level=info msg="Shutting down aggregation server"
time="2024-06-21T08:35:29Z" level=error msg="error running plugins: couldn't get aggregator pod: unable to list pods with label "run=sonobuoy-master": Unauthorized"
time="2024-06-21T08:35:29Z" level=error msg="error running queries: failed to get APIHelper from REST config: could not get api group resources: the server has asked for the client to provide credentials"
time="2024-06-21T08:35:29Z" level=info msg="Log lines after this point will not appear in the downloaded tarball."
time="2024-06-21T08:35:29Z" level=info msg="Invoking plugin cleanup" plugin=e2e
time="2024-06-21T08:35:29Z" level=error msg="error deleting pods for Job-67f77ca42b2048c8: Unauthorized"
time="2024-06-21T08:35:29Z" level=error msg="Failed to update status for plugin e2e: failed to get the existing status: failed to get namespace sonobuoy: Unauthorized"
time="2024-06-21T08:35:30Z" level=error msg="error updating pod status: failed to get the existing status: failed to get namespace sonobuoy: Unauthorized"
time="2024-06-21T08:35:30Z" level=info msg="Results available at /tmp/sonobuoy/202406210835_sonobuoy_184b052d-05ad-4cf6-a219-3860ebdd7179.tar.gz"
time="2024-06-21T08:35:30Z" level=info msg="no-exit was specified, sonobuoy is now blocking"
".

What did you expect to happen:

Normal execution of the e2e plugin shows results

Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]

Environment:

  • Sonobuoy version: v0.57.1
  • Kubernetes version: (use kubectl version):v1.28.5
  • Kubernetes installer & version:
  • Cloud provider or hardware configuration:
  • OS (e.g. from /etc/os-release):
  • Sonobuoy tarball (which contains * below)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant