EC2 Autoscaling discovery seems to not work behind corporate proxy
llarsson opened this issue · 4 comments
This setup is admittedly convoluted, but the core issue is this: I am deploying VMs in EC2, and external traffic is forced to go through a corporate proxy. I have set the standard HTTP_PROXY, HTTPS_PROXY, and NO_PROXY variables to their correct values, but EC2 autoscaling group membership discovery fails, regardless.
I have tried downloading the latest release and running it on an Ubuntu host directly, as well as using various Docker images.
As I am not an Erlang coder, I have a hard time determining if any library used for HTTP communication needs any special configuration to honor the standard proxy-related variables. However, it seems to not work at all.
The issue is reported as autocluster: Could not fetch node list from autocluster_aws: instance_discovery.
in the RabbitMQ log.
EC2 discovery uses AWS-specific mechanisms that can use internal AWS networking only. How can a proxy your company has in place affect that?
Autoscaling has to fetch current instance (VM) ID first and that's done using a well-known (and hardcoded) AWS IP. The URL is "http://169.254.169.254/latest/meta-data/instance-id
, to be specific. If that fails, an instance_discovery
error is returned.
I still have no idea how these requests that only can work in an AWS environment can be affected by a corporate proxy.
@llarsson this issue is a question at this point, there is no evidence that this is a bug. I close all issues that are questions so that "real" issues are easy to locate.
What "API calls" are we talking about, for example? All requests issued by this plugin are issued from RabbitMQ nodes, which are running on AWS and not your network.
Sorry but there is still not a whole lot of information about what exactly you are doing and no evidence that this is a problem in this plugin.