Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-5402

systemd: Puppet agent starts before network-online.target is reached

    Details

    • Type: Bug
    • Status: Accepted
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: PUP 3.7.2, PUP 4.8.0
    • Fix Version/s: None
    • Component/s: None
    • Environment:

      Puppet 3.7.2 on Ubuntu 15.04 with NetworkManager and DHCP Enviroment

    • Template:
    • Team:
      Platform OS

      Description

      On Ubuntu 15.04 the puppet agent starts with multi-user.target.
      Due to this if using NetworkManager with DHCP, the agent tries to apply configuration before network connection is up resulting in printing several errors to the logs.

      Changing the puppet.service file and moving the symlink from /etc/systemd/system/multi-user.target.wants/puppet.service to /etc/systemd/system/network-online.target.wants/puppet.service is fixing the problem.

      Content of edited puppet.service file:

      [Unit]
      Description=Puppet agent
      Wants=network-online.target
      After=network-online.target
       
      [Service]
      Type=forking
      PIDFile=/run/puppet/agent.pid
      ExecStart=/usr/bin/puppet agent
       
      [Install]
      WantedBy=network-online.target
      

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  m.gaetje Marcel Gätje
                • Votes:
                  2 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated: