Salt states using the mount.mounted state are causing a remount of the mount point being managed
search cancel

Salt states using the mount.mounted state are causing a remount of the mount point being managed

book

Article ID: 388046

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

A sample like the following is causing an already mounted mount point to be remounted instead of just confirming that it's already mounted.

redacted-mount:
  mount.mounted:
    - name: /mnt/storage
    - device: /dev/mapper/redacted
    - fstype: ext4
    - opts: errors=remount-ro,noauto,noatime
    - persist: False
    - mount: True
    - dump: 0
    - pass_num: 0

Environment

SaltProject - 3006.1 - 3006.7

Cause

A known defect in was not catching that the mount point is already mounted. 

Resolution

Upgrade to the latest LTS release of Salt, currently 3006.9 at the time of this writing. See this documentation for more information on how to upgrade. https://docs.saltproject.io/salt/install-guide/en/latest/topics/upgrade.html