{"action":"opened","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/21012","labels_url":"https://api.github.com/repos/saltstack/salt/issues/21012/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/21012/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/21012/events","html_url":"https://github.com/saltstack/salt/issues/21012","id":58851598,"number":21012,"title":"mongodb module incompatible with MongoDB 3.0 RCs","user":{"login":"hackel","id":583677,"avatar_url":"https://avatars.githubusercontent.com/u/583677?v=3","gravatar_id":"","url":"https://api.github.com/users/hackel","html_url":"https://github.com/hackel","followers_url":"https://api.github.com/users/hackel/followers","following_url":"https://api.github.com/users/hackel/following{/other_user}","gists_url":"https://api.github.com/users/hackel/gists{/gist_id}","starred_url":"https://api.github.com/users/hackel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hackel/subscriptions","organizations_url":"https://api.github.com/users/hackel/orgs","repos_url":"https://api.github.com/users/hackel/repos","events_url":"https://api.github.com/users/hackel/events{/privacy}","received_events_url":"https://api.github.com/users/hackel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-25T05:12:35Z","updated_at":"2015-02-25T05:12:35Z","closed_at":null,"body":"With MongoDB 3.0.0-rc10 installed, I get the following error when calling `mongodb_user.present` in a state:\r\n\r\n[ERROR   ] An exception occurred in this state: Traceback (most recent call last):\r\n  File \"/usr/lib/python2.7/dist-packages/salt/state.py\", line 1529, in call\r\n    **cdata['kwargs'])\r\n  File \"/usr/lib/python2.7/dist-packages/salt/states/mongodb_user.py\", line 66, in present\r\n    if __salt__['mongodb.user_exists'](name, user, password, host, port, database):\r\n  File \"/usr/lib/python2.7/dist-packages/salt/modules/mongodb.py\", line 193, in user_exists\r\n    users = user_list(user, password, host, port, database)\r\n  File \"/usr/lib/python2.7/dist-packages/salt/modules/mongodb.py\", line 159, in user_list\r\n    if StrictVersion(mongodb_version) >= StrictVersion('2.6'):\r\n  File \"/usr/lib/python2.7/distutils/version.py\", line 40, in __init__\r\n    self.parse(vstring)\r\n  File \"/usr/lib/python2.7/distutils/version.py\", line 107, in parse\r\n    raise ValueError, \"invalid version number '%s'\" % vstring\r\nValueError: invalid version number '3.0.0-rc10'\r\n\r\nLooks like this is caused by using StrictVersion on the mongo version string, the standards of which Mongo clearly doesn't care about.  Everything works fine if I fudge the version as \"3.0.0b10\"."}}