test_clusterip_service_endpoint reports unauthorized when trying to get pods
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Charmed Kubernetes Testing |
New
|
Undecided
|
Unassigned |
Bug Description
Testing on baremetal
we ran into a case where test_cluster_
This is weird because the command is running from the k8s units themselves using juju run. We have a bug on baremetal about k8s master failing to connect to itself, LP: #1929234 it could be the same issue, but it manifested strangely, and everything is active-idle in juju status.
I'm going to submit a patch to the test to print the unit names that are checking the pod for some extra information; but something went wrong with the k8s unit.
Test run at: https:/
Crashdump at: https:/
Test result xml at: https:/
all tests which hit this bug can be found at: https:/
_______
Traceback (most recent call last):
File "/home/
await cleanup()
File "/home/
await retry_async_
File "/home/
if await func(*args):
File "/home/
pod = get_pod_yaml()
File "/home/
out = sh.kubectl.
File "/home/
return RunningCommand(cmd, call_args, stdin, stdout, stderr)
File "/home/
self.wait()
File "/home/
self.
File "/home/
raise exc
sh.ErrorReturnC
RAN: /snap/bin/kubectl get po -o yaml --selector=
STDOUT:
apiVersion: v1
items: []
kind: List
metadata:
resourceVersion: ""
selfLink: ""
STDERR:
error: You must be logged in to the server (Unauthorized)
description: | updated |