juju on microstack fails due to certificate issue
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MicroStack |
Triaged
|
Critical
|
Unassigned |
Bug Description
When following the description outlined on this page to the letter, setting up microstack and juju, I encountered an issue. https:/
When issuing juju-bootstrap, I get an error which indicates that the microstack installation only accept https, but the instructions and yaml file uses plain http.
##########
ERROR authentication failed.: authentication failed
caused by: requesting token: request (http://
<head><title>400 The plain HTTP request was sent to HTTPS port</title></head>
##########
When trying to correct the microstack.yaml file and the other references to http to use https instead of plain http, I get:
##########
ERROR authentication failed.: authentication failed
caused by: requesting token: failed executing the request https:/
caused by: Post "https:/
##########
Please advise.
Best regards,
Eskild
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: /192.168. 6.43:5000/ v3 /192.168. 6.43:5000/ v3 certificates: TCCAeWgAwIBAgIU MCVV46GDNqvbNSp PG9fSXZvwCSIwDQ YJKoZIhvcNAQEL BgGA1UEAwwRcmVk LnRoZW9sc2Vucy5 4eXowHhcNMjExMj E3MTY0NDM3 jE3MTY0NDM3WjAc MRowGAYDVQQDDBF yZWQudGhlb2xzZW 5zLnh5ejCC oZIhvcNAQEBBQAD ggEPADCCAQoCggE BALZGUTL/ ILK1B7XWwNnrFv1 P kEwlYfa+ CbGjE0rhAVQ5Fyd fCv8AGNRKBcIhrP DGBV/LFII7B0Xr+ 8u OxyULYwkBdL9cQA /eYg3o97qVcYLcs 4JSkRLDtyxvVlGb aVHgzYtAoe rrK9HWJyzlFXfdm pTAk0VjKqq+ cUhpaGQg7uJ+ tGb/eR1aPgk7HQu gz qnDB67WxWzXKL7l b59/LcSTiKr6klF jv7xj7o8TbeeHf0 VtvDqhjCrDyWSgP dO MzB0SgLHiU5i2ED yP/HcCByVRI9gl7 ZrARelnU5X2dQKW 8c28kc7n8C DUwDwYDVR0TBAgw BgEB/wIBADAiBgN VHREEGzAZghFyZW QudGhlb2xz ocEwKgGKzANBgkq hkiG9w0BAQsFAAO CAQEAgu7wPFn73L CtslNiLExq 1Pp4OunsNpR3o4M ayB1vJIAhJuNQqO QrLw04bLCgTXDS1 y33IcX1RJU jnTyy3bjRDIbSZZ N+kD7/hThILAUR3 BioBJGOHgOhaCqe J+lkbDU0PP G4wCmqATdioLxZd JXAwwTNJKkAvJvZ 34zrKAKmNk+ /2vFNwra9c9ZVL sf5aUuiuBP7YQR8 qV5wsa1CafyuVOO h1jFl9/ ruwxVafvGpiEKmz QDh aKxVMZZX5h7Fh4k 55cVk+7hWw9aNh0 yq064oqN5f6z84y f5Wg6ZVn69
microstack:
type: openstack
auth-types: [userpass]
endpoint: https:/
regions:
microstack:
endpoint: https:/
ca-
- |
-----BEGIN CERTIFICATE-----
MIIC/
BQAwHDEaM
WhcNMzExM
ASIwDQYJK
rHsa3j3ao
af0b78dvu
3Qq4zsWhE
r/
lJHjQTmH5
AwEAAaM3M
ZW5zLnh5e
Bb0KhaSC8
3JQA4hkPG
b2uFnHqFT
Ywoi43wBM
QxIsBS4OP
dw==
-----END CERTIFICATE-----
[0] /var/snap/ microstack/ common/ etc/microstack. rc /juju.is/ docs/olm/ openstack microstack/ common/ etc/ssl/ certs/cacert. pem
[1] https:/
[2] /var/snap/