Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
According to a user at AWS: "Once the fencing agent triggers an action (i.e.: StopInstance) it will run DescribeInstance with 1 second interval, which could cause Throttling and unexpected behaviors. It is not recommended to "burst" DescribeInstance like that and a check every 20s/30s would be sufficient in my view."
We're awaiting details from the customer about the type of behavior such throttling might cause and any potential impact to the (a) the cluster performing fencing or (b) any other clusters or instances in the environment.
This 1-second delay is hard-coded into async_set_multi_power_fn() in fencing.py. If this RFE is acked, we could either:
(a) add the option for only the fence_aws agent, or
(b) add the option for all fence agents.
With option (a), we could default it to either 1 (the current behavior) or to whatever we determine is a good balance between quick fencing and AWS best practices. The customer suggests that we "implement a waiter handler so it automatically waits until the instance switches to 'Stopped' without a need for a 'DescribeInstance' call." For example:
- https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ec2.html#EC2.Waiter.InstanceStopped
There is also a handler for InstanceRunning:
- https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ec2.html#EC2.Waiter.InstanceRunning
With option (b), we would want to default it to 1, to keep the existing quick-fencing behavior unless configured otherwise.
-----
Version-Release number of selected component (if applicable):
fence-agents-aws-4.2.1-30.el8_1.1.noarch
fence-agents-common-4.2.1-30.el8_1.1.noarch
-----
Steps to Test:
1. Configure the newly added delay/sleep_time option.
2. Use some form of debugging (e.g., print statements, verbose output, etc.) to verify how often the get_power_status() calls within the fence agent are being made.
-----
Additional info:
Customer is willing to assist in testing and provide info/suggestions from the AWS side.
Comment 5Oyvind Albrigtsen
2021-04-30 11:45:27 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory (fence-agents bug fix and enhancement update), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2021:4148