[JIRA] [swarm-plugin] (JENKINS-26558) createSlave Node name collision avoidance creates dead nodes

2016-05-20 Thread peter.joens...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Peter Jönsson closed an issue as Fixed 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Jenkins /  JENKINS-26558 
 
 
 
  createSlave Node name collision avoidance creates dead nodes  
 
 
 
 
 
 
 
 
 

Change By:
 
 Peter Jönsson 
 
 
 

Status:
 
 Resolved Closed 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [swarm-plugin] (JENKINS-26558) createSlave Node name collision avoidance creates dead nodes

2015-04-27 Thread scm_issue_l...@java.net (JIRA)














































SCM/JIRA link daemon
 commented on  JENKINS-26558


createSlave Node name collision avoidance creates dead nodes















Code changed in jenkins
User: Stephen Connolly
Path:
 client/src/main/java/hudson/plugins/swarm/Client.java
 client/src/main/java/hudson/plugins/swarm/SwarmClient.java
 plugin/src/main/java/hudson/plugins/swarm/PluginImpl.java
http://jenkins-ci.org/commit/swarm-plugin/ab37bc84eb9639888f3a66c68a9b1536c5882c88
Log:
  FIXED JENKINS-26558 Clients should provide a unique ID to be used for name collision avoidance


	The current name collision avoidance uses the requests address, which could very likely be the same for all clients
  as they could be being routed through a HTTP proxy (or two) so that is not a good disambiguator
	We use a digest of the client's interfaces and MAC addresses and the remoteFSRoot to try and give a consistent ID
	We ALWAYS append the ID if we have it as otherwise during reconnect the slaves with the same name will shuffle around
  which defeats a lot of the login that Jenkins has internally based on slaves having a consistent name
	In the event of legacy clients that do not have the ID we will let them connect with their name as long as there
  is no online slave with that name. This does mean that where there are multiple legacy swarm clients with the
  same name, only one can be on-line at any moment in time, but that is an improvement on the current where
  once a shuffle starts, none can stay on-line































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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [swarm-plugin] (JENKINS-26558) createSlave Node name collision avoidance creates dead nodes

2015-04-27 Thread scm_issue_l...@java.net (JIRA)















































SCM/JIRA link daemon
 resolved  JENKINS-26558 as Fixed


createSlave Node name collision avoidance creates dead nodes
















Change By:


SCM/JIRA link daemon
(27/Apr/15 7:28 PM)




Status:


Open
Resolved





Resolution:


Fixed



























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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [swarm-plugin] (JENKINS-26558) createSlave Node name collision avoidance creates dead nodes

2015-04-27 Thread scm_issue_l...@java.net (JIRA)














































SCM/JIRA link daemon
 commented on  JENKINS-26558


createSlave Node name collision avoidance creates dead nodes















Code changed in jenkins
User: Peter Jönsson
Path:
 client/src/main/java/hudson/plugins/swarm/Client.java
 client/src/main/java/hudson/plugins/swarm/SwarmClient.java
 plugin/src/main/java/hudson/plugins/swarm/PluginImpl.java
http://jenkins-ci.org/commit/swarm-plugin/5f622da0e1eb54ec84626dbc9aceaa1aafb4a0ac
Log:
  Merge pull request #26 from stephenc/jenkins-26558

FIXED JENKINS-26558 Clients should provide a unique ID to be used for ...


Compare: https://github.com/jenkinsci/swarm-plugin/compare/bef8ccbe8906...5f622da0e1eb




























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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [swarm-plugin] (JENKINS-26558) createSlave Node name collision avoidance creates dead nodes

2015-04-24 Thread stephenconno...@java.net (JIRA)














































stephenconnolly
 commented on  JENKINS-26558


createSlave Node name collision avoidance creates dead nodes















https://github.com/jenkinsci/swarm-plugin/pull/26 should fix this



























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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [swarm-plugin] (JENKINS-26558) createSlave Node name collision avoidance creates dead nodes

2015-02-13 Thread erne...@gmail.com (JIRA)














































Ernestas Lukoševičius
 commented on  JENKINS-26558


createSlave Node name collision avoidance creates dead nodes















That's actually of a high priority... All it takes to take down a cluster is plug out the wire for a second, Jenkins swarm clients loose connections and then try to reconnect, while Jenkins has not yet forgot about the previous slaves. I think that checking if a node (slave in my dictionary) is online should be done more often and better, especially when there are name collisions.



























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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [swarm-plugin] (JENKINS-26558) createSlave Node name collision avoidance creates dead nodes

2015-02-13 Thread erne...@gmail.com (JIRA)












































 
Ernestas Lukoševičius
 edited a comment on  JENKINS-26558


createSlave Node name collision avoidance creates dead nodes
















That's actually of a high priority to some... All it takes to take down a cluster is plug out the wire for a second, Jenkins swarm clients loose connections and then try to reconnect, while Jenkins has not yet forgot about the previous slaves. I think that checking if a node (slave in my dictionary) is online should be done more often and better, especially when there are name collisions.



























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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [swarm-plugin] (JENKINS-26558) createSlave Node name collision avoidance creates dead nodes

2015-01-22 Thread ky...@dropbox.com (JIRA)














































Kyle C
 created  JENKINS-26558


createSlave Node name collision avoidance creates dead nodes















Issue Type:


Bug



Assignee:


Kohsuke Kawaguchi



Components:


swarm-plugin



Created:


22/Jan/15 6:58 PM



Description:


In the swarm server-side slave creation logic, when a node of the provided name already exists, '-$IP' is appended to the end in an effort to end with a unique name (see https://github.com/jenkinsci/swarm-plugin/blob/master/plugin/src/main/java/hudson/plugins/swarm/PluginImpl.java#L59)
However, as far as I can tell, that new name is never provided to the slave, so it doesn't seem like it'd be possible for the slave to connect with that name, and in my experience I've seen hundreds of collision-avoidance nodes in this setup, and have never once seen one online or connected in any way.

These dead "hyphen nodes" don't hurt running builds, but they are visual noise and false positives in our offline slave metrics, so it'd be nice if they could be avoided.




Environment:


Jenkins 1.590 on Linux with Swarm Plugin 1.21




Project:


Jenkins



Priority:


Minor



Reporter:


Kyle C

























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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.