Based on the docs for "Connect using Public IP" (Setting is Off For Me) it should use the Private IP with a VPC+PublicIP setup:
It uses the private ip once (ln3 below), fails because the instance is "initializing" and then tries using the public dns forever (ln9 below).
My AWS Slave Agents:
- "Associate Public IP": YES
- VPC: Yes
- Result: Public DNS / IP. Private DNS / IP.
Note that if I select "Use Private DNS" it tries to connect to the private dns (but again fails because we don't have the aws private dns in our local network where jenkins master is). If I select "Connect using Public IP" it doesn't seem to have any affect with the above setup (tries using the private ip once, and then public dns forever after that). I can't seem anyway to use the private ip with a VPC+"Associate Public IP" setup.
Maybe remove "Use Private DNS" and "Connect Using Public IP" options and just make it a "Connection:" dropdown allowing users 5 options (easier to understand):
- Public DNS
- Public IP
- Private DNS
- Private IP
If on "Auto" let the plugin do it's auto thing (whatever it does now), however, if a user specify's one explicitly, always use that. Or make it so it doesn't use the private ip just once in the above setup.
Let me know if more info is needed.
|Field||Original Value||New Value|
|Assignee||FABRIZIO MANFREDI [ thoulen ]||Daniel Garzon [ dgarzon ]|
|Assignee||Daniel Garzon [ dgarzon ]||FABRIZIO MANFREDI [ thoulen ]|
|Resolution||Fixed [ 1 ]|
|Status||Open [ 1 ]||Fixed but Unreleased [ 10203 ]|
|Status||Fixed but Unreleased [ 10203 ]||Resolved [ 5 ]|