SSL symbolic links pointing to wrong file

Bug #1907279 reported by Graeme Moss
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard Charm
New
Undecided
Unassigned

Bug Description

After a new deployment using vault for certificates I have been unable to get this working on split networks.

I have three spaces:
oam-space
internalapi
externalapi

openstack-dashboard config:
vip: 10.14.64.205
os-public-hostname: dashboard.api.domain.ltd
and the DNS server is MAAS which holds the PTR record.

this meets all the needs of vault to create the certificate but never links them in the right places.

when openstack-dashboard deploys it creates a certificate for the oam-space and then links this to the external space certificates

root@juju-78e782-0-lxd-14:/etc/apache2/ssl/horizon# ls -las
total 40
4 dr-xr-xr-x 2 root root 4096 Dec 8 15:47 .
4 dr-xr-xr-x 3 root root 4096 Dec 8 15:40 ..
4 lrwxrwxrwx 1 root root 83 Dec 8 15:43 cert_10.1.103.18 -> /etc/apache2/ssl/horizon/cert_eth2.juju-78e782-0-lxd-14.con.domain.ltd
4 lrwxrwxrwx 1 root root 83 Dec 8 15:47 cert_10.14.64.205 -> /etc/apache2/ssl/horizon/cert_eth2.juju-78e782-0-lxd-14.con.domain.ltd
4 -rw-r----- 1 root root 3077 Dec 8 15:47 cert_dashboard.api.domain.ltd
4 -rw-r----- 1 root root 3110 Dec 8 15:47 cert_eth2.juju-78e782-0-lxd-14.con.domain.ltd
4 lrwxrwxrwx 1 root root 82 Dec 8 15:43 key_10.1.103.18 -> /etc/apache2/ssl/horizon/key_eth2.juju-78e782-0-lxd-14.con.domain.ltd
4 lrwxrwxrwx 1 root root 82 Dec 8 15:47 key_10.14.64.205 -> /etc/apache2/ssl/horizon/key_eth2.juju-78e782-0-lxd-14.con.domain.ltd
4 -rw-r----- 1 root root 1674 Dec 8 15:47 key_dashboard.api.domain.ltd
4 -rw-r----- 1 root root 1678 Dec 8 15:47 key_eth2.juju-78e782-0-lxd-14.con.domain.ltd

Even with a reissue from vault and removing the relation and adding this back in it keeps the links as is.
I have to delete all files and reissue.

This feels like a race condition

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.