From 182818d00385f28aca0a57541987ac5985ef426a Mon Sep 17 00:00:00 2001 From: Julien Date: Tue, 24 May 2016 23:52:13 +0800 Subject: Add the missing step to output the correct config Using -t parameter in step8 will cause the Monit can not find pid file of jenkins and -t will remain in the jenkins config file: /etc/monit.d Add the missing '.' in remain sections. JIRA: OCTO-157 Change-Id: Ib6cf08015c82f81a6129787a0f18722727453773 Signed-off-by: Julien --- .../opnfv-jenkins-slave-connection.rst | 49 ++++++++++++---------- 1 file changed, 27 insertions(+), 22 deletions(-) diff --git a/docs/octopus_docs/opnfv-jenkins-slave-connection.rst b/docs/octopus_docs/opnfv-jenkins-slave-connection.rst index ab66c74..7ff1188 100644 --- a/docs/octopus_docs/opnfv-jenkins-slave-connection.rst +++ b/docs/octopus_docs/opnfv-jenkins-slave-connection.rst @@ -24,22 +24,25 @@ You should have received a copy of the license along with this. If not, see -s -f`` - If you receive an error, follow the steps listed on the command output. - 8. Run the same script in order to get monit script created. You should see **INFO: Connected** in the console log. + 8. Run the same script with test(-t) on foreground in order to make sure no problem on connection. You should see **INFO: Connected** in the console log. ``sudo /home/jenkins/opnfv/repos/releng/utils/jenkins-jnlp-connect.sh -j /home/jenkins -u jenkins -n -s -t`` - If you receive an error similar to the one shown `on this link `_, you need to check your firewall and allow outgoing connections for the port. 9. Kill the Java slave.jar process. - 10. Edit monit configuration and enable http interface. The file to edit is /etc/monit/monitrc on Ubuntu systems. Uncomment below lines. + 10. Run the same script normally without test(-t) in order to get monit script created. + ``sudo /home/jenkins/opnfv/repos/releng/utils/jenkins-jnlp-connect.sh -j /home/jenkins -u jenkins -n -s `` + 11. Edit monit configuration and enable http interface. The file to edit is /etc/monit/monitrc on Ubuntu systems. Uncomment below lines. set httpd port 2812 and use address localhost # only accept connection from localhost allow localhost # allow localhost to connect to the server and - 11 Restart monit service. + 12. Restart monit service. - Without systemd: ``sudo service monit restart`` @@ -143,11 +148,11 @@ Please follow below steps to connect a slave to OPNFV Jenkins. ``sudo systemctl enable monit`` ``sudo systemctl restart monit`` - 12 Check to see if jenkins comes up as managed service in monit. + 13. Check to see if jenkins comes up as managed service in monit. ``sudo monit status`` - 13 Connect slave to OPNFV Jenkins using monit. + 14. Connect slave to OPNFV Jenkins using monit. ``sudo monit start jenkins`` - 14 Check slave on OPNFV Jenkins to verify the slave is reported as connected. + 15. Check slave on OPNFV Jenkins to verify the slave is reported as connected. - The slave on OPNFV Jenkins should have some executors in “Idle” state if the connection is successful. Notes -- cgit 1.2.3-korg