[CentOS-devel] Getting started with CentOS Community Container Pipeline on Vagrant

Mon Apr 25 16:26:43 UTC 2016
Karanbir Singh <mail-lists at karan.org>

On 25/04/16 17:09, Ratnadeep Debnath wrote:

>>
>> let me script this up and we can get a ci.centos.org job around this.
>> but at the moment the ansible piece breaks with a key issue, we need to
>> get that fixed first.
> Ansible or the playbook roles? key issue? any error log or traceback?
> 



having now done a ssh-keygen -t rsa; i can get beyond that point, but
now it fails with :


TASK [jenkins/master : Install Jenkins plugins.]
*******************************
[DEPRECATION WARNING]: Using bare variables is deprecated. Update your
playbooks so that the environment value uses the full variable syntax
('{{jenkins_plugins}}').
This feature will be removed in a future release.
Deprecation warnings can be disabled by setting
deprecation_warnings=False in
ansible.cfg.
failed: [master] (item=git) => {"changed": true, "cmd": ["java", "-jar",
"/opt/jenkins-cli.jar", "-s", "http://localhost:8080/",
"install-plugin", "git"], "delta": "0:00:00.121230", "end": "2016-04-25
12:24:07.747697", "failed": true, "item": "git", "rc": 255, "start":
"2016-04-25 12:24:07.626467", "stderr": "java.io.IOException: No
X-Jenkins-CLI2-Port among [null, X-Required-Permission, X-Jenkins,
X-You-Are-In-Group, X-Hudson, Content-Length, Expires,
X-You-Are-Authenticated-As, X-Permission-Implied-By, Set-Cookie, Server,
X-Content-Type-Options, Date, X-Jenkins-Session, Content-Type]\n\tat
hudson.cli.CLI.getCliTcpPort(CLI.java:290)\n\tat
hudson.cli.CLI.<init>(CLI.java:128)\n\tat
hudson.cli.CLIConnectionFactory.connect(CLIConnectionFactory.java:72)\n\tat
hudson.cli.CLI._main(CLI.java:479)\n\tat
hudson.cli.CLI.main(CLI.java:390)\n\tSuppressed: java.io.IOException:
Server returned HTTP response code: 403 for URL:
http://localhost:8080/cli\n\t\tat
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1628)\n\t\tat
hudson.cli.FullDuplexHttpStream.<init>(FullDuplexHttpStream.java:78)\n\t\tat
hudson.cli.CLI.connectViaHttp(CLI.java:158)\n\t\tat
hudson.cli.CLI.<init>(CLI.java:132)\n\t\t... 3 more", "stdout": "",
"stdout_lines": [], "warnings": []}
failed: [master] (item=ssh) => {"changed": true, "cmd": ["java", "-jar",
"/opt/jenkins-cli.jar", "-s", "http://localhost:8080/",
"install-plugin", "ssh"], "delta": "0:00:00.115192", "end": "2016-04-25
12:24:08.054622", "failed": true, "item": "ssh", "rc": 255, "start":
"2016-04-25 12:24:07.939430", "stderr": "java.io.IOException: No
X-Jenkins-CLI2-Port among [null, X-Required-Permission, X-Jenkins,
X-You-Are-In-Group, X-Hudson, Content-Length, Expires,
X-You-Are-Authenticated-As, X-Permission-Implied-By, Set-Cookie, Server,
X-Content-Type-Options, Date, X-Jenkins-Session, Content-Type]\n\tat
hudson.cli.CLI.getCliTcpPort(CLI.java:290)\n\tat
hudson.cli.CLI.<init>(CLI.java:128)\n\tat
hudson.cli.CLIConnectionFactory.connect(CLIConnectionFactory.java:72)\n\tat
hudson.cli.CLI._main(CLI.java:479)\n\tat
hudson.cli.CLI.main(CLI.java:390)\n\tSuppressed: java.io.IOException:
Server returned HTTP response code: 403 for URL:
http://localhost:8080/cli\n\t\tat
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1628)\n\t\tat
hudson.cli.FullDuplexHttpStream.<init>(FullDuplexHttpStream.java:78)\n\t\tat
hudson.cli.CLI.connectViaHttp(CLI.java:158)\n\t\tat
hudson.cli.CLI.<init>(CLI.java:132)\n\t\t... 3 more", "stdout": "",
"stdout_lines": [], "warnings": []}
failed: [master] (item=multiple-scms) => {"changed": true, "cmd":
["java", "-jar", "/opt/jenkins-cli.jar", "-s", "http://localhost:8080/",
"install-plugin", "multiple-scms"], "delta": "0:00:00.115100", "end":
"2016-04-25 12:24:08.377457", "failed": true, "item": "multiple-scms",
"rc": 255, "start": "2016-04-25 12:24:08.262357", "stderr":
"java.io.IOException: No X-Jenkins-CLI2-Port among [null,
X-Required-Permission, X-Jenkins, X-You-Are-In-Group, X-Hudson,
Content-Length, Expires, X-You-Are-Authenticated-As,
X-Permission-Implied-By, Set-Cookie, Server, X-Content-Type-Options,
Date, X-Jenkins-Session, Content-Type]\n\tat
hudson.cli.CLI.getCliTcpPort(CLI.java:290)\n\tat
hudson.cli.CLI.<init>(CLI.java:128)\n\tat
hudson.cli.CLIConnectionFactory.connect(CLIConnectionFactory.java:72)\n\tat
hudson.cli.CLI._main(CLI.java:479)\n\tat
hudson.cli.CLI.main(CLI.java:390)\n\tSuppressed: java.io.IOException:
Server returned HTTP response code: 403 for URL:
http://localhost:8080/cli\n\t\tat
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1628)\n\t\tat
hudson.cli.FullDuplexHttpStream.<init>(FullDuplexHttpStream.java:78)\n\t\tat
hudson.cli.CLI.connectViaHttp(CLI.java:158)\n\t\tat
hudson.cli.CLI.<init>(CLI.java:132)\n\t\t... 3 more", "stdout": "",
"stdout_lines": [], "warnings": []}
failed: [master] (item=python) => {"changed": true, "cmd": ["java",
"-jar", "/opt/jenkins-cli.jar", "-s", "http://localhost:8080/",
"install-plugin", "python"], "delta": "0:00:00.119087", "end":
"2016-04-25 12:24:08.751636", "failed": true, "item": "python", "rc":
255, "start": "2016-04-25 12:24:08.632549", "stderr":
"java.io.IOException: No X-Jenkins-CLI2-Port among [null,
X-Required-Permission, X-Jenkins, X-You-Are-In-Group, X-Hudson,
Content-Length, Expires, X-You-Are-Authenticated-As,
X-Permission-Implied-By, Set-Cookie, Server, X-Content-Type-Options,
Date, X-Jenkins-Session, Content-Type]\n\tat
hudson.cli.CLI.getCliTcpPort(CLI.java:290)\n\tat
hudson.cli.CLI.<init>(CLI.java:128)\n\tat
hudson.cli.CLIConnectionFactory.connect(CLIConnectionFactory.java:72)\n\tat
hudson.cli.CLI._main(CLI.java:479)\n\tat
hudson.cli.CLI.main(CLI.java:390)\n\tSuppressed: java.io.IOException:
Server returned HTTP response code: 403 for URL:
http://localhost:8080/cli\n\t\tat
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1628)\n\t\tat
hudson.cli.FullDuplexHttpStream.<init>(FullDuplexHttpStream.java:78)\n\t\tat
hudson.cli.CLI.connectViaHttp(CLI.java:158)\n\t\tat
hudson.cli.CLI.<init>(CLI.java:132)\n\t\t... 3 more", "stdout": "",
"stdout_lines": [], "warnings": []}
failed: [master] (item=ws-cleanup) => {"changed": true, "cmd": ["java",
"-jar", "/opt/jenkins-cli.jar", "-s", "http://localhost:8080/",
"install-plugin", "ws-cleanup"], "delta": "0:00:00.119134", "end":
"2016-04-25 12:24:09.105226", "failed": true, "item": "ws-cleanup",
"rc": 255, "start": "2016-04-25 12:24:08.986092", "stderr":
"java.io.IOException: No X-Jenkins-CLI2-Port among [null,
X-Required-Permission, X-Jenkins, X-You-Are-In-Group, X-Hudson,
Content-Length, Expires, X-You-Are-Authenticated-As,
X-Permission-Implied-By, Set-Cookie, Server, X-Content-Type-Options,
Date, X-Jenkins-Session, Content-Type]\n\tat
hudson.cli.CLI.getCliTcpPort(CLI.java:290)\n\tat
hudson.cli.CLI.<init>(CLI.java:128)\n\tat
hudson.cli.CLIConnectionFactory.connect(CLIConnectionFactory.java:72)\n\tat
hudson.cli.CLI._main(CLI.java:479)\n\tat
hudson.cli.CLI.main(CLI.java:390)\n\tSuppressed: java.io.IOException:
Server returned HTTP response code: 403 for URL:
http://localhost:8080/cli\n\t\tat
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1628)\n\t\tat
hudson.cli.FullDuplexHttpStream.<init>(FullDuplexHttpStream.java:78)\n\t\tat
hudson.cli.CLI.connectViaHttp(CLI.java:158)\n\t\tat
hudson.cli.CLI.<init>(CLI.java:132)\n\t\t... 3 more", "stdout": "",
"stdout_lines": [], "warnings": []}
        to retry, use: --limit @vagrant.retry

PLAY RECAP
*********************************************************************
master                     : ok=17   changed=7    unreachable=0
failed=1
node1                      : ok=3    changed=1    unreachable=0
failed=0
node2                      : ok=7    changed=3    unreachable=0
failed=0

Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.



-- 
Karanbir Singh
+44-207-0999389 | http://www.karan.org/ | twitter.com/kbsingh
GnuPG Key : http://www.karan.org/publickey.asc