-
Notifications
You must be signed in to change notification settings - Fork 398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Errors removing instances from classic ELB with ec2_elb
#384
Comments
Files identified in the description:
If these files are inaccurate, please update the |
this appears to be a continuation of this closed, but never addressed issue from before this was split out into a collection: ansible/ansible#50367 |
@jonesetc Which version of ansible did this work in? |
@gravesm It works in every version when using python 2, but has never worked in python 3. If you look at the PR i linked above it fully explains and attempts to address the issue. |
elb_instance - initial integration tests SUMMARY Rewrite elb_instance (ec2_elb) for boto3 ISSUE TYPE Feature Pull Request COMPONENT NAME elb_instance ADDITIONAL INFORMATION fixes: #384 Reviewed-by: Markus Bergholz <[email protected]> Reviewed-by: Alina Buzachis <None> Reviewed-by: None <None>
Hi @jonesetc sorry it's taken so long. The original fix you linked to has been merged, and as such a fix should be in place for the next release of this collection. Hopefully we'll also get this module rewritten using the more recent AWS SDK (boto3). |
SUMMARY
When attempting to use the
ec2_elb
task to deregister an EC2 instance from a classic ELB there is an error in the task that causes a failure. I believe that this is because of an attempt to sort the load balancer objects returned from boto here:community.aws/plugins/modules/ec2_elb.py
Line 268 in b7afd18
I'm not sure how this has ever worked if this is the issue though. This was stumbled upon while attempting to upgrade from an older version of ansible that packaged this task in its release.
ISSUE TYPE
COMPONENT NAME
ec2_elb
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Running a local action in a docker
python:3
containerSTEPS TO REPRODUCE
Have an instance in 2 classic ELBs in us-east-1
create and run dummy playbook:
EXPECTED RESULTS
instance is removed from ELBs and those names are added as a fact as described in the docs for this task.
ACTUAL RESULTS
an internal error is thrown pointing to a comparison of incomparable objects
TypeError: '<' not supported between instances of 'LoadBalancer' and 'LoadBalancer'
The text was updated successfully, but these errors were encountered: