]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commit
Add better status message when adding new monitors 195/head
authorkfei <kfei@kfei.net>
Fri, 30 May 2014 08:50:53 +0000 (16:50 +0800)
committerkfei <kfei@kfei.net>
Fri, 30 May 2014 08:50:53 +0000 (16:50 +0800)
commit3891a5baea6566bae6a3f0732139a77db8c4ac96
tree7a867887939ce1a4ee09faaa2efd67fdb2496c26
parentcae9de0f9b0212b94b9a1c4292a3ff99e48b2430
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>
ceph_deploy/mon.py