Skip to content

get_all_load_balancers no longer works after stickiness policy is set #200

Open
iancharnas opened this Issue May 17, 2011 · 1 comment

3 participants

@iancharnas
# Create elb session
>>> elb = boto.ec2.elb.ELBConnection()

# Initial output (correct!):
>>> elb.get_all_load_balancers()[0].listeners
[(80, 80, 'HTTP')]

# Set Stickiness Policy:
>>> elb.create_lb_cookie_stickiness_policy(86400,  "mybalancer", "mypolicy")
True
>>> elb.set_lb_policies_of_listener("mybalancer", 80, "mypolicy")
True

# New Output (Wrong!  Output should be "[(80, 80, 'HTTP')]" as it was)
>>> elb.get_all_load_balancers()[0].listeners
[(0, 0, '')]
@natchiketa

I am experiencing this issue as well, but not exactly the same.

I created my first two ELB's using the AWS console, and did not enable stickiness.

My first listener appears correctly, but the second one (the last one) is as iancharnas shows above.

The listeners are as follows (taken from AWS console):
80 (HTTP) forwarding to 80 (HTTP)
443 (HTTPS, Certificate: MY_CERT_NAME) forwarding to 443 (HTTPS)

However, in Boto (using 2.3.0):

>>> lbs = elb.get_all_load_balancers()
>>> prod_lb = lbs[0]
>>> prod_lb.listeners
[(80, 80, 'HTTP'), (0, 0, '')]
@garnaat garnaat was assigned Jul 11, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.