ssl not served when https-service-endpoints are enabled
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Cinder Charm |
Confirmed
|
Low
|
Billy Olsen | ||
OpenStack Glance Charm |
Confirmed
|
Low
|
Billy Olsen | ||
OpenStack Nova Cloud Controller Charm |
Confirmed
|
Low
|
Billy Olsen | ||
cinder (Juju Charms Collection) |
Invalid
|
Low
|
Billy Olsen | ||
glance (Juju Charms Collection) |
Invalid
|
Low
|
Billy Olsen | ||
nova-cloud-controller (Juju Charms Collection) |
Invalid
|
Low
|
Billy Olsen |
Bug Description
In a MAAS deployment which is serving providing dns for the nodes the service endpoints are registered with keystone as the fqdn of the node name. The apache proxy used to configure the SSL will do so for a virtual host which is named which is not used by the time the request hits the server since the clients etc will turn the hostname into an IP.
For example, in my virtual MAAS cluster I have a cinder node which is named cinder.
Listen 8776
<VirtualHost cinder.
ServerName cinder.wolsen.local
SSLEngine on
...
PRoxyPreser
</VirtualHost>
The problem is that this configuration binds the virtualhost for cinder.wolsen.local which isn't served because the requests come in for the IP address.
Attempts to communicate with the service using (for example) the cinder list command fails with the following:
ubuntu@horizon:~$ cinder list
ERROR: Unable to establish connection: [Errno 1] _ssl.c:510: error:140770FC:SSL routines:
ubuntu@horizon:~$
Changed in cinder (Juju Charms Collection): | |
assignee: | nobody → Billy Olsen (billy-olsen) |
tags: | added: maas |
Changed in glance (Juju Charms Collection): | |
assignee: | nobody → Billy Olsen (billy-olsen) |
Changed in nova-cloud-controller (Juju Charms Collection): | |
assignee: | nobody → Billy Olsen (billy-olsen) |
Changed in cinder (Juju Charms Collection): | |
status: | New → Confirmed |
Changed in glance (Juju Charms Collection): | |
status: | New → Confirmed |
Changed in nova-cloud-controller (Juju Charms Collection): | |
status: | New → Confirmed |
tags: | removed: maas |
Changed in charm-cinder: | |
assignee: | nobody → Billy Olsen (billy-olsen) |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in cinder (Juju Charms Collection): | |
status: | Confirmed → Invalid |
Changed in charm-glance: | |
assignee: | nobody → Billy Olsen (billy-olsen) |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in glance (Juju Charms Collection): | |
status: | Confirmed → Invalid |
Changed in charm-nova-cloud-controller: | |
assignee: | nobody → Billy Olsen (billy-olsen) |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in nova-cloud-controller (Juju Charms Collection): | |
status: | Confirmed → Invalid |
I was able to recreate the bug using a MAAS installation, but upon further investigation it appears that it is caused by the network splits and not MAAS environment specifically.
In this case, there are no os-xxx-networks defined and there are only single units deployed of each service. This result is a configuration which has an invalid https configuration.