]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commit
[RM-12374] Pass mon host list from ceph.conf to mon_create 328/head
authorTravis Rhoden <trhoden@redhat.com>
Thu, 16 Jul 2015 21:48:33 +0000 (14:48 -0700)
committerTravis Rhoden <trhoden@redhat.com>
Thu, 16 Jul 2015 21:48:33 +0000 (14:48 -0700)
commit912aa8014d6eaef3056d1ebdf5be1fc6d4c630f2
tree7590c434b70095f3404044724918079852aceece
parent96efe9e6f91be6fcc6906aaa8efd3587711c3e0c
[RM-12374] Pass mon host list from ceph.conf to mon_create

When using mon_create_initial(), we already have list of initial mon
members from the config file.  Pass it to mon_create() in args.mon
so that mon_create() does not throw an exception when it finds that
args.mon does not exist.

This is actually an optimization as well. mon_create_initial() always
looked up mon_initial_members from the config file, but didn't pass that
to mon_create().  mon_create() would then see that args.mon was empty
and then look up mon_initial_members *again*.  Now we only need to open
and read the file once.

Fixes: #12374
Signed-off-by: Travis Rhoden <trhoden@redhat.com>
ceph_deploy/mon.py