check_hostname requires server_hostname when using container_infra endpoint with HTTPS (2024.2)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Magnum |
Confirmed
|
Undecided
|
Esmerlin Joel Mieses |
Bug Description
Openstack: 2024.2
Ubuntu: 22.04
Deployment Tool: Kolla Ansible
Steps to reproduce:
From version 2024.2 of Magnum when using Horizon (navigate to Project->Container Infra->Cluster or Cluster Templates) "/api/container
Horizon error log:
error invoking apiclient
Traceback (most recent call last):
File "/var/lib/
data = function(self, request, *args, **kw)
File "/var/lib/
result = magnum.
File "/var/lib/
return magnumclient(
File "/var/lib/
return self._list(
File "/var/lib/
resp, body = self.api.
File "/var/lib/
resp, body_iter = self._http_
File "/var/lib/
conn.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.send(msg)
File "/usr/lib/
self.connect()
File "/var/lib/
self.sock = context.
File "/usr/lib/
return self.sslsocket_
File "/usr/lib/
raise ValueError(
ValueError: check_hostname requires server_hostname
Internal Server Error: /api/container_
After analysis the problem exists in python-magnumclient from version 4.6.0 (https:/
According to documentation when using check_hostname with CERT_REQUIRED you must also pass server_hostname to wrap_socket
(Python 3.12 doc reference: https:/
description: | updated |
Changed in magnum: | |
status: | New → Confirmed |
Changed in magnum: | |
assignee: | nobody → Esmerlin Joel Mieses (symph0nic) |
I haven't had the chance to look at this yet. If you are able to fix this, can you send up a patch please?