]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/log
ceph-ansible.git
7 years agofix jewel scenarios on container
Sébastien Han [Wed, 20 Dec 2017 12:39:33 +0000 (13:39 +0100)]
fix jewel scenarios on container

When deploying Jewel from master we still need to enable this code since
the container image has such check. This check still exists because
ceph-disk is not able to create a GPT label on a drive that does not
have one.

Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agosite-docker: ability to disable fact sharing
Sébastien Han [Tue, 19 Dec 2017 14:10:05 +0000 (15:10 +0100)]
site-docker: ability to disable fact sharing

When deploying with Ansible at large scale, the delegate_facts method
consumes a lot of memory on the host that is running Ansible. This can
cause various issues like memory exhaustion on that machine.
You can now run Ansible with "-e delegate_facts_host=False" to disable
the fact sharing.

Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agoosd: best effort if no device is found during activation
Sébastien Han [Mon, 18 Dec 2017 15:43:37 +0000 (16:43 +0100)]
osd: best effort if no device is found during activation

We have a scenario when we switch from non-container to containers. This
means we don't know anything about the ceph partitions associated to an
OSD. Normally in a containerized context we have files containing the
preparation sequence. From these files we can get the capabilities of
each OSD. As a last resort we use a ceph-disk call inside a dummy bash
container to discover the ceph journal on the current osd.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1525612
Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agorolling_update: do not require root to answer question
Sébastien Han [Fri, 15 Dec 2017 16:39:32 +0000 (17:39 +0100)]
rolling_update: do not require root to answer question

There is no need to ask for root on the local action. This will prompt
for a password the current user is not part of sudoers. That's
  unnecessary anyways.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1516947
Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agonfs: fix package install for debian/suss systems
Sébastien Han [Tue, 19 Dec 2017 10:17:04 +0000 (11:17 +0100)]
nfs: fix package install for debian/suss systems

This resolves the following error:
E: There were unauthenticated packages and -y was used without
--allow-unauthenticated

Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agoRename fact docker_version to ceph_docker_version
Christian Berendt [Tue, 12 Dec 2017 10:06:15 +0000 (11:06 +0100)]
Rename fact docker_version to ceph_docker_version

The name docker_version is very generic and is also used by other
roles. As a result, there may be name conflicts. To avoid this a
ceph_ prefix should be used for this fact. Since it is an internal
fact renaming is not a problem.

7 years agoroles: ceph-mgr: Install the ceph-mgr package on SUSE
Markos Chandras [Thu, 14 Dec 2017 18:13:09 +0000 (18:13 +0000)]
roles: ceph-mgr: Install the ceph-mgr package on SUSE

The ceph-mgr package name is identical to RedHat so add the SUSE family
to the existing task.

7 years agocontrib: do not skip ci on backport
Sébastien Han [Thu, 14 Dec 2017 16:23:02 +0000 (17:23 +0100)]
contrib: do not skip ci on backport

Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agoclient: don't make `osd_pool_default_pg_num` mandatory
Guillaume Abrioux [Tue, 12 Dec 2017 10:28:36 +0000 (11:28 +0100)]
client: don't make `osd_pool_default_pg_num` mandatory

making `osd_pool_default_pg_num` mandatory is a bit agressive and is
unrelated when you just want to create users keyrings.

Closes: #2241
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
7 years agoclient: don't try to generate keys
Guillaume Abrioux [Tue, 12 Dec 2017 10:25:26 +0000 (11:25 +0100)]
client: don't try to generate keys

the entrypoint to generate users keyring is `ceph-authtool`, therefore,
it can expand the `$(ceph-authtool --gen-print-key)` inside the
container. Users must generate a keyring themselves.
This commit also adds a check to ensure keyring are properly filled when
`user_config: true`.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
7 years agodocker: add missing condition for selinux tasks
Guillaume Abrioux [Tue, 12 Dec 2017 13:55:02 +0000 (14:55 +0100)]
docker: add missing condition for selinux tasks

on `client` and `mds` roles, it tries to set selinux even on non rhel
based distributions.`

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
7 years agodefault: look for the right return code on socket stat in-use
Sébastien Han [Thu, 14 Dec 2017 10:31:28 +0000 (11:31 +0100)]
default: look for the right return code on socket stat in-use

As reported in https://github.com/ceph/ceph-ansible/issues/2254, the
check with fuser is not ideal. If fuser is not available the return code
is 127. Here we want to make sure that we looking for the correct return
code, so 1.

Closes: https://github.com/ceph/ceph-ansible/issues/2254
Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agoAdd flags for OSD 'docker run --cpuset-{cpus,mems}'
John Fulton [Mon, 11 Dec 2017 21:17:22 +0000 (16:17 -0500)]
Add flags for OSD 'docker run --cpuset-{cpus,mems}'

Add the variables ceph_osd_docker_cpuset_cpus and
ceph_osd_docker_cpuset_mems, so that a user may specify
the CPUs and memory nodes of NUMA systems on which OSD
containers are run.

Provides a example in osds.yaml.sample to guide user
based on sample `lscpu` output since cpuset-mems refers
to the memory by NUMA node only while cpuset-cpus can
refer to individual vCPUs within a NUMA node.

7 years agofirewall: add mds, nfs, restapi and iscsi ports, remove 'configure_firewall' variable...
Eduard Egorov [Mon, 20 Nov 2017 14:11:38 +0000 (14:11 +0000)]
firewall: add mds, nfs, restapi and iscsi ports, remove 'configure_firewall' variable used for conditional execution. Include the task only on rpm-based systems.

Signed-off-by: Eduard Egorov <eduard.egorov@icl-services.com>
7 years agofirewall: configure firewalld if it's already installed on the host (#2192).
Eduard Egorov [Fri, 17 Nov 2017 12:32:48 +0000 (12:32 +0000)]
firewall: configure firewalld if it's already installed on the host (#2192).

Signed-off-by: Eduard Egorov <eduard.egorov@icl-services.com>
7 years agoRevert "tests: set CEPH_STABLE_RELEASE in ceph-build"
Guillaume Abrioux [Wed, 6 Dec 2017 14:18:42 +0000 (15:18 +0100)]
Revert "tests: set CEPH_STABLE_RELEASE in ceph-build"

This reverts commit 7a1d7d92ff4d6f38be9f11f4c26909b361b58f99.

7 years agoConvert interface names to underscores for facts
Major Hayden [Mon, 11 Dec 2017 15:56:56 +0000 (09:56 -0600)]
Convert interface names to underscores for facts

If a deployer uses an interface name with a dash/hyphen in it, such
as 'br-storage' for the monitor_interface group_var, the ceph.conf.j2
template fails to find the right facts. It looks for
'ansible_br-storage' but only 'ansible_br_storage' exists.

This patch converts the interface name to underscores when the
template does the fact lookup.

7 years agoceph-osd: respect nvme partitions when device is a disk.
Konstantin Shalygin [Tue, 28 Nov 2017 14:27:09 +0000 (21:27 +0700)]
ceph-osd: respect nvme partitions when device is a disk.

7 years agodefaults: fix CI issue with ceph_uid fact
Guillaume Abrioux [Mon, 11 Dec 2017 17:48:13 +0000 (18:48 +0100)]
defaults: fix CI issue with ceph_uid fact

The CI complains because of `ceph_uid` fact which doesn't exist since
the docker image tag used in the CI doesn't match with this condition.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
7 years agoceph-osd: adds osd_objectstore to the name when using the ceph_volume module
Andrew Schoen [Fri, 1 Dec 2017 19:37:44 +0000 (13:37 -0600)]
ceph-osd: adds osd_objectstore to the name when using the ceph_volume module

This allows for easier debugging if verbosity is not set high enough.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
7 years agotests for the ceph_volume module
Andrew Schoen [Fri, 1 Dec 2017 19:27:13 +0000 (13:27 -0600)]
tests for the ceph_volume module

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
7 years agorefactor ceph_volume.py so it's easier to test
Andrew Schoen [Fri, 1 Dec 2017 19:26:36 +0000 (13:26 -0600)]
refactor ceph_volume.py so it's easier to test

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
7 years agoceph-osd: use the cluster param with the ceph_volume module
Andrew Schoen [Fri, 1 Dec 2017 14:41:40 +0000 (08:41 -0600)]
ceph-osd: use the cluster param with the ceph_volume module

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
7 years agoceph_volume: adds the cluster param
Andrew Schoen [Fri, 1 Dec 2017 14:40:33 +0000 (08:40 -0600)]
ceph_volume: adds the cluster param

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
7 years agoceph-osd: use the new ceph_volume module for the lvm scenario
Andrew Schoen [Fri, 1 Dec 2017 13:33:16 +0000 (07:33 -0600)]
ceph-osd: use the new ceph_volume module for the lvm scenario

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
7 years agoadds a ceph_volume module
Andrew Schoen [Fri, 1 Dec 2017 13:25:13 +0000 (07:25 -0600)]
adds a ceph_volume module

This module uses ceph-volume to create OSDs. Currently
it only supports the 'lvm' subcommand and 'create'.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
7 years agoVagrantfile: Fixed repeated OSD controller creation
Prisacari Dmitrii [Fri, 8 Dec 2017 17:09:50 +0000 (19:09 +0200)]
Vagrantfile: Fixed repeated OSD controller creation

7 years agoMerge pull request #2226 from andymcc/gpt_mklabel
Sébastien Han [Mon, 11 Dec 2017 09:12:46 +0000 (03:12 -0600)]
Merge pull request #2226 from andymcc/gpt_mklabel

Skip mklabel gpt if already gpt

7 years agoUse parted module instead of command 2226/head
Andy McCrae [Thu, 30 Nov 2017 17:46:55 +0000 (17:46 +0000)]
Use parted module instead of command

7 years agoMerge pull request #2211 from fultonj/admin-key-perms
Guillaume Abrioux [Thu, 7 Dec 2017 07:43:02 +0000 (08:43 +0100)]
Merge pull request #2211 from fultonj/admin-key-perms

Set tighter permissions on keyrings when containerized

7 years agoSet tighter permissions on keyrings when containerized 2211/head
John Fulton [Wed, 22 Nov 2017 21:38:30 +0000 (16:38 -0500)]
Set tighter permissions on keyrings when containerized

During a containerized deployment, set the permissions
of ceph.client.admin.keyring and other keyrings to
chmod 600 and chown it to ceph.

7 years agoMerge pull request #2221 from ceph/fix_purge_waitfor
Sébastien Han [Wed, 29 Nov 2017 13:56:54 +0000 (14:56 +0100)]
Merge pull request #2221 from ceph/fix_purge_waitfor

purge: fix bug on 'wait_for' task

7 years agopurge: fix bug on 'wait_for' task 2221/head
Guillaume Abrioux [Wed, 29 Nov 2017 10:10:56 +0000 (11:10 +0100)]
purge: fix bug on 'wait_for' task

this task hangs because `{{ inventory_hostname }}` doesn't resolv to an
actual ip address.
Using `hostvars[inventory_hostname]['ansible_default_ipv4']['address']`
should fix this because it will reach the node with its actual IP
address.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
7 years agoMerge pull request #2215 from squidboylan/support_loopback_devices
Guillaume Abrioux [Tue, 28 Nov 2017 13:04:47 +0000 (14:04 +0100)]
Merge pull request #2215 from squidboylan/support_loopback_devices

Add support for using loopback devices as OSDs

7 years agoMerge pull request #2214 from ceph/bz-1510555
Sébastien Han [Tue, 28 Nov 2017 11:22:50 +0000 (12:22 +0100)]
Merge pull request #2214 from ceph/bz-1510555

handlers: restart daemons only if docker is running

7 years agoMerge pull request #2202 from ceph/remove_leftover
Sébastien Han [Tue, 28 Nov 2017 11:21:13 +0000 (12:21 +0100)]
Merge pull request #2202 from ceph/remove_leftover

osd: remove leftover and fix a typo

7 years agoMerge pull request #2212 from wintamute/master
Guillaume Abrioux [Tue, 28 Nov 2017 11:14:09 +0000 (12:14 +0100)]
Merge pull request #2212 from wintamute/master

Group_vars mon sample - replaced hardcoded pool names for Openstack

7 years agoOpenstack: replaced hardcoded pool names with variables for openstack (nova) user 2212/head
wintamute [Mon, 27 Nov 2017 10:21:05 +0000 (11:21 +0100)]
Openstack: replaced hardcoded pool names with variables for openstack (nova) user

(cherry picked from commit 2bf48f1)

7 years agoAdd support for using loopback devices as OSDs 2215/head
Caleb Boylan [Tue, 28 Nov 2017 00:02:36 +0000 (16:02 -0800)]
Add support for using loopback devices as OSDs

This is particularly useful in CI environments where you dont have
the option of adding extra devices or volumes to the host. It is also
a simple change to support loopback devices

7 years agohandlers: restart daemons only if docker is running 2214/head
Guillaume Abrioux [Mon, 27 Nov 2017 13:59:30 +0000 (14:59 +0100)]
handlers: restart daemons only if docker is running

In case where docker CLI is available but docker is not running, we
don't want to trigger the restart of the daemons.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1510555
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
7 years agoMerge pull request #2177 from jprovaznik/rados
Sébastien Han [Thu, 23 Nov 2017 09:36:58 +0000 (10:36 +0100)]
Merge pull request #2177 from jprovaznik/rados

Allow to use rados for ganesha exports

7 years agoMerge pull request #2207 from ceph/mds-debian
Sébastien Han [Wed, 22 Nov 2017 16:45:29 +0000 (17:45 +0100)]
Merge pull request #2207 from ceph/mds-debian

common: install ceph-common on all the machines

7 years agocommon: install ceph-common on all the machines 2207/head
Sébastien Han [Wed, 22 Nov 2017 16:11:50 +0000 (17:11 +0100)]
common: install ceph-common on all the machines

Since some daemons now install their own packages the task checking the
ceph version fails on Debian systems. So the 'ceph-common' package must
be installed on all the machines.

Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agoAllow to use rados for ganesha exports 2177/head
Jan Provaznik [Wed, 15 Nov 2017 11:59:36 +0000 (12:59 +0100)]
Allow to use rados for ganesha exports

7 years agoMerge pull request #2185 from ceph/fix_purge-cluster
Guillaume Abrioux [Tue, 21 Nov 2017 12:30:15 +0000 (13:30 +0100)]
Merge pull request #2185 from ceph/fix_purge-cluster

purge-cluster: remove usage of `with_fileglob`

7 years agoosd: remove leftover and fix a typo 2202/head
Guillaume Abrioux [Tue, 21 Nov 2017 10:11:34 +0000 (11:11 +0100)]
osd: remove leftover and fix a typo

This task was originally needed to fix a docker installation issue
(see: #1030). This has been fixed, therefore it can be removed.

Fixes: #2199
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
7 years agopurge-cluster: remove usage of `with_fileglob` 2185/head
Guillaume Abrioux [Thu, 16 Nov 2017 10:49:18 +0000 (11:49 +0100)]
purge-cluster: remove usage of `with_fileglob`

`with_fileglob` loops over files on the machine where ansible-playbook
is being run.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
7 years agoMerge pull request #2197 from ceph/fix_gpt_prepare
Sébastien Han [Mon, 20 Nov 2017 09:40:18 +0000 (10:40 +0100)]
Merge pull request #2197 from ceph/fix_gpt_prepare

osd: ensure a gpt label is set on device

7 years agoosd: ensure a gpt label is set on device 2197/head
Guillaume Abrioux [Fri, 17 Nov 2017 16:32:23 +0000 (17:32 +0100)]
osd: ensure a gpt label is set on device

ceph-disk prepare will fail on jewel if a GPT label is not present on
device.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
7 years agoMerge pull request #2189 from fultonj/empty-acl
Guillaume Abrioux [Thu, 16 Nov 2017 18:39:01 +0000 (19:39 +0100)]
Merge pull request #2189 from fultonj/empty-acl

Make openstack_keys param support no acls list

7 years agoMerge pull request #2184 from ceph/fix_wildcard_remove
Guillaume Abrioux [Thu, 16 Nov 2017 17:02:35 +0000 (18:02 +0100)]
Merge pull request #2184 from ceph/fix_wildcard_remove

purge-docker: remove osd disk prepare logs

7 years agoMake openstack_keys param support no acls list 2189/head
John Fulton [Thu, 16 Nov 2017 16:29:59 +0000 (11:29 -0500)]
Make openstack_keys param support no acls list

A recent change [1] required that the openstack_keys
param always containe an acls list. However, it's
possible it might not contain that list. Thus, this
param sets a default for that list to be empty if it
is not in the structure as defined by the user.

[1] d65cbaa53952269ec9a2e76fca8203ce7ad22c2b

7 years agoMerge pull request #2182 from ceph/fix_reboot_rbd
Sébastien Han [Thu, 16 Nov 2017 15:55:39 +0000 (16:55 +0100)]
Merge pull request #2182 from ceph/fix_reboot_rbd

rbd: enable ceph-rbd-mirror.target on releases prior to luminous

7 years agoMerge pull request #2186 from ceph/dmcrypt-fixfg
Guillaume Abrioux [Thu, 16 Nov 2017 15:52:13 +0000 (16:52 +0100)]
Merge pull request #2186 from ceph/dmcrypt-fixfg

osd: multiple fixes

7 years agoosd: remove leftover from osd partition 2186/head
Sébastien Han [Thu, 16 Nov 2017 13:58:40 +0000 (14:58 +0100)]
osd: remove leftover from osd partition

We used to support osds that are a partition. This is long gone so
removing this task.

Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agoosd: remove failed_when on activation
Sébastien Han [Thu, 16 Nov 2017 13:57:49 +0000 (14:57 +0100)]
osd: remove failed_when on activation

There is no need to continue if the activation fails.

Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agoosd: fix bad activation for dmcrypt
Sébastien Han [Thu, 16 Nov 2017 13:55:08 +0000 (14:55 +0100)]
osd: fix bad activation for dmcrypt

We were activating dmcrypt devices with the wrong command. Basically the
first task execute the wrong activate command. The task fails but
continues because of the 'failed_when: false'. Then the right activation
sequence is being done by the next task.

Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agoMerge pull request #2151 from hwoarang/add-opensuse
Sébastien Han [Thu, 16 Nov 2017 13:35:28 +0000 (14:35 +0100)]
Merge pull request #2151 from hwoarang/add-opensuse

Add openSUSE Leap 42.3 support

7 years agopurge-docker: remove osd disk prepare logs 2184/head
Guillaume Abrioux [Thu, 16 Nov 2017 10:36:17 +0000 (11:36 +0100)]
purge-docker: remove osd disk prepare logs

`with_fileglob` loops over files on the machine that runs the playbook.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
7 years agoMerge pull request #2172 from ceph/lvm-raw-device
Sébastien Han [Thu, 16 Nov 2017 13:14:23 +0000 (14:14 +0100)]
Merge pull request #2172 from ceph/lvm-raw-device

lvm: add support for --data to be a raw device or partition

7 years agorbd: enable ceph-rbd-mirror.target for releases <= luminous 2182/head
Guillaume Abrioux [Thu, 16 Nov 2017 09:50:30 +0000 (10:50 +0100)]
rbd: enable ceph-rbd-mirror.target for releases <= luminous

when `ceph-rbd-mirror.target` is not enabled, the service won't start
after a reboot because there is a dependency between these two units.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
7 years agoMerge pull request #2181 from yanyixing/fix_nfs_pkg
Guillaume Abrioux [Thu, 16 Nov 2017 09:29:03 +0000 (10:29 +0100)]
Merge pull request #2181 from yanyixing/fix_nfs_pkg

[skip ci] fix: remove the duplicated code

7 years agofix: remove the duplicated code 2181/head
Yixing Yan [Thu, 16 Nov 2017 08:45:03 +0000 (16:45 +0800)]
fix: remove the duplicated code

7 years agoMerge pull request #2174 from fultonj/chmod-facl-on-all-mon
Guillaume Abrioux [Wed, 15 Nov 2017 16:17:23 +0000 (17:17 +0100)]
Merge pull request #2174 from fultonj/chmod-facl-on-all-mon

Set permissions and ACLs of OpenStack keys on all ceph-mons

7 years agoupdate group_vars/osds.yml.sample for the new lvm_volumes examples 2172/head
Andrew Schoen [Tue, 14 Nov 2017 19:19:03 +0000 (13:19 -0600)]
update group_vars/osds.yml.sample for the new lvm_volumes examples

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
7 years agolvm: support --data as a raw device or partition in ceph-volume
Andrew Schoen [Mon, 13 Nov 2017 20:56:51 +0000 (14:56 -0600)]
lvm: support --data as a raw device or partition in ceph-volume

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
7 years agolvm: ensure the data_vg exists before using it
Andrew Schoen [Mon, 13 Nov 2017 20:29:37 +0000 (14:29 -0600)]
lvm: ensure the data_vg exists before using it

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
7 years agoSet permissions and ACLs of OpenStack keys on all ceph-mons 2174/head
John Fulton [Mon, 6 Nov 2017 22:24:48 +0000 (17:24 -0500)]
Set permissions and ACLs of OpenStack keys on all ceph-mons

If ceph-ansible deploys a Ceph cluster with "openstack_config: true"
and sets the openstack_keys map to have certain ACLs or permissions,
the requested ACLs or permissions are only set on one of the monitor
nodes [2] when they should be set on all of them.

This patch solves [3] the above issue by having the chmod and setfacl
tasks iterate the list of mon nodes (including the mon node that the
task was delegated to) to apply the chmod of setfacl to the keys in
openstack_keys.

[1]
```
openstack_keys:
  - { name: client.openstack, key: "$(ceph-authtool --gen-print-key)", mon_cap: "allow r", osd_cap: "allow class-read object_prefix rbd_children, allow rwx pool=images, allow rwx pool=vms, allow rwx pool=volumes, allow rwx pool=backups", mode: "0600", acls: ["u:nova:r--", "u:cinder:r--", "u:glance:r--", "u:gnocchi:r--"] }
```
[2]
```
$ ansible mons -m shell -b -a "ls -l /etc/ceph/ceph.client.openstack.keyring ; getfacl /etc/ceph/ceph.client.openstack.keyring"
192.168.1.26 | SUCCESS | rc=0 >>
-rw-r-----+ 1 root root 253 Nov  3 20:30 /etc/ceph/ceph.client.openstack.keyring
user::rw-
user:glance:r--
user:nova:r--
user:cinder:r--
user:gnocchi:r--
group::---
mask::r--
other::---getfacl: Removing leading '/' from absolute path names

192.168.1.29 | SUCCESS | rc=0 >>
-rw-r--r--. 1 root root 253 Nov  3 20:30 /etc/ceph/ceph.client.openstack.keyring
user::rw-
group::r--
other::r--getfacl: Removing leading '/' from absolute path names

192.168.1.23 | SUCCESS | rc=0 >>
-rw-r--r--. 1 root root 253 Nov  3 20:30 /etc/ceph/ceph.client.openstack.keyring
user::rw-
group::r--
other::r--getfacl: Removing leading '/' from absolute path names

$
```
[3]
```
(undercloud) [stack@hci-director ceph-ansible]$ ansible mons -m shell -b -a "ls -l /etc/ceph/ceph.client.openstack.keyring ; getfacl /etc/ceph/ceph.client.openstack.keyring"
192.168.1.25 | SUCCESS | rc=0 >>
-rw-r-----+ 1 root root 253 Nov 14 01:12 /etc/ceph/ceph.client.openstack.keyring
user::rw-
user:glance:r--
user:nova:r--
user:cinder:r--
user:gnocchi:r--
group::---
mask::r--
other::---getfacl: Removing leading '/' from absolute path names

192.168.1.29 | SUCCESS | rc=0 >>
-rw-r-----+ 1 root root 253 Nov 14 01:12 /etc/ceph/ceph.client.openstack.keyring
user::rw-
user:glance:r--
user:nova:r--
user:cinder:r--
user:gnocchi:r--
group::---
mask::r--
other::---getfacl: Removing leading '/' from absolute path names

192.168.1.27 | SUCCESS | rc=0 >>
-rw-r-----+ 1 root root 253 Nov 14 01:12 /etc/ceph/ceph.client.openstack.keyring
user::rw-
user:glance:r--
user:nova:r--
user:cinder:r--
user:gnocchi:r--
group::---
mask::r--
other::---getfacl: Removing leading '/' from absolute path names

(undercloud) [stack@hci-director ceph-ansible]$
```

7 years agoMerge pull request #2170 from ceph/remove_osd_zap
Guillaume Abrioux [Tue, 14 Nov 2017 21:02:18 +0000 (22:02 +0100)]
Merge pull request #2170 from ceph/remove_osd_zap

tests: remove OSD_FORCE_ZAP variable from tests

7 years agotests: remove OSD_FORCE_ZAP variable from tests 2170/head
Guillaume Abrioux [Tue, 14 Nov 2017 10:58:38 +0000 (11:58 +0100)]
tests: remove OSD_FORCE_ZAP variable from tests

according to ceph/ceph-container#840, this variable is no longer needed.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
7 years agoMerge pull request #2165 from ceph/sync_ceph-build
Sébastien Han [Tue, 14 Nov 2017 13:46:38 +0000 (14:46 +0100)]
Merge pull request #2165 from ceph/sync_ceph-build

tests: set CEPH_STABLE_RELEASE in ceph-build

7 years agotests: set CEPH_STABLE_RELEASE in ceph-build 2165/head
Guillaume Abrioux [Fri, 10 Nov 2017 17:25:25 +0000 (18:25 +0100)]
tests: set CEPH_STABLE_RELEASE in ceph-build

`CEPH_STABLE_RELEASE` needs to bet set in ceph-build according
to ceph/ceph-ansible#2165

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
7 years agovagrant_variables.yml.sample: Add openSUSE box 2151/head
Markos Chandras [Thu, 12 Oct 2017 15:30:57 +0000 (16:30 +0100)]
vagrant_variables.yml.sample: Add openSUSE box

Add comment for the appropriate openSUSE box for testing.

Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoceph-docker-common: Add support for openSUSE Leap distributions
Markos Chandras [Thu, 12 Oct 2017 14:36:14 +0000 (15:36 +0100)]
ceph-docker-common: Add support for openSUSE Leap distributions

Add support for the openSUSE Leap distributions.

Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoceph-nfs: Add support for openSUSE Leap distributions
Markos Chandras [Thu, 12 Oct 2017 14:32:14 +0000 (15:32 +0100)]
ceph-nfs: Add support for openSUSE Leap distributions

Add support for the openSUSE distributions. The required packages
are available either in the distribution repositories or in the
OBS one.

Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoceph-rgw: Add support for openSUSE Leap distributions
Markos Chandras [Thu, 12 Oct 2017 15:01:00 +0000 (16:01 +0100)]
ceph-rgw: Add support for openSUSE Leap distributions

Add support for openSUSE Leap distributions.

Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoceph-restapi: Add support for openSUSE Leap distributions
Markos Chandras [Thu, 12 Oct 2017 15:00:20 +0000 (16:00 +0100)]
ceph-restapi: Add support for openSUSE Leap distributions

Add support for openSUSE Leap distributions.

Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoceph-rbd-mirror: Add support for openSUSE Leap distributions
Markos Chandras [Thu, 12 Oct 2017 14:59:26 +0000 (15:59 +0100)]
ceph-rbd-mirror: Add support for openSUSE Leap distributions

Add support for openSUSE Leap distributions

Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoceph-osd: Add support for openSUSE Leap distributions
Markos Chandras [Thu, 12 Oct 2017 14:58:32 +0000 (15:58 +0100)]
ceph-osd: Add support for openSUSE Leap distributions

Add support for openSUSE Leap distributions

Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoceph-mon: Add support for openSUSE Leap distributions
Markos Chandras [Thu, 12 Oct 2017 14:48:11 +0000 (15:48 +0100)]
ceph-mon: Add support for openSUSE Leap distributions

Add support for openSUSE Leap distributions.

Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoceph-mgr: Add support for openSUSE Leap distributions
Markos Chandras [Thu, 12 Oct 2017 14:46:40 +0000 (15:46 +0100)]
ceph-mgr: Add support for openSUSE Leap distributions

Add support for openSUSE Leap distributions.

Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoceph-mds: Add support for openSUSE Leap distributions
Markos Chandras [Thu, 12 Oct 2017 14:46:06 +0000 (15:46 +0100)]
ceph-mds: Add support for openSUSE Leap distributions

Add support for openSUSE Leap distributions

Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoceph-fetch-keys: Add support for openSUSE Leap distributions
Markos Chandras [Thu, 12 Oct 2017 14:44:26 +0000 (15:44 +0100)]
ceph-fetch-keys: Add support for openSUSE Leap distributions

Add support for openSUSE Leap distributions

Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoceph-config: Add support for the openSUSE Leap distributions
Markos Chandras [Thu, 12 Oct 2017 14:39:07 +0000 (15:39 +0100)]
ceph-config: Add support for the openSUSE Leap distributions

Add support for the openSUSE Leap distributions

Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoceph-client: Add support for the openSUSE Leap distributions
Markos Chandras [Thu, 12 Oct 2017 14:38:01 +0000 (15:38 +0100)]
ceph-client: Add support for the openSUSE Leap distributions

Add support for the openSUSE Leap distributions

Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoceph-agent: Add support for the openSUSE Leap distributions
Markos Chandras [Thu, 12 Oct 2017 10:19:31 +0000 (11:19 +0100)]
ceph-agent: Add support for the openSUSE Leap distributions

Add support for the openSUSE Leap distributions.

Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoceph-common: Don't check for ceph_stable_release for distro packages
Markos Chandras [Fri, 13 Oct 2017 09:18:27 +0000 (10:18 +0100)]
ceph-common: Don't check for ceph_stable_release for distro packages

When we consume the distribution packages, we don't have the choise on
which version to install, so we shouldn't require that variable to be
set. Distributions normally provide only one version of Ceph in the
official repositories so we get whatever they provide.

Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoceph-common: Add initial support for openSUSE Leap distributions
Markos Chandras [Thu, 12 Oct 2017 13:55:20 +0000 (14:55 +0100)]
ceph-common: Add initial support for openSUSE Leap distributions

openSUSE Leap 42.3 provides support for Ceph Luminous in both the
distribution package and the latest available version in the OBS
repository so add these as the only available installation methods for
openSUSE.

Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoMerge pull request #2167 from ceph/bz-1510906
Sébastien Han [Mon, 13 Nov 2017 16:37:37 +0000 (03:37 +1100)]
Merge pull request #2167 from ceph/bz-1510906

defaults: fix rgw restart script in handlers

7 years agodefaults: fix rgw restart script in handlers 2167/head
Guillaume Abrioux [Mon, 13 Nov 2017 15:27:51 +0000 (16:27 +0100)]
defaults: fix rgw restart script in handlers

Like 80d32dec, the path to the fact is not correct.
In any case, we will retrieve the IP address in hostvars, the variable
is the way we get the interface name according where it has been set
(eg.: inventory host file vs. group_vars/)

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1510906
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
7 years agoMerge pull request #2146 from mslovy/wip-fix-crush-location
Guillaume Abrioux [Mon, 13 Nov 2017 11:23:44 +0000 (12:23 +0100)]
Merge pull request #2146 from mslovy/wip-fix-crush-location

osd: fix crush location for non-containerized deployment

7 years agoMerge pull request #2140 from yanyixing/doc_fix
Sébastien Han [Mon, 13 Nov 2017 11:11:26 +0000 (22:11 +1100)]
Merge pull request #2140 from yanyixing/doc_fix

Fix: the ansible version for the stable-3.0 branch

7 years agoMerge pull request #2142 from squidboylan/master
Sébastien Han [Mon, 13 Nov 2017 11:06:16 +0000 (22:06 +1100)]
Merge pull request #2142 from squidboylan/master

infra: fix take-over-existing-cluster.yml playbook

7 years agoMerge pull request #2144 from ceph/quick_fix_lvm
Sébastien Han [Mon, 13 Nov 2017 10:50:37 +0000 (21:50 +1100)]
Merge pull request #2144 from ceph/quick_fix_lvm

osd: skip some set_fact when osd_scenario=lvm

7 years agoMerge pull request #2141 from Arano-kai/run_restart_scripts_in_noexec_tmp
Sébastien Han [Mon, 13 Nov 2017 10:37:35 +0000 (21:37 +1100)]
Merge pull request #2141 from Arano-kai/run_restart_scripts_in_noexec_tmp

FIX: run restart scripts in `noexec` /tmp

7 years agoMerge pull request #2163 from ktdreyer/rpm-ansible-2.4.1.0
Guillaume Abrioux [Fri, 10 Nov 2017 17:19:29 +0000 (18:19 +0100)]
Merge pull request #2163 from ktdreyer/rpm-ansible-2.4.1.0

rpm: require ansible 2.4.1.0

7 years agorpm: require ansible 2.4.1.0 2163/head
Ken Dreyer [Fri, 10 Nov 2017 17:11:31 +0000 (10:11 -0700)]
rpm: require ansible 2.4.1.0

2.4.0.0 has some bugs, and we're going to ship with v2.4.1.0.

7 years agoMerge pull request #2152 from ceph/bz-1510470
Guillaume Abrioux [Fri, 10 Nov 2017 05:55:13 +0000 (06:55 +0100)]
Merge pull request #2152 from ceph/bz-1510470

purge-docker-cluster: ensure old logs are removed

7 years agoMerge pull request #2154 from ceph/fix_auto_discover
Guillaume Abrioux [Fri, 10 Nov 2017 00:19:20 +0000 (01:19 +0100)]
Merge pull request #2154 from ceph/fix_auto_discover

osd: avoid using non desired loop device in autodiscovery

7 years agoMerge pull request #2153 from ceph/fix_disk_list_test
Guillaume Abrioux [Thu, 9 Nov 2017 22:50:32 +0000 (23:50 +0100)]
Merge pull request #2153 from ceph/fix_disk_list_test

osd: always run disk_list test