]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commit
Only perform actions on the rbd pool after it has been created
authorAl Lau <alau2@cisco.com>
Fri, 29 Sep 2017 17:19:05 +0000 (10:19 -0700)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 4 Oct 2017 13:40:10 +0000 (15:40 +0200)
commit6aca67bc9c216c4bb996e8a5ea9b280ce414fbb8
treee5548aca1aa12b9fa29a06c28de5ff7d3524f1d1
parentee8aa8bf390d0ffe7825e4e2162c3759e4dcb714
Only perform actions on the rbd pool after it has been created

The rbd pool is the default pool that gets created during ceph cluster
initializaiton.  If we act on the rbd related operations too early, the
rbd pool does not exist yet.  Move the call to perform rbd operations
to a later stage after other pools have been created.

The rbd_pool.yml playbook has all the operations related to the rbd pool.

Replace the always_run (deprecated) directive with check_mode.

Most of the ceph related tasks only need to run once.  The run_once directive
executes the task on the first host.

The ceph sub-command to delete a pool is delete (not rm).

The changes submitted here were tested with this ceph version.
ceph version 0.94.9-9.el7cp (b83334e01379f267fb2f9ce729d74a0a8fa1e92c)

This upload includes these changes:
  - Use the fail module (instead of assert).
  - From luminous release, the rbd pool is no longer created by default.
    Delete the code to create the rbd pool for luminous release
  - Conform the .yml files to use the suggested syntax.

The commands are executed on the mcp nodes and I think shell ansible module
is the right one to use.  The command module is used to execute commands on
remote nodes.  I can make the change to use command module if that is
prefrerred.
roles/ceph-mon/tasks/ceph_keys.yml
roles/ceph-mon/tasks/rbd_pool.yml
roles/ceph-mon/tasks/rbd_pool_df.yml [new file with mode: 0644]
roles/ceph-mon/tasks/rbd_pool_luminous.yml [new file with mode: 0644]
roles/ceph-mon/tasks/rbd_pool_pgs.yml
roles/ceph-mon/tasks/rbd_pool_size.yml