canonical / juju-backup-all

Tool for backing up charms, local juju configs, and juju controllers.
Apache License 2.0
0 stars 5 forks source link

File Not Found CA File/Path #55

Open MichaelThamm opened 6 days ago

MichaelThamm commented 6 days ago

Issue

I am testing out juju-backup-all and ran into the following issue:

Traceback (most recent call last):
  File "/snap/juju-backup-all/21/lib/python3.8/site-packages/kubernetes/stream/ws_client.py", line 559, in portforward_call
    websocket = create_websocket(configuration, url, headers)
  File "/snap/juju-backup-all/21/lib/python3.8/site-packages/kubernetes/stream/ws_client.py", line 489, in create_websocket
    websocket.connect(url, **connect_opt)
  File "/snap/juju-backup-all/21/lib/python3.8/site-packages/websocket/_core.py", line 256, in connect
    self.sock, addrs = connect(
  File "/snap/juju-backup-all/21/lib/python3.8/site-packages/websocket/_http.py", line 151, in connect
    sock = _ssl_socket(sock, options.sslopt, hostname)
  File "/snap/juju-backup-all/21/lib/python3.8/site-packages/websocket/_http.py", line 311, in _ssl_socket
    sock = _wrap_sni_socket(sock, sslopt, hostname, check_hostname)
  File "/snap/juju-backup-all/21/lib/python3.8/site-packages/websocket/_http.py", line 251, in _wrap_sni_socket
    context.load_verify_locations(cafile=cafile, capath=capath)
FileNotFoundError: [Errno 2] No such file or directory

Steps to reproduce:

  1. Run the installation steps
  2. juju-backup-all

Context:

juju whoami

Controller:  microk8s
Model:       cos-model
User:        admin

juju controllers

Use --refresh option with this command to see the latest information.

Controller        Model      User   Access     Cloud/Region         Models  Nodes    HA  Version
foundations-maas  lma-maas   admin  superuser  localhost/localhost       2      1  none  3.5.3  
lxd               juju-lint  admin  superuser  localhost/localhost       2      1  none  3.5.3  
microk8s*         cos-model  admin  superuser  microk8s/localhost        4      1     -  3.5.3

Thoughts

The README could have some minimal docs describing steps to configure the necessary CA files