{"action":"created","issue":{"url":"https://api.github.com/repos/ceph/ceph-cookbook/issues/175","labels_url":"https://api.github.com/repos/ceph/ceph-cookbook/issues/175/labels{/name}","comments_url":"https://api.github.com/repos/ceph/ceph-cookbook/issues/175/comments","events_url":"https://api.github.com/repos/ceph/ceph-cookbook/issues/175/events","html_url":"https://github.com/ceph/ceph-cookbook/issues/175","id":50885579,"number":175,"title":"ceph_cephfs resource tries to mount again (mons order changed)","user":{"login":"klamontagne","id":1007594,"avatar_url":"https://avatars.githubusercontent.com/u/1007594?v=3","gravatar_id":"","url":"https://api.github.com/users/klamontagne","html_url":"https://github.com/klamontagne","followers_url":"https://api.github.com/users/klamontagne/followers","following_url":"https://api.github.com/users/klamontagne/following{/other_user}","gists_url":"https://api.github.com/users/klamontagne/gists{/gist_id}","starred_url":"https://api.github.com/users/klamontagne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klamontagne/subscriptions","organizations_url":"https://api.github.com/users/klamontagne/orgs","repos_url":"https://api.github.com/users/klamontagne/repos","events_url":"https://api.github.com/users/klamontagne/events{/privacy}","received_events_url":"https://api.github.com/users/klamontagne/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-12-03T20:05:16Z","updated_at":"2015-01-10T01:19:25Z","closed_at":null,"body":"I currently have the following mounted fs in my fstab:\r\n\r\n    1.2.3.1:6789,1.2.3.3:6789,1.2.3.4:6789,1.2.3.2:6789:/ /media/ceph ceph _netdev,name=cephfs.mymachine,secretfile=/etc/ceph/ceph.client.cephfs.mymachine.secret 0 0\r\n\r\nchef-client tries to mount the \"new\" fs and mount exits unsuccessfuly:\r\n\r\n    [2014-12-03T14:50:19-05:00] ERROR: mount[mount /media/ceph] (/var/chef/cache/cookbooks/ceph/providers/cephfs.rb line 35) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '16'\r\n    ---- Begin output of mount -t ceph -o _netdev,name=cephfs.mymachine,secretfile=/etc/ceph/ceph.client.cephfs.mymachine.secret 1.2.3.1:6789,1.2.3.4:6789,1.2.3.3:6789,1.2.3.2:6789:/ /media/ceph ----\r\n    STDOUT: mount error 16 = Device or resource busy\r\n    STDERR:\r\n    ---- End output of mount -t ceph -o _netdev,name=cephfs.mymachine,secretfile=/etc/ceph/ceph.client.cephfs.mymachine.secret 1.2.3.1:6789,1.2.3.4:6789,1.2.3.3:6789,1.2.3.2:6789:/ /media/ceph ----\r\n    Ran mount -t ceph -o _netdev,name=cephfs.mymachine,secretfile=/etc/ceph/ceph.client.cephfs.mymachine.secret 1.2.3.1:6789,1.2.3.4:6789,1.2.3.3:6789,1.2.3.2:6789:/ /media/ceph returned 16\r\n    [2014-12-03T14:50:19-05:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)\r\n\r\nIt seems that the order of mons is not kept between runs. (1,3,4,2 vs 1,4,3,2)"},"comment":{"url":"https://api.github.com/repos/ceph/ceph-cookbook/issues/comments/69430259","html_url":"https://github.com/ceph/ceph-cookbook/issues/175#issuecomment-69430259","issue_url":"https://api.github.com/repos/ceph/ceph-cookbook/issues/175","id":69430259,"user":{"login":"hufman","id":1592375,"avatar_url":"https://avatars.githubusercontent.com/u/1592375?v=3","gravatar_id":"","url":"https://api.github.com/users/hufman","html_url":"https://github.com/hufman","followers_url":"https://api.github.com/users/hufman/followers","following_url":"https://api.github.com/users/hufman/following{/other_user}","gists_url":"https://api.github.com/users/hufman/gists{/gist_id}","starred_url":"https://api.github.com/users/hufman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hufman/subscriptions","organizations_url":"https://api.github.com/users/hufman/orgs","repos_url":"https://api.github.com/users/hufman/repos","events_url":"https://api.github.com/users/hufman/events{/privacy}","received_events_url":"https://api.github.com/users/hufman/received_events","type":"User","site_admin":false},"created_at":"2015-01-10T01:19:25Z","updated_at":"2015-01-10T01:19:25Z","body":"Feel free to send a PR that sorts the mons, as a workaround. The cookbook should learn how to delete the old line from fstab and add a new line with the new mons in case the actual mons change, but I'm not sure how to do that."}}