Skip to content

Commit 1bc5adb

Browse files
authored
Merge pull request #3442 from mrveiss/fix/issue-3431
fix(ansible): rename backend_port to backend_nginx_port in distributed_setup (#3431)
2 parents 48af562 + 4e2db5a commit 1bc5adb

5 files changed

Lines changed: 12 additions & 8 deletions

File tree

autobot-slm-backend/ansible/roles/distributed_setup/defaults/main.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ health_check_enabled: true
4242
health_check_interval: 60 # seconds
4343
health_check_endpoints:
4444
- name: "Backend API"
45-
url: "https://{{ coordinator_host }}:8443/api/health" # Issue #956: HTTPS:8443 since #858/#861
45+
url: "https://{{ coordinator_host }}:{{ backend_nginx_port }}/api/health" # Issue #956: HTTPS:8443 since #858/#861
4646
expected_status: 200
4747
- name: "Redis"
4848
host: "{{ hostvars[groups['redis'][0]]['ansible_host'] }}"
@@ -60,7 +60,11 @@ backup_destinations:
6060
- local_data
6161

6262
# Service ports (from SSOT)
63-
backend_port: 8443
63+
# backend_nginx_port: external HTTPS port exposed by nginx (TLS termination).
64+
# Do NOT define backend_port here — the backend role owns that variable (8001,
65+
# plain HTTP, uvicorn bind port). Defining it here would override the backend
66+
# role's default when distributed_setup runs after backend in the same play.
67+
backend_nginx_port: 8443
6468
frontend_port: 443
6569
redis_port: 6379
6670
npu_worker_port: 8081

autobot-slm-backend/ansible/roles/distributed_setup/templates/check-health.sh.j2

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ echo "=========================================="
2222
echo ""
2323

2424
# Check coordinator
25-
echo -n "Checking Backend Coordinator ({{ coordinator_host }}:{{ backend_port }})... "
26-
if curl -s --max-time 5 "http://{{ coordinator_host }}:{{ backend_port }}/api/health" >/dev/null 2>&1; then
25+
echo -n "Checking Backend Coordinator ({{ coordinator_host }}:{{ backend_nginx_port }})... "
26+
if curl -s --max-time 5 "https://{{ coordinator_host }}:{{ backend_nginx_port }}/api/health" >/dev/null 2>&1; then
2727
echo -e "${GREEN}OK${NC}"
2828
else
2929
echo -e "${RED}Failed${NC}"
@@ -43,7 +43,7 @@ fi
4343

4444
echo ""
4545
echo "Service URLs:"
46-
echo " Backend API: http://{{ coordinator_host }}:{{ backend_port }}"
46+
echo " Backend API: https://{{ coordinator_host }}:{{ backend_nginx_port }}"
4747
{% for node in fleet_nodes %}
4848
echo " {{ node.name }}: http://{{ node.host }}:{{ node.port }}"
4949
{% endfor %}

autobot-slm-backend/ansible/roles/distributed_setup/templates/distributed.env.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ AUTOBOT_DEPLOYMENT_MODE=distributed
66

77
# Coordinator configuration
88
AUTOBOT_COORDINATOR_HOST={{ coordinator_host }}
9-
AUTOBOT_BACKEND_PORT={{ backend_port }}
9+
AUTOBOT_BACKEND_NGINX_PORT={{ backend_nginx_port }}
1010

1111
# Fleet node hostnames (from inventory)
1212
{% for node in fleet_nodes %}

autobot-slm-backend/ansible/roles/distributed_setup/templates/fleet_registry.json.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"generated_at": "{{ ansible_date_time.iso8601 }}",
33
"coordinator": {
44
"host": "{{ coordinator_host }}",
5-
"port": {{ backend_port }}
5+
"port": {{ backend_nginx_port }}
66
},
77
"fleet_nodes": [
88
{% for node in fleet_nodes %}

autobot-slm-backend/ansible/roles/distributed_setup/templates/fleet_topology.yml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ generated_at: "{{ ansible_date_time.iso8601 }}"
77
coordinator:
88
hostname: "{{ coordinator_host }}"
99
ip: "{{ coordinator_host }}"
10-
port: {{ backend_port }}
10+
port: {{ backend_nginx_port }}
1111
services:
1212
- backend-api
1313
- ollama

0 commit comments

Comments
 (0)