Alfredo Deza
f7eaf53a9c
testing: use ceph vagrant box on ubuntu xenial mon osd mds rgw scenario
...
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2016-11-15 07:53:13 -05:00
Alfredo Deza
46bb2a803a
testing: add comment for ceph vagrant boxes on centos 7 mon osd scenario
...
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2016-11-15 07:53:09 -05:00
Alfredo Deza
ef948dbc02
testing: add comment for ceph vagrant boxes on centos 7 mon osd mds rgw scenario
...
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2016-11-15 07:53:07 -05:00
Alfredo Deza
f6c788b4d1
testing: parse and set DISABLE_SYNCED_FOLDER in vagrant file
...
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2016-11-15 07:53:05 -05:00
Alfredo Deza
5df60b5907
tests: disable sync folder when testing
...
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2016-11-15 07:53:02 -05:00
Alfredo Deza
006f63ebd6
Merge pull request #1093 from ceph/RHBZ-1394929
...
rolling update: stop services before upgrading and start afterwards
2016-11-14 16:10:06 -05:00
Andrew Schoen
5f44b118b8
rolling update: stop RGWs before upgrade and start afterwards
...
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Resolves: rhbz#1394929
2016-11-14 14:47:12 -06:00
Andrew Schoen
ded9d9dfd3
rolling update: stop MDSs before upgrading and start afterwards
...
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Resolves: rhbz#1394929
2016-11-14 14:47:12 -06:00
Andrew Schoen
5429c5f8c5
rolling update: stop MONs before upgrading and start afterwards
...
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Resolves: rhbz#1394929
2016-11-14 14:47:12 -06:00
Andrew Schoen
66f09bdac4
rolling update: stop OSDs before upgrading
...
This avoids a bug where OSDs are sometimes restarted twice on
upgrades which leaves the OSD process running but not marked up.
See:
https://bugzilla.redhat.com/show_bug.cgi?id=1394928
https://bugzilla.redhat.com/show_bug.cgi?id=1391675
https://bugzilla.redhat.com/show_bug.cgi?id=1394929
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Resolves: rhbz#1394929
2016-11-14 14:46:58 -06:00
Sébastien Han
97165abd8a
Merge pull request #1091 from ceph/rgw-when
...
ceph-rgw: add systemd condition
2016-11-14 16:25:26 +01:00
Sébastien Han
d4cf547f0e
Merge pull request #1032 from ceph/backward-compat-rhcs
...
common: backward compatibility name for rhcs
2016-11-14 15:49:42 +01:00
Sébastien Han
c16fd4b148
ceph-rgw: add systemd condition
...
We have a fact that detects the package manager, so we can detect if
systemd is used. Radosgw was still using some old logic from Ubuntu.
Ubuntu 16.04 now has systemd so we don't need to configure rgw as it was
running on upstart.
Signed-off-by: Sébastien Han <seb@redhat.com>
2016-11-14 15:12:20 +01:00
Alfredo Deza
55c5d22658
Merge pull request #1089 from ceph/vagrant-boxes
...
tests: adds a few more scenarios
2016-11-10 16:16:07 -05:00
Andrew Schoen
118834b752
tests: adds comments to tox.ini describing each scenario
...
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Resolves: vagrant#boxes
2016-11-10 12:05:23 -06:00
Andrew Schoen
ca68d7ce17
tests: make the centos7-mon-osd scenario use raw_multi_journal
...
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Resolves: vagrant#boxes
2016-11-10 12:05:23 -06:00
Andrew Schoen
4a2e06cb45
tests: adds the centos7-cluster scenario to tox.ini
...
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Resolves: vagrant#boxes
2016-11-10 12:05:23 -06:00
Andrew Schoen
588aa8d8f3
tests: adds a scenario for a centos7 1mon 1osd 1mds 1rgw cluster
...
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Resolves: vagrant#boxes
2016-11-10 12:05:23 -06:00
Andrew Schoen
c5b3378a18
tests: adds the xenial mon-osd-mds-rgw scenario as xenial-cluster
...
I tried adding the scenario as xenial-mon-osd-mds-rgw but for
whatever reason tox refused to select that environment. Changing the
name to xenial-cluster fixed that though.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Resolves: vagrant#boxes
2016-11-10 12:05:23 -06:00
Andrew Schoen
38ee310f8c
tests: adds a scenario to test a xenial 1mon 1osd 1mds 1rgw cluster
...
This scenario duplicates what we are currently doing with our
ceph-ansible testing using OVH and a single node, except now
we are using 4 separate nodes.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Resolves: vagrant#boxes
2016-11-10 12:05:23 -06:00
Andrew Schoen
3b75d44ed6
tests: make xenial-mon-osd use raw_multi_journal instead of collocation
...
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Resolves: vagrant#boxes
2016-11-10 12:05:23 -06:00
Sébastien Han
38d84ce595
Merge pull request #1087 from ceph/vagrant-boxes
...
use vagrant boxes that support libvirt and virtualbox
2016-11-09 12:09:00 +01:00
Andrew Schoen
db657ed8e1
tests: provide a way use libvirt with vagrant and tox
...
This allows for:
tox -- --provider=libvirt
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Resolves: vagrant#boxes
2016-11-08 17:00:09 -06:00
Andrew Schoen
0522d32e7e
tests: change the centos box to centos/7
...
This box supports both libvirt and virtualbox. Eventually we want to
be building our own boxes but this should work in the short term.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2016-11-08 16:49:26 -06:00
Andrew Schoen
95bce703f1
tests: change the xenial box to yk0/ubuntu-xenial
...
This box supports both virtualbox and libvirt. Eventually
we want to be building our own vagrant boxes, but this might
work for now.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Resolves: vagrant#boxes
2016-11-08 15:48:16 -06:00
Alfredo Deza
da7dd92e95
Merge pull request #1086 from ceph/testing-updates
...
testing: adds 3 new functional testing scenarios
2016-11-08 13:39:32 -05:00
Andrew Schoen
df59ec6fae
tests: adds the vagrant_variables.yml that were previously ignored
...
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Resolves: testing#updates
2016-11-08 12:37:05 -06:00
Andrew Schoen
f0d9e17252
don't ignore vagrant_variables.yml in test directories
...
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Resolves: testing#updates
2016-11-08 12:37:04 -06:00
Andrew Schoen
99fc84276e
tests: updates tox to test the new scenarios
...
This also turns on -vv for ansible and adds an environment for
ansible==1.9.4 testing.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Resolves: testing#updates
2016-11-08 12:37:04 -06:00
Andrew Schoen
44503487c5
tests: adds a 1mon 1osd centos7 test scenario
...
This uses journal collocation for the osd.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Resolves: testing#updates
2016-11-08 12:37:04 -06:00
Andrew Schoen
4dd51ee3c6
tests: adds a 1mon 1osd xenial test scenario
...
This sets up the osd using journal collocation
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Resolves: testing#updates
2016-11-08 10:35:43 -06:00
Andrew Schoen
a96d51fdfa
tests: ceph.conf tests for the xenial 3 mon cluster
...
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Resolves: testing#updates
2016-11-08 10:35:43 -06:00
Andrew Schoen
dba8694794
tests: adds a xenial 3 mon test scenario
...
This can be used to test if mon hosts and
mon initial members are being set properly with
multiple hosts.
Also, to verify that monitor_address and monitor_interface
options both work as described.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Resolves: testing#updates
2016-11-08 10:35:43 -06:00
Andrew Schoen
f62d15bf20
tests: ignore folders created by ceph-ansible during testing
...
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Resolves: testing#updates
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2016-11-08 10:35:43 -06:00
Andrew Schoen
06ce643f7d
common: reformat mon_initial_members with indention
...
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Resolves: testing#updates
2016-11-08 10:35:43 -06:00
Andrew Schoen
dea9fbe9d0
common: provide a default for monitor_address_block
...
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Resolves: testing#updates
2016-11-08 10:35:43 -06:00
Andrew Schoen
d213080d19
tests: remove the initial_members scenario
...
This was just a placeholder until we could get more valid scenarios in
place.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Resolves: testing#updates
2016-11-08 10:35:43 -06:00
Andrew Schoen
fcacf90939
common: check for monitor_interface before monitor_address in ceph.conf
...
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Resolves: testing#updates
2016-11-08 10:35:42 -06:00
Alberto Murillo Silva
d16a6b47f0
sync config_template plugin with master branch
...
ansible 2.2 deprecates first_available_file option which is used in
the config_template module by 'generate ceph configuration file' task.
This change syncs the config_module files from their master repository
in github.com/openstack/openstack/ansible-plugins which includes the fix
2f6cac2cf6
Signed-off-by: Alberto Murillo Silva <alberto.murillo.silva@intel.com>
2016-11-08 10:12:16 -06:00
Alfredo Deza
74ae307fea
Merge pull request #1074 from ceph/test-group-vars
...
functional test scenarios should include a group_vars dir
2016-11-07 12:16:06 -05:00
Andrew Schoen
d5a7f3de8f
tests: require a group_vars folder in the scenario dir
...
This will allow for no changes needed in the ansible playbook command
when adding new scenarios. Each scenario will just need a hosts file and
a group_vars directory to define how the cluster should be setup.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2016-11-04 16:35:45 -05:00
Andrew Schoen
e25042f65e
Merge pull request #1058 from ceph/pytest-harness
...
testing harness with py.test and Vagrant
2016-11-04 14:08:35 -05:00
Alfredo Deza
3511e12253
tests: add a hosts file for the initial_members scenario
...
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Resolves: pytest#harness
2016-11-04 14:47:59 -04:00
Alfredo Deza
4d78be41ef
tests: gitignore the .tox subdir
...
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Resolves: pytest#harness
2016-11-04 14:13:30 -04:00
Alfredo Deza
8427e5a4a3
tests: make the tox.ini config call the ssh config helper script
...
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Resolves: pytest#harness
2016-11-04 14:13:30 -04:00
Alfredo Deza
74f9f2bff9
tests: add a helper script to generate vagrant ssh configs
...
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Resolves: pytest#harness
2016-11-04 14:13:30 -04:00
Andrew Schoen
e319ccf691
tests: remove the need for a setenv entry per scenario in tox.ini
...
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Resolves: pytest#harness
2016-11-04 14:13:30 -04:00
Andrew Schoen
80e955cc40
tests: adds a tox.ini to run the functional tests
...
This currently tests the initial-members scenario for both ansible 2.1
and ansible 2.2. It assumes a hosts file and vagrant_ssh_config exists
in the scenario directory.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Resolves: pytest#harness
2016-11-04 14:13:30 -04:00
Alfredo Deza
8cda2db9c3
tests: mon_initial_members should look for the right hostname
...
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Resolves: pytest#harness
2016-11-04 14:13:30 -04:00
Alfredo Deza
08e7103766
tests: fix helper to use the actual lines form ceph.conf
...
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Resolves: pytest#harness
2016-11-04 13:59:34 -04:00