{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/22586","labels_url":"https://api.github.com/repos/saltstack/salt/issues/22586/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/22586/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/22586/events","html_url":"https://github.com/saltstack/salt/issues/22586","id":68096831,"number":22586,"title":"mount.mounted: Forced remount because options changed.","user":{"login":"cblervacques","id":9450627,"avatar_url":"https://avatars.githubusercontent.com/u/9450627?v=3","gravatar_id":"","url":"https://api.github.com/users/cblervacques","html_url":"https://github.com/cblervacques","followers_url":"https://api.github.com/users/cblervacques/followers","following_url":"https://api.github.com/users/cblervacques/following{/other_user}","gists_url":"https://api.github.com/users/cblervacques/gists{/gist_id}","starred_url":"https://api.github.com/users/cblervacques/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cblervacques/subscriptions","organizations_url":"https://api.github.com/users/cblervacques/orgs","repos_url":"https://api.github.com/users/cblervacques/repos","events_url":"https://api.github.com/users/cblervacques/events{/privacy}","received_events_url":"https://api.github.com/users/cblervacques/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-04-13T13:30:40Z","updated_at":"2015-04-14T09:23:53Z","closed_at":null,"body":"Hello,\r\n\r\nWhen I run my state with function \"mount.mounted\" the result is: \"Umount: Forced unmount because options (*) changed\"\r\nIf I remove nonempty opts, the result is the same with the last opts..\r\n\r\nI thinks it's a bug, but maybe I misconfigured parameter..\r\nCan you help me please ? I don't want forced remout if this alredy mounted !\r\n\r\n__State:__\r\n>/mnt/box:\r\n>  mount.mounted:\r\n>    - device: root@box.server.com:/\r\n>    - fstype: fuse.sshfs\r\n>    - opts:\r\n>      - port=2222\r\n>      - rw\r\n>      - reconnect\r\n>      - allow_other\r\n>      - transform_symlinks\r\n>      - nonempty\r\n>      - _netdev\r\n>    - persist: true\r\n>    - mkmnt: true\r\n>    - pass_num: 2\r\n>    - require:\r\n>      - pkg: sshfs\r\n>      - sls: ssh.known_hosts\r\n\r\n__Result:__\r\n> ID: /mnt/box\r\n>Function: mount.mounted\r\n>  Result: mount: according to mtab, root@box.server.com:/ is already mounted on /mnt/box\r\n> Comment: Target was already mounted. Entry already exists in the fstab.\r\n> Started: 15:18:40.035247\r\n>Duration: 74.972 ms\r\n> Changes:\r\n>          ----------\r\n>          umount:\r\n>              Forced remount because options (nonempty) changed\r\n\r\n\r\n__Versions:__\r\n>  Salt: 2015.2.0rc2\r\n>  Python: 2.7.6 (default, Mar 22 2014, 22:59:56)\r\n>  Jinja2: 2.7.2\r\n>  M2Crypto: 0.21.1\r\n> msgpack-python: 0.3.0\r\n> msgpack-pure: Not Installed\r\n> pycrypto: 2.6.1\r\n> libnacl: Not Installed\r\n> PyYAML: 3.10\r\n> ioflo: Not Installed\r\n> PyZMQ: 14.0.1\r\n> RAET: Not Installed\r\n> ZMQ: 4.0.4\r\n> Mako: 0.9.1"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/92715214","html_url":"https://github.com/saltstack/salt/issues/22586#issuecomment-92715214","issue_url":"https://api.github.com/repos/saltstack/salt/issues/22586","id":92715214,"user":{"login":"cblervacques","id":9450627,"avatar_url":"https://avatars.githubusercontent.com/u/9450627?v=3","gravatar_id":"","url":"https://api.github.com/users/cblervacques","html_url":"https://github.com/cblervacques","followers_url":"https://api.github.com/users/cblervacques/followers","following_url":"https://api.github.com/users/cblervacques/following{/other_user}","gists_url":"https://api.github.com/users/cblervacques/gists{/gist_id}","starred_url":"https://api.github.com/users/cblervacques/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cblervacques/subscriptions","organizations_url":"https://api.github.com/users/cblervacques/orgs","repos_url":"https://api.github.com/users/cblervacques/repos","events_url":"https://api.github.com/users/cblervacques/events{/privacy}","received_events_url":"https://api.github.com/users/cblervacques/received_events","type":"User","site_admin":false},"created_at":"2015-04-14T09:23:53Z","updated_at":"2015-04-14T09:23:53Z","body":"I added this new \"mout.py\" in my \"/srv/salt/_states/\" folder and it's work great !\r\nThanks for the correction.\r\n\r\nHave a nice day !\r\nCharly."}}