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

Recent service file change may cause cyclic dependencies

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical - P2
    • Resolution: Fixed
    • Affects Version/s: 3.4.22, 4.0.11
    • Fix Version/s: 3.6.14, 4.0.12, 4.2.0, 3.4.23, 4.3.1
    • Component/s: Packaging
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.0, v3.6, v3.4
    • Steps To Reproduce:
      • Install version 4.0.11 of mongodb-org-server
      • Check the file /lib/systemd/system/mongod.service
      • Note the `After` and "WantedBy" target.
      • Compare with 4.0.10
    • Case:

      Description

      I have noticed that in the version 4.0.11 the service file for systemd changed and introduced a cyclic dependcy.
      As it seems the "After" target has been changed in this version. Previously it was

      After=network.target
      

      and now it is

      After=multi-user.target
      

      This is an issue because the multi-user target is also set as the wanted by target:

      WantedBy=multi-user.target
      

      This creates cyclic depencies and from what I have noticed the order in which systemd fixes this cyclic depency seems to be somewhat random. This prevents all services depending on mongod.service to start at all and also seems to be randomly preventing other services from starting.

      Once the system is up, all services can be started manully by hand, so it "only" affects the startup order. But since this definately breaks systems I've given it the priority "Critical - P2"

        Attachments

        1. mongod-4.0.10.service
          0.7 kB
        2. mongod-4.0.11.service
          0.7 kB

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                12 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: