qa - test_dashboard fails on keyerror

Bug #1879541 reported by Adam Stokes
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Charmed Kubernetes Testing
Fix Released
High
Adam Stokes

Bug Description

Our test_dashboard is failing on 1.18/edge with the following traceback:

Traceback (most recent call last):
  File "/var/lib/jenkins/slaves/jenkins-slave-3/workspace/validate-ck/arch/amd64/channel/edge/node/runner-validate/series/bionic/snap_version/1.18/edge/jobs/integration/validation.py", line 343, in test_dashboard
    user = config["users"][0]["user"]["username"]
KeyError: 'username'

The full report: https://jenkaas.s3.amazonaws.com/41f14796-6d90-4c06-8a7b-f56094d80b57/index.html
The Crashdump: http://jenkaas.s3-website-us-east-1.amazonaws.com/41f14796-6d90-4c06-8a7b-f56094d80b57/artifacts.tar.gz

Revision history for this message
George Kraft (cynerva) wrote :

This is caused by the switch from basic auth to token auth. The kubeconfig won't have username and password anymore, it will just be token.

no longer affects: cdk-addons
Changed in charmed-kubernetes-testing:
importance: Undecided → High
status: New → Triaged
Revision history for this message
John George (jog) wrote :

It looks like a change was made to the test suite at commit 851d79ba948bd71b454f8d35829c4869c92614f1 to switch over to token. However, Solutions QA is running the validation suite against stable, so we are now seeing a KeyError on 'token'

=========================== short test summary info ============================
FAILED jobs/integration/validation.py::test_dashboard - KeyError: 'token'
========================= 1 failed, 1 warning in 1.13s =========================
ERROR: InvocationError: '/home/ubuntu/k8s-validation/.tox/py3/bin/pytest -v -s --junit-xml=/home/ubuntu/project/generated/kubernetes/k8s-suite/k8s-suite-junit.xml --controller=foundations-aws --model=kubernetes /home/ubuntu/k8s-validation/jobs/integration/validation.py::test_dashboard'

The bundle and test logs are available by following the link at the bottom of this test run:

https://solutions.qa.canonical.com/#/qa/testRun/f55bb927-6b9f-47a9-ae08-371bb24d850c

Revision history for this message
Peter Jose De Sousa (pjds) wrote :

Another issue which arises from this when using the OpenID provider is a keyerror on "token".

Revision history for this message
Peter Jose De Sousa (pjds) wrote :

Pastebin with the token issue: https://pastebin.canonical.com/p/V4FwybRh7v/

Revision history for this message
Adam Stokes (adam-stokes) wrote :

I believe as soon as we can get ck1 out with the updated charms your tests will be resolved

Revision history for this message
Adam Stokes (adam-stokes) wrote :
Changed in charmed-kubernetes-testing:
status: Triaged → Fix Released
assignee: nobody → Adam Stokes (adam-stokes)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.