Commit Graph

76590 Commits

Author SHA1 Message Date
David Zafman
e24ac51a82 qa: Fix broken test_activate_osd() due to missing space
Signed-off-by: David Zafman <dzafman@redhat.com>
2017-08-10 12:37:05 -07:00
David Zafman
ae2c5331fb qa: Fix races with waiting for scrubs
The trigger_scrub sets the last_scrub_stamp backwards to
force a scheduled scrub.  In a small window this stamp could get propagated
to the mgr.  A test failure occurred because wait_for_scrub() was confused
by seeing a backward moving date.

The most critical change is having wait_for_scrub() make sure that the
date advances past the previous in value.

A test failed because the random backoff kept delayed triggered scrub, so
set osd_scrub_backoff throughout.

Signed-off-by: David Zafman <dzafman@redhat.com>
2017-08-10 12:37:05 -07:00
David Zafman
dddda523d1 qa: Testing of ceph-helpers.sh, teardown on fail to dump logs, save cores
Signed-off-by: David Zafman <dzafman@redhat.com>
2017-08-10 12:37:05 -07:00
David Zafman
1fe6cb0f02 osd: Avoid confusion over legacy snaps when head_exists corrupt
Signed-off-by: David Zafman <dzafman@redhat.com>
2017-08-10 12:37:05 -07:00
David Zafman
c140457489 osd: Fix Paxos shutdown handling for commit_finish race
Fixes: http://tracker.ceph.com/issues/20921

Signed-off-by: David Zafman <dzafman@redhat.com>
2017-08-10 12:37:04 -07:00
David Zafman
229de6b71d qa: Add support for core dumps
Save core dumps when running tests locally
Dump logs to output whenever cores seen

Signed-off-by: David Zafman <dzafman@redhat.com>
2017-08-10 12:37:04 -07:00
David Zafman
4db5124e1a qa: For FreeBSD skip osd-dup.sh because there is no bluestore
Signed-off-by: David Zafman <dzafman@redhat.com>
2017-08-10 08:30:47 -07:00
David Zafman
61bfd236ad qa: Raise mon-data-avail-warn to pass tests with less space
Signed-off-by: David Zafman <dzafman@redhat.com>
2017-08-10 08:30:47 -07:00
David Zafman
574b3cd3d4 qa: Add common generalized inject_eio() to ceph-helpers.sh
Retry for a while to allow pool to appear

Signed-off-by: David Zafman <dzafman@redhat.com>
2017-08-10 08:30:47 -07:00
David Zafman
3988ebab43 qa: osd-scrub-repair.sh handle older versions of jq
Signed-off-by: David Zafman <dzafman@redhat.com>
2017-08-10 08:30:47 -07:00
David Zafman
2a679a36de qa: Add support for specifying sub-tests with run-standalone.sh
Fix test-ceph-helpers.sh to pass additional arguments on

Signed-off-by: David Zafman <dzafman@redhat.com>
2017-08-10 08:30:47 -07:00
David Zafman
69413618a0 qa: ceph-helpers.sh fixes
Add missing teardown to cleanup test directory
Fix pgid due to elimination of initial default pool
Testing could never fail because run_tests return ignored

Signed-off-by: David Zafman <dzafman@redhat.com>
2017-08-10 08:30:47 -07:00
David Zafman
d99f2a77e9 qa: Skip ceph-helpers.sh which is tested through test-ceph-helpers.sh
Signed-off-by: David Zafman <dzafman@redhat.com>
2017-08-10 08:30:46 -07:00
David Zafman
99ad4bbd91 qa: Add create_pool() which sleeps 1 second like python variant
wait_for_clean() can miss the new pool if it races with pool create.

Fixes: http://tracker.ceph.com/issues/20465

Signed-off-by: David Zafman <dzafman@redhat.com>
2017-08-04 06:38:09 -07:00
David Zafman
b20dfc2864 qa: Add special test_failure.sh script (not run by default)
Signed-off-by: David Zafman <dzafman@redhat.com>
2017-08-04 06:38:09 -07:00
David Zafman
8c768050a5 qa: run-standalone.sh improvements
Signed-off-by: David Zafman <dzafman@redhat.com>
2017-08-04 06:38:09 -07:00
David Zafman
4314cdd666 qa: Dump logs after daemons are killed to make sure everything is flushed
Signed-off-by: David Zafman <dzafman@redhat.com>
2017-08-04 06:38:09 -07:00
Sage Weil
24c8d7e5d8 Merge pull request #16827 from liewegas/wip-more-more-more
qa/suites/rados/basic/tasks/rados_python: POOL_APP_NOT_ENABLED
2017-08-04 12:39:47 -05:00
Sage Weil
82cf3046de qa/suites/rados/basic/tasks/rados_python: POOL_APP_NOT_ENABLED
Signed-off-by: Sage Weil <sage@redhat.com>
2017-08-04 13:39:13 -04:00
Jason Dillaman
7350fa65d7 Merge pull request #16724 from amitkumar50/cov-1403249
librbd: Uninitialized variable used handle_refresh()

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-08-04 12:34:29 -04:00
Jason Dillaman
cb9af1d4a8 Merge pull request #16742 from scienceluo/wip-luo-coverity-fix-branch
test/librbd/fsx: Add break in case OP_WRITESAME and OP_COMPARE_AND_WRITE

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-08-04 12:32:34 -04:00
Jason Dillaman
7560c58ed0 Merge pull request #16729 from amitkumar50/cov-1402141
rbd: Drop unused member variable reopen in C_OpenComplete

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-08-04 12:30:44 -04:00
Sage Weil
9c7a653fee Merge pull request #16769 from liewegas/wip-20295-b
os/bluestore: allow multiple DeferredBatches in flight at once

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
2017-08-04 11:04:38 -05:00
Abhishek L
0a5b0021b4 Merge pull request #16787 from liewegas/wip-bluestore-docs
doc/release-notes: fix bluestore links

Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
2017-08-04 17:37:47 +02:00
Sage Weil
9d95f1a4df Merge pull request #16632 from ceph/wip-volume
ceph-volume: initial take on ceph-volume CLI tool

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Andrew Schoen <aschoen@redhat.com>
2017-08-04 09:51:27 -05:00
Alfredo Deza
dde2a8b525 ceph-volume lvm trigger should check for root
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
58d5d8442f ceph-volume lvm prepare should check for root
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
a77dc50787 ceph-volume lvm create should check for root
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
74e977fe93 ceph-volume lvm activate should check for root
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
b189e0167f ceph-volume: decorators should call the wrapped func
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
fb10e6313a ceph-volume: systemd script should handle type-data format as argument
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
9b3eb5c512 ceph-volume: lvm add the actual trigger subcommand handler
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
a244056d91 ceph-volume: lvm: add a trigger sub-command to parent parser
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
945cc7db62 ceph-volume: tests update argument parsing for systemd
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
75899cf143 ceph-volume: tests add an lvm trigger for the systemd argument parsing
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
6d2b551f2a ceph-volume remove activate utilities, not needed with 'osd new'
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
cdbfc7019d ceph-volume lvm.activate remove unused import for activate utils
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
2f187ec7a9 ceph-volume: systemd should retry several times to activate a device
Allows environment variables to tweak the retries and intervals,
defaulting to 30 tries at 5 second intervals.

Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
11659c1880 ceph-volume: devices chown the journal when activating
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
0cf3a44a50 ceph-volume: systemd script should pass pre-configured log args
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
21ec4cea74 ceph-volume: prevent missing conf values for logging config
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
b458646ef1 ceph-volume: systemd: add helpers for the ceph-volume systemd unit
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
64523d8c5b ceph-volume: util prepare should pass -i to consume stdin
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
060d3ac339 ceph-volume: lvm consume the JSON secrets for preparing
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
f1c8c35439 ceph-volume: lvm remove the creation of the osd so early in the prepare process
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
faa8189aa0 ceph-volume: lvm: activate should not use the bootstrap-osd to auth add the keyring
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
db8bbf1c41 ceph-volume: util: use osd new for creating osds
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
80d3e6785c ceph-volume: process: allow stdin to be used
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
19c676ba6b ceph-volume: main: slice args for main and subcommands differently
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00
Alfredo Deza
055e16836b ceph-volume: devices.lvm add create module for the sub-command support
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-08-04 10:25:58 -04:00