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

systemd service provider always enables service in chroot

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 4.5.0
    • Component/s: None
    • Labels:
      None
    • Template:
    • Story Points:
      2
    • Sprint:
      Client 2016-04-20, Client 2016-05-04
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Same as PUP-5296.

      Description

      The systemd service provider is using the following command to determine its enabled state

      systemctl show autofs --property LoadState --property UnitFileState
      

      Normally this returns

      # systemctl show autofs --property LoadState --property UnitFileState
      LoadState=loaded
      UnitFileState=enabled
      

      In a chroot

      # systemctl show autofs --property LoadState --property UnitFileState
      Running in a chroot, ignoring request.
      

      Therefore, the provider always enables the autofs service.

      This can be overcome by using 'systemctl is-enabled'

      In a chroot

      # systemctl is-enabled autofs
      enabled
      

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  pyther Matthew Gyurgyik
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  7 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: