-
Notifications
You must be signed in to change notification settings - Fork 566
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
legacy CLI.jar remoting is broken #814
Comments
Bit more info: server CentOS 7.4 /opt/puppetlabs/bin/puppetserver gem list *** LOCAL GEMS *** fast_gettext (1.1.0) node is CentOS 7.4 /opt/puppetlabs/puppet/bin/gem list *** LOCAL GEMS *** bigdecimal (1.2.4) |
Tinkering a bit more, adding the
|
@matonb The recently introduced semantics with respect to |
@jhoblitt That's fair enough always a PITA when API's change |
@jhoblitt Any ideas on the following issues ? First off it can't find the cli_remoting_free fact,
So I forced it by removing the
|
btw, I'm only checking for groovy in this test case based on point 2 in this post |
Looks like Jenkins finally removed this functionality and throws an error if you try to use it:
I'm trying to get |
@nmaludy |
@witjoh i'm running Some googleing led me here: https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/cli/CLICommand.java#L324 You can see the CLI is throwing that exception in the latest master branch. Checking the commit logs for that file: https://github.com/jenkinsci/jenkins/commits/master/core/src/main/java/hudson/cli/CLICommand.java It appears that they change the behavior back in January 2019. |
@nmaludy 2.176.2 beaks everything with me, so still on 2.176.1. |
Remoting has been disabled now for a while. This means that the older style of connecting no longer works. This change allows the slave to reconnect with a service script that uses user/token rather than remoting in to get a jnlp credential. See references: jenkinsci/jenkins@f7ff281 https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/cli/CLICommand.java\#L324 https://github.com/voxpupuli/puppet-jenkins/issues/814\#issuecomment-517669503
The legacy remoting has been removed from recent versions. In #984 I'm dropping the code. |
@jhoblitt
I'm trying to use jenkins_security_realm to configure the Active Directory plugin but I'm not getting very far...
I've tweaked puppet master config to include the additional cache path and added the retries gem (puppetserver restarted).
Puppet agent on the test node fail with:
Error: Could not find a suitable provider for jenkins_security_realm
Just to see, I added the retries gem to the node, I then got this error
Error: Failed to apply catalog: Execution of '/bin/java -jar /usr/lib/jenkins/jenkins-cli.jar -s http://localhost:8080 groovy /usr/lib/jenkins/puppet_helper.groovy get_security_realm' returned 5: ERROR: This command is requesting the deprecated -remoting mode. See https://jenkins.io/redirect/cli-command-requires-channel
Puppet code:
The text was updated successfully, but these errors were encountered: