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

JClouds plugin fails on Jenkins v2.28

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      We use the JClouds plugin to provision OpenNebula instances via aws-ec2 api
      Since update to 2.28 the connection fails.

      From the stack trace i guess this is related to JENKINS-38736

      Cannot connect to specified cloud, please check the identity and credentials: Unable to create injector, see the following errors:

      1) Overriding @Provides methods is not allowed.
      @Provides method: org.jclouds.logging.config.LoggingModule.createLoggerFactory()
      overridden by: jenkins.plugins.jclouds.compute.JCloudsCloud$1.createLoggerFactory()
      at com.google.inject.internal.ProviderMethodsModule.getProviderMethods(ProviderMethodsModule.java:163)

      2) Overriding @Provides methods is not allowed.
      @Provides method: org.jclouds.compute.config.BaseComputeServiceContextModule.provideTemplateOptions()
      overridden by: org.jclouds.aws.ec2.compute.config.AWSEC2ComputeServiceContextModule.provideTemplateOptions()
      at com.google.inject.internal.ProviderMethodsModule.getProviderMethods(ProviderMethodsModule.java:163)

      3) Overriding @Provides methods is not allowed.
      @Provides method: org.jclouds.compute.config.BaseComputeServiceContextModule.provideImageExtension()
      overridden by: org.jclouds.aws.ec2.compute.config.AWSEC2ComputeServiceContextModule.provideImageExtension()
      at com.google.inject.internal.ProviderMethodsModule.getProviderMethods(ProviderMethodsModule.java:163)

      4) Overriding @Provides methods is not allowed.
      @Provides method: org.jclouds.compute.config.BaseComputeServiceContextModule.provideSecurityGroupExtension()
      overridden by: org.jclouds.aws.ec2.compute.config.AWSEC2ComputeServiceContextModule.provideSecurityGroupExtension()
      at com.google.inject.internal.ProviderMethodsModule.getProviderMethods(ProviderMethodsModule.java:163)

        Attachments

          Issue Links

            Activity

            Hide
            felfert Fritz Elfert added a comment -

            If you do, make shure you use maven 3.2.x, not maven-3.3! See README.md

            Show
            felfert Fritz Elfert added a comment - If you do, make shure you use maven 3.2.x, not maven-3.3! See README.md
            Hide
            felfert Fritz Elfert added a comment -

            Since I did not get any further feedback, in the meantime, I have released jclouds-plugin v2.9 which runs fine here with 2.28.
            Maybe you want to give that one a try.

            Show
            felfert Fritz Elfert added a comment - Since I did not get any further feedback, in the meantime, I have released jclouds-plugin v2.9 which runs fine here with 2.28. Maybe you want to give that one a try.
            Hide
            felfert Fritz Elfert added a comment -

            @Bernd Farka resp. Georg Brunmayr:
            Did you had any further chance to test this? (It runs fine here)

            Show
            felfert Fritz Elfert added a comment - @Bernd Farka resp. Georg Brunmayr: Did you had any further chance to test this? (It runs fine here )
            Hide
            brunmayr Georg Brunmayr added a comment -

            We have installed the latest version and the original issue is gone.
            The aws ec2 driver against OpenNebula has the tendency to grab all the memory it can get but that's another topic and most likely related to the endpoint. The nova plugin connects fine even though it does not work to provision instances but that's caused by OpenNebula not supporting SecurityGroup creation via the API.

            Show
            brunmayr Georg Brunmayr added a comment - We have installed the latest version and the original issue is gone. The aws ec2 driver against OpenNebula has the tendency to grab all the memory it can get but that's another topic and most likely related to the endpoint. The nova plugin connects fine even though it does not work to provision instances but that's caused by OpenNebula not supporting SecurityGroup creation via the API.
            Hide
            felfert Fritz Elfert added a comment -

            Thank you for your response. Closing this issue now.

            Regarding the memory problem:
            I am going to release v1.11 soon (next week) which contains an important change:

            • Upgrade to jclouds-2.0.0 (which was released last week)
              This also implies that jclouds now supports guice-4.0 which is identical to the
              guice-version used by jenkins itself. This solves many problems and might
              even solve the memory hog.
              So: I'd suggest to upgrade when it's available and simply open another issue, if
              the memory problem persists.
            Show
            felfert Fritz Elfert added a comment - Thank you for your response. Closing this issue now. Regarding the memory problem: I am going to release v1.11 soon (next week) which contains an important change: Upgrade to jclouds-2.0.0 (which was released last week) This also implies that jclouds now supports guice-4.0 which is identical to the guice-version used by jenkins itself. This solves many problems and might even solve the memory hog. So: I'd suggest to upgrade when it's available and simply open another issue, if the memory problem persists.

              People

              • Assignee:
                felfert Fritz Elfert
                Reporter:
                brunmayr Georg Brunmayr
              • Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: