From 11e89d4be9b5fb37cd79820f292a5889720e815b Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Thu, 2 Mar 2023 08:53:50 -0800 Subject: [PATCH] Remove gitea08 from haproxy We have added gitea09 to haproxy which allows us to remove one of the old servers. Remove gitea08 since gitea01 is the host that gets backups currently. Note that this only removes gitea08 from haproxy and does not remove it from gerrit replication or our inventory. We need to do this in a multistep process to avoid a situation where gitea08 is still serving requests but not receiving updates from Gerrit. Next step will be to disable replication. Then we can remove it from inventory and finally delete it altogether. Change-Id: I26f368936819a41a7369d2d116e04151301ee0e2 --- doc/source/gitea.rst | 10 +++++----- inventory/service/group_vars/gitea-lb.yaml | 6 ------ 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/doc/source/gitea.rst b/doc/source/gitea.rst index 367cdd369b..87d5635890 100644 --- a/doc/source/gitea.rst +++ b/doc/source/gitea.rst @@ -46,15 +46,15 @@ To see the current status of all servers:: echo "show stat" | socat /var/haproxy/run/stats stdio -To disable a server (eg, gitea08):: +To disable a server (eg, gitea09):: - echo "disable server balance_git_http/gitea08.opendev.org" | socat /var/haproxy/run/stats stdio - echo "disable server balance_git_https/gitea08.opendev.org" | socat /var/haproxy/run/stats stdio + echo "disable server balance_git_http/gitea09.opendev.org" | socat /var/haproxy/run/stats stdio + echo "disable server balance_git_https/gitea09.opendev.org" | socat /var/haproxy/run/stats stdio To re-enable a server:: - echo "enable server balance_git_http/gitea08.opendev.org" | socat /var/haproxy/run/stats stdio - echo "enable server balance_git_https/gitea08.opendev.org" | socat /var/haproxy/run/stats stdio + echo "enable server balance_git_http/gitea09.opendev.org" | socat /var/haproxy/run/stats stdio + echo "enable server balance_git_https/gitea09.opendev.org" | socat /var/haproxy/run/stats stdio To run these commands and others interactively, issue the prompt command to haproxy:: diff --git a/inventory/service/group_vars/gitea-lb.yaml b/inventory/service/group_vars/gitea-lb.yaml index 5ab512e3ab..208eed4ad0 100644 --- a/inventory/service/group_vars/gitea-lb.yaml +++ b/inventory/service/group_vars/gitea-lb.yaml @@ -24,9 +24,6 @@ gitea_lb_listeners: - name: 'gitea07.opendev.org' address: '38.108.68.134:3080' check_method: 'check' - - name: 'gitea08.opendev.org' - address: '38.108.68.205:3080' - check_method: 'check' - name: 'gitea09.opendev.org' address: '38.108.68.113:3080' check_method: 'check' @@ -55,9 +52,6 @@ gitea_lb_listeners: - name: 'gitea07.opendev.org' address: '38.108.68.134:3081' check_method: 'check check-ssl verify none' - - name: 'gitea08.opendev.org' - address: '38.108.68.205:3081' - check_method: 'check check-ssl verify none' - name: 'gitea09.opendev.org' address: '38.108.68.113:3081' check_method: 'check check-ssl verify none'