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

EC2 Plugin: Endpoint does not contain a valid host name

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: ec2-plugin
    • Labels:
      None
    • Similar Issues:

      Description

       The plugin can't figure out correct AWS Region, hence causing the error. The Jenkins has been working behind a forwardproxy well for a long time, but it failed recently out of blue.

      Is there anyway I could mitigate it? i.e. Allow me to override the Region, rather than relying on the Plugin to figure out dynamically.

      java.lang.IllegalArgumentException: Endpoint does not contain a valid host name: https://ec2..amazonaws.com/
      	at com.amazonaws.AmazonWebServiceClient.computeSignerByURI(AmazonWebServiceClient.java:426)
      	at com.amazonaws.AmazonWebServiceClient.setEndpoint(AmazonWebServiceClient.java:318)
      	at hudson.plugins.ec2.util.AmazonEC2FactoryImpl.connect(AmazonEC2FactoryImpl.java:18)
      	at hudson.plugins.ec2.SlaveTemplate$DescriptorImpl.doValidateAmi(SlaveTemplate.java:1504)
      	at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
      	at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:396)
      	at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:408)
      	at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:212)
      	at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:145)
      	at org.kohsuke.stapler.MetaClass$11.doDispatch(MetaClass.java:535)
      	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
      	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:747)
      

        Attachments

          Activity

          Hide
          jin_1234 song jin added a comment -

          It turned out that our sys-admins blocked AWS/ec2::describe-regions without telling me.

          But I am still wondering, can I override the AWS-Region settings in Jenkins? Dynamically figuring out AWS-Region sounds like black-magic that overly-abstracted/complicated things for me.

          Show
          jin_1234 song jin added a comment - It turned out that our sys-admins blocked AWS/ec2::describe-regions without telling me. But I am still wondering, can I override the AWS-Region settings in Jenkins? Dynamically figuring out AWS-Region sounds like black-magic that overly-abstracted/complicated things for me.

            People

            Assignee:
            thoulen FABRIZIO MANFREDI
            Reporter:
            jin_1234 song jin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: