mount.mounted doesn't remount when remount set to True
Hi,
I have a salt state that deals with a mount point adding the 'noatime' option (http://pastebin.com/8XUE59UT). I have "persist" enabled, which works, and "remount" set to True, but it never actually remounts it.
grep var /etc/fstab
/dev/mapper/rootvg-varlv /var ext4 noatime 0 0 <===persist worked
mount | grep var
/dev/mapper/rootvg-varlv on /var type ext4 (rw,relatime,user_xattr,barrier=1,data=ordered) <==original mount options
mount -o remount /var
mount | grep var
/dev/mapper/rootvg-varlv on /var type ext4 (rw,noatime,user_xattr,barrier=1,data=ordered) <=="noatime" is in place now
Debian Wheezy
salt --versions-report
Salt: 0.17.2
Python: 2.6.6 (r266:84292, Dec 26 2010, 22:31:48)
Jinja2: 2.5.5
M2Crypto: 0.20.1
msgpack-python: 0.1.10
msgpack-pure: Not Installed
pycrypto: 2.1.0
PyYAML: 3.09
PyZMQ: 13.1.0
ZMQ: 3.2.3
Thanks in advance!
Thanks for the report, we'll look into this.
I'm not sure how a docstring snuck into the mount.mounted function for remount but it doesn't look like it's being used at all.
While this functionality can be built, it's going to be a bit tricky. Obviously, we only want to remount if there are really changes and not one every state run. We'll need to parse and verify the current mount options, compare what we're sending and then determine if a remount flag is to be set. We'll need to tread a bit carefully here.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.