From 7d669bb4f4be8101952376813b29a0f3742629cf Mon Sep 17 00:00:00 2001 From: Marcelo de Castro Loebens Date: Thu, 22 Aug 2024 15:12:17 -0400 Subject: [PATCH] Change USM internal backend port To implement load balance in using haproxy in internal endpoints, a new proxy frontend was included and binded to the mgmt IP and the private port. Considering this, the default backend port had to be changed from the private port. Since in DC the admin frontend also uses the mgmt IP and (private port + 1), the default backend was changed to (private port + 2), and the alternative backend to the next value. The ports were changed from -> to: - backend default: 5497 -> 5499 - alt backend (slow): 5499 -> 5500 Test plan: PASS: Bootstrap and unlock AIO-SX, verify haproxy.cfg to see if the new frontend is in place and the backend ports are correct. PASS: Bootstrap and unlock DC + SX subcloud, verify haproxy.cfg to see if the new frontend is in place and the backend ports are correct. PASS: Execute 'software deploy precheck', verify that the 'precheck' request is reaching the alternative backend. PASS: Execute 'sw-manager sw-deploy-strategy create', verify that the 'precheck' request is reaching the alternative backend. Story: 2010676 Task: 50912 Change-Id: I234c1db24c6a24c052fbb5933d4804c0a4ed139b Signed-off-by: Marcelo de Castro Loebens --- software/software/authapi/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/software/software/authapi/__init__.py b/software/software/authapi/__init__.py index e0b2f9b7..1d481a8a 100755 --- a/software/software/authapi/__init__.py +++ b/software/software/authapi/__init__.py @@ -10,10 +10,10 @@ API_SERVICE_OPTS = [ default=None, help='IP for the authenticated Unified Software Management API server to bind to'), cfg.IntOpt('auth_api_port', - default=5497, + default=5499, help='The port for the authenticated Unified Software Management API server for GET operations'), cfg.IntOpt('auth_api_alt_port', - default=5499, + default=5500, help='The port for the authenticated Unified Software Management API server for update and slow operations'), cfg.IntOpt('api_limit_max', default=1000,