]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/log
ceph-ansible.git
8 years agoceph-common: update sysctl file location 1394/head
Concubidated [Fri, 24 Mar 2017 19:52:37 +0000 (12:52 -0700)]
ceph-common: update sysctl file location

systctl tuning should be in the sysctl.d directory. This creates
a seperation from what values were set specific to ceph, and what
values were set by the operator.

Signed-off-by: Tyler Brekke <tbrekke@redhat.com>
8 years agoMerge pull request #1389 from ceph/downstream-testing
Andrew Schoen [Fri, 24 Mar 2017 15:09:12 +0000 (10:09 -0500)]
Merge pull request #1389 from ceph/downstream-testing

tests: enable testing of rhcs

8 years agotests: change ceph/ubuntu-xenial boxes to rhel7 1389/head
Andrew Schoen [Thu, 23 Mar 2017 13:43:11 +0000 (08:43 -0500)]
tests: change ceph/ubuntu-xenial boxes to rhel7

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agotests: when testing rhcs default CEPH_STABLE=false
Andrew Schoen [Thu, 23 Mar 2017 11:42:43 +0000 (06:42 -0500)]
tests: when testing rhcs default CEPH_STABLE=false

This will keep ceph-ansible from installing the upstream repo file on
the testing nodes.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agotests: change hosts in first play in rhcs_setup to localhost
Andrew Schoen [Thu, 23 Mar 2017 00:40:34 +0000 (19:40 -0500)]
tests: change hosts in first play in rhcs_setup to localhost

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agotests: set MTU to 1400 on test node interfaces
Andrew Schoen [Wed, 22 Mar 2017 21:44:29 +0000 (16:44 -0500)]
tests: set MTU to 1400 on test node interfaces

In the environment we were testing on, MTU was set to 1500 which causes
download failures of our yum repos. There might be a better way to set
this instead of doing it here in ansible.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agotests: adds a task to download a repo file for nightly rhel7 packages
Andrew Schoen [Wed, 22 Mar 2017 21:18:57 +0000 (16:18 -0500)]
tests: adds a task to download a repo file for nightly rhel7 packages

This is a url to an actual repo file, not a baseurl to use in a repo.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agotests: fix ceph tools baseurl
Andrew Schoen [Wed, 22 Mar 2017 21:02:50 +0000 (16:02 -0500)]
tests: fix ceph tools baseurl

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agotests: enable the downstream rhcs repos
Andrew Schoen [Wed, 22 Mar 2017 20:42:17 +0000 (15:42 -0500)]
tests: enable the downstream rhcs repos

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agotests: fix task in rhcs_setup that changes vagrant box to rhel7
Andrew Schoen [Wed, 22 Mar 2017 17:38:12 +0000 (12:38 -0500)]
tests: fix task in rhcs_setup that changes vagrant box to rhel7

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agotests: use the rhcs_setup.yml playbook in tox.ini
Andrew Schoen [Wed, 22 Mar 2017 15:14:41 +0000 (10:14 -0500)]
tests: use the rhcs_setup.yml playbook in tox.ini

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agotests: adds a rhcs_setup.yml playbook
Andrew Schoen [Wed, 22 Mar 2017 15:13:51 +0000 (10:13 -0500)]
tests: adds a rhcs_setup.yml playbook

This is used to configure the test nodes for testing Ret Had Ceph
Storage.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agotest: docker dmcrypt tests should use the site.docker.yml playbook
Andrew Schoen [Wed, 22 Mar 2017 14:16:06 +0000 (09:16 -0500)]
test: docker dmcrypt tests should use the site.docker.yml playbook

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agotests: adds a 'rhcs-' prefix to the testing scenarios matrix
Andrew Schoen [Wed, 22 Mar 2017 13:49:49 +0000 (08:49 -0500)]
tests: adds a 'rhcs-' prefix to the testing scenarios matrix

This allows for us to have a copy of the existing testing scenarios with
a 'rhcs-' prefix. We can use that in the tox.ini to take actions we need
to properly test Red Hat Ceph Storage.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agoMerge pull request #1345 from guits/fix_1338
Sébastien Han [Wed, 22 Mar 2017 11:02:35 +0000 (12:02 +0100)]
Merge pull request #1345 from guits/fix_1338

ceph-docker: fix bootstrap directories permissions

8 years agoceph-docker: fix bootstrap directories permissions 1345/head
Guillaume Abrioux [Fri, 3 Mar 2017 13:58:56 +0000 (14:58 +0100)]
ceph-docker: fix bootstrap directories permissions

Make bootstrap directories permissions work for both RedHat and Debian
os families.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
Fix: #1338

8 years agoMerge pull request #1385 from ceph/fetch-dir
Alfredo Deza [Tue, 21 Mar 2017 17:34:42 +0000 (13:34 -0400)]
Merge pull request #1385 from ceph/fetch-dir

tests: allow setting fetch_directory with an environment variable

8 years agoMerge pull request #1382 from anthonyeleven/master
Sébastien Han [Tue, 21 Mar 2017 09:12:42 +0000 (10:12 +0100)]
Merge pull request #1382 from anthonyeleven/master

Enhance clean PG check to catch active+clean+scrubbing and active+cle…

8 years agoMerge pull request #1381 from joke-lee/master
Sébastien Han [Tue, 21 Mar 2017 08:53:01 +0000 (09:53 +0100)]
Merge pull request #1381 from joke-lee/master

the $? of pgrep ceph-rest-api command return is 1 when ceph-rest-api is already run

8 years agoMerge pull request #1379 from D3N14L/fix_1299
Sébastien Han [Tue, 21 Mar 2017 08:43:10 +0000 (09:43 +0100)]
Merge pull request #1379 from D3N14L/fix_1299

Use ansible uri module instead of shell module with curl

8 years agoMerge pull request #1376 from czunker/fix_osd_crush_location
Sébastien Han [Tue, 21 Mar 2017 08:41:10 +0000 (09:41 +0100)]
Merge pull request #1376 from czunker/fix_osd_crush_location

Fix osd_crush_location to prevent systemd error message

8 years agoMerge pull request #1365 from czunker/fix_osd_fragments
Sébastien Han [Tue, 21 Mar 2017 08:40:25 +0000 (09:40 +0100)]
Merge pull request #1365 from czunker/fix_osd_fragments

Make ceph-common aware of osd config fragments

8 years agotests: allow setting fetch_directory with an environment variable 1385/head
Andrew Schoen [Mon, 20 Mar 2017 21:22:07 +0000 (16:22 -0500)]
tests: allow setting fetch_directory with an environment variable

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agoMerge pull request #1378 from ceph/ceph-create-keys
Alfredo Deza [Mon, 20 Mar 2017 14:25:27 +0000 (10:25 -0400)]
Merge pull request #1378 from ceph/ceph-create-keys

ceph-mon: always call ceph-create-keys

8 years agoEnhance clean PG check to catch active+clean+scrubbing and active+clean+scrubbing... 1382/head
Anthony D'Atri [Sun, 19 Mar 2017 07:23:26 +0000 (00:23 -0700)]
Enhance clean PG check to catch active+clean+scrubbing and active+clean+scrubbing+deep

Signed-off-by: Anthony D'Atri <anthony.datri@gmail.com>
8 years agothe $? of pgrep ceph-rest-api command return is 1 when ceph-rest-api already run... 1381/head
yuliyang [Fri, 17 Mar 2017 09:40:45 +0000 (17:40 +0800)]
the $? of pgrep ceph-rest-api command return is 1 when ceph-rest-api already run.  use ps instead

8 years agoMerge pull request #1368 from ceph/test-install-methods
Andrew Schoen [Fri, 17 Mar 2017 14:28:12 +0000 (09:28 -0500)]
Merge pull request #1368 from ceph/test-install-methods

tests: provide ways to change the install method

8 years agoFix osd_crush_location to prevent systemd error message 1376/head
Christian Zunker [Thu, 16 Mar 2017 13:25:15 +0000 (14:25 +0100)]
Fix osd_crush_location to prevent systemd error message

With ' in osd_crush_location, systemd will show this error:
ceph-osd-prestart.sh[2931]: Invalid command:  invalid chars ' in 'root=

Signed-off-by: Christian Zunker <christian.zunker@codecentric.de>
8 years agoUse ansible uri module instead of shell module with curl 1379/head
Daniel Marks [Thu, 16 Mar 2017 22:16:30 +0000 (23:16 +0100)]
Use ansible uri module instead of shell module with curl

This fixes issue #1299. According to @ktdreyer s comment in the ticket,
he fixed the web server config so also older (non-SNI) python clients
can use the uri module here.

8 years agoceph-mon: always call ceph-create-keys 1378/head
Andrew Schoen [Thu, 16 Mar 2017 21:31:25 +0000 (16:31 -0500)]
ceph-mon: always call ceph-create-keys

After the jewel release the mon startup does not generate keys, but it's
still harmless to call ceph-create-keys with jewel because this task has
a 'creates' argument that will cause it not to run if the keys already
exist.

Removing this when condition also allows the downstream CI tests to
install kraken or luminous without resetting ceph_stable_release, which does not
pertain to rhcs.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agotests: convert extra-vars to use json 1368/head
Andrew Schoen [Thu, 16 Mar 2017 11:16:09 +0000 (06:16 -0500)]
tests: convert extra-vars to use json

This will prevent ansible from misreading any of these values. There
were failures with xenial deployments because the value set for
``ceph_rhcs`` was being treated as a boolean True even though I'd set
the value to false. This is because boolean values passed in with
--extra-vars must use the json format.

The formatting of the json is very important as you need a '\' to escape
the starting and ending json to make tox happy. Also, each line needs to
end with '\' if it's a multi-line command.

Another thing to note is that if you want to use extra vars at the
command line to respond to a vars_prompt it must be in key/value format.
This is why we have a -e and a --extra-vars on the purge and update
tests.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agoMerge pull request #1371 from ceph/yum-repo v2.2.0rc1
Sébastien Han [Thu, 16 Mar 2017 14:17:20 +0000 (15:17 +0100)]
Merge pull request #1371 from ceph/yum-repo

docker: change centos extra repo var name

8 years agodocker: change centos extra repo var name 1371/head
Sébastien Han [Thu, 16 Mar 2017 09:57:13 +0000 (10:57 +0100)]
docker: change centos extra repo var name

This is not only for monitors, but also mds, rgw and rbd mirror so
making the var name more generic:
ceph_docker_enable_centos_extra_repo

Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agoMerge pull request #1331 from guits/enh_1321
Sébastien Han [Thu, 16 Mar 2017 12:28:45 +0000 (13:28 +0100)]
Merge pull request #1331 from guits/enh_1321

ceph-mon: create openstack pools and keys even for containerized deployments

8 years agoMerge pull request #1373 from ceph/docker-mon-wait
Sébastien Han [Thu, 16 Mar 2017 11:03:15 +0000 (12:03 +0100)]
Merge pull request #1373 from ceph/docker-mon-wait

mon: increase wait for monitor socket timeout

8 years agomon: increase wait for monitor socket timeout 1373/head
Sébastien Han [Thu, 16 Mar 2017 10:16:49 +0000 (11:16 +0100)]
mon: increase wait for monitor socket timeout

Sometimes the socket appears during the 5th attempt and sometimes not so
increasing the timeout a little bit.

Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agoceph-mon: Create openstack pools and keys even for containerized deployments 1331/head
Guillaume Abrioux [Fri, 24 Feb 2017 09:22:16 +0000 (10:22 +0100)]
ceph-mon: Create openstack pools and keys even for containerized deployments

Add the possibility to create openstack pools and keys even for containerized deployments

Fix: #1321
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
8 years agoMerge pull request #1370 from ceph/template-rbd-mirror
Sébastien Han [Thu, 16 Mar 2017 09:19:26 +0000 (10:19 +0100)]
Merge pull request #1370 from ceph/template-rbd-mirror

rbd-mirror: fix spelling

8 years agorbd-mirror: fix spelling 1370/head
Sébastien Han [Thu, 16 Mar 2017 09:18:31 +0000 (10:18 +0100)]
rbd-mirror: fix spelling

It is RBD and NOT RDB.

Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agoMake ceph-common aware off osd config fragments 1365/head
Christian Zunker [Wed, 15 Mar 2017 12:32:30 +0000 (13:32 +0100)]
Make ceph-common aware off osd config fragments

This removes the implicit order requirement when using OSD fragments.
When you use OSD fragments and ceph-osd role is not the last one,
the fragments get removed from ceph.conf by ceph-common.

It is not nice to have this code at two locations, but this is
necessary to prevent problems, when ceph-osd is the last role as
ceph-common gets executed before ceph-osd.

This could be prevented when ceph-common would be explicitly called
at the end of the playbook.

Signed-off-by: Christian Zunker <christian.zunker@codecentric.de>
8 years agotests: change USE_CEPH_RHCS to CEPH_RHCS
Andrew Schoen [Wed, 15 Mar 2017 21:28:50 +0000 (16:28 -0500)]
tests: change USE_CEPH_RHCS to CEPH_RHCS

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agotests: use CEPH_STABLE to set the value for ceph_stable
Andrew Schoen [Wed, 15 Mar 2017 21:10:08 +0000 (16:10 -0500)]
tests: use CEPH_STABLE to set the value for ceph_stable

When using CEPH_DEV=true you'll need to set CEPH_STABLE=false so that
that an upstream repo file doesn't get created.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agotests: reformat tox.ini for better readability
Andrew Schoen [Wed, 15 Mar 2017 21:06:00 +0000 (16:06 -0500)]
tests: reformat tox.ini for better readability

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agotests: adds the ability to set the ceph_stable_release value
Andrew Schoen [Wed, 15 Mar 2017 20:08:39 +0000 (15:08 -0500)]
tests: adds the ability to set the ceph_stable_release value

Use CEPH_STABLE_RELEASE to set the name of the ceph release you plan to
install. When testing an upgrade scenario you'll also need to set
UPGRADE_CEPH_STABLE_RELEASE.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agotests: add the ability to run tests with shaman repos
Andrew Schoen [Wed, 15 Mar 2017 20:01:32 +0000 (15:01 -0500)]
tests: add the ability to run tests with shaman repos

To run tests that deploy shaman repos set CEPH_DEV=true and optionally
use CEPH_DEV_BRANCH and CEPH_DEV_SHA1 to define with branch and sha1 to
test. CEPH_DEV_BRANCH defaults to master and CEPH_DEV_SHA1 defaults to
latest.

For example, this would run the journal_collocation test with the latest
build of the master branch:

  CEPH_DEV=true tox -rve ansible2.2-journal_collocation

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agotests: use CEPH_ORIGIN to control the value of ceph_origin
Andrew Schoen [Wed, 15 Mar 2017 19:53:42 +0000 (14:53 -0500)]
tests: use CEPH_ORIGIN to control the value of ceph_origin

For example, the following would run the journal collocation test and
would install ceph from the repos already on the nodes:

  CEPH_ORIGIN=distro tox -rve ansible2.2-journal_collocation

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agotests: when running test set USE_RHCS=true to install set ceph_rhcs=true
Andrew Schoen [Wed, 15 Mar 2017 19:32:42 +0000 (14:32 -0500)]
tests: when running test set USE_RHCS=true to install set ceph_rhcs=true

When invoking the tests if USE_RHCS=true is set then all tests will be
run with ceph_rhcs=True.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agoMerge pull request #1367 from D3N14L/fix_whitespaces_from_1336
Andrew Schoen [Wed, 15 Mar 2017 21:37:04 +0000 (16:37 -0500)]
Merge pull request #1367 from D3N14L/fix_whitespaces_from_1336

Fixing tabs that are breaking the syntax check

8 years agoFixing tabs that are breaking the syntax check 1367/head
Daniel Marks [Wed, 15 Mar 2017 13:15:15 +0000 (14:15 +0100)]
Fixing tabs that are breaking the syntax check

With the merge of PR #1336 the syntax check fails. This commit replaces
the tabs with proper indentation.

8 years agoMerge pull request #1336 from WingkaiHo/master
Sébastien Han [Wed, 15 Mar 2017 10:55:26 +0000 (11:55 +0100)]
Merge pull request #1336 from WingkaiHo/master

Load a variable file for devices partition

8 years agoMerge pull request #1363 from ceph/rgw-mds-container
Sébastien Han [Tue, 14 Mar 2017 21:50:05 +0000 (22:50 +0100)]
Merge pull request #1363 from ceph/rgw-mds-container

kv scenario: add KV_PORT option

8 years agokv scenario: add KV_PORT option 1363/head
Sébastien Han [Tue, 14 Mar 2017 21:46:09 +0000 (22:46 +0100)]
kv scenario: add KV_PORT option

This option was missing for rrgw, mds, rbd mirror and nfs making these
daemon impossible to run on a kv deployment with containers.

Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agoMerge pull request #1317 from ibotty/harmonize-docker-names
Sébastien Han [Tue, 14 Mar 2017 17:20:20 +0000 (18:20 +0100)]
Merge pull request #1317 from ibotty/harmonize-docker-names

harmonize docker names

8 years agoMerge pull request #1358 from ceph/nfs-ganesha-fsal-deb
Sébastien Han [Tue, 14 Mar 2017 15:03:14 +0000 (16:03 +0100)]
Merge pull request #1358 from ceph/nfs-ganesha-fsal-deb

ceph-common: install nfs-ganesha FSALs on Debian

8 years agoceph-common: install nfs-ganesha FSALs on Debian 1358/head
Ken Dreyer [Mon, 13 Mar 2017 15:34:35 +0000 (09:34 -0600)]
ceph-common: install nfs-ganesha FSALs on Debian

Prior to this change, ceph-ansible would install the main NFS Ganesha
server daemon on Ubuntu, but it would skip the Ceph FSALs.

Running "apt-get install nfs-ganesha" will only install the main NFS Ganesha
server. It does *not* pull in the RGW FSAL
(/usr/lib/x86_64-linux-gnu/ganesha/libfsalrgw.so)

Running "apt-get install nfs-ganesha-fsal" will install the RGW FSAL as
well as the main NFS Ganesha server package.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
8 years agoMerge pull request #1356 from ceph/wip-calamari-debug
Sébastien Han [Tue, 14 Mar 2017 09:55:52 +0000 (10:55 +0100)]
Merge pull request #1356 from ceph/wip-calamari-debug

calamari: Add debugging option

8 years agocalamari: Add debugging option 1356/head
Boris Ranto [Mon, 13 Mar 2017 12:46:38 +0000 (13:46 +0100)]
calamari: Add debugging option

This patch introduces calamari_debug option which will turn on debugging
for calamari before initializing and running it.

Signed-off-by: Boris Ranto <branto@redhat.com>
8 years agoMerge pull request #1355 from ceph/rolling-update-tests
Alfredo Deza [Thu, 9 Mar 2017 19:08:59 +0000 (14:08 -0500)]
Merge pull request #1355 from ceph/rolling-update-tests

tests: adds an update_cluster testing scenario

8 years agotests: adds an update_cluster testing scenario 1355/head
Andrew Schoen [Tue, 7 Mar 2017 20:05:03 +0000 (14:05 -0600)]
tests: adds an update_cluster testing scenario

This updates the centos 7 cluster scenario from jewel to kraken using
the rolling_update playbook.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agoMerge pull request #1349 from ceph/rhbz-1354700
Sébastien Han [Wed, 8 Mar 2017 17:02:30 +0000 (18:02 +0100)]
Merge pull request #1349 from ceph/rhbz-1354700

purge-cluster: do not set group name vars at playbook level

8 years agoMerge pull request #1347 from ceph/no-vfs-cache-pressure
Sébastien Han [Wed, 8 Mar 2017 17:02:06 +0000 (18:02 +0100)]
Merge pull request #1347 from ceph/no-vfs-cache-pressure

avoid setting vfs_cache_pressure

8 years agoswitch-to-containers: do not include group vars or role defaults 1349/head
Andrew Schoen [Tue, 7 Mar 2017 19:51:48 +0000 (13:51 -0600)]
switch-to-containers: do not include group vars or role defaults

Doing so will override any values set for these in the group_vars
directory relative to the users inventory.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agopurge-docker-cluster: do not include role defaults or group vars
Andrew Schoen [Tue, 7 Mar 2017 19:45:22 +0000 (13:45 -0600)]
purge-docker-cluster: do not include role defaults or group vars

Doing so at playbook level overrides whatever values might be set for
these in the user's group_vars directory that's relative to their
inventory.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agoswitch-to-containers: do not set group name vars at playbook level
Andrew Schoen [Tue, 7 Mar 2017 19:32:57 +0000 (13:32 -0600)]
switch-to-containers: do not set group name vars at playbook level

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agopurge-docker-cluster: do not set group names vars at playbook level
Andrew Schoen [Tue, 7 Mar 2017 19:23:40 +0000 (13:23 -0600)]
purge-docker-cluster: do not set group names vars at playbook level

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agorolling-update: do not set group name vars at playbook level
Andrew Schoen [Tue, 7 Mar 2017 19:16:12 +0000 (13:16 -0600)]
rolling-update: do not set group name vars at playbook level

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agopurge-cluster: do not set group name vars at playbook level
Andrew Schoen [Tue, 7 Mar 2017 16:16:09 +0000 (10:16 -0600)]
purge-cluster: do not set group name vars at playbook level

This has the behavior of overriding custom values set in group_vars.
I've added defaults to the rest of the group names so that if they are
not overridden in group_vars then defaults will be used.

See: https://bugzilla.redhat.com/show_bug.cgi?id=1354700

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agoUpdate make-osd-partitions.yml 1336/head
WingKai Ho [Wed, 8 Mar 2017 09:46:37 +0000 (17:46 +0800)]
Update make-osd-partitions.yml

change

8 years agoMerge pull request #1350 from ceph/make-handle-rc
Alfredo Deza [Tue, 7 Mar 2017 21:12:10 +0000 (16:12 -0500)]
Merge pull request #1350 from ceph/make-handle-rc

Makefile: handle "rc" version tags

8 years agoMakefile: handle "rc" version tags 1350/head
Ken Dreyer [Tue, 7 Mar 2017 18:01:15 +0000 (11:01 -0700)]
Makefile: handle "rc" version tags

When "git describe" returns an "rc" tag (eg "2.2.0rc1"), insert the RC
number into the RPM's "Release" field.

Add comments with some git-describe values and NVRs.

8 years agoMakefile: generate tagged RPMs with "-1" release value
Ken Dreyer [Tue, 7 Mar 2017 18:11:53 +0000 (11:11 -0700)]
Makefile: generate tagged RPMs with "-1" release value

Prior to this change, if we built an RPM from a tagged commit, the RPM
would have a release value of "0".

This causes some problems with RPM version comparisons when comparing
version numbers with "rc" tags/packages, which should also have a
less-than-one Release value.

8 years agoMerge pull request #1335 from batrick/mon-fs-cmd-1mon
Sébastien Han [Tue, 7 Mar 2017 15:45:16 +0000 (16:45 +0100)]
Merge pull request #1335 from batrick/mon-fs-cmd-1mon

send fs commands to one mon

8 years agoMerge pull request #1339 from ceph/rgw-remove-sudo
Sébastien Han [Tue, 7 Mar 2017 15:44:28 +0000 (16:44 +0100)]
Merge pull request #1339 from ceph/rgw-remove-sudo

rgw: remove sudoers file

8 years agoMerge pull request #1346 from ceph/fix-rhcs-rhel-supported-message
Sébastien Han [Mon, 6 Mar 2017 14:50:24 +0000 (15:50 +0100)]
Merge pull request #1346 from ceph/fix-rhcs-rhel-supported-message

check_system: improve RHCS support message and version comparison

8 years agoUpdate make-osd-partitions.yml
WingKai Ho [Mon, 6 Mar 2017 07:43:09 +0000 (15:43 +0800)]
Update make-osd-partitions.yml

When ansible do not load the file host_vars/{{ ansible_hostname }}.yml and host_vars/default.yml it will show syntactic, so keyword "skip" to fix it.
Exit the playbook if the user not define devices  in both  host_vars/{{ ansible_hostname }}.yml and host_vars/default.yml

8 years agoUpdate make-osd-partitions.yml
WingKai Ho [Mon, 6 Mar 2017 02:33:22 +0000 (10:33 +0800)]
Update make-osd-partitions.yml

When ansible do not load the file host_vars/{{ ansible_hostname }}.yml and host_vars/default.yml it will show syntactic err, so add keyword "skip" to fix it.

Exit the playbook if the user not define devices  in both  host_vars/{{ ansible_hostname }}.yml and host_vars/default.yml
host_vars/default.yml

8 years agoavoid setting vfs_cache_pressure 1347/head
Ken Dreyer [Fri, 3 Mar 2017 18:20:05 +0000 (11:20 -0700)]
avoid setting vfs_cache_pressure

From Josh Durgin, "I'd recommend not setting vfs_cache_pressure in
ceph-ansible. The syncfs issue is still there, and has caused real
problems in the past, whereas there hasn't been good data showing lower
vfs_cache_pressure is very helpful - the only cases I'm aware of have
shown it makes little difference to performance."

https://bugzilla.redhat.com/show_bug.cgi?id=1395451

8 years agocheck_system: improve RHCS support message and version comparison 1346/head
Ken Dreyer [Fri, 3 Mar 2017 16:56:30 +0000 (09:56 -0700)]
check_system: improve RHCS support message and version comparison

"red hat storage" -> "red hat ceph storage"

"RHEL 7.1" -> "RHEL 7"

and make the version number check verify the very latest version

https://bugzilla.redhat.com/show_bug.cgi?id=1354059

8 years agoMerge pull request #1328 from guits/fix_1303
Sébastien Han [Fri, 3 Mar 2017 15:33:48 +0000 (16:33 +0100)]
Merge pull request #1328 from guits/fix_1303

docker: Fix #1303

8 years agodocker: Fix #1303 1328/head
Guillaume Abrioux [Tue, 21 Feb 2017 16:58:24 +0000 (17:58 +0100)]
docker: Fix #1303

Install package from official repos rather than pip when using RHEL.

This commit fix https://bugzilla.redhat.com/show_bug.cgi?id=1420855

Also this commit Refact all `roles/ceph-*/tasks/docker/pre_requisite.yml`
to avoid a lot of duplicated code.

Fix: #1303
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
8 years agoUpdate make-osd-partitions.yml
WingKai Ho [Fri, 3 Mar 2017 09:26:53 +0000 (17:26 +0800)]
Update make-osd-partitions.yml

fix syntactic error

8 years agorgw: remove sudoers file 1339/head
Sébastien Han [Thu, 2 Mar 2017 13:59:21 +0000 (14:59 +0100)]
rgw: remove sudoers file

This was needed for Hammer and older version, not needed anymore since
we have a 'ceph' user to run ceph processes.

Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agoUpdate ceph_keys.yml
WingKai Ho [Thu, 2 Mar 2017 06:09:08 +0000 (14:09 +0800)]
Update ceph_keys.yml

8 years agoUpdate ceph_keys.yml
WingKai Ho [Thu, 2 Mar 2017 06:07:52 +0000 (14:07 +0800)]
Update ceph_keys.yml

8 years agoUpdate make-osd-partitions.yml
WingKai Ho [Thu, 2 Mar 2017 06:06:41 +0000 (14:06 +0800)]
Update make-osd-partitions.yml

Remove capital `L`

8 years agoUpdate make-osd-partitions.yml
WingKai Ho [Thu, 2 Mar 2017 04:24:44 +0000 (12:24 +0800)]
Update make-osd-partitions.yml

there is an extra space between 'custom' and 'layout'

8 years agosend fs commands to one mon 1335/head
Patrick Donnelly [Tue, 28 Feb 2017 17:48:08 +0000 (12:48 -0500)]
send fs commands to one mon

Add-on to #1329.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
8 years agoUpdate ceph_keys.yml
WingKai Ho [Wed, 1 Mar 2017 09:39:53 +0000 (17:39 +0800)]
Update ceph_keys.yml

8 years agoLoad a variable file for devices parrition
WingKai Ho [Wed, 1 Mar 2017 09:27:57 +0000 (17:27 +0800)]
Load a variable file for devices parrition

load device partition file in directory host_vars

1) if the user define host_vars/hostname.yml load the devices  partition on this file.
2) otherwise load host_vars/default.yml for default

8 years agoMerge pull request #1334 from yangyimincn/yangyimincn-patch-1
Sébastien Han [Tue, 28 Feb 2017 09:48:26 +0000 (10:48 +0100)]
Merge pull request #1334 from yangyimincn/yangyimincn-patch-1

rolling_update check monitor quorum error

8 years agoUpdate rolling_update.yml 1334/head
yangyimincn [Tue, 28 Feb 2017 08:56:02 +0000 (16:56 +0800)]
Update rolling_update.yml

The task waiting for the monitor to join the quorum... , the result for ceph -s | grep monmap only contain monmap, not included quorum:

# ceph -s --cluster ceph | grep monmap
     monmap e1: 3 mons at {sh-office-ceph-1=10.12.10.34:6789/0,sh-office-ceph-2=10.12.10.35:6789/0,sh-office-ceph-3=10.12.10.36:6789/0}

If want to get monitor, should use this:

# ceph -s --cluster ceph | grep election
            election epoch 80, quorum 0,1 sh-office-ceph-1,sh-office-ceph-2

ceph verison: 10.2.5

8 years agoMerge pull request #1329 from guits/fix_1314
Sébastien Han [Mon, 27 Feb 2017 10:57:53 +0000 (11:57 +0100)]
Merge pull request #1329 from guits/fix_1314

ceph-mon: Check if ceph filesystem exists

8 years agoceph-mon: Check if ceph filesystem exists 1329/head
Guillaume Abrioux [Thu, 23 Feb 2017 15:06:04 +0000 (16:06 +0100)]
ceph-mon: Check if ceph filesystem exists

Check if ceph filesystem already exists before creating it.
If the ceph filesystem doesn't exist, execute the task only on one node.

Fix: #1314
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
8 years agoMerge pull request #1330 from ceph/fix-cluster-name-take-over
Sébastien Han [Thu, 23 Feb 2017 21:23:18 +0000 (16:23 -0500)]
Merge pull request #1330 from ceph/fix-cluster-name-take-over

infra: fix cluster name detection

8 years agoinfra: fix cluster name detection 1330/head
Sébastien Han [Thu, 23 Feb 2017 20:39:55 +0000 (15:39 -0500)]
infra: fix cluster name detection

The previous command was returning /etc/ceph/ceph.conf, we only need
'ceph' to be returned.

Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agoharmonize docker names 1317/head
Tobias Florek [Mon, 20 Feb 2017 09:03:49 +0000 (10:03 +0100)]
harmonize docker names

Created containers now are named more or less in the form of

    <ansible role>-<ansible_hostname>

8 years agoMerge pull request #1287 from ceph/no-priviledge-mode
Andrew Schoen [Wed, 22 Feb 2017 21:24:18 +0000 (15:24 -0600)]
Merge pull request #1287 from ceph/no-priviledge-mode

No priviledge mode

8 years agotests: when using pytest mark decorators ensure all fixtures are defined 1287/head
Andrew Schoen [Wed, 22 Feb 2017 19:43:59 +0000 (13:43 -0600)]
tests: when using pytest mark decorators ensure all fixtures are defined

Decorating a test method directly with a pytest mark seems to break if
the test function does not explicitly define all pytest fixtures it
expects to recieve.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agoci: decorate the tests to not run on docker scenario
Sébastien Han [Wed, 22 Feb 2017 14:21:23 +0000 (09:21 -0500)]
ci: decorate the tests to not run on docker scenario

Certain scenario won't work on containerized deployment. So we decorate
them so they can be skipped.

Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agoci: fix issue on ansible2.2-docker_dedicated_journal
Sébastien Han [Tue, 21 Feb 2017 21:14:39 +0000 (16:14 -0500)]
ci: fix issue on ansible2.2-docker_dedicated_journal

journal_collocation was enabled so the test suite was testing this
scenario and obviously failed since there is no second partition to
verify.

Signed-off-by: Sébastien Han <seb@redhat.com>