[Bug 1895343] Re: Microsoft Azure Enablement: azure-lb & azure-events missing in Bionic
** Merge proposal linked: https://code.launchpad.net/~lucaskanashiro/ubuntu/+source/resource-agents/+git/resource-agents/+merge/395104 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1895343 Title: Microsoft Azure Enablement: azure-lb missing in Bionic To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/resource-agents/+bug/1895343/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1895343] Re: Microsoft Azure Enablement: azure-lb & azure-events missing in Bionic
** Description changed: + [Impact] + + azure-lb and azure-events are handful resources agents if one is + maintaining a cluster on Azure platform. azure-lb facilitate the + operation of a load balancer implemented by Azure and azure-events + notifies when some events in the Azure platform happens to help the + cluster to adjust itself. + + In Focal, both resource agents are 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://github.com/ClusterLabs/resource-agents/commit/d22700fc + + In Bionic, those agents are not available, and the full features 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 + primitive notifier azure-events \ + op monitor interval=10 + clone clone-notifier notifier + property cib-bootstrap-options: \ + have-watchdog=false \ + dc-version=2.0.3-4b1f869f0f \ + cluster-infrastructure=corosync \ + cluster-name=clufocal \ + no-quorum-policy=stop \ + last-lrm-refresh=1603822692 \ + maintenance-mode=false + + 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 + * 4 resource instances configured + + Node List: + * Online: [ vm01 vm02 vm03 ] + + Full List of Resources: + * lb-healthprobe(ocf::heartbeat:azure-lb): Started vm02 + * Clone Set: clone-notifier [notifier]: + * Started: [ vm01 vm02 vm03 ] + + To take advantage of azure-lb resource agents you need to have an Azure + load balance configured. You can find information on how to do it here: + + https://docs.microsoft.com/en-us/azure/load-balancer/quickstart-load- + balancer-standard-public-cli + + [Where problems could occur] + + As mentioned previously each resource agent is maintained as a separate + script, so for Focal where the agents are already there we can have a + problem in the existent azure-lb resource agent (the one patched). In + Bionic the risk of a regression is quite low since those agents do not + exist. + + [Original description] + This bug is part of the HA enablement for Microsoft Azure Cloud. (https://discourse.ubuntu.com/t/ubuntu-ha-cluster-in-microsoft-azure-cloud/) """ 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@focal ~]$ apt-file list resource-agents | grep -i azure resource-agents: /usr/lib/ocf/resource.d/heartbeat/azure-events resource-agents: /usr/lib/ocf/resource.d/heartbeat/azure-lb resource-agents: /usr/share/man/man7/ocf_heartbeat_azure-events.7.gz resource-agents: /usr/share/man/man7/ocf_heartbeat_azure-lb.7.gz [rafaeldtinoco@bionic ~]$ apt-file list resource-agents | grep -i azure In Ubuntu we have: $ rmadison resource-agents - resource-agents | 1:4.1.0~rc1-1ubuntu1.2 | bionic-updates - resource-agents | 1:4.5.0-2ubuntu2 | focal - resource-agents | 1:4.6.1-1ubuntu1 | groovy + resource-agents | 1:4.1.0~rc1-1ubuntu1.2 | bionic-updates + resource-agents | 1:4.5.0-2ubuntu2 | focal + resource-agents | 1:4.6.1-1ubuntu1 | groovy - In Debian: + 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 Date: Wed Nov 29 14:09:06 2017 - azure-lb: new resource agent + azure-lb: new resource agent (and other commits from 2018 and 2019 as fixes) [rafaeldtinoco@upstream resource-agents]$ git describe --tags 771b49a1 v4.1.0-1-g771b49a1 [rafaeldtinoco@upstream resource-agents]$ git tag --contains 771b49a1 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. ** Changed in: resource-agents (Ubuntu Focal) Status: Confirmed => In Progress ** Changed in: resource-agents (Ubuntu Bionic)
[Bug 1895343] Re: Microsoft Azure Enablement: azure-lb & azure-events missing in Bionic
** Merge proposal linked: https://code.launchpad.net/~rafaeldtinoco/ubuntu/+source/resource-agents/+git/resource-agents/+merge/392747 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1895343 Title: Microsoft Azure Enablement: azure-lb & azure-events missing in Bionic To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/resource-agents/+bug/1895343/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1895343] Re: Microsoft Azure Enablement: azure-lb & azure-events missing in Bionic
For Focal... I think we should SRU: [rafaeldtinoco@groovy resource-agents]$ git log --oneline v4.5.0..HEAD -- heartbeat/azure-lb d22700fc azure-lb: Don't redirect nc listener output to pidfile that is the only fix I backported to Bionic (in the SRU being proposed) and I think that it should also be SRU'ed to Focal as the fix is straightforward. In regards to azure-events: >From Focal to HEAD upstream we have: [rafaeldtinoco@groovy resource-agents]$ git log --oneline v4.5.0..HEAD -- heartbeat/azure-events* 1ab5d71b azure-events: report error if jsondata not received f2bf1d8a azure-events: import URLError and encode postData when necessary 57424bd1 azure-events: only decode() when exec() output not of type str cc69a8fa azure-events: handle exceptions in urlopen (#1496) but.. from Focal to Groovy we have only: cc69a8fa azure-events: handle exceptions in urlopen (#1496) I think there won't be anything to be done unless we have a real problem we can have a test case for (and solve in another SRU). -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1895343 Title: Microsoft Azure Enablement: azure-lb & azure-events missing in Bionic To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/resource-agents/+bug/1895343/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1895343] Re: Microsoft Azure Enablement: azure-lb & azure-events missing in Bionic
For Bionic, I think it's okay to have azure-lb backported as it is a standalone shell script that will act as a resource agent. Unfortunately I don't see AzEvents being backported and accepted as SRU just because it takes some more changes for it to be integrated to existing Bionic resource-agents. These are the patches implementing the AzEvents (renamed to azure-events later): 328bb0e 2018-07-18 10:11 -0700 TNiekamp AzEvents: Use configure to replace shebang line 416f0b1 2018-09-14 15:21 -0700 TNiekamp Implemented review feedback from krig e7b1a18 2018-10-17 09:10 +0200 KGrönlund dev: AzEvents: Use pacemaker commands to set standby 9890deb 2018-10-17 09:06 +0200 KGrönlund dev: AzEvents: Start using ocf.py ca15b9d 2018-10-18 09:23 +0200 KGrönlund dev: azure-events: Add custom user agent and it would require the ocf.py to be brought as well, and then all the compilation changes regarding auto tools to recognize python scripts... not suitable for a SRU, for sure. With that said, I'll keep my merge request to bring *at least* the azure-lb resource agent to Bionic at: https://code.launchpad.net/~rafaeldtinoco/ubuntu/+source/resource- agents/+git/resource-agents/+merge/392746 My suggestion to those who need azure-events is to either migrate to Focal or Groovy, or to use the back-ported Groovy HA stack at: https://launchpad.net/~ubuntu-ha/+archive/ubuntu/groovy-ha-stack ** Changed in: resource-agents (Ubuntu Bionic) Status: Confirmed => In Progress -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1895343 Title: Microsoft Azure Enablement: azure-lb & azure-events missing in Bionic To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/resource-agents/+bug/1895343/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1895343] Re: Microsoft Azure Enablement: azure-lb & azure-events missing in Bionic
** Merge proposal linked: https://code.launchpad.net/~rafaeldtinoco/ubuntu/+source/resource-agents/+git/resource-agents/+merge/392746 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1895343 Title: Microsoft Azure Enablement: azure-lb & azure-events missing in Bionic To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/resource-agents/+bug/1895343/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1895343] Re: Microsoft Azure Enablement: azure-lb & azure-events missing in Bionic
For BIONIC, azure-events also has to have: commit cb87d027 azure-events: change message log level for the non action messages Reduces the verbosity on the log when the RA has no events to process. The messages can still be seen using the verbose parameter. commit d2c47ec3 Fix implicit bytes conversion that breaks py3. Reduces the amount of errors messages using default value on crm_attribute commit ca15b9dc dev: azure-events: Add custom user agent commit 9890deba dev: AzEvents: Start using ocf.py (#1161) commit e7b1a18a dev: AzEvents: Use pacemaker commands to set standby commit 416f0b1f Implemented review feedback from krig So it can be in the same level as Focal. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1895343 Title: Microsoft Azure Enablement: azure-lb & azure-events missing in Bionic To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/resource-agents/+bug/1895343/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1895343] Re: Microsoft Azure Enablement: azure-lb & azure-events missing in Bionic
## 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 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1895343 Title: Microsoft Azure Enablement: azure-lb & azure-events missing in Bionic To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/resource-agents/+bug/1895343/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs