]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/log
ceph-ansible.git
8 years agoclient: do not copy admin key by default 1849/head
Sébastien Han [Fri, 1 Sep 2017 22:52:55 +0000 (00:52 +0200)]
client: do not copy admin key by default

Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agoMerge pull request #1847 from ceph/luminous
Sébastien Han [Fri, 1 Sep 2017 22:48:12 +0000 (00:48 +0200)]
Merge pull request #1847 from ceph/luminous

ci: test luminous

8 years agoMerge pull request #1845 from ceph/rgw
Sébastien Han [Fri, 1 Sep 2017 18:27:21 +0000 (20:27 +0200)]
Merge pull request #1845 from ceph/rgw

ceph-rgw: fix systemd unit layout

8 years agoMerge pull request #1835 from ceph/remove-untest
Sébastien Han [Fri, 1 Sep 2017 17:59:30 +0000 (19:59 +0200)]
Merge pull request #1835 from ceph/remove-untest

infra playbook: move untested scenario to a new dir

8 years agoinfra playbook: move untested scenario to a new dir 1835/head
Sébastien Han [Wed, 30 Aug 2017 21:30:49 +0000 (23:30 +0200)]
infra playbook: move untested scenario to a new dir

Move untested/with few confidence playbooks in a untested-by-ci
directory.
Also removing this directory from the package build.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1461551
Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agoMerge pull request #1836 from ceph/shrink-osd-mon
Sébastien Han [Fri, 1 Sep 2017 17:57:44 +0000 (19:57 +0200)]
Merge pull request #1836 from ceph/shrink-osd-mon

shrink mon and osd

8 years agoci: test luminous 1847/head
Sébastien Han [Fri, 1 Sep 2017 17:52:54 +0000 (19:52 +0200)]
ci: test luminous

Luminous is out so let's test it instead of Kraken.

Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agoshrink mon and osd 1836/head
Sébastien Han [Wed, 30 Aug 2017 22:07:28 +0000 (00:07 +0200)]
shrink mon and osd

Rework shrinking a monitor and an OSD playbook. Also adding test
scenario.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1366807
Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agoceph-rgw: fix systemd unit layout 1845/head
Sébastien Han [Fri, 1 Sep 2017 17:02:48 +0000 (19:02 +0200)]
ceph-rgw: fix systemd unit layout

Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agoMerge pull request #1827 from andymcc/rgw_systemd_fix
Sébastien Han [Fri, 1 Sep 2017 16:12:23 +0000 (18:12 +0200)]
Merge pull request #1827 from andymcc/rgw_systemd_fix

Fix RGW systemd directory

8 years agoMerge pull request #1844 from ceph/rhcs-dev-ceph-release-fix v3.0.0rc5
Andrew Schoen [Thu, 31 Aug 2017 20:19:28 +0000 (15:19 -0500)]
Merge pull request #1844 from ceph/rhcs-dev-ceph-release-fix

common do not filter by distro when dev is set for figuring out ceph_release

8 years agocommon do not filter by distro when dev is set for figuring out ceph_release 1844/head
Alfredo Deza [Thu, 31 Aug 2017 20:18:08 +0000 (16:18 -0400)]
common do not filter by distro when dev is set for figuring out ceph_release

Signed-off-by: Alfredo Deza <adeza@redhat.com>
8 years agoMerge pull request #1839 from ceph/colonwq-update-docker-rgw-exec
Sébastien Han [Thu, 31 Aug 2017 17:47:16 +0000 (19:47 +0200)]
Merge pull request #1839 from ceph/colonwq-update-docker-rgw-exec

Update ceph_rgw_docker_extra_env to add bind ip

8 years agoMerge pull request #1838 from ceph/rgw-units
Sébastien Han [Thu, 31 Aug 2017 17:38:23 +0000 (19:38 +0200)]
Merge pull request #1838 from ceph/rgw-units

Rgw units

8 years agoMerge pull request #1841 from ceph/lvm-partitions
Andrew Schoen [Thu, 31 Aug 2017 17:09:19 +0000 (12:09 -0500)]
Merge pull request #1841 from ceph/lvm-partitions

lvm-osds: test with a partition and an lv as journals

8 years agoceph-defaults: fix handlers for mds and rgw 1838/head
Sébastien Han [Thu, 31 Aug 2017 09:22:33 +0000 (11:22 +0200)]
ceph-defaults: fix handlers for mds and rgw

The way we handle the restart for both mds and rgw is not ideal, it will
try to restart the daemon on the host that don't run the daemon,
resulting in a service file being created (see bug description).

Now we restart each daemon precisely and in a serialized fashion.

Note: the current implementation does NOT support multiple mds or rgw on
the same node.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1469781
Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agoMerge pull request #1843 from ceph/useless-changed-task
Sébastien Han [Thu, 31 Aug 2017 16:29:13 +0000 (18:29 +0200)]
Merge pull request #1843 from ceph/useless-changed-task

ceph-common: remove useless changed task

8 years agoceph-common: remove useless changed task 1843/head
Sébastien Han [Thu, 31 Aug 2017 16:27:43 +0000 (18:27 +0200)]
ceph-common: remove useless changed task

There is no need to show a "changed" at the end of the play for a
"command" module task.

Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agotests parted should create gpt labels on new disk 1841/head
Alfredo Deza [Thu, 31 Aug 2017 13:33:23 +0000 (09:33 -0400)]
tests parted should create gpt labels on new disk

But only for the first partition, so that a new label doesn't
blow away the previous partition created

Signed-off-by: Alfredo Deza <adeza@redhat.com>
8 years agoUpdate ceph_rgw_docker_extra_env to add bind ip 1839/head
Keith Schincke [Thu, 17 Aug 2017 17:25:20 +0000 (13:25 -0400)]
Update ceph_rgw_docker_extra_env to add bind ip

This patch adds passing the RGW_CIVETWEB_IP to the docker
container. This IP defaults to the value of radosgw_civetweb_bind_ip.
radosgw_civetweb_bind_ip default to ipv4.default

Without this value, the RGW containter will bind to 0.0.0.0

8 years agoceph-rgw: do not run a privileged rgw container
Sébastien Han [Thu, 31 Aug 2017 09:50:18 +0000 (11:50 +0200)]
ceph-rgw: do not run a privileged rgw container

There is no need for a privileged rgw container

Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agotests conftest conditions the no_lvm_scenario marker
Alfredo Deza [Thu, 31 Aug 2017 12:48:24 +0000 (08:48 -0400)]
tests conftest conditions the no_lvm_scenario marker

Signed-off-by: Alfredo Deza <adeza@redhat.com>
8 years agotests osds units are not enabled in lvm scenarios
Alfredo Deza [Thu, 31 Aug 2017 12:47:42 +0000 (08:47 -0400)]
tests osds units are not enabled in lvm scenarios

Signed-off-by: Alfredo Deza <adeza@redhat.com>
8 years agorgw: cleanup old code and remove systemd condition
Sébastien Han [Thu, 31 Aug 2017 06:29:30 +0000 (08:29 +0200)]
rgw: cleanup old code and remove systemd condition

Remove the old check prior systemd.
We only support systemd so there is no need to run a condition on
systemd. The playbook will fail if systemd is not present.

Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agotests: add a filesystem on /dev/sdc1 for lvm osd testing
Andrew Schoen [Wed, 30 Aug 2017 21:16:04 +0000 (16:16 -0500)]
tests: add a filesystem on /dev/sdc1 for lvm osd testing

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agoceph-osd: add support for --journal vg/lv for lvm osds
Andrew Schoen [Wed, 30 Aug 2017 20:55:16 +0000 (15:55 -0500)]
ceph-osd: add support for --journal vg/lv for lvm osds

This also updates the tests

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agotests: create 2 partitions on /dev/sdc for lvm scenario testing
Andrew Schoen [Wed, 30 Aug 2017 20:53:28 +0000 (15:53 -0500)]
tests: create 2 partitions on /dev/sdc for lvm scenario testing

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agoMerge pull request #1833 from ceph/dev-repository
Andrew Schoen [Wed, 30 Aug 2017 19:27:59 +0000 (14:27 -0500)]
Merge pull request #1833 from ceph/dev-repository

Dev repository fixes

8 years agocommon dev repos should not need to specify a 'release' 1833/head
Alfredo Deza [Wed, 30 Aug 2017 17:37:24 +0000 (13:37 -0400)]
common dev repos should not need to specify a 'release'

Signed-off-by: Alfredo Deza <adeza@redhat.com>
8 years agocommon: ceph_repository should not be rhcs or dev
Alfredo Deza [Wed, 30 Aug 2017 17:33:00 +0000 (13:33 -0400)]
common: ceph_repository should not be rhcs or dev

Signed-off-by: Alfredo Deza <adeza@redhat.com>
8 years agocommon: use the value of ceph_repository in the error message
Alfredo Deza [Wed, 30 Aug 2017 16:53:09 +0000 (12:53 -0400)]
common: use the value of ceph_repository in the error message

Signed-off-by: Alfredo Deza <adeza@redhat.com>
8 years agoMerge pull request #1741 from ceph/refactor-installation
Sébastien Han [Wed, 30 Aug 2017 15:42:29 +0000 (17:42 +0200)]
Merge pull request #1741 from ceph/refactor-installation

common: refactor installation method

8 years agoMerge pull request #1724 from ceph/container-multi-journal
Sébastien Han [Wed, 30 Aug 2017 15:41:42 +0000 (17:41 +0200)]
Merge pull request #1724 from ceph/container-multi-journal

osd: allow multi dedicated journals for containers

8 years agoMerge pull request #1831 from ceph/rbd-key
Sébastien Han [Wed, 30 Aug 2017 14:04:10 +0000 (16:04 +0200)]
Merge pull request #1831 from ceph/rbd-key

ceph-docker-common: re-organize stat ceph file

8 years agoceph-docker-common: re-organize stat ceph file 1831/head
Sébastien Han [Wed, 30 Aug 2017 12:44:34 +0000 (14:44 +0200)]
ceph-docker-common: re-organize stat ceph file

Use a single file to run the checks instead of duplicating code.

Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agoMerge pull request #1830 from ceph/ceph-client-ceph-conf
Sébastien Han [Wed, 30 Aug 2017 12:08:47 +0000 (14:08 +0200)]
Merge pull request #1830 from ceph/ceph-client-ceph-conf

site-docker.yml.sample: delegate facts

8 years agoosd: allow multi dedicated journals for containers 1724/head
Sébastien Han [Tue, 25 Jul 2017 15:54:26 +0000 (17:54 +0200)]
osd: allow multi dedicated journals for containers

Fix: https://bugzilla.redhat.com/show_bug.cgi?id=1475820
Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agosite-docker.yml.sample: delegate facts 1830/head
Sébastien Han [Wed, 30 Aug 2017 08:44:18 +0000 (10:44 +0200)]
site-docker.yml.sample: delegate facts

Now we can use --limit on the container deployment too. This is useful
while deploying client nodes.
e.g: ansible-playbook -i inventory -l clients site-docker.yml.sample

Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agocommon: refactor installation method 1741/head
Sébastien Han [Thu, 3 Aug 2017 13:30:25 +0000 (15:30 +0200)]
common: refactor installation method

The installation process is now described as follow:

* you still have to choose a 'ceph_origin' installation method. The
origin can be a 'repository' (add a new repository), distro (it will use
the packages provided by the native repo source of your distribution),
local (only available on redhat system, it installs locally built
packages). This option is not well tested, so use it carefully

* if ceph_origin == 'repository' you will have to decide what kind of
repository you want to enable:
  - community: corresponds to the stable upstream/community version
  - enterprise: corresponds to the stable enterprise/downstream version
    (basically you are a red hat customer)
  - dev: it will install ceph from packages built out of the github
    development branches

Signed-off-by: Sébastien Han <seb@redhat.com>
Co-Authored-by: Guillaume Abrioux <gabrioux@redhat.com>
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
8 years agoMerge pull request #1829 from ceph/wip-osd-test-fix
Sébastien Han [Wed, 30 Aug 2017 08:10:37 +0000 (10:10 +0200)]
Merge pull request #1829 from ceph/wip-osd-test-fix

tests: fix duplicate osd service test

8 years agotests: fix duplicate osd service test 1829/head
Ali Maredia [Wed, 30 Aug 2017 01:24:13 +0000 (21:24 -0400)]
tests: fix duplicate osd service test

Signed-off-by: Ali Maredia <amaredia@redhat.com>
8 years agoMerge pull request #1824 from bengland2/fix-issue-1818-try2
Sébastien Han [Tue, 29 Aug 2017 21:15:58 +0000 (23:15 +0200)]
Merge pull request #1824 from bengland2/fix-issue-1818-try2

dont use devices var anymore, works for osd_auto_discover

8 years agoFix RGW systemd directory 1827/head
Andy McCrae [Tue, 29 Aug 2017 16:24:52 +0000 (17:24 +0100)]
Fix RGW systemd directory

The ceph RGW systemd services are actually named "ceph-radosgw" and not
"ceph-rgw", this patch fixes that for the systemd overrides file.

8 years agoMerge pull request #1826 from ceph/add-mimic v3.0.0rc4
Andrew Schoen [Tue, 29 Aug 2017 15:24:25 +0000 (10:24 -0500)]
Merge pull request #1826 from ceph/add-mimic

common: add mimic release facts

8 years agocommon: add mimic release facts 1826/head
Sébastien Han [Tue, 29 Aug 2017 15:21:37 +0000 (17:21 +0200)]
common: add mimic release facts

Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agoMerge pull request #1822 from ceph/rhcs-container-release
Sébastien Han [Tue, 29 Aug 2017 10:16:20 +0000 (12:16 +0200)]
Merge pull request #1822 from ceph/rhcs-container-release

ceph-docker-common: detect ceph version

8 years agoMerge pull request #1825 from ceph/fix-item
Sébastien Han [Tue, 29 Aug 2017 10:15:46 +0000 (12:15 +0200)]
Merge pull request #1825 from ceph/fix-item

ceph-docker-common: fix empty array

8 years agoMerge pull request #1814 from ceph/handler-defaults
Sébastien Han [Tue, 29 Aug 2017 09:09:35 +0000 (11:09 +0200)]
Merge pull request #1814 from ceph/handler-defaults

handler: default to empty array if task skipped

8 years agoceph-docker-common: fix empty array 1825/head
Sébastien Han [Mon, 28 Aug 2017 22:16:31 +0000 (00:16 +0200)]
ceph-docker-common: fix empty array

The list can not be evaluated properly if it containers '[]', which is
the case when using the filter "default([])". To fix this, we have to
properly merge the lists.

This is fixing the issue: "list object has no element 1"

Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agoceph-docker-common: detect ceph version 1822/head
Sébastien Han [Mon, 28 Aug 2017 21:23:36 +0000 (23:23 +0200)]
ceph-docker-common: detect ceph version

By detecting the ceph version running in the container we can easily
apply conditions like:
ceph_release_num.{{ ceph_release }} >= ceph_release_num.luminous

We do that already, in ceph-docker-common/tasks/fetch_configs.yml.

This fixes the error:

TASK [ceph-docker-common : register rbd bootstrap key]
******************************************************

fatal: [magna005]: FAILED! => {"failed": true, "msg": "The conditional
check 'ceph_release_num.{{ ceph_release }} >= ceph_release_num.luminous'
failed. The error was: error while evaluating conditional
(ceph_release_num.{{ ceph_release }} >= ceph_release_num.luminous):
'dict object' has no attribute 'dummy'\n\nThe error appears to have been
in
'/home/ubuntu/ceph-ansible/roles/ceph-docker-common/tasks/fetch_configs.yml':
line 2, column 3, but may\nbe elsewhere in the file depending on the
exact syntax problem.\n\nThe offending line appears to be:\n\n---\n-
name: register rbd bootstrap key\n  ^ here\n"}

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1486062
Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agodont use devices var anymore, works for osd_auto_discover 1824/head
Ben England [Mon, 28 Aug 2017 21:27:01 +0000 (17:27 -0400)]
dont use devices var anymore, works for osd_auto_discover

8 years agoMerge pull request #1821 from ceph/test-sitepackages
David Galloway [Mon, 28 Aug 2017 16:40:00 +0000 (12:40 -0400)]
Merge pull request #1821 from ceph/test-sitepackages

tests: always use sitepackages=True

8 years agotests: always use sitepackages=True 1821/head
Andrew Schoen [Mon, 28 Aug 2017 14:59:28 +0000 (09:59 -0500)]
tests: always use sitepackages=True

This is mostly important in rhcs testing so that our tests can use
packages installed on the distro.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agoMerge pull request #1815 from ceph/container-key-perms
Sébastien Han [Mon, 28 Aug 2017 09:15:41 +0000 (11:15 +0200)]
Merge pull request #1815 from ceph/container-key-perms

ceph-docker-common: apply 0600 to key permissions

8 years agoMerge pull request #1517 from ceph/rolling
Sébastien Han [Mon, 28 Aug 2017 09:14:55 +0000 (11:14 +0200)]
Merge pull request #1517 from ceph/rolling

rolling_update: nicer way to set osd flags

8 years agohandler: default to empty array if task skipped 1814/head
Sébastien Han [Fri, 25 Aug 2017 16:00:03 +0000 (18:00 +0200)]
handler: default to empty array if task skipped

with_items is evaluated before the when condition so if the task that
registers the 'results' is skipped the task will fail with:

{"failed": true, "msg": "'dict object' has no attribute 'results'"}

Defaulting to an empty array fixes the issue.

Reverts: abdd66619e1d5c94f74e994bff667b5ccc6b529f
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1482061
Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agorolling_update: nicer way to set osd flags 1517/head
Sébastien Han [Fri, 12 May 2017 13:59:52 +0000 (15:59 +0200)]
rolling_update: nicer way to set osd flags

Prior to this patch, we were applying the osd flags like this:

"
General pre tasks
Set flags
Upgrade OSDs on a host
Unset flags <-- this triggers pending scrub to start
Set flags
Upgrade OSDs on a hosts
Unset flags <-- this triggers pending scrub to start
.
.
.
General post tasks
"

Now instead, we apply the flag once before starting the OSD update and
unset them once the last OSD is finished.

"
General pre tasks
Set flags and wait for any scrubs to finish
Upgrade OSDs on a host
Upgrade OSDs on a host
.
.
.
Unset flags
General post tasks
"

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1450754
Signed-off-by: Sébastien Han <seb@redhat.com>
Co-Authored-by: Guillaume Abrioux <gabrioux@redhat.com>
8 years agoceph-docker-common: apply 0600 to key permissions 1815/head
Sébastien Han [Fri, 25 Aug 2017 16:13:09 +0000 (18:13 +0200)]
ceph-docker-common: apply 0600 to key permissions

Keys should only be readable and writable by their respective owners and that's all.

Closes: https://github.com/ceph/ceph-ansible/issues/1760
Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agoMerge pull request #1811 from ceph/push-galaxy
Sébastien Han [Fri, 25 Aug 2017 12:54:09 +0000 (14:54 +0200)]
Merge pull request #1811 from ceph/push-galaxy

contrib: do not rework if tag exist

8 years agocontrib: do not rework if tag exist 1811/head
Sébastien Han [Fri, 25 Aug 2017 10:15:34 +0000 (12:15 +0200)]
contrib: do not rework if tag exist

We now compare local tags versus remote tags and do nothing if they both
exist.

Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agoMerge pull request #1810 from ceph/config-meta
Sébastien Han [Thu, 24 Aug 2017 22:17:08 +0000 (00:17 +0200)]
Merge pull request #1810 from ceph/config-meta

update meta for ansible galaxy

8 years agoupdate meta for ansible galaxy 1810/head
Sébastien Han [Thu, 24 Aug 2017 22:04:29 +0000 (00:04 +0200)]
update meta for ansible galaxy

Closes: https://github.com/ceph/ceph-ansible/issues/1637
Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agoMerge pull request #1808 from ceph/role-path
Sébastien Han [Thu, 24 Aug 2017 21:49:41 +0000 (23:49 +0200)]
Merge pull request #1808 from ceph/role-path

ceph-mon: detect ANSIBLE_ROLES_PATH if present

8 years agoMerge pull request #1809 from ceph/no-sudo-fetch-dir
Sébastien Han [Thu, 24 Aug 2017 16:43:51 +0000 (18:43 +0200)]
Merge pull request #1809 from ceph/no-sudo-fetch-dir

ceph-config: when using local_action set become: false

8 years agoceph-config: when using local_action set become: false 1809/head
Andrew Schoen [Thu, 24 Aug 2017 15:05:46 +0000 (10:05 -0500)]
ceph-config: when using local_action set become: false

There should be no need to use sudo when writing or using these files.
It creates an issue when the user running ansible-playbook does not
have sudo privs.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agoceph-mon: detect ANSIBLE_ROLES_PATH if present 1808/head
Sébastien Han [Thu, 24 Aug 2017 14:19:39 +0000 (16:19 +0200)]
ceph-mon: detect ANSIBLE_ROLES_PATH if present

Some deployments can't copy infrastructure playbooks outside of the
infrastructure-playbooks directory. Thus they use ANSIBLE_ROLES_PATH to
overcome this. However some roles have 'playbook_dir' hardcoded, which
results in wrong path since the execution comes from
infrastructure-playbooks. Basically the role triggered by a playbook
from infrastructure-playbooks believes that the roles are in
infrastructure-playbooks/roles. This commit fixes that.

Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agoMerge pull request #1807 from ceph/rpm-build-fix
Alfredo Deza [Thu, 24 Aug 2017 13:24:00 +0000 (09:24 -0400)]
Merge pull request #1807 from ceph/rpm-build-fix

rpm update the DOC section to point to rst

8 years agorpm update the DOC section to point to rst 1807/head
Alfredo Deza [Thu, 24 Aug 2017 13:18:17 +0000 (09:18 -0400)]
rpm update the DOC section to point to rst

Signed-off-by: Alfredo Deza <adeza@redhat.com>
8 years agoMerge pull request #1806 from ceph/resync-group
Sébastien Han [Thu, 24 Aug 2017 11:42:06 +0000 (13:42 +0200)]
Merge pull request #1806 from ceph/resync-group

resync groups_vars

8 years agoresync groups_vars 1806/head
Sébastien Han [Thu, 24 Aug 2017 11:40:36 +0000 (13:40 +0200)]
resync groups_vars

Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agosite: delegate fact to all the hosts
Sébastien Han [Thu, 24 Aug 2017 07:28:22 +0000 (09:28 +0200)]
site: delegate fact to all the hosts

Before this patch we couldn't use --limit properly to only interact with
a particular set of hosts. We basically always required to have ceph-mon
role being played to properly get facts and then build the ceph.conf.

Now, the current running host will get the facts from the machines that
are not part of the current play. This is achieved with the help of the
new option delegate_facts, for more info see:
http://docs.ansible.com/ansible/latest/playbooks_delegation.html#delegated-facts

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1482067
Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agoceph-config: write ceph_conf_overrides_temp to fetch_directory
Andrew Schoen [Tue, 22 Aug 2017 19:42:32 +0000 (14:42 -0500)]
ceph-config: write ceph_conf_overrides_temp to fetch_directory

because /tmp is not always writable, but we can assume that the
fetch_directory will be

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agoceph-config: add missing meta and files for the galaxy
Sébastien Han [Mon, 21 Aug 2017 15:17:20 +0000 (17:17 +0200)]
ceph-config: add missing meta and files for the galaxy

Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agoIntroduce new role ceph-config.
Guillaume Abrioux [Fri, 4 Aug 2017 14:57:46 +0000 (16:57 +0200)]
Introduce new role ceph-config.

This will give us more flexibility and the possibility to deploy a client node
for an external ceph-cluster.

related BZ:
https://bugzilla.redhat.com/show_bug.cgi?id=1469426

Fixes: #1670
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
8 years agotests: Update tests according to `ceph-config` role implementation
Guillaume Abrioux [Wed, 9 Aug 2017 12:57:39 +0000 (14:57 +0200)]
tests: Update tests according to `ceph-config` role implementation

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
8 years agoceph-mon: remove hardcoded ipv4 in containers
Sébastien Han [Wed, 23 Aug 2017 17:09:49 +0000 (19:09 +0200)]
ceph-mon: remove hardcoded ipv4 in containers

Before this commit we were forcing ipv4 which might not be available.
Now setting ip_version to ipv4 or ipv6 will give you the right support.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1484189
Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agorolling update: skip pg check if num_pgs = 0 1795/head
Sébastien Han [Wed, 23 Aug 2017 10:31:15 +0000 (12:31 +0200)]
rolling update: skip pg check if num_pgs = 0

In our test case we don't have any pgs, thus the check fails. The check
always returns an empty array, which makes the comparaison failing.

Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agoMerge pull request #1799 from ceph/lvm-vg-lv
Alfredo Deza [Wed, 23 Aug 2017 21:16:32 +0000 (17:16 -0400)]
Merge pull request #1799 from ceph/lvm-vg-lv

ceph-osd: ceph-volume requires --data to be in vg/lv format

8 years agoceph-osd: ceph-volume requires --data to be in vg/lv format 1799/head
Andrew Schoen [Wed, 23 Aug 2017 18:43:31 +0000 (13:43 -0500)]
ceph-osd: ceph-volume requires --data to be in vg/lv format

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agoMerge pull request #1797 from ceph/purge-lvm
Alfredo Deza [Wed, 23 Aug 2017 18:28:29 +0000 (14:28 -0400)]
Merge pull request #1797 from ceph/purge-lvm

adds purge support for the lvm_osds osd scenario

8 years agoMerge pull request #1788 from ceph/improve-switch
Sébastien Han [Wed, 23 Aug 2017 17:47:26 +0000 (19:47 +0200)]
Merge pull request #1788 from ceph/improve-switch

switch-from-non-containerized-to-containerized: simplify

8 years agoswitch-from-non-containerized-to-containerized: simplify 1788/head
Sébastien Han [Tue, 22 Aug 2017 14:43:01 +0000 (16:43 +0200)]
switch-from-non-containerized-to-containerized: simplify

This commit eases the use of the
infrastructure-playbooks/switch-from-non-containerized-to-containerized-ceph-daemons.yml
playbook. We basically run it with a couple of pre-tasks and then we let
the playbook run the docker roles.

It obviously expect to have proper variables configured in order to
work.

Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agopurge-cluster: adds support for purging lvm osds 1797/head
Andrew Schoen [Wed, 23 Aug 2017 14:12:40 +0000 (09:12 -0500)]
purge-cluster: adds support for purging lvm osds

This also adds a new testing scenario for purging lvm osds

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agoceph-osd: restructure lvm_volumes variable for more flexiblity
Andrew Schoen [Wed, 23 Aug 2017 13:59:57 +0000 (08:59 -0500)]
ceph-osd: restructure lvm_volumes variable for more flexiblity

The lvm_volumes variable is now a list of dictionaries that represent
each OSD you'd like to deploy using ceph-volume. Each dictionary must
have the following keys: data, journal and data_vg. Each dictionary also
can optionaly provide a journal_vg key.

The 'data' key represents the lv name used for the OSD and the 'data_vg'
key is the vg name that the given lv resides on. The 'journal' key is
either an lv, device or partition. The 'journal_vg' key is optional and
must be the vg name for the journal lv if given. This key is mainly used
for purging of the journal lv if purge-cluster.yml is run.

For example:

  lvm_volumes:
    - data: data_lv1
      journal: journal_lv1
      data_vg: vg1
      journal_vg: vg2
    - data: data_lv2
      journal: /dev/sdc
      data_vg: vg1

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agoMerge pull request #1796 from ceph/resync-groupvars
Sébastien Han [Wed, 23 Aug 2017 13:34:44 +0000 (15:34 +0200)]
Merge pull request #1796 from ceph/resync-groupvars

resync group_vars

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