Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement procedure to switch haproxy mode #269

Open
ilia1243 opened this issue Oct 27, 2022 · 2 comments
Open

Implement procedure to switch haproxy mode #269

ilia1243 opened this issue Oct 27, 2022 · 2 comments
Assignees
Labels

Comments

@ilia1243
Copy link
Contributor

ilia1243 commented Oct 27, 2022

It is necessary to implement maintenance procedure which switches haproxy mode. See maintenance mode and maintenance type.

Also, during cluster installation over an existing cluster, the mode should be reverted to default (not maintenance).

The high level proposal is described https://github.com/Netcracker/KubeMarine/pull/435/files/fc4536ea4ab1ab45cebed5b937888b9ad7d67dc4#r1197530570

@pranavcracker
Copy link
Collaborator

Maintenace mode support for haproxy load balancer is already present in current code.

With maintenance_mode: True in haproxy properties in services and maintenance-type: "not bind" paramter in vrrp properties, we can set the haproxy in maintenance mode.

We need a mechanism for setting the maintenace mode on/off on haproxy.

@pranavcracker
Copy link
Collaborator

We have a draft plan to create a new procedure named as "haproxy_mntc.py" and working on creating this procedure which will enable/disable maintenance mode on HAProxy.

This procedure will do the following-

  1. Check if maintenance mode is supported by the cluster be checking presence of below parameter
loadbalancer:
    haproxy:
      maintenance_mode: True

If above mentioned parameter is missing, exit the procudure with error msg.

  1. Do the config chnages required to enable/disable maintenance mode
  2. Perform daemon reload and service restart for haproxy

Usage of this new procedure will be like 

kubemarine haproxy_mntc enable/disable

@pranavcracker pranavcracker linked a pull request May 4, 2023 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants