This repository was archived by the owner on Oct 6, 2023. It is now read-only.
Open
Conversation
* (enh): handle systemd + read_only check * enh following Tanguy review
only for 21.10.x
* (enh/fix): mariadbd version and start mariadb using mysqld_safe * variabilize mysql binary * fix ps in process variable * Update bin/mysql-sync-bigdb.sh Co-authored-by: omercier <32134301+omercier@users.noreply.github.com> Co-authored-by: omercier <32134301+omercier@users.noreply.github.com>
fix type on nmcli command
…o PS-34-Manual-HA
|
SonarQube Quality Gate
|
Fix syntax through ssh sudo
fix syntax through ssh sudo
psamecentreon
approved these changes
Sep 15, 2022
|
SonarQube Quality Gate
|
1 similar comment
|
SonarQube Quality Gate
|
omercier
reviewed
Apr 19, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.








Description
On recent OS (RHEL8 for example), the declaration of a VIP over if-cfg-@VIP_IF_NAME@:1 file is no working anymore, we can't enable or disable VIP with ifup and ifdown command, Interface name isn't recognized.
So we can use "nmcli" command who works on the different OS (RHEL8, CentOS7, OL8, etc...)
It's needed with documentation of centreon-ha in 21.10 centreon/centreon-documentation#1585
Type of change
Target serie
How this pull request can be tested ?
In replacement of ifup and ifdown commands after declaration of "VIP_IF_NAME:1"
We use nmcli commands for more compatibilities in recent OS (for ex on RHEL 8, "VIP_IF_NAME:1" is no more functionnal)
to add a VIP:
nmcli con mod "@CENTRAL_VIP_IFNAME@" +ipv4.addresses "@CENTRAL_VIP_IPADDR@/@CENTRAL_VIP_CIDR_NETMASK@"and to take effect
nmcli connection up @CENTRAL_VIP_IFNAME@to remove a VIP:
nmcli con mod "@CENTRAL_VIP_IFNAME@" -ipv4.addresses "@CENTRAL_VIP_IPADDR@/@CENTRAL_VIP_CIDR_NETMASK@"and to take effect
nmcli connection up @CENTRAL_VIP_IFNAME@This also prevents VIP up in slave node.
Checklist
Community contributors & Centreon team