This repository has been archived by the owner on Oct 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Ps 34 manual ha #59
Open
cedricmeschin
wants to merge
26
commits into
develop
Choose a base branch
from
PS-34-Manual-HA
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Ps 34 manual ha #59
Conversation
This file contains 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
* (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 <[email protected]> Co-authored-by: omercier <[email protected]>
fix type on nmcli command
…o PS-34-Manual-HA
SonarQube Quality Gate 0 Bugs No Coverage information |
Fix syntax through ssh sudo
fix syntax through ssh sudo
psamecentreon
approved these changes
Sep 15, 2022
SonarQube Quality Gate 0 Bugs No Coverage information |
1 similar comment
SonarQube Quality Gate 0 Bugs No Coverage information |
omercier
reviewed
Apr 19, 2023
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