Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-2455

Find out why HP-UX does not kill cf-serverd properly after test run

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.10.0
    • Component/s: None
    • Labels:
      None
    • Platform:
      HP-UX

      Description

      Currently, when testing HP-UX in Jenkins, we get the following:

      13:30:23 + sudo /usr/sbin/fuser /home/jenkins/testmachine-chroot/
      13:30:23 + 2> /dev/null
      13:30:23 + sed -e s/[^ 0-9]//g
      13:30:23 + grep minilogd
      13:30:23 + ps -ef
      13:30:23 + egrep ^ *[^ ]+ +20940
      13:30:23 + return_code=1
      13:30:23 Error: Found processes left behind in the chroot. I'm killing them, but the build will fail, so clean up your mess!
      13:30:23 Found PID 20940. Info from 'ps -ef'
      13:30:23 --------------
      13:30:23     root 20940     1  0 06:12:44 ?         0:00 /home/jenkins/workspace/testing-enterprise-3.9.x/label/PACKAGES_ia64_hpux_11.23/cfengine-3.9.2a1.2d60b00/cf-serverd/.libs/cf-se
      13:30:23 --------------
      13:30:23 + grep minilogd
      13:30:23 + ps -ef
      13:30:23 + egrep ^ *[^ ]+ +20937
      13:30:23 + return_code=1
      13:30:23 Error: Found processes left behind in the chroot. I'm killing them, but the build will fail, so clean up your mess!
      13:30:23 Found PID 20937. Info from 'ps -ef'
      13:30:23 --------------
      13:30:23     root 20937     1  0 06:12:44 ?         0:00 /home/jenkins/workspace/testing-enterprise-3.9.x/label/PACKAGES_ia64_hpux_11.23/cfengine-3.9.2a1.2d60b00/cf-serverd/.libs/cf-se
      13:30:23 --------------
      13:30:23 + sudo /usr/sbin/fuser -k /home/jenkins/testmachine-chroot/
      13:30:23 /home/jenkins/testmachine-chroot/:    20940cr   20937cr
      13:30:23 
      13:30:23 + sudo umount /home/jenkins/testmachine-chroot/proc
      13:30:23 umount: cannot find /home/jenkins/testmachine-chroot/proc in /etc/mnttab
      13:30:23         cannot unmount /home/jenkins/testmachine-chroot/proc
      13:30:23 + true
      13:30:23 + INCLUDES=--include=test.* --include=summary.*
      13:30:23 + rsync -rv --include=test.* --include=summary.* --exclude=* /home/jenkins/testmachine-chroot//home/jenkins/workspace/testing-enterprise-3.9.x/label/PACKAGES_ia64_hpux_11.23/./core/tests/acceptance/ /home/jenkins/workspace/testing-enterprise-3.9.x/label/PACKAGES_ia64_hpux_11.23/./core/tests/acceptance/
      13:30:23 sending incremental file list
      13:30:23 summary.log
      13:30:23 test.log
      13:30:23 test.xml
      13:30:23 
      13:30:23 sent 2,398,626 bytes  received 73 bytes  4,797,398.00 bytes/sec
      13:30:23 total size is 2,397,843  speedup is 1.00
      13:30:23 + [ nova = nova ]
      13:30:23 + rsync -rv --include=test.* --include=summary.* --exclude=* /home/jenkins/testmachine-chroot//home/jenkins/workspace/testing-enterprise-3.9.x/label/PACKAGES_ia64_hpux_11.23/./enterprise/tests/acceptance/ /home/jenkins/workspace/testing-enterprise-3.9.x/label/PACKAGES_ia64_hpux_11.23/./enterprise/tests/acceptance/
      13:30:23 sending incremental file list
      13:30:23 summary.log
      13:30:23 test.log
      13:30:23 test.xml
      13:30:24 
      13:30:24 sent 53,279 bytes  received 73 bytes  106,704.00 bytes/sec
      13:30:24 total size is 53,064  speedup is 0.99
      13:30:24 + rsync -rv --include=test.* --include=summary.* --exclude=* /home/jenkins/testmachine-chroot//home/jenkins/workspace/testing-enterprise-3.9.x/label/PACKAGES_ia64_hpux_11.23/./masterfiles/tests/acceptance/ /home/jenkins/workspace/testing-enterprise-3.9.x/label/PACKAGES_ia64_hpux_11.23/./masterfiles/tests/acceptance/
      13:30:24 sending incremental file list
      13:30:24 summary.log
      13:30:24 test.log
      13:30:24 test.xml
      13:30:24 
      13:30:24 sent 113,546 bytes  received 73 bytes  75,746.00 bytes/sec
      13:30:24 total size is 113,319  speedup is 1.00
      13:30:24 + [ 1 -ne 0 ]
      13:30:24 + echo ERROR: we just finished cleaning up, but earlier command had returned: 1
      13:30:24 ERROR: we just finished cleaning up, but earlier command had returned: 1
      13:30:24 + exit 1
      13:30:24 Build step 'Execute shell' marked build as failure
      

      However, all tests pass otherwise.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                a10038 jimis (Dimitrios Apostolou)
                Reporter:
                a10040 Kristian Amlie
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel