Ansible playbooks to deploy Ceph, the distributed filesystem.
 
 
 
 
Go to file
Guillaume Abrioux ae06d684b8 osd: refact osd pool creation
Currently, the command executed is wrong, eg:

```
  cmd:
  - podman
  - exec
  - ceph-mon-controller-0
  - ceph
  - --cluster
  - ceph
  - osd
  - pool
  - create
  - volumes
  - '32'
  - '32'
  - replicated_rule
  - '1'
  delta: '0:00:01.625525'
  end: '2020-02-27 16:41:05.232705'
  item:
```

From documentation, the osd pool creation command is :

```
ceph osd pool create {pool-name} {pg-num} [{pgp-num}] [replicated] \
     [crush-rule-name] [expected-num-objects]
ceph osd pool create {pool-name} {pg-num}  {pgp-num}   erasure \
     [erasure-code-profile] [crush-rule-name] [expected_num_objects]
```

it means we pass '1' (from item.type) as value for
`expected_num_objects` by default which is very likely not what we want.

Also, this commit modifies the default value when no `rule_name` is set
to use the existing variable `osd_pool_default_crush_rule`

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1808495

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit bf1f125d71)
2020-03-06 16:10:03 +01:00
.github/ISSUE_TEMPLATE Update issue templates 2018-07-12 14:10:15 +02:00
contrib remove ceph restapi references 2019-06-20 15:15:10 -04:00
docs switch to ansible 2.8 2019-05-21 09:17:46 +02:00
group_vars rgw multisite: enable more than 1 realm per cluster 2020-03-04 14:39:23 -05:00
infrastructure-playbooks shrink-rbdmirror: fix presence after removal 2020-03-03 15:19:45 +01:00
library ceph_volume: support filestore to bluestore migration 2020-01-08 11:18:12 -05:00
plugins ipaddrs_in_ranges: fix python indent 2019-10-28 15:54:31 +01:00
profiles Common: Add profiles 2017-07-19 11:50:03 +02:00
roles osd: refact osd pool creation 2020-03-06 16:10:03 +01:00
tests rgw multisite: enable more than 1 realm per cluster 2020-03-04 14:39:23 -05:00
.gitignore remove ceph-agent role and references 2019-06-17 15:56:00 -04:00
.travis.yml move library/plugins tests files under tests dir 2019-10-28 15:54:31 +01:00
CONTRIBUTING.md remove ceph-agent role and references 2019-06-17 15:56:00 -04:00
LICENSE Add Ceph Playbook 2014-03-03 19:08:51 +01:00
Makefile makefile: change distro to el8 2019-02-20 08:10:30 +00:00
README-MULTISITE-MULTIREALM.md rgw multisite: enable more than 1 realm per cluster 2020-03-04 14:39:23 -05:00
README-MULTISITE.md rgw multisite: enable more than 1 realm per cluster 2020-03-04 14:39:23 -05:00
README.rst Update Documentation example link to 3.0 2018-02-07 16:34:45 +01:00
Vagrantfile tests: revert vagrant_variable file name detection 2019-11-25 14:52:57 +01:00
ansible.cfg ansible.cfg: do not enforce PreferredAuthentications 2019-12-11 08:56:44 -05:00
ceph-ansible.spec.in Remove validate action and notario dependency 2019-10-15 10:21:54 -04:00
dashboard.yml ceph-facts: move grafana fact to dedicated file 2020-01-13 16:28:23 -05:00
dummy-ansible-hosts Fix Travis 2015-01-21 16:33:26 +01:00
generate_group_vars_sample.sh remove ceph-agent role and references 2019-06-17 15:56:00 -04:00
raw_install_python.yml install python-xml on SUSE/openSUSE only if python2 is installed 2019-09-27 17:50:10 +02:00
requirements.txt requirements: enforce ansible version requirement 2020-02-27 09:56:55 -05:00
rhcs_edits.txt rhcs: set ceph_iscsi_config_dev to false 2019-10-23 09:47:46 +02:00
site-container.yml.sample site-container: don't skip ceph-container-common 2020-01-23 16:27:31 +01:00
site-docker.yml.sample site: symlink site-docker to site-container 2018-11-27 16:47:40 +00:00
site.yml.sample playbooks: show cluster status after dashboard 2019-10-18 19:32:42 -04:00
test.yml Remove spurious ceph. prefix for roles path in test.yml 2019-01-11 11:10:52 +01:00
tox-dashboard.ini tests: remove useless setting 2019-07-17 09:04:20 +00:00
tox-docker2podman.ini tests: add a docker2podman scenario 2020-01-10 17:41:27 +01:00
tox-external_clients.ini config: fix external client scenario 2020-01-31 13:37:10 +01:00
tox-filestore_to_bluestore.ini tox: set extras vars for filestore-to-bluestore 2020-01-28 22:21:49 -05:00
tox-podman.ini purge: rename playbook (container) 2019-12-04 09:12:41 -05:00
tox-update.ini tests: update tox due to pipeline removal 2019-10-08 14:03:14 -04:00
tox.ini tox: update shrink scenario configuration 2020-03-03 15:19:45 +01:00
vagrant_variables.yml.sample Fix units and add ability to have a dedicated instance 2019-06-12 11:48:12 +02:00

README.rst

ceph-ansible
============
Ansible playbooks for Ceph, the distributed filesystem.

Please refer to our hosted documentation here: http://docs.ceph.com/ceph-ansible/master/

You can view documentation for our ``stable-*`` branches by substituting ``master`` in the link
above for the name of the branch. For example: http://docs.ceph.com/ceph-ansible/stable-3.0/