]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/cephadm: Fix mgmt-gateway default port in get_port_start()
authorRedouane Kachach <rkachach@ibm.com>
Fri, 28 Nov 2025 08:38:45 +0000 (09:38 +0100)
committerRedouane Kachach <rkachach@ibm.com>
Thu, 4 Dec 2025 11:27:38 +0000 (12:27 +0100)
commita3cdfb27ec49f711eafe7268c67cfc9c3851b332
tree3eb8879dd5a59dbd15ecc235d7b04ac9ea19eca4
parent2053c2e9134fd261a2585ccbcd6cdd5fb79d4563
mgr/cephadm: Fix mgmt-gateway default port in get_port_start()

The mgmt-gateway port was already defaulted to 443 in most places, but
get_port_start() did not apply this default. Since the output of
get_port_start() is used both to configure the daemon ports which are
later used to to open them in firewalld, this inconsistency meant the
HTTPS port was not opened when firewalld service was active.

This change makes get_port_start() also default to port 443, ensuring
the daemon is configured correctly and the corresponding firewalld port
is opened as expected.

Fixes: https://tracker.ceph.com/issues/74015
Signed-off-by: Redouane Kachach <rkachach@ibm.com>
src/pybind/mgr/cephadm/tests/test_services.py
src/python-common/ceph/deployment/service_spec.py