(how to get fence_aws working with bionic and aws <- keywords for google)
# Bionic fence_aws tests with the backport (from the ppa): [rafaeldtinoco@bionic01 ~]$ crm status Stack: corosync Current DC: bionic01 (version 1.1.18-2b07d5c5a9) - partition with quorum Last updated: Thu Oct 15 01:25:05 2020 Last change: Thu Oct 15 01:25:01 2020 by root via cibadmin on bionic01 3 nodes configured 1 resource configured Online: [ bionic01 bionic02 bionic03 ] Full list of resources: fence-bionic (stonith:fence_aws): Started bionic01 ---- and then I fail on purpose the interconnect on node03 (bionic03): [rafaeldtinoco@bionic01 ~]$ crm status Stack: corosync Current DC: bionic01 (version 1.1.18-2b07d5c5a9) - partition with quorum Last updated: Thu Oct 15 01:26:57 2020 Last change: Thu Oct 15 01:25:01 2020 by root via cibadmin on bionic01 3 nodes configured 1 resource configured Node bionic03: UNCLEAN (offline) Online: [ bionic01 bionic02 ] Full list of resources: fence-bionic (stonith:fence_aws): Started bionic01 and the AWS console I could see machine being restarted. After bionic03 was restarted... ---- [rafaeldtinoco@bionic01 ~]$ crm status Stack: corosync Current DC: bionic01 (version 1.1.18-2b07d5c5a9) - partition with quorum Last updated: Thu Oct 15 01:27:01 2020 Last change: Thu Oct 15 01:25:01 2020 by root via cibadmin on bionic01 3 nodes configured 1 resource configured Node bionic03: UNCLEAN (offline) Online: [ bionic01 bionic02 ] Full list of resources: fence-bionic (stonith:fence_aws): Started bionic01 ---- I need to fix something: fence_aws agent requires python-request and python-boto3 libraries to be installed. I will have to put those as fence-agents Recommends. I have also to check a requirement on "plug" argument (as it is not really required for fence_aws to work). The way I declared the primitive was: primitive fence-bionic stonith:fence_aws \ params \ access_key=xxxxxxxx \ secret_key="xxxxxxxx" \ region=us-east-1 \ pcmk_host_map="bionic01:i-068e134de1bedxxxx;bionic02:i-0136eddd045cexxxx;bionic03:i-0de279ab4e6d6xxxx" \ power_timeout=240 \ pcmk_reboot_timeout=480 \ pcmk_reboot_retries=4 property cib-bootstrap-options: \ have-watchdog=false \ dc-version=1.1.18-2b07d5c5a9 \ cluster-infrastructure=corosync \ stonith-enabled=on \ stonith-action=reboot \ no-quorum-policy=stop \ cluster-name=bionic -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1894323 Title: Add fence_aws fencing from v4.6.0 agent to Bionic To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/fence-agents/+bug/1894323/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs