Rally fails to communicate with Kubernetes cluster

Bug #1798375 reported by Juha Kosonen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Rally
Fix Released
Undecided
Juha Kosonen

Bug Description

When env is created using kubeconfig file ($HOME/.kube/config), the client key and certificates refer to files stored in /tmp. However, these files are removed along with the command execution completion (https://github.com/kubernetes-client/python-base/blob/2d514ce31d9735de91fdfa65981e9d5e7a4476bf/config/kube_config.py#L56), and so an attempt to actually use the env will fail.

bash-4.4# rally env create --from-sysenv --name k8s-tst
Your system environment includes specifications of 1 platform(s).
Discovery information:
         - existing@kubernetes : Available.
Using environment: 1a5266bc-97e2-448b-8bff-aea54a96e8f3
+----------------------+-----------------------------------------------+
| uuid | 1a5266bc-97e2-448b-8bff-aea54a96e8f3 |
| name | k8s-tst |
| status | READY |
| created_at | 2018-10-11T08:04:34.422857 |
| updated_at | 2018-10-11T08:04:35.155855 |
| description | |
| extras | {} |
| platform: kubernetes | { |
| | "certificate-authority": "/tmp/tmpGhX7ME", |
| | "client-certificate": "/tmp/tmp9dIfsJ", |
| | "tls_insecure": true, |
| | "client-key": "/tmp/tmp2hf7wE", |
| | "server": "https://10.21.15.222:8383" |
| | } |
+----------------------+-----------------------------------------------+

bash-4.4# rally env check
Env `k8s-tst (1a5266bc-97e2-448b-8bff-aea54a96e8f3)' :-(
+-----------+------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Available | Platform | Message |
+-----------+------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :-( | kubernetes | Something went wrong: [('system library', 'fopen', 'No such file or directory'), ('BIO routines', 'BIO_new_file', 'no such file'), ('x509 certificate routines', 'X509_load_cert_crl_file', 'system lib')] |
+-----------+------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

bash-4.4# rally version
1.2.1

Changed in rally:
assignee: nobody → Juha Kosonen (juha-kosonen)
Revision history for this message
Juha Kosonen (juha-kosonen) wrote :
Changed in rally:
status: New → Fix Released
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.