[JIRA] (JENKINS-50303) Mesos Offer Selection Attributes Mesos Plugin JEP-200

2018-03-20 Thread migibb...@egencia.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Michael Gibbons created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-50303  
 
 
  Mesos Offer Selection Attributes Mesos Plugin JEP-200   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Vinod Kone  
 
 
Components: 
 mesos-plugin  
 
 
Created: 
 2018-03-20 20:17  
 
 
Environment: 
 jenkins/jenkins:lts  org.jenkins-ci.main:jenkins-war:2.107.1  mesos-plugin:0.15.1  
 
 
Labels: 
 JEP-200  
 
 
Priority: 
  Major  
 
 
Reporter: 
 Michael Gibbons  
 

  
 
 
 
 

 
 Unable to configure Mesos Cloud slaves with Mesos slave attribute . Class filter error is thrown:    

 

java.lang.UnsupportedOperationException: Refusing to marshal net.sf.json.JSONObject for security reasons; see https://jenkins.io/redirect/class-filter/ 

   Steps: 1. Adding slave attribute (JSON string) to MesosCloud > Slave Info: 

 

{"service_cluster":"foobar"} 

 2. Execute pipeline where Mesos slave node is called in a node block Stack trace:   

 
 

[JIRA] (JENKINS-50303) Mesos Offer Selection Attributes Mesos Plugin JEP-200

2018-03-20 Thread o.v.nenas...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Oleg Nenashev commented on  JENKINS-50303  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Mesos Offer Selection Attributes Mesos Plugin JEP-200   
 

  
 
 
 
 

 
 Apparently https://github.com/jenkinsci/mesos-plugin/pull/310 was not enough. Affected data: https://github.com/jenkinsci/mesos-plugin/blob/master/src/main/java/org/jenkinsci/plugins/mesos/MesosSlaveInfo.java#L94 (and probably others). Apparently slaveAttributes are null in the existing test suites, so PCT didn't capture it  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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] (JENKINS-50303) Mesos Offer Selection Attributes Mesos Plugin JEP-200

2018-03-21 Thread jgl...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jesse Glick started work on  JENKINS-50303  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
Change By: 
 Jesse Glick  
 
 
Status: 
 Open In Progress  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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] (JENKINS-50303) Mesos Offer Selection Attributes Mesos Plugin JEP-200

2018-03-21 Thread jgl...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jesse Glick assigned an issue to Jesse Glick  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-50303  
 
 
  Mesos Offer Selection Attributes Mesos Plugin JEP-200   
 

  
 
 
 
 

 
Change By: 
 Jesse Glick  
 
 
Assignee: 
 Vinod Kone Jesse Glick  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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] (JENKINS-50303) Mesos Offer Selection Attributes Mesos Plugin JEP-200

2018-03-21 Thread jgl...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jesse Glick commented on  JENKINS-50303  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Mesos Offer Selection Attributes Mesos Plugin JEP-200   
 

  
 
 
 
 

 
 

Apparently slaveAttributes are null in the existing test suites, so PCT didn't capture it
 More to the point, all the existing tests use mocks, so they would not have captured any behavioral regressions of any kind.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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] (JENKINS-50303) Mesos Offer Selection Attributes Mesos Plugin JEP-200

2018-03-21 Thread jgl...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jesse Glick commented on  JENKINS-50303  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Mesos Offer Selection Attributes Mesos Plugin JEP-200   
 

  
 
 
 
 

 
 What you would expect the plugin to save: 

 


{"somekey": "somevalue"}

 

 What the current plugin saves: 

 



  false
  "org.apache.commons.collections.map.ListOrderedMap" serialization="custom">


  

  somekey

  
  

  somekey
  somevalue

  

  


 

  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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] (JENKINS-50303) Mesos Offer Selection Attributes Mesos Plugin JEP-200

2018-03-21 Thread jgl...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jesse Glick updated  JENKINS-50303  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-50303  
 
 
  Mesos Offer Selection Attributes Mesos Plugin JEP-200   
 

  
 
 
 
 

 
Change By: 
 Jesse Glick  
 
 
Status: 
 In  Progress  Review  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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] (JENKINS-50303) Mesos Offer Selection Attributes Mesos Plugin JEP-200

2018-03-21 Thread heilon...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Kevin R. commented on  JENKINS-50303  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Mesos Offer Selection Attributes Mesos Plugin JEP-200   
 

  
 
 
 
 

 
 I'm experiencing this too.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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] (JENKINS-50303) Mesos Offer Selection Attributes Mesos Plugin JEP-200

2018-03-21 Thread heilon...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Kevin R. edited a comment on  JENKINS-50303  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Mesos Offer Selection Attributes Mesos Plugin JEP-200   
 

  
 
 
 
 

 
 I'm experiencing this too.  Full stacktrace:{code:java}WARNING: Error while serving https://mc-uw2-jenkins.missionctrl.cloud.adobe.io/configSubmitjava.lang.reflect.InvocationTargetExceptionat org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:347)at org.kohsuke.stapler.interceptor.RequirePOST$Processor.invoke(RequirePOST.java:77)at org.kohsuke.stapler.PreInvokeInterceptedFunction.invoke(PreInvokeInterceptedFunction.java:26)at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:184)at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:117)at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:129)at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)at org.kohsuke.stapler.Stapler.service(Stapler.java:238)at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:841)at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1650)at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)at jenkins.metrics.impl.MetricsFilter.doFilter(MetricsFilter.java:125)at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:157)at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:99)at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93)at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:90)at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1

[JIRA] (JENKINS-50303) Mesos Offer Selection Attributes Mesos Plugin JEP-200

2018-03-21 Thread heilon...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Kevin R. edited a comment on  JENKINS-50303  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Mesos Offer Selection Attributes Mesos Plugin JEP-200   
 

  
 
 
 
 

 
 I'm experiencing this too. Full stacktrace:{code:java}WARNING: Error while serving https:// mc my - uw2- jenkins .missionctrl.cloud.adobe.io /configSubmitjava.lang.reflect.InvocationTargetExceptionat org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:347)at org.kohsuke.stapler.interceptor.RequirePOST$Processor.invoke(RequirePOST.java:77)at org.kohsuke.stapler.PreInvokeInterceptedFunction.invoke(PreInvokeInterceptedFunction.java:26)at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:184)at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:117)at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:129)at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)at org.kohsuke.stapler.Stapler.service(Stapler.java:238)at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:841)at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1650)at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)at jenkins.metrics.impl.MetricsFilter.doFilter(MetricsFilter.java:125)at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:157)at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:99)at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93)at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:90)at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandle

[JIRA] (JENKINS-50303) Mesos Offer Selection Attributes Mesos Plugin JEP-200

2018-03-26 Thread scm_issue_l...@java.net (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 SCM/JIRA link daemon commented on  JENKINS-50303  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Mesos Offer Selection Attributes Mesos Plugin JEP-200   
 

  
 
 
 
 

 
 Code changed in jenkins User: Jesse Glick Path: Jenkinsfile pom.xml src/main/java/org/jenkinsci/plugins/mesos/MesosRetentionStrategy.java src/main/java/org/jenkinsci/plugins/mesos/MesosSlaveInfo.java src/test/java/org/jenkinsci/plugins/mesos/MesosCloudTest.java src/test/resources/org/jenkinsci/plugins/mesos/MesosCloudTest/oldData/config.xml http://jenkins-ci.org/commit/mesos-plugin/f305f0a3b9b401ab4ed2b44a798757668a1e41a8 Log: JENKINS-50303 Using XStream to serialize a JSONObject was never advisable and as of 2.102 is forbidden (#311) 
 
JENKINS-50303 Using XStream to serialize a JSONObject was never advisable and as of 2.102 is forbidden. 
 
 
compatibleSinceVersion 
 
 
Permit data migration from the old format if you are running on 2.101 or earlier. 
 
 
Oops, that did not even compile. 
 
 
Verifying that restoring the old field does no harm in 2.102+ beyond a warning. 
 
 
Mark slaveAttributes transient as a reminder that it is not to be serialized (though it may still be deserialized). 
  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This 

[JIRA] (JENKINS-50303) Mesos Offer Selection Attributes Mesos Plugin JEP-200

2018-03-26 Thread vinc...@latombe.net (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Vincent Latombe updated  JENKINS-50303  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Released in 0.16  
 

  
 
 
 
 

 
 Jenkins /  JENKINS-50303  
 
 
  Mesos Offer Selection Attributes Mesos Plugin JEP-200   
 

  
 
 
 
 

 
Change By: 
 Vincent Latombe  
 
 
Status: 
 In Review Resolved  
 
 
Resolution: 
 Fixed  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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] (JENKINS-50303) Mesos Offer Selection Attributes Mesos Plugin JEP-200

2018-03-26 Thread migibb...@egencia.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Michael Gibbons commented on  JENKINS-50303  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Mesos Offer Selection Attributes Mesos Plugin JEP-200   
 

  
 
 
 
 

 
 Thanks Jesse Glick Vincent Latombe Oleg Nenashev   
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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.