]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/log
ceph-ansible.git
8 years agopurge-cluster: fix failure when raw_multi_journal is not defined
Andrew Schoen [Thu, 26 Jan 2017 18:07:42 +0000 (12:07 -0600)]
purge-cluster: fix failure when raw_multi_journal is not defined

Because the purge-cluster.yml playbook does not have access to the roles
default vars then we can be sure that raw_multi_journal is defined. For
example, if this was purging a dmcrypt journal then raw_multi_journal
might not be defined at all in group_vars/all.yml or
group_vars/osds.yml.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agopurge-cluster: fix syntax when deleting dmcrypt devices
Andrew Schoen [Thu, 26 Jan 2017 17:28:30 +0000 (11:28 -0600)]
purge-cluster: fix syntax when deleting dmcrypt devices

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agotests: adds purge_cluster and purge_dmcrypt scenarios
Andrew Schoen [Thu, 26 Jan 2017 16:38:10 +0000 (10:38 -0600)]
tests: adds purge_cluster and purge_dmcrypt scenarios

This also removes the purge_cluster_collocated scenario as it's not
needed now because of purge_cluster.

Moving all the purge commands into its own section allows for ease of
reuse when creating new purge scenarios.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agotests/journal_collocation: adds testing values to ceph_conf_overrides
Andrew Schoen [Thu, 26 Jan 2017 14:53:57 +0000 (08:53 -0600)]
tests/journal_collocation: adds testing values to ceph_conf_overrides

This gives test coverage to changes introduced in:

https://github.com/ceph/ceph-ansible/pull/1214

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agoMerge pull request #1214 from ceph/rbd-pool-size
Andrew Schoen [Wed, 25 Jan 2017 23:10:29 +0000 (17:10 -0600)]
Merge pull request #1214 from ceph/rbd-pool-size

mon: make sure osd_pool_default_size is honoured

8 years agoMerge pull request #1235 from ceph/purge
Andrew Schoen [Wed, 25 Jan 2017 22:22:28 +0000 (16:22 -0600)]
Merge pull request #1235 from ceph/purge

Purge

8 years agomon: make sure osd_pool_default_size is honoured 1214/head
Sébastien Han [Tue, 3 Jan 2017 12:48:59 +0000 (13:48 +0100)]
mon: make sure osd_pool_default_size is honoured

This patch makes sure we set the proper pool size on the rbd pool.
Usually during bootstrap the rbd pool size is not honoured so we need to
add this workaround.

Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agopurge: remove dm-crypt devices 1235/head
Sébastien Han [Thu, 19 Jan 2017 14:28:44 +0000 (15:28 +0100)]
purge: remove dm-crypt devices

When running encrypted OSDs, an encrypted device mapper is used (because
created by the crypsetup tool). So before attempting to remove all the
partitions on a device we must delete all the encrypted device mappers,
then we can delete all the partitions.

Signed-off-by: Sébastien Han <seb@redhat.com>
 Please enter the commit message for your changes. Lines starting

8 years agoMerge pull request #1247 from ceph/BZ-1416010
Sébastien Han [Tue, 24 Jan 2017 17:22:42 +0000 (18:22 +0100)]
Merge pull request #1247 from ceph/BZ-1416010

Adds ip_version configuration option

8 years agoAdds ip_version configuration option 1247/head
Andrew Schoen [Tue, 24 Jan 2017 15:06:10 +0000 (09:06 -0600)]
Adds ip_version configuration option

This allows the user to set ip_version to either ipv4 or ipv6. This
resolves a bug where monitor_address is set to an ipv6 address, but the
template fails to render because it's hardcoded to look for an 'ipv4'
key in the ansible facts.

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

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Resolves: bz#1416010

8 years agoMerge pull request #1246 from tynorth-cisco/unique-pools
Sébastien Han [Tue, 24 Jan 2017 11:08:51 +0000 (12:08 +0100)]
Merge pull request #1246 from tynorth-cisco/unique-pools

add unique filter to openstack pool names

8 years agoadd unique filter to openstack pool names 1246/head
tynorth-cisco [Mon, 23 Jan 2017 19:53:43 +0000 (11:53 -0800)]
add unique filter to openstack pool names

could have scenario where different openstack components would
use the same pool, but the logic would create the same pool
more than once

add unique filter to account for this

8 years agoMerge pull request #1146 from ceph/client-pool
Andrew Schoen [Mon, 23 Jan 2017 16:17:21 +0000 (10:17 -0600)]
Merge pull request #1146 from ceph/client-pool

mon: pool creation and pgs

8 years agotests/xenial_cluster: adds a client node 1146/head
Andrew Schoen [Mon, 23 Jan 2017 15:22:06 +0000 (09:22 -0600)]
tests/xenial_cluster: adds a client node

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agotest: add tests for the client role
Sébastien Han [Wed, 18 Jan 2017 16:50:29 +0000 (17:50 +0100)]
test: add tests for the client role

Here we test the client role.

Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agoMerge pull request #1226 from Logan2211/enhance-rgw-config
Sébastien Han [Fri, 20 Jan 2017 09:58:14 +0000 (10:58 +0100)]
Merge pull request #1226 from Logan2211/enhance-rgw-config

Enhance RGW config options

8 years agoRGW: Add resolve cname configuration parameter 1226/head
Logan V [Mon, 16 Jan 2017 14:29:56 +0000 (08:29 -0600)]
RGW: Add resolve cname configuration parameter

Adds a switch to enable bucket resolution using DNS CNAME provided
by the client's HTTP headers.

8 years agoRGW: Add static website hosting configuration
Logan V [Mon, 16 Jan 2017 14:27:44 +0000 (08:27 -0600)]
RGW: Add static website hosting configuration

8 years agoRGW: Allow configurable rgw frontends setting
Logan V [Mon, 16 Jan 2017 14:14:02 +0000 (08:14 -0600)]
RGW: Allow configurable rgw frontends setting

Allow for more operator flexibility in the `rgw frontends` setting
while maintaining backwards compatibility with the old vars. This
allows an operator to, for example, use the civetweb settings for
implementing SSL ports.

For available civetweb configuration parameters, see:
https://github.com/civetweb/civetweb/blob/master/docs/UserManual.md

8 years agoRGW: Add support for usage log configuration
Logan V [Thu, 15 Dec 2016 16:35:56 +0000 (10:35 -0600)]
RGW: Add support for usage log configuration

Adds support for configuring the RadosGW usage log described at
http://docs.ceph.com/docs/jewel/man/8/radosgw/#usage-logging.

8 years agoMerge pull request #1227 from Logan2211/resync-group-vars-sample
Andrew Schoen [Thu, 19 Jan 2017 15:57:54 +0000 (09:57 -0600)]
Merge pull request #1227 from Logan2211/resync-group-vars-sample

Remove libcephfs1 from group_vars sample

8 years agomon: fix mds pool creation
Sébastien Han [Thu, 19 Jan 2017 13:35:00 +0000 (14:35 +0100)]
mon: fix mds pool creation

It is not enough to check for the mds to exists, it actually always does
because we declare the variable. So we need to make sure that there is a
mds host.

Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agoMerge pull request #1200 from ceph/contrib-branches
Sébastien Han [Thu, 19 Jan 2017 12:43:04 +0000 (13:43 +0100)]
Merge pull request #1200 from ceph/contrib-branches

contrib: push all new stable branches to the galaxy

8 years agocontrib: use prune to fetch 1200/head
Sébastien Han [Mon, 19 Dec 2016 09:05:44 +0000 (10:05 +0100)]
contrib: use prune to fetch

Sometimes git keeps data from remotes that are not up-to-date, i.e:
remote branches.
Using `--prune` will delete non-existing remote branches from git's caches.

Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agocontrib: push all new stable branches to the galaxy
Sébastien Han [Fri, 16 Dec 2016 22:27:33 +0000 (23:27 +0100)]
contrib: push all new stable branches to the galaxy

Prior to this patch we were only pushing 'master' and 'ansible-1.9'
branches. Each new release also introduces a new branch so we want to
push it as well.

Yes the 'grep' is a bit ugly, feel free to come up with something nicer :)

Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agomon: pool creation and pgs
Sébastien Han [Mon, 5 Dec 2016 13:21:54 +0000 (14:21 +0100)]
mon: pool creation and pgs

Since we introduced config_overrides we removed a lot of options from
the default template. In some cases, like mds pool, openstack pools etc
we need to know the amount of PGs required. The idea here is to skip the
task if ceph_conf_overrides.global.osd_pool_default_pg_num is not define
in your `group_vars/all.yml`.

Closes: #1145
Signed-off-by: Sébastien Han <seb@redhat.com>
Co-Authored-By: Guillaume Abrioux <gabrioux@redhat.com>
8 years agoMerge pull request #1240 from ceph/galaxy-script-update
Sébastien Han [Thu, 19 Jan 2017 10:30:05 +0000 (11:30 +0100)]
Merge pull request #1240 from ceph/galaxy-script-update

ceph-docker-common: include a README and add to galaxy deployment script

8 years agoceph-docker-common: adds a README file 1240/head
Andrew Schoen [Wed, 18 Jan 2017 17:06:25 +0000 (11:06 -0600)]
ceph-docker-common: adds a README file

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agoadds ceph-docker-common to the script that updates ansible galaxy
Andrew Schoen [Wed, 18 Jan 2017 17:00:51 +0000 (11:00 -0600)]
adds ceph-docker-common to the script that updates ansible galaxy

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agoMerge pull request #1239 from ceph/ceph-docker-common-meta
Sébastien Han [Wed, 18 Jan 2017 16:48:45 +0000 (17:48 +0100)]
Merge pull request #1239 from ceph/ceph-docker-common-meta

ceph-docker-common: include a meta/main.yml so we can use galaxy

8 years agoceph-docker-common: include a meta/main.yml so we can use galaxy 1239/head
Andrew Schoen [Wed, 18 Jan 2017 16:46:48 +0000 (10:46 -0600)]
ceph-docker-common: include a meta/main.yml so we can use galaxy

This role needs a meta/main.yml before we can upload it to ansible
galaxy.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agoMerge pull request #1229 from ceph/docker-fixes
Sébastien Han [Wed, 18 Jan 2017 13:54:12 +0000 (14:54 +0100)]
Merge pull request #1229 from ceph/docker-fixes

adds a ceph-docker-common role and enables custom registry usage

8 years agopurge: remove zap_block_devs variable
Sébastien Han [Wed, 18 Jan 2017 09:55:01 +0000 (10:55 +0100)]
purge: remove zap_block_devs variable

The name of this variable was a bit confusing since its activation will
zap all the block devices no matter which osd scenario we are using.
Removing this variable and applying a condition on the OSD scenario is
now feasible and easier since we import group_vars variable files for
OSDs.

Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agopurge: cosmetic cleanup
Sébastien Han [Wed, 18 Jan 2017 09:53:21 +0000 (10:53 +0100)]
purge: cosmetic cleanup

Just applying our writing syntax convention in the playbook.

Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agoMerge pull request #1230 from lae/kraken-run-ceph-create-keys
Sébastien Han [Tue, 17 Jan 2017 15:18:18 +0000 (16:18 +0100)]
Merge pull request #1230 from lae/kraken-run-ceph-create-keys

mon: run ceph-create-keys after startup for kraken release

8 years agomon: run ceph-create-keys after startup for kraken release 1230/head
Musee Ullah [Tue, 17 Jan 2017 12:13:43 +0000 (21:13 +0900)]
mon: run ceph-create-keys after startup for kraken release

8 years agoMerge pull request #1185 from ceph/ansible-test-version
Andrew Schoen [Mon, 16 Jan 2017 21:49:43 +0000 (15:49 -0600)]
Merge pull request #1185 from ceph/ansible-test-version

bump ansible testing version to 2.2.1 for the 2.2 environment

8 years agotests: remove the pip install ansible from stable github branch 1185/head
Alfredo Deza [Mon, 16 Jan 2017 21:19:25 +0000 (16:19 -0500)]
tests: remove the pip install ansible from stable github branch

Signed-off-by: Alfredo Deza <adeza@redhat.com>
8 years agotests: bump ansible testing version to 2.2.1 for the 2.2 environment
Alfredo Deza [Wed, 14 Dec 2016 15:57:40 +0000 (10:57 -0500)]
tests: bump ansible testing version to 2.2.1 for the 2.2 environment

Signed-off-by: Alfredo Deza <adeza@redhat.com>
8 years agoceph-osd: use ceph_docker_registry when preparing OSDs 1229/head
Andrew Schoen [Mon, 16 Jan 2017 17:39:13 +0000 (11:39 -0600)]
ceph-osd: use ceph_docker_registry when preparing OSDs

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agoadd ceph_docker_registry to all.docker.yml.sample
Andrew Schoen [Mon, 16 Jan 2017 17:33:20 +0000 (11:33 -0600)]
add ceph_docker_registry to all.docker.yml.sample

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agouse ceph_docker_registry when starting containers
Andrew Schoen [Mon, 16 Jan 2017 17:17:41 +0000 (11:17 -0600)]
use ceph_docker_registry when starting containers

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agoceph-docker-common: add symlink to ceph.ceph-docker-common
Andrew Schoen [Mon, 16 Jan 2017 16:17:36 +0000 (10:17 -0600)]
ceph-docker-common: add symlink to ceph.ceph-docker-common

This allows for the role to be used with ansible-galaxy and to fix the
include in all the meta/main.yml files in the roles.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agouse ceph_docker_registry in all the roles instead of docker.io
Andrew Schoen [Mon, 16 Jan 2017 15:52:20 +0000 (09:52 -0600)]
use ceph_docker_registry in all the roles instead of docker.io

This allows for ceph-ansible to use other docker registries.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agoceph-common: include ceph_docker_registry when fetching the image
Andrew Schoen [Mon, 16 Jan 2017 15:51:20 +0000 (09:51 -0600)]
ceph-common: include ceph_docker_registry when fetching the image

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agouse ceph-docker-common in roles that support docker deployments
Andrew Schoen [Mon, 16 Jan 2017 15:30:53 +0000 (09:30 -0600)]
use ceph-docker-common in roles that support docker deployments

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agoceph-docker-common: a new role to share things common to docker
Andrew Schoen [Mon, 16 Jan 2017 15:28:40 +0000 (09:28 -0600)]
ceph-docker-common: a new role to share things common to docker

We can use this to share common variables and tasks needed for every
containerized deployment.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agoRemove libcephfs1 from group_vars sample 1227/head
Logan V [Mon, 16 Jan 2017 14:12:15 +0000 (08:12 -0600)]
Remove libcephfs1 from group_vars sample

The libcephfs1 package was removed from ceph-common in
cb1c06901e02a9f44c24a5d20737a9f33ac8ab2b, however it was not synced
to group_vars/all.yml.sample using the `generate_group_vars_sample.sh`
script. This fixes up the comment formatting in the ceph-common
defaults and brings the group_vars sample back into sync.

8 years agoMerge pull request #1225 from D3N14L/osd_directories_default
Andrew Schoen [Fri, 13 Jan 2017 19:29:51 +0000 (13:29 -0600)]
Merge pull request #1225 from D3N14L/osd_directories_default

Set empty list as default for osd_directories

8 years agoAdded osd_directories to osd group_vars sample file 1225/head
Daniel Marks [Fri, 13 Jan 2017 18:36:10 +0000 (19:36 +0100)]
Added osd_directories to osd group_vars sample file

8 years agoSet empty list as default for osd_directories
Daniel Marks [Fri, 13 Jan 2017 14:27:16 +0000 (15:27 +0100)]
Set empty list as default for osd_directories

As described in issue #1224 leaving this variable undefined may
cause a problem during execution of the ceph-osd role.

8 years agoMerge pull request #1221 from ceph/purge-cluster-fixes
Alfredo Deza [Wed, 11 Jan 2017 13:59:58 +0000 (08:59 -0500)]
Merge pull request #1221 from ceph/purge-cluster-fixes

tests: fixes for purge_cluster_collocated

8 years agopurge-cluster: do not include ceph-osd and ceph-common defaults for osds 1221/head
Andrew Schoen [Tue, 10 Jan 2017 22:57:58 +0000 (16:57 -0600)]
purge-cluster: do not include ceph-osd and ceph-common defaults for osds

When purging OSDs we do not need to include these defaults as nothing in
the following tasks uses them. Also, it has the side effect of
overwriting any variables defined in group_vars files that are relative
to the inventory you are using with the default values. That behavior
was causing the CI tests to fail.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agotests: copy purge-cluster.yml to root of ceph-ansible
Andrew Schoen [Tue, 10 Jan 2017 22:56:07 +0000 (16:56 -0600)]
tests: copy purge-cluster.yml to root of ceph-ansible

There is an Ansible bug which makes the playbook fail when we are
running a playbook from the non-git root directory. The real problem is
that the ansible.cfg is not honoured and we are including variable from
roles/<role>/defaults/main.yml

The fix is too copy the purge cluster playbook on the git root directory
and execute it.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agoMerge pull request #1220 from ceph/latest-ansible2.2
Alfredo Deza [Tue, 10 Jan 2017 21:56:29 +0000 (16:56 -0500)]
Merge pull request #1220 from ceph/latest-ansible2.2

tests: test with the latest ansible stable-2.2 branch from github

8 years agotests: test with the latest ansible stable-2.2 branch from github 1220/head
Andrew Schoen [Tue, 10 Jan 2017 12:53:17 +0000 (06:53 -0600)]
tests: test with the latest ansible stable-2.2 branch from github

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agoMerge pull request #1208 from clwells/multisite-defined-endpoint
Sébastien Han [Tue, 10 Jan 2017 21:12:04 +0000 (16:12 -0500)]
Merge pull request #1208 from clwells/multisite-defined-endpoint

[rtr] Granular Multi-site PULL Variables

8 years agore-regenerated group vars 1208/head
Chris Wells [Sat, 7 Jan 2017 14:33:56 +0000 (09:33 -0500)]
re-regenerated group vars

8 years agoUpdated pull[port|proto] to pull_[port|proto] and regenerated base group vars
Chris Wells [Sat, 7 Jan 2017 14:33:24 +0000 (09:33 -0500)]
Updated pull[port|proto] to pull_[port|proto] and regenerated base group vars

8 years agoMerge pull request #1217 from ceph/ceph-common-tag
Andrew Schoen [Thu, 5 Jan 2017 22:18:01 +0000 (16:18 -0600)]
Merge pull request #1217 from ceph/ceph-common-tag

ceph-common: always include release.yml

8 years agoceph-common: always include release.yml 1217/head
Ken Dreyer [Thu, 5 Jan 2017 21:29:53 +0000 (14:29 -0700)]
ceph-common: always include release.yml

Prior to this change, a playbook run with '--tags' or '--skip-tags'
would fail, because the ceph-common role would not include the
release.yml task, and this file defines critical things like
ceph_release.

Thanks Andrew Schoen <aschoen@redhat.com> for help with the fix.

8 years agoMerge pull request #1215 from ceph/purge-cluster-tests
Alfredo Deza [Tue, 3 Jan 2017 22:18:29 +0000 (17:18 -0500)]
Merge pull request #1215 from ceph/purge-cluster-tests

tests: adds a purge_cluster_collocated scenario

8 years agotests: adds a purge_cluster_collocated scenario 1215/head
Andrew Schoen [Thu, 22 Dec 2016 20:13:08 +0000 (14:13 -0600)]
tests: adds a purge_cluster_collocated scenario

This scenario brings up a 1 mon 1 osd cluster using journal collocation,
purges the cluster and then verifies it can redeploy the cluster.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agopurge-cluster: get journal partitions after zapping osd disks
Andrew Schoen [Thu, 22 Dec 2016 19:47:22 +0000 (13:47 -0600)]
purge-cluster: get journal partitions after zapping osd disks

In my testing zapping the osd disks deleted the journal
partitions, making the 'zap ceph journal partitions' task fail because
the partitions it found previously do not exist anymore.

This moves the task that finds the journal partitions after 'zap osd disks'
to catch any partitions ceph-disk might have missed.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agopurge-cluster: use ignore_errors: true when including group_vars files
Andrew Schoen [Thu, 22 Dec 2016 17:37:41 +0000 (11:37 -0600)]
purge-cluster: use ignore_errors: true when including group_vars files

Using failed_when will still throw an exception and stop the playbook if
the file you're trying to include doesn't exist.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agoMerge pull request #1171 from cbodley/wip-libcephfs2
Sébastien Han [Tue, 3 Jan 2017 09:48:56 +0000 (10:48 +0100)]
Merge pull request #1171 from cbodley/wip-libcephfs2

bump package version to libcephfs2

8 years agoMerge pull request #1212 from ceph/cluster-name-info
Sébastien Han [Tue, 3 Jan 2017 09:18:41 +0000 (10:18 +0100)]
Merge pull request #1212 from ceph/cluster-name-info

common: document "cluster" variable usage

8 years agoMerge pull request #1213 from ceph/cephx-initial-mon
Sébastien Han [Mon, 2 Jan 2017 12:43:22 +0000 (13:43 +0100)]
Merge pull request #1213 from ceph/cephx-initial-mon

mon: only put mon initial key in mon kv when cephx is enabled

8 years agomon: only put mon initial key in mon kv when cephx is enabled 1213/head
Sébastien Han [Mon, 2 Jan 2017 10:16:03 +0000 (11:16 +0100)]
mon: only put mon initial key in mon kv when cephx is enabled

Task put initial mon keyring in mon kv store from
ceph-mon/tasks/ceph_keys.yml is failing when cephx is disabled. The root
cause is that variable monitor_keyring is not populated by any task from
deploy_monitors.yml.

Fixes: #1211
Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agoMerge pull request #1209 from zhsj/fix-check-firewall
Sébastien Han [Mon, 2 Jan 2017 09:44:20 +0000 (10:44 +0100)]
Merge pull request #1209 from zhsj/fix-check-firewall

fix check nmapexist on debian

8 years agocommon: document "cluster" variable usage 1212/head
Sébastien Han [Mon, 2 Jan 2017 08:20:43 +0000 (09:20 +0100)]
common: document "cluster" variable usage

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1408848
Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agofix check nmapexist on debian 1209/head
Shengjing Zhu [Wed, 28 Dec 2016 08:21:23 +0000 (16:21 +0800)]
fix check nmapexist on debian

command is a shell-buitin, so `command -v nmap` must use shell module

Signed-off-by: Shengjing Zhu <zsj950618@gmail.com>
8 years agoAllowing granular control of the pull host/port/protocol for installs where SSL/443...
Chris Wells [Mon, 26 Dec 2016 02:54:13 +0000 (21:54 -0500)]
Allowing granular control of the pull host/port/protocol for installs where SSL/443 is used and direct civetweb access isn't necessarily available.

8 years agoMerge pull request #1203 from ceph/rhcs-mds-repo
Sébastien Han [Tue, 20 Dec 2016 12:51:59 +0000 (13:51 +0100)]
Merge pull request #1203 from ceph/rhcs-mds-repo

common: enable tool repo for mds install of rhcs

8 years agocommon: rename rh_storage to rhcs to match product name 1203/head
Sébastien Han [Tue, 20 Dec 2016 12:47:44 +0000 (13:47 +0100)]
common: rename rh_storage to rhcs to match product name

Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agocommon: enable tool repo for mds install of rhcs
Sébastien Han [Tue, 20 Dec 2016 12:42:24 +0000 (13:42 +0100)]
common: enable tool repo for mds install of rhcs

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1405985
Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agoMerge pull request #1202 from tynorth-cisco/monitor
Sébastien Han [Mon, 19 Dec 2016 22:22:54 +0000 (23:22 +0100)]
Merge pull request #1202 from tynorth-cisco/monitor

use monitor name, not host ansible host in ceph.conf

8 years agouse monitor name, not host ansible host in ceph.conf 1202/head
tynorth-cisco [Mon, 19 Dec 2016 20:32:18 +0000 (12:32 -0800)]
use monitor name, not host ansible host in ceph.conf

in ceph-common there is a fact check for monitor name
that will set it to ansible_host or ansible_fqdn

8 years agoMerge pull request #1199 from Logan2211/fix-mon-fsid-block
Sébastien Han [Mon, 19 Dec 2016 10:30:58 +0000 (11:30 +0100)]
Merge pull request #1199 from Logan2211/fix-mon-fsid-block

Workaround for broken 'block' syntax

8 years agoMerge pull request #1153 from ceph/cluster-name-test v2.1.0
Andrew Schoen [Fri, 16 Dec 2016 19:10:52 +0000 (13:10 -0600)]
Merge pull request #1153 from ceph/cluster-name-test

test: add cluster name support test scenario

8 years agodocker: only use systemd to manage containers 1153/head
Sébastien Han [Fri, 16 Dec 2016 13:53:14 +0000 (14:53 +0100)]
docker: only use systemd to manage containers

Prior to this patch we had several ways to runs containers, we could use
ansible's docker module on some distro and on containers distros we were
using systemd. We strongly believe threating containers as services with
systemd is the right approach so this patch generalizes to all the
distros. These days most of the distros are running systemd so it's fair
assumption.

Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agoWorkaround for broken 'block' syntax 1199/head
Logan V [Fri, 16 Dec 2016 15:24:48 +0000 (09:24 -0600)]
Workaround for broken 'block' syntax

The block syntax in ansible is broken on 2.1 so we work around the
issue introduced in 471be5e by using a task file include.

8 years agodocker: add support for cluster name
Sébastien Han [Wed, 14 Dec 2016 20:22:13 +0000 (21:22 +0100)]
docker: add support for cluster name

We need to honour the cluster name that was chosen by ceph-ansible and
pass it to ceph-docker.

Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agoMerge pull request #1179 from Logan2211/rgw-keystone-v3
Sébastien Han [Fri, 16 Dec 2016 12:52:52 +0000 (13:52 +0100)]
Merge pull request #1179 from Logan2211/rgw-keystone-v3

RGW/Keystone integration improvements

8 years agoMerge pull request #1198 from ceph/mon-key-fix
Sébastien Han [Fri, 16 Dec 2016 12:38:23 +0000 (13:38 +0100)]
Merge pull request #1198 from ceph/mon-key-fix

Mon key fix

8 years agomon: add the initial mon keyring to the mon store 1198/head
Sébastien Han [Fri, 16 Dec 2016 10:42:17 +0000 (11:42 +0100)]
mon: add the initial mon keyring to the mon store

Once we have our first monitor up and running we need to add it to the
monitor store as a safety measure. Just in case the local file gets
deleted and you need to add a new monitor. Now you can retrieve this key
like this:

ceph config-key get initial_mon_keyring > initial_mon_keyring.txt

Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agocommon: do not become root on local task
Sébastien Han [Fri, 16 Dec 2016 10:36:42 +0000 (11:36 +0100)]
common: do not become root on local task

There is no need to become root on local_action. This will event trigger
an error on some systems as it will try to run a sudo command. If the
current user does not have passwordless sudo, Ansible will fail. Anyway
using the current user is perfectly fine and no elevation privilege is
needed.

Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agoAdd support for Keystone v3 API 1179/head
Logan V [Thu, 14 Jul 2016 19:27:03 +0000 (14:27 -0500)]
Add support for Keystone v3 API

The Keystone v2 APIs are deprecated and scheduled to be removed in
Q release of Openstack. This adds support for configuring RGW to
use the current Keystone v3 API.

8 years agoAdd a switch to disable nss PKI database initialization
Logan V [Thu, 14 Jul 2016 19:09:31 +0000 (14:09 -0500)]
Add a switch to disable nss PKI database initialization

The PKI keys are used to decrypt the Keystone revocation list when
PKI tokens are used. When UUID or Fernet token providers are used in
Keystone, PKI certs may not exist, so we now accommodate this scenario
by allowing the operator to disable the PKI tasks.

8 years agoAdd support for Keystone user authentication with RGW
Logan V [Mon, 11 Jul 2016 12:52:11 +0000 (07:52 -0500)]
Add support for Keystone user authentication with RGW

Jewel added support for user/pass authentication with Keystone,
allowing deployers to disable Keystone admin token as required
for production deployments.

This implements configuration for the new RGW Keystone user/pass
authentication feature added in Jewel.

See docs here: http://docs.ceph.com/docs/master/radosgw/keystone/

8 years agoMerge pull request #1178 from zhsj/dev-partition
Sébastien Han [Thu, 15 Dec 2016 21:50:23 +0000 (22:50 +0100)]
Merge pull request #1178 from zhsj/dev-partition

Add prepare osd with partition devices in raw_multi_journal

8 years agoMerge pull request #1194 from ceph/testing-output
Alfredo Deza [Thu, 15 Dec 2016 19:16:31 +0000 (14:16 -0500)]
Merge pull request #1194 from ceph/testing-output

tests: preserve newlines in ansible output when testing

8 years agotests: preserve newlines in ansible output when testing 1194/head
Andrew Schoen [Thu, 15 Dec 2016 18:23:17 +0000 (12:23 -0600)]
tests: preserve newlines in ansible output when testing

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agoMerge pull request #1195 from ceph/rpm-require-ansible-2.2
Andrew Schoen [Thu, 15 Dec 2016 18:04:26 +0000 (12:04 -0600)]
Merge pull request #1195 from ceph/rpm-require-ansible-2.2

rpm: require Ansible >= 2.2.0.0

8 years agorpm: require Ansible >= 2.2.0.0 1195/head
Ken Dreyer [Thu, 15 Dec 2016 18:01:24 +0000 (11:01 -0700)]
rpm: require Ansible >= 2.2.0.0

This is the only version that our CI uses for testing, so it's the only
version we can confidently say works.

Update the RPM packaging to specifically require this version of
Ansible.

8 years agoMerge pull request #1192 from davidebelloni/master
Sébastien Han [Thu, 15 Dec 2016 16:38:38 +0000 (17:38 +0100)]
Merge pull request #1192 from davidebelloni/master

Adding Proxy support

8 years agoAdding Proxy support 1192/head
Davide Belloni [Thu, 15 Dec 2016 14:28:59 +0000 (15:28 +0100)]
Adding Proxy support

8 years agocommon: add the name of the ceph conf file in the play
Sébastien Han [Wed, 7 Dec 2016 17:22:39 +0000 (18:22 +0100)]
common: add the name of the ceph conf file in the play

Just for clarity and because we can we now show the name of the
ceph configuration file that is generated.

Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agotest: add cluster name support test scenario
Sébastien Han [Tue, 6 Dec 2016 10:20:23 +0000 (11:20 +0100)]
test: add cluster name support test scenario

We need to test the cluster name support in this CI as well. This
commit might be prone to debate because it tests 2 things in a single
scenario. We first test our ability to deploy a cluster AND the cluster
name support. However it's easier to do it this way and will reduce the
amount of time for testingg. If we don't do this we will have a
duplicate those 2 existing tests into new ones 'only' to test the
cluster name support.

Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agoMerge pull request #1167 from guits/ceph-fsid
Sébastien Han [Thu, 15 Dec 2016 14:16:40 +0000 (15:16 +0100)]
Merge pull request #1167 from guits/ceph-fsid

common: do not regenerate initial mon keyring if cluster exists