Microsoft Azure Enablement: azure-lb missing in Bionic
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
resource-agents (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
High
|
Lucas Kanashiro | ||
Focal |
Fix Released
|
High
|
Lucas Kanashiro |
Bug Description
[Impact]
azure-lb is a handful resources agent if one is maintaining a cluster on Azure platform. azure-lb facilitates the operation of a load balancer implemented by Azure.
In Focal, azure-lb is available, however, to keep all the releases in the same state a patch fixing a bug in azure-lb is needed. This is the upstream patch:
https:/
In Bionic, the agent is not available, and the full feature will be backported as a way to better support the HA stack on Azure. The changes are self-contained since each resource agent is maintained as a separate script.
[Test Case]
On Azure create a Corosync/Pacemaker cluster with 3 VMs and make sure you have the following CIB:
node 1: vm01
node 2: vm02
node 3: vm03
primitive lb-healthprobe azure-lb \
params port=8000 nc="/bin/nc" \
op monitor interval=10 timeout=20
property cib-bootstrap-
The status of the cluster should be:
$ sudo crm status
Cluster Summary:
* Stack: corosync
* Current DC: vm02 (version 2.0.3-4b1f869f0f) - partition with quorum
* Last updated: Wed Dec 9 18:16:32 2020
* Last change: Wed Dec 9 18:16:30 2020 by root via crm_attribute on vm01
* 3 nodes configured
* 1 resource instances configured
Node List:
* Online: [ vm01 vm02 vm03 ]
Full List of Resources:
* lb-healthprobe (ocf::heartbeat
To take advantage of azure-lb resource agent you need to have an Azure load balance configured. You can find information on how to do it here:
https:/
[Where problems could occur]
As mentioned previously each resource agent is maintained as a separate script, so for Focal where the agent is already there we can have a problem in the existent azure-lb resource agent. In Bionic the risk of a regression is quite low since the agent does not exist.
[Original description]
This bug is part of the HA enablement for Microsoft Azure Cloud.
(https:/
"""
Need one additional Azure package to support load balancer. If you refer the
following article, we use Azure load balancer to find the active replica in
availability group for SQL Server and routing connections appropriately.
"""
[rafaeldtinoco@
resource-agents: /usr/lib/
resource-agents: /usr/lib/
resource-agents: /usr/share/
resource-agents: /usr/share/
[rafaeldtinoco@
<nothing>
In Ubuntu we have:
$ rmadison resource-agents
resource-agents | 1:4.1.0~
resource-agents | 1:4.5.0-2ubuntu2 | focal
resource-agents | 1:4.6.1-1ubuntu1 | groovy
In Debian:
$ rmad resource-agents
resource-agents | 1:4.2.0-2+deb10u2 | stable
resource-agents | 1:4.6.1-1~bpo10+1 | buster-backports
resource-agents | 1:4.6.1-1 | testing
resource-agents | 1:4.6.1-1 | unstable
From upstream:
commit 771b49a1
Author: Oyvind Albrigtsen <email address hidden>
Date: Wed Nov 29 14:09:06 2017
azure-lb: new resource agent
(and other commits from 2018 and 2019 as fixes)
[rafaeldtinoco@
v4.1.0-1-g771b49a1
[rafaeldtinoco@
v4.1.1
v4.1.1rc1
Considering version in Bionic is 4.1.0~rc1, we probably lost the new resource by
little. Should be easy to be backported and, after discussing with the SRU
(Stable Releases Update) team member, possible to be consider as HW enablement
within SRU guidelines.
Related branches
- Lucas Kanashiro (community): Approve
- Sergio Durigan Junior (community): Needs Fixing
-
Diff: 374 lines (+334/-1)5 files modifieddebian/changelog (+8/-0)
debian/control (+2/-1)
debian/patches/lp1895343-01-azure-lb-new-resource-agent.patch (+263/-0)
debian/patches/lp1895343-02-azure-lb-Dont-redirect-nc-listener-output-to-pidfile.patch (+59/-0)
debian/patches/series (+2/-0)
- Christian Ehrhardt (community): Approve
- Canonical Server: Pending requested
- git-ubuntu developers: Pending requested
-
Diff: 90 lines (+68/-0)3 files modifieddebian/changelog (+8/-0)
debian/patches/lp1895343-01-azure-lb-Dont-redirect-nc-listener-output-to-pidfile.patch (+59/-0)
debian/patches/series (+1/-0)
- Lucas Kanashiro (community): Needs Fixing
- Canonical Server: Pending requested
- Rafael David Tinoco: Pending requested
-
Diff: 89 lines (+67/-0)3 files modifieddebian/changelog (+7/-0)
debian/patches/lp1895343-01-azure-lb-Dont-redirect-nc-listener-output-to-pidfile.patch (+59/-0)
debian/patches/series (+1/-0)
- Canonical Server: Pending requested
- Lucas Kanashiro: Pending requested
- Rafael David Tinoco: Pending requested
-
Diff: 374 lines (+334/-1)5 files modifieddebian/changelog (+8/-0)
debian/control (+2/-1)
debian/patches/lp1895343-01-azure-lb-new-resource-agent.patch (+263/-0)
debian/patches/lp1895343-02-azure-lb-Dont-redirect-nc-listener-output-to-pidfile.patch (+59/-0)
debian/patches/series (+2/-0)
summary: |
- Azure: azure-lb & azure-events agents should be backported to Bionic + Microsoft Azure Enablement: azure-lb & azure-events missing in Bionic |
Changed in resource-agents (Ubuntu Bionic): | |
status: | New → Confirmed |
Changed in resource-agents (Ubuntu Focal): | |
status: | New → Confirmed |
Changed in resource-agents (Ubuntu Bionic): | |
importance: | Undecided → High |
Changed in resource-agents (Ubuntu Focal): | |
importance: | Undecided → High |
Changed in resource-agents (Ubuntu): | |
status: | New → Fix Released |
description: | updated |
Changed in resource-agents (Ubuntu Focal): | |
status: | Confirmed → In Progress |
Changed in resource-agents (Ubuntu Bionic): | |
assignee: | nobody → Lucas Kanashiro (lucaskanashiro) |
Changed in resource-agents (Ubuntu Focal): | |
assignee: | nobody → Lucas Kanashiro (lucaskanashiro) |
description: | updated |
## To backport (or make sure it exists) to FOCAL:
# azure-lb
commit 771b49a1 (exists)
azure-lb: new resource agent
commit c5e465fc (exists)
azure-lb: remove reference to status from usage
commit d22700fc (needed)
azure-lb: Don't redirect nc listener output to pidfile
# azure-events (to the same code level as in Focal)
commit 2512b396 (v4.2.0) (exists)
Initial version of the AzEvents RA
commit 328bb0e4 (exists)
AzEvents: Use configure to replace shebang line
----
https:/ /docs.microsoft .com/en- us/azure/ virtual- machines/ workloads/ sap/high- availability- guide-suse- nfs (Shows de issue about netcat fix for azure-lb)
----
## To backport (or make sure it exists) to BIONIC:
## azure-lb
commit 771b49a1 (needed)
azure-lb: new resource agent
commit c5e465fc (needed)
azure-lb: remove reference to status from usage
commit d22700fc (needed)
azure-lb: Don't redirect nc listener output to pidfile
## azure-events (to the same code level as in Focal)
commit 2512b396 (v4.2.0) (needed)
Initial version of the AzEvents RA
commit 328bb0e4 (needed)
AzEvents: Use configure to replace shebang line