janeczku / elbv2-catalog

0 stars 3 forks source link

Doesn't create ALB despite correct AWS keys provided #2

Open Dmitry1987 opened 7 years ago

Dmitry1987 commented 7 years ago

Hi, I tried to launch this item, downloaded and used the 2 yml files in "new stack" in rancher. provided AWS keys and stuff, in env variables. Added proper label with new needed ALB name.

but it tries to edit one of my random existing ALBs, production one... its name starts with "a" and its first in list probably, when this tool fetches list of ALBs.

it didn't created new ALB btw, haven't seen it attempt to do it (i would've sees it attempts, despite readonly keys, in cloudTrail, but it didn't tried to create new ALB)

i'm lucky i did this experiment with "read only" AWS keys :D

so, the error i got in log of this container is:

1/5/2017 3:43:06 PMtime="2017-01-05T13:43:06Z" level=info msg="Starting Rancher External LoadBalancer service"
1/5/2017 3:43:06 PMtime="2017-01-05T13:43:06Z" level=info msg="Environment variable 'LB_POLL_INTERVAL' not set. Using default interval 1000"
1/5/2017 3:43:06 PMtime="2017-01-05T13:43:06Z" level=info msg="Configured AWS Application Load Balancer provider in region us-west-2 and VPC vpc-XXXXXXXXXXXX"
1/5/2017 3:43:06 PMtime="2017-01-05T13:43:06Z" level=info msg="Healthcheck handler is listening on :1000"
1/5/2017 3:43:07 PMtime="2017-01-05T13:43:07Z" level=error msg="Failed to update provider: Failed to get LB configs from provider: Failed to get load ELBv2 load balancers: Failed to get listeners for AXXXXX-Graylog-Production: While parsing HealthCheckPort: strconv.ParseInt: parsing \"traffic-port\": invalid syntax"

@janeczku any ideas why it doesn't function? i really want to try this stack. would be awesome when its polished and working. thanks!

janeczku commented 7 years ago

@Dmitry1987 thanks for reporting this bug. I need to fix parsing the HealthCheckPort property for the target groups.

but it tries to edit one of my random existing ALBs

I can assure you that it only fetches the information on the existing ALBs - not changing them! 😄

Dmitry1987 commented 7 years ago

@janeczku do you know in which rancher version this will be "officially" available in catalog? it's a pretty cool item for AWS users :) , gj!