Comment 1 for bug 1955133

Revision history for this message
Billy Olsen (billy-olsen) wrote :

Thanks for taking the time to raise this bug. Indeed, the instructions at the website need to be updated; thank you for pointing that out.

If you source the microstack.rc file [0] and walk through the local add cloud instructions with interactive prompt for juju [1], it should set you straight as Juju will import the certificate into the cloud configuration based on the currently configure OS_* environment values.

Alternatively, you can update your ~/.local/share/juju/clouds.yaml file to add the ca-certificates key field with the contents of the microstack self-signed certificate [2].

As a note, you'll still need to go through the steps of creating the local simplestreams metadata sources.

An example of the one on my box is shown below for clarity:

clouds:
  microstack:
    type: openstack
    auth-types: [userpass]
    endpoint: https://192.168.6.43:5000/v3
    regions:
      microstack:
        endpoint: https://192.168.6.43:5000/v3
    ca-certificates:
    - |
      -----BEGIN CERTIFICATE-----
      MIIC/TCCAeWgAwIBAgIUMCVV46GDNqvbNSpPG9fSXZvwCSIwDQYJKoZIhvcNAQEL
      BQAwHDEaMBgGA1UEAwwRcmVkLnRoZW9sc2Vucy54eXowHhcNMjExMjE3MTY0NDM3
      WhcNMzExMjE3MTY0NDM3WjAcMRowGAYDVQQDDBFyZWQudGhlb2xzZW5zLnh5ejCC
      ASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALZGUTL/ILK1B7XWwNnrFv1P
      rHsa3j3aokEwlYfa+CbGjE0rhAVQ5FydfCv8AGNRKBcIhrPDGBV/LFII7B0Xr+8u
      af0b78dvuOxyULYwkBdL9cQA/eYg3o97qVcYLcs4JSkRLDtyxvVlGbaVHgzYtAoe
      3Qq4zsWhErrK9HWJyzlFXfdmpTAk0VjKqq+cUhpaGQg7uJ+tGb/eR1aPgk7HQugz
      r/qnDB67WxWzXKL7lb59/LcSTiKr6klFjv7xj7o8TbeeHf0VtvDqhjCrDyWSgPdO
      lJHjQTmH5MzB0SgLHiU5i2EDyP/HcCByVRI9gl7ZrARelnU5X2dQKW8c28kc7n8C
      AwEAAaM3MDUwDwYDVR0TBAgwBgEB/wIBADAiBgNVHREEGzAZghFyZWQudGhlb2xz
      ZW5zLnh5eocEwKgGKzANBgkqhkiG9w0BAQsFAAOCAQEAgu7wPFn73LCtslNiLExq
      Bb0KhaSC81Pp4OunsNpR3o4MayB1vJIAhJuNQqOQrLw04bLCgTXDS1y33IcX1RJU
      3JQA4hkPGjnTyy3bjRDIbSZZN+kD7/hThILAUR3BioBJGOHgOhaCqeJ+lkbDU0PP
      b2uFnHqFTG4wCmqATdioLxZdJXAwwTNJKkAvJvZ34zrKAKmNk+/2vFNwra9c9ZVL
      Ywoi43wBMsf5aUuiuBP7YQR8qV5wsa1CafyuVOOh1jFl9/ruwxVafvGpiEKmzQDh
      QxIsBS4OPaKxVMZZX5h7Fh4k55cVk+7hWw9aNh0yq064oqN5f6z84yf5Wg6ZVn69
      dw==
      -----END CERTIFICATE-----

[0] /var/snap/microstack/common/etc/microstack.rc
[1] https://juju.is/docs/olm/openstack
[2] /var/snap/microstack/common/etc/ssl/certs/cacert.pem