fix(hst): mount /var/crash in hst containers for core files 48/43148/6
authorDave Wallace <[email protected]>
Wed, 11 Jun 2025 22:17:50 +0000 (18:17 -0400)
committerDave Wallace <[email protected]>
Thu, 12 Jun 2025 16:06:59 +0000 (12:06 -0400)
- Needed to fix HST core file processing

Change-Id: I046fd343b860070785a317f064879b14a24224c1
Signed-off-by: Dave Wallace <[email protected]>
jenkins-config/clouds/nomad/FDIONOMAD/hst-ubuntu2204-prod-aarch64-jobtemplate.yaml
jenkins-config/clouds/nomad/FDIONOMAD/hst-ubuntu2204-prod-x86_64-jobtemplate.yaml
jenkins-config/clouds/nomad/FDIONOMAD/hst-ubuntu2204-sandbox-aarch64-jobtemplate.yaml
jenkins-config/clouds/nomad/FDIONOMAD/hst-ubuntu2204-sandbox-x86_64-jobtemplate.yaml
jenkins-config/clouds/nomad/FDIONOMAD/hst-ubuntu2404-prod-x86_64-jobtemplate.yaml
jenkins-config/clouds/nomad/FDIONOMAD/hst-ubuntu2404-sandbox-x86_64-jobtemplate.yaml
jjb/scripts/vpp/debug-hst.sh
jjb/scripts/vpp/hst.sh

index 9d099ad..6c9b802 100644 (file)
@@ -15,6 +15,7 @@ Job:
             image: fdiotools/builder-ubuntu2204:prod-aarch64
             volumes:
               - /tmp/ccache.ubuntu2204:/scratch/ccache
+              - /var/crash:/var/crash
               - /scratch/nomad:/scratch/nomad:ro
           Resources:
             # Limit scheduling of only 1 job per server by specifying max cpushares and more than half memory
index 817f029..65ba29f 100644 (file)
@@ -15,6 +15,7 @@ Job:
             image: fdiotools/builder-ubuntu2204:prod-x86_64
             volumes:
               - /tmp/ccache.ubuntu2204:/scratch/ccache
+              - /var/crash:/var/crash
               - /scratch/nomad:/scratch/nomad:ro
           Resources:
             # Limit scheduling of only 1 job per server by specifying max cpushares and more than half memory
index 721beb1..665aa76 100644 (file)
@@ -26,6 +26,7 @@ Job:
             image: fdiotools/builder-ubuntu2204:sandbox-aarch64
             volumes:
               - /tmp/ccache.ubuntu2204:/scratch/ccache
+              - /var/crash:/var/crash
               - /scratch/nomad:/scratch/nomad:ro
           Artifacts:
             - GetterSource: https://jenkins.fd.io/sandbox/jnlpJars/slave.jar
index b74f5f5..01e9e12 100644 (file)
@@ -26,6 +26,7 @@ Job:
             image: fdiotools/builder-ubuntu2204:sandbox-x86_64
             volumes:
               - /tmp/ccache.ubuntu2204:/scratch/ccache
+              - /var/crash:/var/crash
               - /scratch/nomad:/scratch/nomad:ro
           Artifacts:
             - GetterSource: https://jenkins.fd.io/sandbox/jnlpJars/slave.jar
index dfa3489..49b8b0b 100644 (file)
@@ -15,6 +15,7 @@ Job:
             image: fdiotools/builder-ubuntu2404:prod-x86_64
             volumes:
               - /tmp/ccache.ubuntu2404:/scratch/ccache
+              - /var/crash:/var/crash
               - /scratch/nomad:/scratch/nomad:ro
           Resources:
             # Limit scheduling of only 1 job per server by specifying max cpushares and more than half memory
index 268700a..14c745b 100644 (file)
@@ -26,6 +26,7 @@ Job:
             image: fdiotools/builder-ubuntu2404:sandbox-x86_64
             volumes:
               - /tmp/ccache.ubuntu2404:/scratch/ccache
+              - /var/crash:/var/crash
               - /scratch/nomad:/scratch/nomad:ro
           Artifacts:
             - GetterSource: https://jenkins.fd.io/sandbox/jnlpJars/slave.jar
index bf26aa8..fbbcd4c 100755 (executable)
@@ -47,7 +47,11 @@ hst_build_run() {
 }
 
 if [ "${DRYRUN,,}" != "true" ] ; then
+    echo "Check for system core files"
+    ls -l /var/crash || true
     hst_build_run
+    echo "Check for system core files"
+    ls -l /var/crash || true
 fi
 if [ -n "$BUILD_ERROR" ] ; then
     BUILD_RESULT="$BUILD_ERROR"
index 1a5f3ca..0dd4e6a 100755 (executable)
@@ -54,8 +54,12 @@ hst_test() {
 }
 
 if [ "${DRYRUN,,}" != "true" ] ; then
+    echo "Check for system core files"
+    ls -l /var/crash || true
     vpp_make_build
     hst_test
+    echo "Check for system core files"
+    ls -l /var/crash || true
 fi
 if [ -n "$BUILD_ERROR" ] ; then
     BUILD_RESULT="$BUILD_ERROR"