Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-34533

Do not call getPublicDnsName

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • ec2-plugin
    • None

      in ec2-plugin/src/main/java/hudson/plugins/ec2/ssh/EC2UnixLauncher.java

      on line 372 in function `getEC2HostAddress()`

      there is a line:

      ```
      String host = inst.getPublicDnsName();
      ```

      This assumes that DNS Hostnames are enabled for the VPC which the slave instance is in, however, by default DNS is not enabled. This causes an error when attempting to relaunch slave instances in VPC, but *NOT* when launching new instances.

      The best fix would be to remove ALL usage of Public DNS and instead only use public IP or private DNS, both which are guaranteed to exist (I think).

            francisu Francis Upton
            johnny_shields Johnny Shields
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: