Change By: michael d (06/Mar/13 8:42 AM)
Description: some background :
running jenkins 1.504 and vsphere-cloud-plugin 0.10 .  vsphere client 4.1.0 and ESXi 4.1.0

steps to reproduce : 
create a new cloud in jenkins settings 
create a new slave to use the cloud configured earlier with a machine name and a snapshot name to revert to on launch (force vm launch = true)
test the configuration and get "Virtual Machine found successfully"

launch the slave and nothing is written to the log. just the animated sphere is rolling but nothing there

check with Jenkins log file
 and see the following loop  : 
{{ INFO: [vsphere] Starting Virtual Machine... }}
{{ Mar 6, 2013 10: 20 24 :21 AM org.jenkinsci.plugins.vSphereCloud InternalLog }}
{{ INFO: [vsphere] Reverting to snapshot:michael }}
{{ Mar 6, 2013 10: 22 26 :21 AM hudson.slaves.SlaveComputer tryReconnect }}
{{ INFO: Attempting to reconnect vsphere }}
{{
Looking at vsphere events, i can see the user logs in and logs out, If i look into the specific machine events list I don't see anything.
** This happens only when setting a snapshot. without a snapshot everything works fine.

Also tried, as suggested by plugin owner, to Set the slave to no snapshot.  Get it running and connected.  Then, while connected, set the snapshot to a valid value.  Also, set the "What to do when the slave is disconnected" to "Shutdown and Revert".  Then disconnect the slave (kill the slave agent or hit Disconnect in Jenkins).  See if both the power down AND revert commands are sent to the VM by looking at the vSphere task list.

results: from Jenkins log file i see :
INFO: [vsphere] Running disconnect procedure...
Mar 6, 2013 10: 22 19 : 21 50  AM org.jenkinsci.plugins.vSphereCloud InternalLog }}
{{ INFO: [vsphere]  Starting  Shutting down  Virtual Machine... }}
{{ Mar 6, 2013 10: 22 19 : 21 50  AM org.jenkinsci.plugins.vSphereCloud InternalLog }}
{{ INFO: [vsphere]  Reverting to snapshot:michael}}  Powering down hard
{{ Mar 6, 2013 10: 24 19 : 21 50  AM  hudson  org . slaves jenkinsci . SlaveComputer tryReconnect}} plugins.vSphereCloud InternalLog
{{ INFO:  Attempting to reconnect  [  vsphere }} ] Got an exception
{{ Mar 6, 2013 10: 24 19 : 21 50  AM org.jenkinsci.plugins.vSphereCloud InternalLog }}
{{ INFO: [vsphere]  Starting Virtual Machine  com . vmware . vim25 . }} RestrictedVersion
{{ Mar 6, 2013 10: 24 19 : 21 50  AM org.jenkinsci.plugins.vSphereCloud InternalLog }}
{{ INFO: [vsphere]  Reverting to snapshot:michael}}  Printed exception
{{ Mar 6, 2013 10: 26 19 : 21 50  AM hudson. slaves remoting . SlaveComputer tryReconnect}} Channel$2 handle
{{INFO SEVERE :  Attempting  Failed  to  reconnect  execute command close (channel  vsphere }} )
{{Mar 6, 2013 10 java.lang.NullPointerException
        at java.util.regex.Matcher.getTextLength(Matcher.java
: 26 1140)
        at java.util.regex.Matcher.reset(Matcher.java
: 21 AM org 291)
        at java
. jenkinsci util . plugins regex . vSphereCloud InternalLog}} Matcher.<init>(Matcher.java:211)
{{INFO         at java.util.regex.Pattern.matcher(Pattern.java :  [vsphere] Starting Virtual Machine 888)
        at java
. util . Formatter . }} parse(Formatter.java:2458)
{{Mar 6, 2013 10         at java.util.Formatter.format(Formatter.java : 26 2414)
        at java.util.Formatter.format(Formatter.java
: 21 AM 2367)
        at java.lang.String.format(String.java:2769)
        at hudson.util.StreamTaskListener.fatalError(StreamTaskListener.java:153)
        at
 org.jenkinsci.plugins. vSphereCloud InternalLog}} vSphereCloudLauncher.afterDisconnect(vSphereCloudLauncher.java:335)
{{INFO         at hudson.slaves.SlaveComputer$2.onClosed(SlaveComputer.java :  [vsphere] Reverting to snapshot 419)
        at hudson.remoting.Channel.terminate(Channel.java
: michael}} 749)
{{         at hudson.remoting.Channel$CloseCommand.execute(Channel.java:850)
        at hudson.remoting.Channel$2.handle(Channel.java:435)
        at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:60)
Mar 6, 2013 10: 28 19 : 21 50  AM hudson. slaves remoting . SlaveComputer tryReconnect}} Channel$2 handle
{{INFO SEVERE :  Attempting to reconnect vsphere}}  This command is created here
{{Mar 6, 2013 10 Command close created at
        at hudson.remoting.Command.<init>(Command.java
: 28 56)
        at hudson.remoting.Channel$CloseCommand.<init>(Channel.java
: 21 AM org 844)
        at hudson
. jenkinsci remoting . plugins Channel$CloseCommand . vSphereCloud InternalLog}} <init>(Channel.java:842)
{{INFO         at hudson.remoting.Channel.close(Channel.java :  [vsphere] Starting Virtual Machine 909)
        at hudson
. remoting . Channel . }} close(Channel.java:892)
{{         at hudson.remoting.Channel$CloseCommand.execute(Channel.java:849)
        at hudson.remoting.Channel$2.handle(Channel.java:435)
        at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:60)
Mar 6, 2013 10: 28 20 :21 AM  org  hudson . jenkinsci slaves . plugins.vSphereCloud InternalLog}} SlaveComputer tryReconnect
{{ INFO:  [vsphere] Reverting  Attempting  to  snapshot:michael}}  reconnect vsphere
{{ Mar 6, 2013 10: 29 20 : 01 21  AM org.jenkinsci.plugins.vSphereCloud InternalLog }}
{{ INFO: [vsphere] Starting Virtual Machine... }}
{{ Mar 6, 2013 10: 29 20 : 02 21  AM org.jenkinsci.plugins.vSphereCloud InternalLog }}
{{ INFO: [vsphere] Reverting to snapshot:michael }}


from the vsphere event list i don't see the shut down event or the snapshot
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply via email to