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

Unable to set the credentials for EC2 keychain in the EC2 plugin

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Component/s: ec2-plugin
    • Labels:
      None
    • Environment:
      Jenkins 2.249.1
    • Similar Issues:

      Description

      We updated to Jenkins LTS 2.249.1 and also updated the EC2 plugin to 1.52.

      After performing the update our existing EC2 key pair credentials were lost. It appears that the plugin is now supporting the Jenkins Credentials plugin.

      When we attempted to set the credentials within the Configure Clouds UI, we'd see an error saying that this API required a POST. There was a button to provide the POST request. However, this did not actually save the credentials.

      We have downgraded back to 1.50.3 to be able to continue to get EC2 slaves running again.

        Attachments

          Activity

          Hide
          bgdnlp Bogdan Lp added a comment -

          Same here, but I managed to work around it. Basically, ignore the "POST required" error.

          I added the SSH key through Manage Jenkins -> Manage Credentials, then I selected that key in EC2 plugin. It complained about POST, but I just ignored it. Did the same for all "clouds", then saved. It works now.

          Also, the checkbox to use IAM instance credentials was unchecked, which is why it was failing to launch new instances in my case.

          Show
          bgdnlp Bogdan Lp added a comment - Same here, but I managed to work around it. Basically, ignore the "POST required" error. I added the SSH key through Manage Jenkins -> Manage Credentials, then I selected that key in EC2 plugin. It complained about POST, but I just ignored it. Did the same for all "clouds", then saved. It works now. Also, the checkbox to use IAM instance credentials was unchecked, which is why it was failing to launch new instances in my case.
          Hide
          timja Tim Jacomb added a comment -

          Raihaan Shouhell   fyi 

          Show
          timja Tim Jacomb added a comment - Raihaan Shouhell    fyi 
          Hide
          raihaan Raihaan Shouhell added a comment -

          using the latest version (1.53++) I can't seem to reproduce this error.

           

          I started a new instance set the credentials, saved and went back to the manage page and changed the credentials with no issue

          Show
          raihaan Raihaan Shouhell added a comment - using the latest version (1.53++) I can't seem to reproduce this error.   I started a new instance set the credentials, saved and went back to the manage page and changed the credentials with no issue

            People

            Assignee:
            thoulen FABRIZIO MANFREDI
            Reporter:
            dvenable David Venable
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: