]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
common: do not regenerate a cluster fsid if cluster exists 1157/head
authorSébastien Han <seb@redhat.com>
Tue, 6 Dec 2016 14:59:49 +0000 (15:59 +0100)
committerSébastien Han <seb@redhat.com>
Wed, 7 Dec 2016 10:26:48 +0000 (11:26 +0100)
commitde07ba8fbf6ff0ab4fe093c3baa1f8e66be06386
tree6aa4936cf2769896ed527e3d0042d588948d5252
parent61551fa37db1ddcc22a0929d2b2cb53eee19c870
common: do not regenerate a cluster fsid if cluster exists

This commit solves the situation where you lost your fetch directory and
you are running ansible against an existing cluster. Since no fetch
directory is present the file containing the fsid doesn't exist so we
are creating a new one. Later the ceph.conf gets updated with a wrong
fsid which causes problems for clients and ceph processes.

Closes: #1148
Signed-off-by: Sébastien Han <seb@redhat.com>
roles/ceph-common/tasks/facts.yml
roles/ceph-common/tasks/main.yml