add the import for easier testing

Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
create a helper to figure out the repo url

Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
tests for the new helper

Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
Merge pull request #194 from alfredodeza/8443

fix repo urls for rhel6
Add better status message when adding new monitors

The `time.sleep(2)` in the `mon_add` method is not enough in some cases.
For example, when a low-spec slow VM acting as a monitor, it may still at
the state of 'probing' after the 2-seconds sleep. But in such cases the
`mon_status` method will just say the monitor *is not running*, it's kind of
confusion.

So maybe it would be better if provides user the current state of the
newly added monitor in the log message.

Signed-off-by: kfei <kfei@kfei.net>
Merge pull request #195 from kfei/mon-add-status

Add better status message when adding new monitors