Commit Graph

35 Commits

Author SHA1 Message Date
Vasu Kulkarni
597534150b Fix rechecking of health in loop
Use the newer stdout value for checking
ceph health again.

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
2016-07-25 15:29:53 -07:00
vasukulkarni
9156943ac5 Merge pull request #970 from ceph/wip-fix-cd-override
Fix for 'branch' overrides to work
2016-06-22 14:54:02 -07:00
Oleh Prypin
c5dbbfc545 tasks/ceph-deploy: Install appropriate Python version before running
Related to RM-15016

Signed-off-by: Oleh Prypin <oleh@pryp.in>
2016-06-22 19:19:12 +03:00
Oleh Prypin
9c1a28210e tasks/ceph-deploy: Run on multiple Python versions (2, 3)
Related to RM-15016

Signed-off-by: Oleh Prypin <oleh@pryp.in>
2016-06-15 12:55:18 +03:00
Vasu Kulkarni
30571bc3a1 Fix for 'branch' overrides to work
teuthology default override template defines devcommit which makes
'branch' overrides in the test useless since it only picksup one option
Remove the devcommit overrides from the template and use that as
default in case no other 'branch' override exist.

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
2016-04-21 20:21:39 -07:00
John Spray
bea9b5bb2e tasks: fix ceph_deploy call to Filesystem()
Fixes: #15204
Signed-off-by: John Spray <john.spray@redhat.com>
2016-03-21 10:13:25 +00:00
Vasu Kulkarni
4e145658a7 Fix review comments
Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
2016-03-12 02:15:39 -05:00
Vasu Kulkarni
1c24f58180 Fix recent failures due to HEALTH_WARN check issues
There were recent failures due to HEALTH_WARN check unrelated
to script, this fix basically bypasses this issue by using
osd pool default size: 1 in ceph.conf and now
checks for HEALTH_OK instead of HEALTH_WARN
It also adds the meta information to tasks which describes test

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
2016-03-08 21:43:06 -05:00
Vasu Kulkarni
130b12b6df Fix old and new pep8 issues
Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
2016-02-26 20:10:52 -08:00
Loic Dachary
487ccb964a Merge pull request #592 from ceph/wip-13000-centos-activate
ceph-deploy: always zap disk before creating an osd
2015-10-01 08:49:20 +02:00
Loic Dachary
01d48a270a ceph-deploy: always zap disk before creating an osd
The existing logic is to ceph-deploy osd create --zap-disk which will
zap the data device before preparing it. However it will not zap the
journal device (see http://tracker.ceph.com/issues/13291).

If ceph-deploy osd create fails, a fall back will zap both the data
device and the journal and try prepare again. This could work if
the device preparation and activation was synchronous and catch all
errors that could be caused by an unclean journal device. However,
the activation is asynchronous and it is entirely possible for a device
to be prepared successfully and fail to activate in the background.

The data and journal device are always zapped before calling ceph-deploy
osd create. The logic is simpler and the overhead is low.

http://tracker.ceph.com/issues/13000 Fixes: #13000

Signed-off-by: Loic Dachary <loic@dachary.org>
2015-09-30 20:57:24 +02:00
Loic Dachary
fdcfb79b3c ceph-deploy: fix ceph-deploy-branch config options
The config paramter of download_ceph_deploy does not have a ceph-deploy
item, therefore the ceph-deploy-branch parameter is always assumed to be
master.

Signed-off-by: Loic Dachary <loic@dachary.org>
2015-09-26 02:16:46 +02:00
Sage Weil
0553e50401 tasks/ceph_deploy: install ceph-test
Signed-off-by: Sage Weil <sage@redhat.com>
2015-09-02 18:45:33 -04:00
Sage Weil
f5865d32a8 tasks/ceph_deploy: work with systemd
This is ugly, but I'm not going to rewrite this right now.

Signed-off-by: Sage Weil <sage@redhat.com>
2015-08-31 14:21:29 -04:00
Loic Dachary
d6c72c3a25 ceph-deploy: implement only_mon
If only_mon is true, do not attempt to deploy osds.

Signed-off-by: Loic Dachary <loic@dachary.org>
2015-08-27 23:23:53 +02:00
Loic Dachary
b181783166 ceph-deploy: implement keep_running
When keep_running is true, do not shutdown the cluster, leave it as it
is for other workunits or tasks to use. This effectively allows the
ceph-deploy task to be used as a helper to deploy clusters.

The call to build_ceph_cluster is simplified by giving it the whole
configuration dictionary instead of re-building one with selected arguments.

Signed-off-by: Loic Dachary <loic@dachary.org>
2015-08-27 23:20:25 +02:00
Loic Dachary
e5db657e86 ceph-deploy: ceph report on failure
When ceph-deploy fails, run ceph report to get more information about
the state of the cluster at the time of the failure.

Signed-off-by: Loic Dachary <loic@dachary.org>
2015-08-27 23:19:22 +02:00
Andrew Schoen
766da54dbc ceph_deploy: if a branch is given, use it when installing rgw
Fixes: http://tracker.ceph.com/issues/12758

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2015-08-24 10:09:24 -05:00
Travis Rhoden
dceae70ece Merge pull request #514 from ceph/wip-cd-add-branch-install
- Use branch from config for ceph-deploy testing

Reviewed-by: Travis Rhoden <trhoden@redhat.com>
2015-08-14 11:24:08 -07:00
Josh Durgin
0200811fc0 Merge pull request #446 from ceph/wip-krbd-unmap-suite
unmap subsuite for krbd

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-07-28 15:49:46 -07:00
Vasu Kulkarni
c1116a0af8 - Use branch from config for ceph-deploy testing instead of released branch
Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
2015-07-28 13:38:47 -04:00
Vasu Kulkarni
71fec93fd8 - Fix for wip-12225, Extra argument to mon create-initial was never required
Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
2015-07-24 13:56:30 -04:00
Vasu Kulkarni
b455e4a7c9 Single Node Ceph-deploy tests to exercise commonly used CLI and test init startup
- Add 1node tests to Smoke and include ceph-deploy test
   - Review Comments , add rgw cli test

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
2015-06-12 15:07:52 -04:00
Ilya Dryomov
633ab410e3 ceph_deploy: no need to fetch overrides twice
Looks like Sandon's and Sage's changes raced and there are now two
sites where we fetch overrides.  One should be enough.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2015-05-27 15:41:38 +03:00
John Spray
99951f8150 tasks/ceph_deploy: remove some dead code
Signed-off-by: John Spray <john.spray@redhat.com>
2015-04-29 19:59:27 +01:00
John Spray
dbe2ad2421 tasks/ceph_deploy: fix for multiple mons
Now that service IDs are modified during run, we have
to avoid repeatedly evaluating first_mon for where
to run ceph_deploy, as the answer will change.

Fixes: #11495
Signed-off-by: John Spray <john.spray@redhat.com>
2015-04-29 19:59:27 +01:00
John Spray
7c2e6cdc6c tasks/ceph_deploy: configure CephFS
This test apparently had not been touched since
"fs new" was added.  In addition to calling
Filesystem.create:
 * modify the get_nodes_using_role
   function to modify ctx.cluster.remotes so that the
   service IDs match what ceph-deploy will set
 * log exceptions during ceph_deploy setup, as otherwise
   they can get lost if another exception occurs during
   teardown (so that it's all easier to debug).
 * default to passing --dev=master during install, so
   that we don't error out horribly when run without
   an explicit branch set (e.g. when run outside
   scheduled suite)

Fixes: #11316
Signed-off-by: John Spray <john.spray@redhat.com>
2015-04-19 17:46:18 -07:00
Alfredo Deza
9df27f7a10 remove unused variable assignment
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2015-02-26 11:26:15 -05:00
tamil
b3dfe47589 Added dmcrypt option and ability to choose same or different disk for ceph journal
Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
2014-08-28 18:21:30 -07:00
Zack Cerza
5765fde1aa Merge pull request #102 from ceph/9171
ignore errors on informational service status
2014-08-21 09:16:49 -06:00
Alfredo Deza
70a1f18adf use 'mon create-initial' always
But don't error if it fails, as this would mean that the monitors
are just taking longer to form quorum. Go and try the next block which will
wait up to 15 minutes for a successful gatherkeys to happen (that only works
if monitors have formed quorum).

Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
2014-08-21 10:03:28 -04:00
Alfredo Deza
5b946e1a6d ignore errors on informational service status
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
2014-08-21 09:44:45 -04:00
Alfredo Deza
4b15d0118e use the right syntax for RHEL/CentOS distros to check for ceph status
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
2014-08-18 12:40:43 -04:00
Zack Cerza
4e1e929f75 Update module references
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-07 08:24:59 -06:00
Zack Cerza
0e1df3cc72 Import teuthology tasks (master branch)
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-07 08:24:58 -06:00