-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
System Properties
Name ↓
Value
executable-war /usr/share/jenkins/jenkins.war
file.encoding ISO-8859-1
file.encoding.pkg sun.io
file.separator /
hudson.diyChunking true
java.awt.graphicsenv sun.awt.X11GraphicsEnvironment
java.awt.headless true
java.awt.printerjob sun.print.PSPrinterJob
java.class.path /usr/share/jenkins/jenkins.war
java.class.version 50.0
java.endorsed.dirs /usr/lib/jvm/java-6-openjdk/jre/lib/endorsed
java.ext.dirs /usr/lib/jvm/java-6-openjdk/jre/lib/ext:/usr/java/packages/lib/ext
java.home /usr/lib/jvm/java-6-openjdk/jre
java.io.tmpdir /tmp
java.library.path /usr/lib/jvm/java-6-openjdk/jre/lib/amd64/server:/usr/lib/jvm/java-6-openjdk/jre/lib/amd64:/usr/lib/jvm/java-6-openjdk/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib/jni:/lib:/usr/lib
java.runtime.name OpenJDK Runtime Environment
java.runtime.version 1.6.0_23-b23
java.specification.name Java Platform API Specification
java.specification.vendor Sun Microsystems Inc.
java.specification.version 1.6
java.vendor Sun Microsystems Inc.
java.vendor.url http://java.sun.com/
java.vendor.url.bug http://java.sun.com/cgi-bin/bugreport.cgi
java.version 1.6.0_23
java.vm.info mixed mode
java.vm.name OpenJDK 64-Bit Server VM
java.vm.specification.name Java Virtual Machine Specification
java.vm.specification.vendor Sun Microsystems Inc.
java.vm.specification.version 1.0
java.vm.vendor Sun Microsystems Inc.
java.vm.version 20.0-b11
javax.accessibility.assistive_technologies org.GNOME.Accessibility.JavaBridge
jna.platform.library.path /usr/lib/x86_64-linux-gnu:/lib/x86_64-linux-gnu:/lib64:/usr/lib:/lib
line.separator
os.arch amd64
os.name Linux
os.version 3.0.0-14-generic
path.separator :
sun.arch.data.model 64
sun.boot.class.path /usr/lib/jvm/java-6-openjdk/jre/lib/resources.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/rt.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/jsse.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/jce.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/charsets.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/netx.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/plugin.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/rhino.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/modules/jdk.boot.jar:/usr/lib/jvm/java-6-openjdk/jre/classes
sun.boot.library.path /usr/lib/jvm/java-6-openjdk/jre/lib/amd64
sun.cpu.endian little
sun.cpu.isalist
sun.io.unicode.encoding UnicodeLittle
sun.java.command /usr/share/jenkins/jenkins.war --webroot=/var/cache/jenkins/war --httpPort=8080 --ajp13Port=-1
sun.java.launcher SUN_STANDARD
sun.jnu.encoding ISO-8859-1
sun.management.compiler HotSpot 64-Bit Tiered Compilers
sun.os.patch.level unknown
svnkit.http.methods Digest,Basic,NTLM,Negotiate
svnkit.ssh2.persistent false
user.country US
user.dir /
user.home /var/lib/jenkins
user.language en
user.name jenkins
user.timezone America/Los_Angeles
Environment Variables
Name ↓
Value
HOME /var/lib/jenkins
JENKINS_HOME /var/lib/jenkins
LANG en_US
LD_LIBRARY_PATH /usr/lib/jvm/java-6-openjdk/jre/lib/amd64/server:/usr/lib/jvm/java-6-openjdk/jre/lib/amd64:/usr/lib/jvm/java-6-openjdk/jre/../lib/amd64
LOGNAME jenkins
MAIL /var/mail/jenkins
PATH /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
PWD /var/lib/jenkins
SHELL /bin/bash
SHLVL 1
TERM xterm
USER jenkins
_ /usr/bin/daemon
Plugins
Name ↓
Version
Enabled
Pinned
ant 1.1 true false
javadoc 1.0 true false
copy-to-slave 1.4 true false
copy-data-to-workspace-plugin 1.0 true false
subversion 1.34 true false
maven-plugin 1.444 true false
cvs 1.6 true false
bazaar 1.17 true false
translation 1.8 true false
ec2 1.13 true false
ssh-slaves 0.21 true false
artifactdeployerSystem Properties Name ↓ Value executable-war /usr/share/jenkins/jenkins.war file.encoding ISO-8859-1 file.encoding.pkg sun.io file.separator / hudson.diyChunking true java.awt.graphicsenv sun.awt.X11GraphicsEnvironment java.awt.headless true java.awt.printerjob sun.print.PSPrinterJob java.class.path /usr/share/jenkins/jenkins.war java.class.version 50.0 java.endorsed.dirs /usr/lib/jvm/java-6-openjdk/jre/lib/endorsed java.ext.dirs /usr/lib/jvm/java-6-openjdk/jre/lib/ext:/usr/java/packages/lib/ext java.home /usr/lib/jvm/java-6-openjdk/jre java.io.tmpdir /tmp java.library.path /usr/lib/jvm/java-6-openjdk/jre/lib/amd64/server:/usr/lib/jvm/java-6-openjdk/jre/lib/amd64:/usr/lib/jvm/java-6-openjdk/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib/jni:/lib:/usr/lib java.runtime.name OpenJDK Runtime Environment java.runtime.version 1.6.0_23-b23 java.specification.name Java Platform API Specification java.specification.vendor Sun Microsystems Inc. java.specification.version 1.6 java.vendor Sun Microsystems Inc. java.vendor.url http://java.sun.com/ java.vendor.url.bug http://java.sun.com/cgi-bin/bugreport.cgi java.version 1.6.0_23 java.vm.info mixed mode java.vm.name OpenJDK 64-Bit Server VM java.vm.specification.name Java Virtual Machine Specification java.vm.specification.vendor Sun Microsystems Inc. java.vm.specification.version 1.0 java.vm.vendor Sun Microsystems Inc. java.vm.version 20.0-b11 javax.accessibility.assistive_technologies org.GNOME.Accessibility.JavaBridge jna.platform.library.path /usr/lib/x86_64-linux-gnu:/lib/x86_64-linux-gnu:/lib64:/usr/lib:/lib line.separator os.arch amd64 os.name Linux os.version 3.0.0-14-generic path.separator : sun.arch.data.model 64 sun.boot.class.path /usr/lib/jvm/java-6-openjdk/jre/lib/resources.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/rt.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/jsse.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/jce.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/charsets.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/netx.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/plugin.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/rhino.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/modules/jdk.boot.jar:/usr/lib/jvm/java-6-openjdk/jre/classes sun.boot.library.path /usr/lib/jvm/java-6-openjdk/jre/lib/amd64 sun.cpu.endian little sun.cpu.isalist sun.io.unicode.encoding UnicodeLittle sun.java.command /usr/share/jenkins/jenkins.war --webroot=/var/cache/jenkins/war --httpPort=8080 --ajp13Port=-1 sun.java.launcher SUN_STANDARD sun.jnu.encoding ISO-8859-1 sun.management.compiler HotSpot 64-Bit Tiered Compilers sun.os.patch.level unknown svnkit.http.methods Digest,Basic,NTLM,Negotiate svnkit.ssh2.persistent false user.country US user.dir / user.home /var/lib/jenkins user.language en user.name jenkins user.timezone America/Los_Angeles Environment Variables Name ↓ Value HOME /var/lib/jenkins JENKINS_HOME /var/lib/jenkins LANG en_US LD_LIBRARY_PATH /usr/lib/jvm/java-6-openjdk/jre/lib/amd64/server:/usr/lib/jvm/java-6-openjdk/jre/lib/amd64:/usr/lib/jvm/java-6-openjdk/jre/../lib/amd64 LOGNAME jenkins MAIL /var/mail/jenkins PATH /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games PWD /var/lib/jenkins SHELL /bin/bash SHLVL 1 TERM xterm USER jenkins _ /usr/bin/daemon Plugins Name ↓ Version Enabled Pinned ant 1.1 true false javadoc 1.0 true false copy-to-slave 1.4 true false copy-data-to-workspace-plugin 1.0 true false subversion 1.34 true false maven-plugin 1.444 true false cvs 1.6 true false bazaar 1.17 true false translation 1.8 true false ec2 1.13 true false ssh-slaves 0.21 true false artifactdeployer
When using the ec2-plugin, we configured a connection to EC2 as well as a Eucalyptus cloud. When we tried some operations on the Eucalyptus cloud (specifically looking at logs of an instance or terminating an instance), we get an error;
Jan 25, 2012 9:44:17 AM hudson.plugins.ec2.EC2Slave terminate
WARNING: Failed to terminate EC2 instance: i-CCA241AF
com.xerox.amazonws.ec2.EC2Exception: Client error : The instance ID 'i-cca241af' does not exist
at com.xerox.amazonws.ec2.Jec2.makeRequestInt(Jec2.java:2359)
at com.xerox.amazonws.ec2.Jec2.terminateInstances(Jec2.java:776)
at hudson.plugins.ec2.EC2Slave.terminate(EC2Slave.java:95)
at hudson.plugins.ec2.EC2Computer.doDoDelete(EC2Computer.java:103)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
Eucalyptus never generates this error message. I ran tests with euca2ools and typica to reproduce this error and supplying upper or lower case instance ids never caused this error to come back.
Looking at the ec2-plugin code (EC2Cloud.java), there's a method get() which returns an EC2Cloud instance. The code will only retrieve a cloud of the class EC2Cloud which precluded having more than one cloud of that type registered.
public static EC2Cloud get()
If the intention is to allow more than one cloud of a specific type to be used at the same time, this should be addressed.
Perhaps using clouds.getByName(..) would help fix this.