]>
git.apps.os.sepia.ceph.com Git - ceph-ansible.git/log
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>
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>
Prisacari Dmitrii [Fri, 8 Dec 2017 17:09:50 +0000 (19:09 +0200)]
Vagrantfile: Fixed repeated OSD controller creation
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
Andy McCrae [Thu, 30 Nov 2017 17:46:55 +0000 (17:46 +0000)]
Use parted module instead of command
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
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.
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
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>
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
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
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
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
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 )
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
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>
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
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
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>
Jan Provaznik [Wed, 15 Nov 2017 11:59:36 +0000 (12:59 +0100)]
Allow to use rados for ganesha exports
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`
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>
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>
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
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>
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
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
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
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
Guillaume Abrioux [Thu, 16 Nov 2017 15:52:13 +0000 (16:52 +0100)]
Merge pull request #2186 from ceph/dmcrypt-fixfg
osd: multiple fixes
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>
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>
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>
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
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>
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
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>
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
Yixing Yan [Thu, 16 Nov 2017 08:45:03 +0000 (16:45 +0800)]
fix: remove the duplicated code
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
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>
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>
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>
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]$
```
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
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>
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
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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
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>
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
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
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
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
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
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
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.
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
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
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
Guillaume Abrioux [Thu, 9 Nov 2017 09:42:14 +0000 (10:42 +0100)]
purge-docker-cluster: ensure old logs are removed
purge-docker-cluster must remove all osd_disk_prepare logs in
`{{ ceph_osd_docker_run_script_path }}`, otherwise if you purge your
cluster and try to redeploy it, osds will fail to start since because it
will try to retrieve find a partition uuid which doesn't exist.
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1510470
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
Guillaume Abrioux [Thu, 9 Nov 2017 10:05:59 +0000 (11:05 +0100)]
osd: always run disk_list test
there is no need to have a condition on this task, this test should be
always run since the result will be interpreted later.
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
Guillaume Abrioux [Thu, 9 Nov 2017 10:24:34 +0000 (11:24 +0100)]
Merge pull request #2150 from ceph/fix_typo
config: fix config generation
Guillaume Abrioux [Thu, 9 Nov 2017 09:26:24 +0000 (10:26 +0100)]
osd: avoid using non desired loop device in autodiscovery
This will prevent ceph-ansible from using a loop device while it
shouldn't in auto_discovery mode.
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
Guillaume Abrioux [Wed, 8 Nov 2017 23:03:00 +0000 (00:03 +0100)]
config: fix config generation
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>
Guillaume Abrioux [Wed, 8 Nov 2017 10:56:51 +0000 (11:56 +0100)]
Merge pull request #2145 from ceph/fix-autodiscover
osd: do not use dm when osd_auto_discovery
Guillaume Abrioux [Wed, 8 Nov 2017 07:47:39 +0000 (08:47 +0100)]
osd: fix automatic prepare when auto_discover
Use `devices` variable instead of `ansible_devices`, otherwise it means
we are not using the devices which have been 'auto discovered'
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
yaoning [Wed, 8 Nov 2017 01:02:51 +0000 (12:02 +1100)]
fix crush location for non-containerized deployment
crush location only set for containerized deployment
Signed-off-by: yaoning <yaoning@unitedstack.com>
Sébastien Han [Wed, 8 Nov 2017 00:33:10 +0000 (11:33 +1100)]
osd: do not use dm when osd_auto_discovery
The current code will also return lvm devices such as /dev/dm-2, this
kind of device type is not supported by ceph-disk at the moment. Now we
just ignore them.
Signed-off-by: Sébastien Han <seb@redhat.com>
Guillaume Abrioux [Tue, 7 Nov 2017 14:30:08 +0000 (15:30 +0100)]
osd: skip some set_fact when osd_scenario=lvm
these tasks are not needed when using `osd_scenario: lvm`
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1509230
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
Guillaume Abrioux [Tue, 7 Nov 2017 10:39:34 +0000 (11:39 +0100)]
Merge pull request #2143 from ceph/fix_typo
osd: fix a typo in roles/ceph-osd/defaults/main.yml
Guillaume Abrioux [Tue, 7 Nov 2017 08:48:29 +0000 (09:48 +0100)]
osd: fix a typo in roles/ceph-osd/defaults/main.yml
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
Caleb Boylan [Fri, 3 Nov 2017 16:54:54 +0000 (09:54 -0700)]
infra: fix take-over-existing-cluster.yml playbook
The ansible inventory could have more than just ceph-ansible hosts, so
we shouldnt use "hosts: all", also only grab one file when getting
the ceph cluster name instead of failing when there is more than one
file in /etc/ceph. Also fix location of the ceph.conf template
Arano-kai [Mon, 6 Nov 2017 14:02:47 +0000 (16:02 +0200)]
FIX: run restart scripts in `noexec` /tmp
- One can not run scripts directly in place, that mounted with `noexec`
option. But one can run scripts as arguments for `bash/sh`.
Signed-off-by: Arano-kai <captcha.is.evil@gmail.com>
Yixing Yan [Mon, 6 Nov 2017 08:15:47 +0000 (16:15 +0800)]
fix the ansible version for the stable-3.0 branch
Sébastien Han [Fri, 3 Nov 2017 12:05:51 +0000 (13:05 +0100)]
Merge pull request #2128 from ceph/mon_interface
config: fix monitor_interface when not passed in the inventory file | osd: fix old jewel container activation
Sébastien Han [Fri, 3 Nov 2017 11:26:12 +0000 (12:26 +0100)]
Merge pull request #2129 from ceph/update_nightly_ci
[skip ci] tests: sync with ceph/ceph-build for ceph-ansible-nightlies
Sébastien Han [Thu, 2 Nov 2017 15:17:38 +0000 (16:17 +0100)]
osd: enhance backward compatibility
During the initial implementation of this 'old' thing we were falling
into this issue without noticing
https://github.com/moby/moby/issues/30341 and where blindly using --rm,
now this is fixed the prepare container disappears and thus activation
fail.
I'm fixing this for old jewel images.
Also this fixes the machine reboot case where the docker logs are
purgend. In the old scenario, we now store the log locally in the same
directory as the ceph-osd-run.sh script.
Signed-off-by: Sébastien Han <seb@redhat.com>
Guillaume Abrioux [Fri, 27 Oct 2017 11:22:28 +0000 (13:22 +0200)]
tests: sync with ceph/ceph-build for ceph-ansible-nightlies
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
Sébastien Han [Thu, 2 Nov 2017 13:53:46 +0000 (14:53 +0100)]
config: fix monitor_interface when not passed in the inventory file
Setting monitor_interface in group_vars/all.yml makes the
hostvars[host]['monitor_interface'] non-existing.
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1507922
Signed-off-by: Sébastien Han <seb@redhat.com>
Sébastien Han [Tue, 31 Oct 2017 15:51:16 +0000 (16:51 +0100)]
Merge pull request #2124 from ceph/lvm-setup-fix
test: when creating the /dev/sdc2 partition specify label as gpt
Sébastien Han [Tue, 31 Oct 2017 15:47:41 +0000 (16:47 +0100)]
Merge pull request #2123 from ceph/update_tests
tests: followup on testing against ansible2.4
Guillaume Abrioux [Tue, 31 Oct 2017 13:39:29 +0000 (14:39 +0100)]
common: make the delegate_facts feature optional
Since we encountered issue with this on ansible2.2, this commit provide
the ability to enable or disable it regarding which ansible we are
running.
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
Andrew Schoen [Mon, 30 Oct 2017 20:31:04 +0000 (15:31 -0500)]
test: when creating the /dev/sdc2 partition specify label as gpt
ansible==2.4 requires that label be set to gpt, or it will be defaulted
to msdos.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>