From: beierlm Date: Wed, 11 May 2022 18:53:01 +0000 (-0400) Subject: Adding TCP Dump X-Git-Tag: v12.0.0rc1~13 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=b04e188d083711b5983ad2859fc5851f25dd046d;p=osm%2Fdevops.git Adding TCP Dump Captures all network traffic (with a maximum packet size) so that if anything happens during the initial configuration and installation we can analyze it to determine what is happening in the network. Change-Id: Ia941d0a8b7610e4ad3a9d1f6ef1b53ac437e6a54 Signed-off-by: beierlm --- diff --git a/jenkins/ci-pipelines/ci_stage_3.groovy b/jenkins/ci-pipelines/ci_stage_3.groovy index 4587cafe..316fdb27 100644 --- a/jenkins/ci-pipelines/ci_stage_3.groovy +++ b/jenkins/ci-pipelines/ci_stage_3.groovy @@ -153,7 +153,8 @@ void archive_logs(Map remote) { sshCommand remote: remote, command: '''ls -al logs''' sshGet remote: remote, from: 'logs', into: '.', override: true sh 'cp logs/* .' - archiveArtifacts artifacts: '*.log' + sshGet remote: remote, from: 'ens3.pcap', into: 'ens3.pcap', override: true + archiveArtifacts artifacts: '*.log, *.pcap' } String get_value(String key, String output) { @@ -448,6 +449,7 @@ node("${params.NODE}") { ] // Force time sync to avoid clock drift and invalid certificates + sshCommand remote: remote, command: 'nohup sudo tcpdump -i ens3 -w ens3.pcap -s 400 & sleep 5' sshCommand remote: remote, command: 'sudo apt-get update' sshCommand remote: remote, command: 'sudo apt-get install -y chrony' sshCommand remote: remote, command: 'sudo service chrony stop' @@ -543,6 +545,10 @@ node("${params.NODE}") { prometheusPort = 9091 osmHostname = IP_ADDRESS } + sshCommand remote: remote, command: """ + sudo killall tcpdump + """ + } // stage("Install") /////////////////////////////////////////////////////////////////////////////////////// // Health check of installed OSM in remote vm @@ -565,6 +571,7 @@ node("${params.NODE}") { if ( params.DO_ROBOT ) { try { stage('System Integration Test') { + if (useCharmedInstaller) { tempdir = sh(returnStdout: true, script: 'mktemp -d').trim() sh(script: "touch ${tempdir}/hosts") @@ -614,9 +621,6 @@ EOF""" if (params.SAVE_ARTIFACTS_OVERRIDE || stage_archive) { stage('Archive') { - sh "echo ${containerName} > build_version.txt" - archiveArtifacts artifacts: 'build_version.txt', fingerprint: true - // Archive the tested repo dir("${RELEASE_DIR}") { ci_helper.archive(params.ARTIFACTORY_SERVER, RELEASE, GERRIT_BRANCH, 'tested')