]>
git.apps.os.sepia.ceph.com Git - ceph-ansible.git/log
Matt Thompson [Tue, 9 Feb 2016 09:51:31 +0000 (09:51 +0000)]
Change modes to string values
Currently deploying a MON fails with "bad symbolic permission for mode"
errors due to the file/directory modes not being interpreted as octal
values. This commit updates roles/ceph-common/tasks/main.yml to set
the file/directory modes to strings so they can be interpreted
correctly.
Closes issue #525
Leseb [Mon, 8 Feb 2016 14:26:14 +0000 (15:26 +0100)]
Merge pull request #524 from ceph/fix-typo
ceph-rgw: fix docker typo
Sébastien Han [Mon, 8 Feb 2016 14:25:24 +0000 (15:25 +0100)]
ceph-rgw: fix docker typo
Signed-off-by: Sébastien Han <seb@redhat.com>
Leseb [Sun, 7 Feb 2016 21:36:38 +0000 (22:36 +0100)]
Merge pull request #521 from ceph/vagrant-container
ceph-ansible: allow to run containerized daemons
Sébastien Han [Sun, 7 Feb 2016 21:30:32 +0000 (22:30 +0100)]
ceph-ansible: allow to run containerized daemons
run containerized daemons in virtual machines.
to enable it simply do:
`cp site-docker.yml.sample site-docker.yml`
and set `docker: true` in `vagrant_variables.yml`
Signed-off-by: Sébastien Han <seb@redhat.com>
Leseb [Fri, 5 Feb 2016 16:22:14 +0000 (17:22 +0100)]
Merge pull request #519 from ceph/restapi-meta
ceph-restapi: fix meta file
Sébastien Han [Fri, 5 Feb 2016 16:19:54 +0000 (17:19 +0100)]
ceph-restapi: fix meta file
Signed-off-by: Sébastien Han <seb@redhat.com>
Leseb [Fri, 5 Feb 2016 15:41:35 +0000 (16:41 +0100)]
Merge pull request #512 from guits/quick_fix
Refact code using `set_fact` to handle 'legacy' versions
Guillaume Abrioux [Tue, 2 Feb 2016 14:10:24 +0000 (15:10 +0100)]
Refact code using `set_fact`
At the moment, all the tasks using the file module are duplicated to have differents ownerships depending on the fact `is_ceph_infernalis`.
The goal of this commit is to have a new logic for this:
- First set facts depending on the `is_ceph_infernalis` fact
- Create the files or directories using the setted facts as ownerships.
Leseb [Thu, 4 Feb 2016 14:31:12 +0000 (15:31 +0100)]
Merge pull request #516 from ceph/ansible-v2-warnings
ceph-common: replace 'sudo' by 'become'
Sébastien Han [Thu, 4 Feb 2016 11:36:46 +0000 (12:36 +0100)]
ceph-common: replace 'sudo' by 'become'
to avoid warning from ansible v2. works for both `1.9.4` and `2.0.0.2`.
Signed-off-by: Sébastien Han <seb@redhat.com>
Leseb [Wed, 3 Feb 2016 17:42:39 +0000 (18:42 +0100)]
Merge pull request #514 from ceph/pkg-install-tags
Adds a package-install tag to all installation tasks
Andrew Schoen [Wed, 3 Feb 2016 17:27:16 +0000 (11:27 -0600)]
Adds a package-install tag to all installation tasks
We have a requirement to install the packages first without
configuration. These tags should allow us to target the tasks need to do
that.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Leseb [Tue, 2 Feb 2016 14:16:03 +0000 (15:16 +0100)]
Merge pull request #508 from mattt416/upgrade_flag
Control when ceph packages get updated
Leseb [Tue, 2 Feb 2016 12:28:41 +0000 (13:28 +0100)]
Merge pull request #511 from ceph/use-pythonuuid
ceph-common: use a generic way to create uuid
Sébastien Han [Tue, 2 Feb 2016 10:23:28 +0000 (11:23 +0100)]
ceph-common: use a generic way to create uuid
as reported in #510 some systems don't have uuidgen installed so we
better use a more global way to generate it. It sounds like python
should be available in case uuidgen is not.
Otherwise we will have to find another way :)
closes #510
Signed-off-by: Sébastien Han <seb@redhat.com>
Matt Thompson [Fri, 29 Jan 2016 15:54:59 +0000 (15:54 +0000)]
Control when ceph packages get updated
Currently, all the ceph package installation resources use
"state=latest", which means subsequent runs of the ceph playbooks
could result in ceph being upgraded if there are package updates
available in the selected repo.
This commit adds a new variable to ceph-common called
'upgrade_ceph_packages' which defaults to False. This variable is used
in the package installation resources for ceph packages to determine if
the resource should use "state=present" or "state=latest". If the
variable gets set to True, "state=latest" will be used.
Additionally, we update rolling_update.yml to override
upgrade_ceph_packages to true to permit package upgrades in this
context specifically.
Closes issue #506
Leseb [Fri, 29 Jan 2016 15:45:51 +0000 (16:45 +0100)]
Merge pull request #493 from ceph/sudo-test
CI does not use root, but sudo will do fine
Sébastien Han [Fri, 29 Jan 2016 00:15:32 +0000 (01:15 +0100)]
fix type on ice template
Signed-off-by: Sébastien Han <seb@redhat.com>
Leseb [Fri, 29 Jan 2016 00:03:04 +0000 (01:03 +0100)]
Merge pull request #502 from ceph/use-dnf
use dnf when yum is not available
Sébastien Han [Thu, 28 Jan 2016 18:11:22 +0000 (19:11 +0100)]
use dnf when yum is not available
fixes the `importError: No module named yum` see here:
https://jenkins.ceph.com/job/ceph-ansible-pull-requests/45/console
Signed-off-by: Sébastien Han <seb@redhat.com>
Andrew Schoen [Wed, 27 Jan 2016 18:58:07 +0000 (12:58 -0600)]
remove remote_user from test.yml so it uses the current user
We need this so that the CI tests with jenkins will use the correct
user with sudo access.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Alfredo Deza [Tue, 26 Jan 2016 12:10:41 +0000 (07:10 -0500)]
create a single-machine inventory for testing
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Alfredo Deza [Mon, 25 Jan 2016 23:00:12 +0000 (18:00 -0500)]
CI does not use root, but sudo will do fine
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Leseb [Thu, 28 Jan 2016 17:51:42 +0000 (18:51 +0100)]
Merge pull request #501 from ceph/common-defaults
Add defaults for ceph_stable_ice_tmp_path and ceph_stable_ice_kmod
Andrew Schoen [Thu, 28 Jan 2016 17:40:18 +0000 (11:40 -0600)]
Add defaults for ceph_stable_ice_tmp_path and ceph_stable_ice_kmod
It seems that in ansible 2.0 even if a task is skipped by it's `when`
clause not evaluating to true the variables in the play are still
rendered. Because these were not defined in defaults/main.yml ansible
was failing in installs/install_on_redhat where those variables are
being used in a `with_items` stanza.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Leseb [Thu, 28 Jan 2016 14:56:46 +0000 (15:56 +0100)]
Merge pull request #500 from ceph/python-pip
Fix pip package name on debian
Sébastien Han [Thu, 28 Jan 2016 14:55:53 +0000 (15:55 +0100)]
Fix pip package name on debian
use python-pip and not pip
Signed-off-by: Sébastien Han <seb@redhat.com>
Leseb [Wed, 27 Jan 2016 23:32:22 +0000 (00:32 +0100)]
Merge pull request #498 from ceph/fsid-monitor-key
remove unecessary variables
Sébastien Han [Wed, 27 Jan 2016 22:58:51 +0000 (23:58 +0100)]
remove unecessary variables
these variables will be created on the fly, there is no need to force
them.
Signed-off-by: Sébastien Han <seb@redhat.com>
Leseb [Wed, 27 Jan 2016 22:30:56 +0000 (23:30 +0100)]
Merge pull request #497 from ceph/vm-kybte
update group_vars/all.sample with min_free_kbytes
Sébastien Han [Wed, 27 Jan 2016 22:29:54 +0000 (23:29 +0100)]
update group_vars/all.sample with min_free_kbytes
Signed-off-by: Sébastien Han <seb@redhat.com>
Leseb [Mon, 25 Jan 2016 13:09:26 +0000 (14:09 +0100)]
Merge pull request #490 from ceph/ansible-2
Necessary change to work on ansible v2
Sébastien Han [Fri, 22 Jan 2016 16:43:47 +0000 (11:43 -0500)]
Necessary change to work on ansible v2
Signed-off-by: Sébastien Han <seb@redhat.com>
Leseb [Fri, 22 Jan 2016 18:18:15 +0000 (13:18 -0500)]
Merge pull request #489 from ceph/vagrant-virtualbox-updates
updates related to using vagrant and virtualbox for testing
Andrew Schoen [Fri, 22 Jan 2016 17:07:24 +0000 (11:07 -0600)]
update the README on using vagrant with virtualbox
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Fri, 22 Jan 2016 17:00:36 +0000 (11:00 -0600)]
Include os_tuning_params in the settings used for vagrant testing
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Fri, 22 Jan 2016 16:58:33 +0000 (10:58 -0600)]
adds os_tuning_params to the vagrant_variables.yml.sample file
When using virtualbox with vagrant the default set of os_tuning_params
was locking up my vms. Specifically the vm.vfs_cache_pressure setting.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Leseb [Fri, 22 Jan 2016 16:43:01 +0000 (11:43 -0500)]
Merge pull request #488 from PiotrProkop/fix
Adding python-setuptools dependency for CentOS 7.
pprokop [Fri, 22 Jan 2016 13:27:36 +0000 (14:27 +0100)]
Adding newline
pprokop [Fri, 22 Jan 2016 13:25:10 +0000 (14:25 +0100)]
Adding python-setuptools dependency for CentOS 7
Leseb [Wed, 20 Jan 2016 20:20:11 +0000 (15:20 -0500)]
Merge pull request #487 from mcsage/master
Changed vm.min_free_kbytes to 4 GB
mcsage [Wed, 20 Jan 2016 19:27:49 +0000 (20:27 +0100)]
Changed vm.min_free_kbytes to 4 GB
vm.min_free_kbytes was in bytes not in kbytes.
Leseb [Mon, 18 Jan 2016 07:31:54 +0000 (08:31 +0100)]
Merge pull request #485 from byronmccollum/conf-directory-permissions
Configurable Ceph Conf Directory Permissions
Byron McCollum [Sun, 17 Jan 2016 03:44:23 +0000 (21:44 -0600)]
Configurable Ceph Conf Directory Permissions
This change allows for configurable Ceph Conf Directory permissions. This
is required for integrators of Ceph, like OpenStack Cinder, which needs to
read from /etc/ceph for operation.
Leseb [Fri, 15 Jan 2016 18:11:36 +0000 (19:11 +0100)]
Merge pull request #484 from ceph/clarify-ceph-origin-repo
Clarify ceph_origin usage
Sébastien Han [Fri, 15 Jan 2016 18:10:47 +0000 (19:10 +0100)]
Clarify ceph_origin usage
Signed-off-by: Sébastien Han <seb@redhat.com>
Leseb [Fri, 15 Jan 2016 18:10:26 +0000 (19:10 +0100)]
Merge pull request #483 from bengland2/rhcs_repo_template
help ansible find repo template from installs subdirectory
Ben England [Fri, 15 Jan 2016 17:52:31 +0000 (12:52 -0500)]
help ansible find repo template from installs subdirectory
Leseb [Wed, 13 Jan 2016 15:22:32 +0000 (16:22 +0100)]
Merge pull request #478 from rootfs/systemd
systemd unit files fixes for infernalis
Huamin Chen [Wed, 13 Jan 2016 14:13:30 +0000 (14:13 +0000)]
review feedback: convert to yml format
Signed-off-by: Huamin Chen <hchen@redhat.com>
Huamin Chen [Tue, 12 Jan 2016 20:41:51 +0000 (20:41 +0000)]
make systemd enable work for osd instance
Signed-off-by: Huamin Chen <hchen@redhat.com>
Huamin Chen [Tue, 12 Jan 2016 20:12:40 +0000 (20:12 +0000)]
make systemd enable work for mon instance
Signed-off-by: Huamin Chen <hchen@redhat.com>
Leseb [Tue, 12 Jan 2016 13:11:25 +0000 (14:11 +0100)]
Merge pull request #476 from Logan2211/master
allow customization of debian ceph stable repo url
Logan V [Tue, 12 Jan 2016 12:38:17 +0000 (06:38 -0600)]
adding repo url to group_vars/all
Logan V [Mon, 11 Jan 2016 18:13:09 +0000 (12:13 -0600)]
allow customization of debian ceph stable repo url
Leseb [Mon, 11 Jan 2016 16:06:50 +0000 (17:06 +0100)]
Merge pull request #474 from fcharlier/patch-1
Fix failing install-ansible test
François Charlier [Mon, 11 Jan 2016 16:05:53 +0000 (17:05 +0100)]
Fix failing install-ansible test
Fix test for Red Hat Enterprise Server and add a default case.
Leseb [Mon, 11 Jan 2016 14:17:43 +0000 (15:17 +0100)]
Merge pull request #473 from ceph/fix-install-ansible
Fix install for rhel
Sébastien Han [Mon, 11 Jan 2016 14:07:19 +0000 (15:07 +0100)]
Fix install for rhel
Signed-off-by: Sébastien Han <seb@redhat.com>
Leseb [Sun, 10 Jan 2016 16:28:44 +0000 (17:28 +0100)]
Merge pull request #472 from ceph/nmap-optionnal
Do not make nmap mandatory
Sébastien Han [Sun, 10 Jan 2016 16:22:17 +0000 (17:22 +0100)]
Do not make nmap mandatory
We can not force people to have nmap installed so instead we raise a
warning is not present.
Signed-off-by: Sébastien Han <seb@redhat.com>
Leseb [Sun, 10 Jan 2016 15:59:32 +0000 (16:59 +0100)]
Merge pull request #471 from ceph/tiny-fix-nmap
Fix firewall check
Sébastien Han [Sun, 10 Jan 2016 15:52:37 +0000 (16:52 +0100)]
Fix firewall check
Use command module instead of shell since we do not do anything fancy
here. Remove the duplicate register.
Signed-off-by: Sébastien Han <seb@redhat.com>
Leseb [Fri, 8 Jan 2016 17:59:20 +0000 (18:59 +0100)]
Merge pull request #469 from ceph/firewall-checks
Check for blocked ports
Sébastien Han [Fri, 8 Jan 2016 15:36:31 +0000 (16:36 +0100)]
Check for blocked ports
As raised in #466 it is important in order to avoid unnecessary
troubleshooting to check that ceph ports are allowed on the platform.
The check runs a nmap command from the host running Ansible
to all the ceph nodes with their respective ports.
Signed-off-by: Sébastien Han <seb@redhat.com>
Leseb [Fri, 8 Jan 2016 14:06:07 +0000 (15:06 +0100)]
Merge pull request #468 from bengland2/fix_check_system
use proper syntax for expanding variables
Leseb [Fri, 8 Jan 2016 14:05:57 +0000 (15:05 +0100)]
Merge pull request #467 from ceph/restapi-infernalis
Fix condition logic for infernalis in restapi
Ben England [Fri, 8 Jan 2016 13:54:00 +0000 (08:54 -0500)]
use proper syntax for expanding variables
Sébastien Han [Fri, 8 Jan 2016 13:52:50 +0000 (14:52 +0100)]
Fix condition logic for infernalis in restapi
fixes: #465
Signed-off-by: Sébastien Han <seb@redhat.com>
Leseb [Thu, 17 Dec 2015 09:22:51 +0000 (10:22 +0100)]
Merge pull request #460 from crcceph/master
fixed for infernalis on EL7
crcceph [Wed, 16 Dec 2015 19:01:39 +0000 (11:01 -0800)]
moved set_fact higher in file
moved set_fact for is_ceph_infernalis near top of file so that it can be used in other tests
Leseb [Wed, 16 Dec 2015 17:56:28 +0000 (18:56 +0100)]
Merge pull request #461 from ceph/templating
Using config_template
crcceph [Wed, 16 Dec 2015 17:01:36 +0000 (09:01 -0800)]
move set_fact above test
moved the set_fact above where it is being tested
Sébastien Han [Wed, 16 Dec 2015 15:11:14 +0000 (16:11 +0100)]
Using config_template
Thanks to @cloudnull great patch at
https://github.com/ansible/ansible/pull/12555
we now have the ability to add more configuration options instead of
having to push a PR to add a new option to the template. So you can
dynamically add and remove flags.
To use it, edit `ceph_conf_overrides` in `group_vars/all` like so:
```
ceph_conf_overrides
global:
foo: 12345
bar: 6789
```
Signed-off-by: Sébastien Han <seb@redhat.com>
crcceph [Wed, 16 Dec 2015 07:23:37 +0000 (23:23 -0800)]
added python-setuptools as dependency
CentOS7 needs python-setuptools for /usr/bin/ceph-init-detect to work correctly
crcceph [Wed, 16 Dec 2015 07:19:07 +0000 (23:19 -0800)]
changed permissions under ceph user
when running under the user ceph the rbd client directory should be owned by ceph
Leseb [Tue, 15 Dec 2015 22:31:03 +0000 (23:31 +0100)]
Merge pull request #459 from ceph/civetweb-port2
Change update group_vars ivetweb port
Sébastien Han [Tue, 15 Dec 2015 22:30:15 +0000 (23:30 +0100)]
Change update group_vars ivetweb port
follow up on #458
Signed-off-by: Sébastien Han <seb@redhat.com>
Leseb [Tue, 15 Dec 2015 22:29:30 +0000 (23:29 +0100)]
Merge pull request #458 from ceph/civetweb-port
Change default civetweb port to 8080
Sébastien Han [Tue, 15 Dec 2015 22:28:08 +0000 (23:28 +0100)]
Change default civetweb port to 8080
Because of some permission issue, likely due to the recent ceph user, if
80 is used for civetweb we get:
set_ports_option: cannot bind to 80: 13 (Permission denied)
Changing the port to 8080 until this gets solved.
Signed-off-by: Sébastien Han <seb@redhat.com>
Leseb [Tue, 15 Dec 2015 22:23:09 +0000 (23:23 +0100)]
Merge pull request #457 from ceph/rgw-log-dir
Use /var/log/ceph for rgw logs
Sébastien Han [Tue, 15 Dec 2015 22:22:19 +0000 (23:22 +0100)]
Use /var/log/ceph for rgw logs
We should not bother having another directory for this. So we stick with
the default logging dir.
Signed-off-by: Sébastien Han <seb@redhat.com>
Leseb [Tue, 15 Dec 2015 22:20:36 +0000 (23:20 +0100)]
Merge pull request #442 from ceph/infernalis-for-rh-storage
Support infernalis for rh storage
Leseb [Tue, 15 Dec 2015 22:10:02 +0000 (23:10 +0100)]
Merge pull request #456 from Abhishekvrshny/fix-rgw-print-continue
removed rgw print continue = false, to set it to its default value of…
Sébastien Han [Fri, 20 Nov 2015 14:09:34 +0000 (15:09 +0100)]
Support infernalis for rh storage
Signed-off-by: Sébastien Han <seb@redhat.com>
Abhishek Varshney [Tue, 15 Dec 2015 16:05:17 +0000 (21:35 +0530)]
removed rgw print continue = false, to set it to its default value of true
Leseb [Sat, 12 Dec 2015 12:34:23 +0000 (13:34 +0100)]
Merge pull request #449 from nexecook/pre-infernalis_fixes
fixes ceph_stable_release logic mentioned in issue #446
Eric Cook [Fri, 11 Dec 2015 12:36:09 +0000 (07:36 -0500)]
fix comment headings
Eric Cook [Thu, 10 Dec 2015 18:43:32 +0000 (13:43 -0500)]
add ceph_stable_releases to group_vars/all.sample
Eric Cook [Wed, 9 Dec 2015 20:52:23 +0000 (15:52 -0500)]
Add ceph_stable_releases array to ceph-common/defaults/main.yml
rework the various `when' tests to use that array.
Leseb [Wed, 9 Dec 2015 16:26:38 +0000 (17:26 +0100)]
Merge pull request #452 from BjoernT/bug/451
Adding osd_scrub_begin_hour and osd_scrub_end_hour
Bjoern Teipel [Mon, 7 Dec 2015 19:18:23 +0000 (13:18 -0600)]
Adding osd_scrub_begin_hour and osd_scrub_end_hour to limit scrub window of 24h if needed
Fixes-Bug: #451
Leseb [Mon, 7 Dec 2015 13:07:07 +0000 (14:07 +0100)]
Merge pull request #447 from lpabon/libvirt
Support for libvirt provider in vagrant
Leseb [Mon, 7 Dec 2015 10:40:06 +0000 (11:40 +0100)]
Merge pull request #450 from ceph/tun
Reserve some memory
Sébastien Han [Mon, 7 Dec 2015 08:01:08 +0000 (09:01 +0100)]
Reserve some memory
Signed-off-by: Sébastien Han <seb@redhat.com>
Leseb [Mon, 7 Dec 2015 07:39:11 +0000 (08:39 +0100)]
Merge pull request #448 from mattt416/add_run_once
Add run_once to 'copy keys to the ansible server'
Eric Cook [Fri, 4 Dec 2015 22:36:24 +0000 (17:36 -0500)]
fixes ceph_stable_release logic mentioned in issue #446
I changed the argument used for starting the mds server. (pre
infernalis)
```
service ceph start mds
```
errors, while
```
service ceph start mds.$hostname
```
correctly starts the service.
I changed the mds directory ownership from ceph:cephh to root:root
again, for pre-infernalis.
And finally, add the ceph_stable_releases checks for the upstart
activation task `for or after infernalis release'.
Matt Thompson [Fri, 4 Dec 2015 15:31:17 +0000 (15:31 +0000)]
Add run_once to 'copy keys to the ansible server'
I have seen a number of failures on this task due to mismatch of
checksum of source file and destination. I suspect this is due to a
race condition caused by several hosts simultaneously copying the same
file to single location on the deployment server.
This change simply updates the 'copy keys to the ansible server' task
by adding 'run_once', which limits the task to being run on a single
MON host.
Closes issue #410
Luis Pabón [Thu, 3 Dec 2015 03:26:13 +0000 (22:26 -0500)]
Update README.md