Andrew Schoen
30f9b0e075
ceph-common: render ceph_conf_overrides into fetch_directory
...
Writing into /tmp is not always allowed, but we can assume the
fetch_directory is writable.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2017-08-04 12:19:12 -05:00
Sébastien Han
9da848abac
Merge pull request #1716 from ceph/lvm-osds
...
adds a new OSD scenario to create OSDs with ceph-volume
2017-08-04 17:31:26 +02:00
Douglas Fuller
aab3318802
ceph-mds: Enable multimds under docker
...
This is under the MDS role instead of the mon role because that role
does not create the filesystem under docker.
Signed-off-by: Douglas Fuller <dfuller@redhat.com>
2017-08-04 10:46:11 -04:00
Andrew Schoen
be78bc1a90
ceph-defaults: fix containerized osd restarts
...
This needs to check `containerized_deployment` because
socket_osd_container is undefined otherwise.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2017-08-04 06:38:38 -05:00
Andrew Schoen
d1c7ec81c1
ceph-common: move release-rhs.yml after ceph_version is set
...
These tasks needs to be run after we set ceph_version or
they fail because it's undefined.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2017-08-04 06:38:37 -05:00
Andrew Schoen
1d5f876729
ceph-osd: devices is not required when osd_scenario == lvm
...
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2017-08-04 06:38:37 -05:00
Andrew Schoen
e597628be9
lvm: update scenario for new osd_scenario variable
...
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2017-08-04 06:38:36 -05:00
Andrew Schoen
3b5a06bb3c
lvm-osds: reorder mandatory vars checks
...
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2017-08-04 06:13:10 -05:00
Andrew Schoen
96c92a154e
lvm-osds: check for osd_objectstore == 'filestore'
...
ceph-volume currently only has support for filestore, not bluestore
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2017-08-04 06:13:10 -05:00
Andrew Schoen
61d63f8468
lvm-osds: make task name and files consistent
...
Removes capitilization and newlines to keep these files consistent in
style with the existing tasks.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2017-08-04 06:13:10 -05:00
Andrew Schoen
249598ff4b
lvm-osds: update group_vars/osds.yml.sample
...
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2017-08-04 06:13:09 -05:00
Andrew Schoen
66df80d600
tests: do not use sudo with dev_setup.yml
...
This causes problems when the tests are run locally and not in the CI
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2017-08-04 06:13:09 -05:00
Andrew Schoen
63b7e3d36c
lvm_osds: ensure osd daemons are started
...
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2017-08-04 06:13:09 -05:00
Andrew Schoen
d8aea71e31
tests: lvm_osds does not have devices defined
...
This means that our tests needs to use the lvm_volumes dictionary
instead of devices.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2017-08-04 06:13:09 -05:00
Andrew Schoen
661de0f3b0
tests: adds an lvm_osds testing scenario
...
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2017-08-04 06:13:09 -05:00
Andrew Schoen
fd4a021051
docs: add docs for the lvm_osds OSD scenario
...
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2017-08-04 06:13:09 -05:00
Andrew Schoen
b93794bed4
adds a new 'lvm_osds' osd scenario
...
This scenario will create OSDs using ceph-volume and is only available
in ceph releases greater than Luminous.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2017-08-04 06:13:09 -05:00
Sébastien Han
ff8bb3d1d7
Merge pull request #1743 from ceph/rhcs-yml
...
generate_group_vars_sample: rhcs.yml.sample
2017-08-03 23:06:46 +02:00
Sébastien Han
95dc6213b7
generate_group_vars_sample: rhcs.yml.sample
...
Add a pre-configured bare minimum rhcs.yml.sample that can save
configuration steps.
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1478071
Signed-off-by: Sébastien Han <seb@redhat.com>
2017-08-03 23:05:42 +02:00
Sébastien Han
e6a5c3b815
Merge pull request #1734 from ceph/debian-repo
...
common: automate setting up online repositories for ceph deployments …
2017-08-03 22:45:31 +02:00
Sébastien Han
7559a2deff
common: automate setting up online repositories for ceph deployments on debian nodes
...
This commits automates the process of setting up online repositories for
Red Hat Ceph Storage on Debian nodes. The manual steps are currently
described here:
https://access.redhat.com/documentation/en-us/red_hat_ceph_storage/2/html/installation_guide_for_ubuntu/prerequisites#online_repositories
If you are an RHCS customer and run a Debian based system you can now
access package through the Red Hat CDN.
For this set: ceph_rhcs and ceph_rhcs_cdn_install to true. Then set your
customer credentials in ceph_rhcs_cdn_debian_repo. Replace
customername:customerpasswd with your details.
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1434175
Signed-off-by: Sébastien Han <seb@redhat.com>
2017-08-03 17:15:07 +02:00
Andrew Schoen
d2f4d3666f
Merge pull request #1725 from ceph/simplify-osd-scenario
...
osd: simply osd scenario declaration
2017-08-03 09:31:57 -05:00
Andrew Schoen
e92b93ebeb
Merge pull request #1735 from ceph/ceph-version-detection
...
common: override and autodetect ceph_stable_release
2017-08-03 09:29:02 -05:00
Sébastien Han
0d5d2db72c
Merge pull request #1740 from Logan2211/ceph-defaults-breakout
...
Add ceph-defaults to galaxy role breakout script
2017-08-03 16:01:42 +02:00
Logan V
a1a4a5074a
Add ceph-defaults to galaxy role breakout script
2017-08-03 08:15:15 -05:00
Sébastien Han
af1e4d16d2
common: override and autodetect ceph_stable_release
...
For ceph_dev and rhcs installation we need to detect the release since
we do not declare it explicitly. Keeping the default ceph_stable_release
could lead to several things going wrong and some have already been
reported.
Fixes: https://github.com/ceph/ceph-ansible/issues/1712 and
https://bugzilla.redhat.com/show_bug.cgi?id=1476210
Signed-off-by: Sébastien Han <seb@redhat.com>
2017-08-03 14:13:31 +02:00
Sébastien Han
671f2cd4bc
Merge pull request #1738 from yanyixing/nvmepart
...
fix for nvme part path
2017-08-03 13:37:10 +02:00
yanyx
d506fad056
fix for nvme part path
2017-08-03 17:37:52 +08:00
Sébastien Han
30991b1c0a
osd: simplify scenarios
...
There is only two main scenarios now:
* collocated: everything remains on the same device:
- data, db, wal for bluestore
- data and journal for filestore
* non-collocated: dedicated device for some of the component
Signed-off-by: Sébastien Han <seb@redhat.com>
2017-08-03 10:20:39 +02:00
Sébastien Han
6e379157ec
Merge pull request #1727 from ceph/refact
...
Refact playbook
2017-08-02 22:00:50 +02:00
Sébastien Han
3a8bf18b0b
generate_group_vars_sample: update for ceph-defaults
...
Signed-off-by: Sébastien Han <seb@redhat.com>
2017-08-02 17:12:20 +02:00
Sébastien Han
fdc6aebd62
infrastructure-playbooks: update with ceph-defaults roles
...
Signed-off-by: Sébastien Han <seb@redhat.com>
2017-08-02 17:12:20 +02:00
Guillaume Abrioux
608bad901d
docker-common: Fix bug when updating config
...
in containerized deployment, if you try to update your `ceph.conf` file
it won't be actually updated on your nodes because it is overwritten by
the copy of the file which is present in your fetch directory.
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
2017-08-02 17:12:20 +02:00
Guillaume Abrioux
7a333d05ce
Add handlers for containerized deployment
...
Until now, there is no handlers for containerized deployments.
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
2017-08-02 17:12:20 +02:00
Guillaume Abrioux
fc6b6e9859
Move basics facts to `ceph-defaults`
...
Move `fsid`,`monitor_name`,`docker_exec_cmd` and `ceph_release` set_fact
to `ceph-defaults` role.
It will allow to reuse these facts without having to play `ceph-common`
or `ceph-docker-common`.
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
2017-08-02 17:12:20 +02:00
Guillaume Abrioux
5adbf0fdaa
Move role dependencies in site.yml/site-docker.yml
...
This will give us more flexibility and avoid a lot of useless when
skipping all tasks from a non-desired role.
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
2017-08-02 17:12:14 +02:00
Guillaume Abrioux
7322526838
Add new role `ceph-defaults`
...
Add a new role `ceph-defaults`.
This role aims to handle all defaults vars for `ceph-docker-common` and
`ceph-common` and set basic facts (eg. `fsid`)
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
2017-08-02 14:46:57 +02:00
Guillaume Abrioux
1d003aa887
merge docker-common and common defaults vars
...
Merge `ceph-docker-common` and `ceph-common` defaults vars in
`ceph-defaults` role.
Remove redundant variables declaration in `ceph-mon` and `ceph-osd` roles.
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
2017-08-02 14:46:51 +02:00
Guillaume Abrioux
206c7a16d0
rolling_update: refact code
...
Refact rolling_update playbook.
Add ceph-client upgrade.
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
2017-08-02 11:10:51 +02:00
Sébastien Han
f9eeedfbee
Merge pull request #1718 from yanyixing/changeowner
...
change the partition's ownership
2017-07-31 13:48:35 +02:00
Sébastien Han
511750f31e
Merge pull request #1018 from ceph/profile-examples
...
profiles: introducing cluster profiles
2017-07-28 15:38:06 +02:00
Sébastien Han
050807471a
Merge pull request #1723 from ceph/mount-skip
...
osd: fail check mount partition if not skipped
2017-07-28 14:39:33 +02:00
Sébastien Han
078e5f8e64
Merge pull request #1713 from ceph/ceph-stable
...
common: make ceph_stable_release mandatory
2017-07-27 17:23:20 +02:00
Sébastien Han
26f4752bc4
common: only add a daemon section if we run on the host
...
We don't want to have heterogeous ceph.conf anymore and believe that we
should have the right section for the running daemon.
If we don't do this and use profiles, e.g: rgw, we will get a new rgw
section on some of the nodes.
Signed-off-by: Sébastien Han <seb@redhat.com>
2017-07-27 16:34:17 +02:00
Sébastien Han
af431a0802
Merge pull request #1596 from czunker/restart_with_crush_location
...
Restart OSDs during initial setup when crush location is used
2017-07-27 14:22:45 +02:00
Sébastien Han
63cbcc8260
osd: fail check mount partition if not skipped
...
We forgot to handle the case where "check if any of the raw partitions
are mounted" task gets skipped.
Signed-off-by: Sébastien Han <seb@redhat.com>
2017-07-27 11:39:19 +02:00
Sébastien Han
da4cce2c74
common: make ceph_stable_release mandatory
...
It is mandatory now to set the Ceph version you want to install, e.g:
ceph_stable_release: luminous
To find the release names, you can look at the release not doc:
http://docs.ceph.com/docs/master/release-notes/
Signed-off-by: Sébastien Han <seb@redhat.com>
2017-07-27 09:49:21 +02:00
yanyx
d0a17b11b2
change the partition's ownership
2017-07-27 11:55:30 +08:00
Andrew Schoen
fb4254b7e5
Merge pull request #1715 from ceph/do-no-enable
...
osd: do not enable osd@id unit file
2017-07-26 11:41:22 -05:00
Sébastien Han
8ac7d2e4c9
osd: do not enable osd@id unit file
...
ceph-disk is responsable for enabling the unit file if needed. Actually
since https://github.com/ceph/ceph/pull/12241 it seems that it's not
even needed. On an event of a restart, udev rules will be trigger and
they will ceph-disk activate the device too so the 'enabled' is not
needed.
Closes: https://github.com/ceph/ceph-ansible/issues/1142
Signed-off-by: Sébastien Han <seb@redhat.com>
2017-07-26 17:17:57 +02:00