Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-49276

repl_ssl_split_horizon.js test leaves /etc/os-release in a strange state

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Server Tooling & Methods
    • ALL

      Driver tests occasionally fail with this strange error:

      [2020/07/01 22:03:56.354] + . /data/mci/4ba521569a7cb43abf2e2b408ef3c33f/drivers-tools/.evergreen/download-mongodb.sh
      [2020/07/01 22:03:56.355] ++ set -o xtrace
      [2020/07/01 22:03:56.355] ++ set -o errexit
      [2020/07/01 22:03:56.355] + get_distro
      [2020/07/01 22:03:56.355] + '[' -f /etc/os-release ']'
      [2020/07/01 22:03:56.355] + . /etc/os-release
      [2020/07/01 22:03:56.356] ++ splithorizon1 localhost
      [2020/07/01 22:03:56.356] /etc/os-release: line 1: splithorizon1: command not found
      [2020/07/01 22:03:56.356] Enabling coredumps
      [2020/07/01 22:03:56.356] Command failed: command encountered problem: error waiting on process '14483eb1-688d-48ab-843d-dd26cf81bce0': exit status 127
      [2020/07/01 22:03:56.357] Task completed - FAILURE.
      

      Ref: https://evergreen.mongodb.com/task/mongo_python_driver_tests_python_version_rhel62_test_ssl__platform~rhel62_auth~noauth_ssl~nossl_python_version~3.6_coverage~coverage_test_latest_sharded_cluster_1f4123e4bf54f9ed689ce77ffb8dfbccc3e688f0_20_07_01_21_49_46

      The following test seems to be the culprit as it edits /etc/os-release and leaves it in a strange state: https://github.com/mongodb/mongo/blob/f31bc89/jstests/ssl/repl_ssl_split_horizon.js#L6

      /etc/os-release is supposed to be a "newline-separated list of environment-like shell-compatible variable assignments". https://www.freedesktop.org/software/systemd/man/os-release.html#Description

            Assignee:
            backlog-server-stm Backlog - Server Tooling and Methods (STM) (Inactive)
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: