]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/log
ceph-ansible.git
8 years agoresync group_vars 1796/head
Sébastien Han [Wed, 23 Aug 2017 13:33:48 +0000 (15:33 +0200)]
resync group_vars

Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agoMerge pull request #1731 from SirishaGuduru/rgw-civetwebIP-conf
Sébastien Han [Wed, 23 Aug 2017 13:33:08 +0000 (15:33 +0200)]
Merge pull request #1731 from SirishaGuduru/rgw-civetwebIP-conf

Common: changed civetweb line in rgw section(conf)

8 years agoMerge pull request #1784 from ceph/fix-restart-osd-container
Sébastien Han [Wed, 23 Aug 2017 10:40:01 +0000 (12:40 +0200)]
Merge pull request #1784 from ceph/fix-restart-osd-container

ceph-defaults: fix handler for osd container

8 years agoCommon: changed civetweb line in rgw section(conf) 1731/head
SirishaGuduru [Mon, 7 Aug 2017 09:23:32 +0000 (14:53 +0530)]
Common: changed civetweb line in rgw section(conf)

Resolves issue: Multiple RGW Ceph.conf Issue #1258

In multi-RGW setup, in ceph.conf the RGW sections
contain identical bind IP in civetweb line. So this
modification fixes that issue and puts the right IP
for each RGW.

Signed-off-by: SirishaGuduru SGuduru@walmartlabs.com
Modified ceph-defaults and ran generate_group_vars_sample.sh

group_vars/osds.yml.sample and group_vars/rhcs.yml.sample are
not part of the changes. But they got modified when
generate_group_vars_sample.sh is ran to generate group_vars/
all.yml.sample.

Uncommented added variables in ceph-defaults

Updated tests by adding value for radosgw_interface

Added radosgw_interface to centos cluster tests

Modified ceph-rgw role,rebased and ran generate_group_vars_sample.sh

In ceph-rgw role removed check_mandatory_vars.yml.
Rebased on master.
Ran generate_group_vars_sample.sh and then the below files got
modified.

8 years agoMerge pull request #1625 from ceph/wip-rbd-mirror-keys
Sébastien Han [Wed, 23 Aug 2017 09:26:05 +0000 (11:26 +0200)]
Merge pull request #1625 from ceph/wip-rbd-mirror-keys

rbd-mirror should use per-host user id keyring

8 years agorbd-mirror should use per-host user id keyring 1625/head
Jason Dillaman [Fri, 23 Jun 2017 18:54:50 +0000 (14:54 -0400)]
rbd-mirror should use per-host user id keyring

The rbd-mirror daemon will be HA under luminous and new daemon health
features require a way to uniquely identify rbd-mirror instances.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agodistribute rbd bootstrap key if available
Jason Dillaman [Fri, 11 Aug 2017 12:31:55 +0000 (08:31 -0400)]
distribute rbd bootstrap key if available

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #1778 from ceph/fix-1770
Sébastien Han [Tue, 22 Aug 2017 21:56:36 +0000 (23:56 +0200)]
Merge pull request #1778 from ceph/fix-1770

purge: add ability to purge bluestore osd

8 years agoMerge pull request #1786 from ceph/re-arrange-skipped
Sébastien Han [Tue, 22 Aug 2017 17:44:48 +0000 (19:44 +0200)]
Merge pull request #1786 from ceph/re-arrange-skipped

mon, osd: fix skipped condition

8 years agoMerge pull request #1789 from mistur/master
Sébastien Han [Tue, 22 Aug 2017 17:41:31 +0000 (19:41 +0200)]
Merge pull request #1789 from mistur/master

fix radosgw-admin call with another cluster name than "ceph"

8 years agomon, osd: fix skipped condition 1786/head
Sébastien Han [Tue, 22 Aug 2017 12:10:10 +0000 (14:10 +0200)]
mon, osd: fix skipped condition

To be properly evaluated the "skipped" conditions must always have the
first place on the list of condition, otherwise the other conditions are
evaluated before and make the task fail.

Closes: https://github.com/ceph/ceph-ansible/issues/1733
Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agoMerge pull request #1781 from ceph/ceph-volume-tests-cli
Andrew Schoen [Tue, 22 Aug 2017 15:50:32 +0000 (10:50 -0500)]
Merge pull request #1781 from ceph/ceph-volume-tests-cli

ceph-volume executable tests and testinfra API update

8 years agofix radosgw-admin call with another cluster name than "ceph" 1789/head
Yoann Moulin [Tue, 22 Aug 2017 14:57:12 +0000 (16:57 +0200)]
fix radosgw-admin call with another cluster name than "ceph"

8 years agoMerge pull request #1779 from gfidente/tripleo_switch_to_containerized
Sébastien Han [Tue, 22 Aug 2017 14:42:08 +0000 (16:42 +0200)]
Merge pull request #1779 from gfidente/tripleo_switch_to_containerized

TripleO switch to containers

8 years agoMerge pull request #1772 from ceph/docs-update
Sébastien Han [Tue, 22 Aug 2017 13:36:21 +0000 (15:36 +0200)]
Merge pull request #1772 from ceph/docs-update

documentation update for osd scenarios and basic installation/usage

8 years agoMerge pull request #1654 from andymcc/master
Sébastien Han [Tue, 22 Aug 2017 13:32:39 +0000 (15:32 +0200)]
Merge pull request #1654 from andymcc/master

Allow ceph-mon systemd overrides to be specified

8 years agoDefault cluster to ceph in switch to containers 1779/head
Giulio Fidente [Tue, 22 Aug 2017 11:06:01 +0000 (13:06 +0200)]
Default cluster to ceph in switch to containers

8 years agoParse ceph_docker_registry in switch to containers
Giulio Fidente [Tue, 22 Aug 2017 11:03:55 +0000 (13:03 +0200)]
Parse ceph_docker_registry in switch to containers

Defaults it to docker.io as it was for backward compatibility.

8 years agoAssume mon_docker_privileged false in switch to containers
Giulio Fidente [Tue, 22 Aug 2017 11:01:03 +0000 (13:01 +0200)]
Assume mon_docker_privileged false in switch to containers

8 years agoceph-defaults: fix handler for osd container 1784/head
Sébastien Han [Tue, 22 Aug 2017 09:56:05 +0000 (11:56 +0200)]
ceph-defaults: fix handler for osd container

Problem: task "check for a ceph socket in containerized deployment" will
be skipped if we are not an OSD.

with_items are still evaluated before when conditions so if the task was
skipped the dict will be empty and then fail.
Adding a "not skipped" condition skips the execution of the task.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1482061
Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agoMerge pull request #1783 from ceph/remove-dup-var
Sébastien Han [Tue, 22 Aug 2017 09:40:27 +0000 (11:40 +0200)]
Merge pull request #1783 from ceph/remove-dup-var

resync group_vars files

8 years agoresync group_vars files 1783/head
Sébastien Han [Tue, 22 Aug 2017 09:31:49 +0000 (11:31 +0200)]
resync group_vars files

Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agotests/rgw: update tests to use new host fixture 1781/head
Alfredo Deza [Mon, 21 Aug 2017 19:43:17 +0000 (15:43 -0400)]
tests/rgw: update tests to use new host fixture

Signed-off-by: Alfredo Deza <adeza@redhat.com>
8 years agotests/osd add tests for ceph-volume* executables
Alfredo Deza [Mon, 21 Aug 2017 19:43:03 +0000 (15:43 -0400)]
tests/osd add tests for ceph-volume* executables

Signed-off-by: Alfredo Deza <adeza@redhat.com>
8 years agotests/osd: update tests to use new host fixture
Alfredo Deza [Mon, 21 Aug 2017 19:42:46 +0000 (15:42 -0400)]
tests/osd: update tests to use new host fixture

Signed-off-by: Alfredo Deza <adeza@redhat.com>
8 years agotests/mons: update tests to use new host fixture
Alfredo Deza [Mon, 21 Aug 2017 19:42:24 +0000 (15:42 -0400)]
tests/mons: update tests to use new host fixture

Signed-off-by: Alfredo Deza <adeza@redhat.com>
8 years agotests/install: update tests to use new host fixture
Alfredo Deza [Mon, 21 Aug 2017 19:41:58 +0000 (15:41 -0400)]
tests/install: update tests to use new host fixture

Signed-off-by: Alfredo Deza <adeza@redhat.com>
8 years agotests/conftest: update node fixture for new testinfra API
Alfredo Deza [Mon, 21 Aug 2017 18:07:43 +0000 (14:07 -0400)]
tests/conftest: update node fixture for new testinfra API

Signed-off-by: Alfredo Deza <adeza@redhat.com>
8 years agoConsume public_network vs ceph_mon_docker_subnet
Giulio Fidente [Mon, 21 Aug 2017 16:32:40 +0000 (18:32 +0200)]
Consume public_network vs ceph_mon_docker_subnet

In the switch to containers migration there were broken references
to ceph_mon_docker_subnet variable, replaced with public_network.

Also fixes references to ceph_mon_docker_extra_env setting for it
a default as it could be undefined.

8 years agoExtend set_uid fact to support RH Ceph images
Giulio Fidente [Mon, 21 Aug 2017 16:32:08 +0000 (18:32 +0200)]
Extend set_uid fact to support RH Ceph images

8 years agopurge: add ability to purge bluestore osd 1778/head
Sébastien Han [Mon, 21 Aug 2017 16:08:18 +0000 (18:08 +0200)]
purge: add ability to purge bluestore osd

We now purge block db and/or wal partitions if we find any.

Closes: https://github.com/ceph/ceph-ansible/issues/1770
Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agoMerge pull request #1695 from fullerdj/wip-djf-docker-multimds
Sébastien Han [Mon, 21 Aug 2017 08:23:21 +0000 (10:23 +0200)]
Merge pull request #1695 from fullerdj/wip-djf-docker-multimds

ceph-mds: Enable multimds under docker

8 years agoMerge pull request #1762 from ceph/install_pkg_rbdmirror
Sébastien Han [Mon, 21 Aug 2017 08:20:44 +0000 (10:20 +0200)]
Merge pull request #1762 from ceph/install_pkg_rbdmirror

ceph-common: install base package to provide ceph CLI

8 years agodocs: add examples for collocated and non-collocated osd scenarios 1772/head
Andrew Schoen [Fri, 18 Aug 2017 16:08:56 +0000 (11:08 -0500)]
docs: add examples for collocated and non-collocated osd scenarios

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agodocs: move testing/glossary after index in glossary.rst
Andrew Schoen [Fri, 18 Aug 2017 16:06:59 +0000 (11:06 -0500)]
docs: move testing/glossary after index in glossary.rst

We want the usage docs before the testing docs on this page.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agodocs: remove the old README and link to the hosted docs
Andrew Schoen [Thu, 17 Aug 2017 16:29:07 +0000 (11:29 -0500)]
docs: remove the old README and link to the hosted docs

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agodocs: add docs for dev contributions
Andrew Schoen [Thu, 17 Aug 2017 16:25:56 +0000 (11:25 -0500)]
docs: add docs for dev contributions

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agodocs: add docs for ceph_conf_overrides usage
Andrew Schoen [Thu, 17 Aug 2017 16:13:55 +0000 (11:13 -0500)]
docs: add docs for ceph_conf_overrides usage

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agodocs: add links to example videos
Andrew Schoen [Thu, 17 Aug 2017 16:09:37 +0000 (11:09 -0500)]
docs: add links to example videos

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agodocs: collocated and non-collocated scenario docs
Andrew Schoen [Thu, 17 Aug 2017 15:53:24 +0000 (10:53 -0500)]
docs: collocated and non-collocated scenario docs

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agodocs: docs for installation and basic config
Andrew Schoen [Thu, 17 Aug 2017 15:23:59 +0000 (10:23 -0500)]
docs: docs for installation and basic config

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agocommon: install ceph-common on all nodes 1762/head
Guillaume Abrioux [Sat, 12 Aug 2017 15:41:44 +0000 (17:41 +0200)]
common: install ceph-common on all nodes

This commits force ceph-common to be installed early in deployment on
nodes.

For instance, ceph-rbdmirror doesn't have the CLI installed while it is
needed for some tasks which uses it to set some facts.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
8 years agoAllow ceph service systemd overrides to be specified 1654/head
Andy McCrae [Wed, 5 Jul 2017 13:47:48 +0000 (14:47 +0100)]
Allow ceph service systemd overrides to be specified

ceph services can fail to start under certain circumstances (for
example, when running in a container) because the default systemd
service configuration causes namespace issues.

To work around this we can override the system service settings by
placing an overrides file in the ceph-<service>@.service.d directory.
This can be generic so as to allow any potential changes required to
the ceph-<service> service files.

The overrides file is only setup when the
"ceph_<service>_systemd_overrides" config_template override variable is
specified.

The available service systemd override files are as follows:
ceph_mds_systemd_overrides
ceph_mgr_systemd_overrides
ceph_mon_systemd_overrides
ceph_osd_systemd_overrides
ceph_rbd_mirror_systemd_overrides
ceph_rgw_systemd_overrides

8 years agoMerge pull request #1759 from fultonj/master v3.0.0rc3
Guillaume Abrioux [Thu, 10 Aug 2017 19:54:15 +0000 (21:54 +0200)]
Merge pull request #1759 from fultonj/master

Set the permissions mode on all of the OpenStack keys

8 years agoSet the permissions mode on all of the OpenStack keys 1759/head
John Fulton [Thu, 10 Aug 2017 17:50:08 +0000 (13:50 -0400)]
Set the permissions mode on all of the OpenStack keys

The original fix to issue #1755 only set the permissions on
the monitors to which the key was copied, but not the original
monitor where the key was created. Thus, we use a separate task
to set the permission of the key.

8 years agoMerge pull request #1756 from fultonj/master v3.0.0rc2
Guillaume Abrioux [Thu, 10 Aug 2017 15:39:23 +0000 (17:39 +0200)]
Merge pull request #1756 from fultonj/master

Allow user to specify the mode of the openstack keys

8 years agoAllow user to specify the mode of the openstack keys 1756/head
John Fulton [Wed, 9 Aug 2017 20:52:18 +0000 (20:52 +0000)]
Allow user to specify the mode of the openstack keys

The openstack_keys structure now supports a key called mode
whose value is a string that one could pass to chmod to set
the mode of the key file. The ansible file module applies the
mode to all openstack keys with this property.

Fixes: #1755
8 years agoMerge pull request #1560 from ceph/wip-rev-ansible-testing v3.0.0rc1
Guillaume Abrioux [Wed, 9 Aug 2017 16:10:56 +0000 (18:10 +0200)]
Merge pull request #1560 from ceph/wip-rev-ansible-testing

change ansible environment to 2.3 release

8 years agochange ansible environment to 2.3 release 1560/head
Gregory Meno [Mon, 22 May 2017 18:13:04 +0000 (11:13 -0700)]
change ansible environment to 2.3 release

Signed-off-by: Gregory Meno <gmeno@redhat.com>
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agoMerge pull request #1750 from ceph/lvm-test-update
Guillaume Abrioux [Tue, 8 Aug 2017 17:42:00 +0000 (19:42 +0200)]
Merge pull request #1750 from ceph/lvm-test-update

tests: do not use /dev/sda in the lvm scenario

8 years agotests: do not use /dev/sda in the lvm scenario 1750/head
Andrew Schoen [Fri, 4 Aug 2017 20:57:56 +0000 (15:57 -0500)]
tests: do not use /dev/sda in the lvm scenario

When you udpate to the latest version of the centos/7 box it always puts
the OS on /dev/sda, so do not use it as an OSD.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agoMerge pull request #1745 from ceph/tmp-path-fix
Andrew Schoen [Fri, 4 Aug 2017 20:45:53 +0000 (15:45 -0500)]
Merge pull request #1745 from ceph/tmp-path-fix

ceph-common: render ceph_conf_overrides into fetch_directory

8 years agoceph-common: render ceph_conf_overrides into fetch_directory 1745/head
Andrew Schoen [Fri, 4 Aug 2017 16:14:29 +0000 (11:14 -0500)]
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>
8 years agoMerge pull request #1716 from ceph/lvm-osds
Sébastien Han [Fri, 4 Aug 2017 15:31:26 +0000 (17:31 +0200)]
Merge pull request #1716 from ceph/lvm-osds

adds a new OSD scenario to create OSDs with ceph-volume

8 years agoceph-mds: Enable multimds under docker 1695/head
Douglas Fuller [Wed, 19 Jul 2017 18:56:28 +0000 (18:56 +0000)]
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>
8 years agoceph-defaults: fix containerized osd restarts 1716/head
Andrew Schoen [Thu, 3 Aug 2017 16:49:18 +0000 (11:49 -0500)]
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>
8 years agoceph-common: move release-rhs.yml after ceph_version is set
Andrew Schoen [Thu, 3 Aug 2017 15:43:05 +0000 (10:43 -0500)]
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>
8 years agoceph-osd: devices is not required when osd_scenario == lvm
Andrew Schoen [Thu, 3 Aug 2017 22:03:04 +0000 (17:03 -0500)]
ceph-osd: devices is not required when osd_scenario == lvm

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agolvm: update scenario for new osd_scenario variable
Andrew Schoen [Thu, 3 Aug 2017 15:08:34 +0000 (10:08 -0500)]
lvm: update scenario for new osd_scenario variable

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agolvm-osds: reorder mandatory vars checks
Andrew Schoen [Thu, 27 Jul 2017 15:04:53 +0000 (10:04 -0500)]
lvm-osds: reorder mandatory vars checks

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agolvm-osds: check for osd_objectstore == 'filestore'
Andrew Schoen [Wed, 26 Jul 2017 16:26:57 +0000 (11:26 -0500)]
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>
8 years agolvm-osds: make task name and files consistent
Andrew Schoen [Wed, 26 Jul 2017 16:23:32 +0000 (11:23 -0500)]
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>
8 years agolvm-osds: update group_vars/osds.yml.sample
Andrew Schoen [Wed, 26 Jul 2017 15:28:53 +0000 (10:28 -0500)]
lvm-osds: update group_vars/osds.yml.sample

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agotests: do not use sudo with dev_setup.yml
Andrew Schoen [Wed, 26 Jul 2017 14:29:50 +0000 (09:29 -0500)]
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>
8 years agolvm_osds: ensure osd daemons are started
Andrew Schoen [Tue, 25 Jul 2017 21:48:13 +0000 (16:48 -0500)]
lvm_osds: ensure osd daemons are started

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agotests: lvm_osds does not have devices defined
Andrew Schoen [Tue, 25 Jul 2017 19:37:25 +0000 (14:37 -0500)]
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>
8 years agotests: adds an lvm_osds testing scenario
Andrew Schoen [Tue, 25 Jul 2017 18:46:22 +0000 (13:46 -0500)]
tests: adds an lvm_osds testing scenario

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agodocs: add docs for the lvm_osds OSD scenario
Andrew Schoen [Wed, 19 Jul 2017 19:15:44 +0000 (14:15 -0500)]
docs: add docs for the lvm_osds OSD scenario

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agoadds a new 'lvm_osds' osd scenario
Andrew Schoen [Wed, 19 Jul 2017 15:05:42 +0000 (10:05 -0500)]
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>
8 years agoMerge pull request #1743 from ceph/rhcs-yml
Sébastien Han [Thu, 3 Aug 2017 21:06:46 +0000 (23:06 +0200)]
Merge pull request #1743 from ceph/rhcs-yml

generate_group_vars_sample: rhcs.yml.sample

8 years agogenerate_group_vars_sample: rhcs.yml.sample 1743/head
Sébastien Han [Thu, 3 Aug 2017 20:37:12 +0000 (22:37 +0200)]
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>
8 years agoMerge pull request #1734 from ceph/debian-repo
Sébastien Han [Thu, 3 Aug 2017 20:45:31 +0000 (22:45 +0200)]
Merge pull request #1734 from ceph/debian-repo

common: automate setting up online repositories for ceph deployments …

8 years agocommon: automate setting up online repositories for ceph deployments on debian nodes 1734/head
Sébastien Han [Wed, 2 Aug 2017 13:13:06 +0000 (15:13 +0200)]
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>
8 years agoMerge pull request #1725 from ceph/simplify-osd-scenario
Andrew Schoen [Thu, 3 Aug 2017 14:31:57 +0000 (09:31 -0500)]
Merge pull request #1725 from ceph/simplify-osd-scenario

osd: simply osd scenario declaration

8 years agoMerge pull request #1735 from ceph/ceph-version-detection
Andrew Schoen [Thu, 3 Aug 2017 14:29:02 +0000 (09:29 -0500)]
Merge pull request #1735 from ceph/ceph-version-detection

common: override and autodetect ceph_stable_release

8 years agoMerge pull request #1740 from Logan2211/ceph-defaults-breakout
Sébastien Han [Thu, 3 Aug 2017 14:01:42 +0000 (16:01 +0200)]
Merge pull request #1740 from Logan2211/ceph-defaults-breakout

Add ceph-defaults to galaxy role breakout script

8 years agoAdd ceph-defaults to galaxy role breakout script 1740/head
Logan V [Thu, 3 Aug 2017 13:15:15 +0000 (08:15 -0500)]
Add ceph-defaults to galaxy role breakout script

8 years agocommon: override and autodetect ceph_stable_release 1735/head
Sébastien Han [Wed, 2 Aug 2017 16:09:46 +0000 (18:09 +0200)]
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>
8 years agoMerge pull request #1738 from yanyixing/nvmepart
Sébastien Han [Thu, 3 Aug 2017 11:37:10 +0000 (13:37 +0200)]
Merge pull request #1738 from yanyixing/nvmepart

fix for nvme part path

8 years agofix for nvme part path 1738/head
yanyx [Wed, 2 Aug 2017 03:01:26 +0000 (11:01 +0800)]
fix for nvme part path

8 years agoosd: simplify scenarios 1725/head
Sébastien Han [Thu, 27 Jul 2017 15:05:59 +0000 (17:05 +0200)]
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>
8 years agoMerge pull request #1727 from ceph/refact
Sébastien Han [Wed, 2 Aug 2017 20:00:50 +0000 (22:00 +0200)]
Merge pull request #1727 from ceph/refact

Refact playbook

8 years agogenerate_group_vars_sample: update for ceph-defaults 1727/head
Sébastien Han [Wed, 2 Aug 2017 08:35:26 +0000 (10:35 +0200)]
generate_group_vars_sample: update for ceph-defaults

Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agoinfrastructure-playbooks: update with ceph-defaults roles
Sébastien Han [Wed, 2 Aug 2017 09:15:05 +0000 (11:15 +0200)]
infrastructure-playbooks: update with ceph-defaults roles

Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agodocker-common: Fix bug when updating config
Guillaume Abrioux [Tue, 1 Aug 2017 13:11:45 +0000 (15:11 +0200)]
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>
8 years agoAdd handlers for containerized deployment
Guillaume Abrioux [Fri, 28 Jul 2017 23:00:06 +0000 (01:00 +0200)]
Add handlers for containerized deployment

Until now, there is no handlers for containerized deployments.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
8 years agoMove basics facts to `ceph-defaults`
Guillaume Abrioux [Fri, 28 Jul 2017 21:02:51 +0000 (23:02 +0200)]
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>
8 years agoMove role dependencies in site.yml/site-docker.yml
Guillaume Abrioux [Fri, 28 Jul 2017 20:48:13 +0000 (22:48 +0200)]
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>
8 years agoAdd new role `ceph-defaults`
Guillaume Abrioux [Fri, 28 Jul 2017 20:39:44 +0000 (22:39 +0200)]
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>
8 years agomerge docker-common and common defaults vars
Guillaume Abrioux [Fri, 28 Jul 2017 20:35:23 +0000 (22:35 +0200)]
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>
8 years agorolling_update: refact code
Guillaume Abrioux [Fri, 28 Jul 2017 20:27:02 +0000 (22:27 +0200)]
rolling_update: refact code

Refact rolling_update playbook.
Add ceph-client upgrade.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
8 years agoMerge pull request #1718 from yanyixing/changeowner
Sébastien Han [Mon, 31 Jul 2017 11:48:35 +0000 (13:48 +0200)]
Merge pull request #1718 from yanyixing/changeowner

change the partition's ownership

8 years agoMerge pull request #1018 from ceph/profile-examples 1710/head
Sébastien Han [Fri, 28 Jul 2017 13:38:06 +0000 (15:38 +0200)]
Merge pull request #1018 from ceph/profile-examples

profiles: introducing cluster profiles

8 years agoMerge pull request #1723 from ceph/mount-skip
Sébastien Han [Fri, 28 Jul 2017 12:39:33 +0000 (14:39 +0200)]
Merge pull request #1723 from ceph/mount-skip

osd: fail check mount partition if not skipped

8 years agoMerge pull request #1713 from ceph/ceph-stable
Sébastien Han [Thu, 27 Jul 2017 15:23:20 +0000 (17:23 +0200)]
Merge pull request #1713 from ceph/ceph-stable

common: make ceph_stable_release mandatory

8 years agocommon: only add a daemon section if we run on the host 1018/head
Sébastien Han [Thu, 27 Jul 2017 13:50:38 +0000 (15:50 +0200)]
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>
8 years agoMerge pull request #1596 from czunker/restart_with_crush_location
Sébastien Han [Thu, 27 Jul 2017 12:22:45 +0000 (14:22 +0200)]
Merge pull request #1596 from czunker/restart_with_crush_location

Restart OSDs during initial setup when crush location is used

8 years agoosd: fail check mount partition if not skipped 1723/head
Sébastien Han [Thu, 27 Jul 2017 09:39:19 +0000 (11:39 +0200)]
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>
8 years agocommon: make ceph_stable_release mandatory 1713/head
Sébastien Han [Wed, 26 Jul 2017 09:54:19 +0000 (11:54 +0200)]
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>
8 years agochange the partition's ownership 1718/head
yanyx [Thu, 27 Jul 2017 03:55:30 +0000 (11:55 +0800)]
change the partition's ownership