Commit Graph

76316 Commits

Author SHA1 Message Date
Patrick Donnelly
d7f5af40a2
qa: whitelist trim error during powercycle tests
Fixes: http://tracker.ceph.com/issues/20566

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2017-07-27 13:24:21 -07:00
Sage Weil
5e46c354cf Merge pull request #16635 from dzafman/wip-fix-test-pidfile
test: test_pidfile running 2nd mon has unreliable log output

Reviewed-by: Sage Weil <sage@redhat.com>
2017-07-27 15:06:17 -05:00
Jason Dillaman
d61094f45e osd: silence coverity warning in async read operation contexts
Coverity doesn't know that the context is deleted via the "complete"
method and the embedded context is therefore also destructed when
it's completed.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-07-27 15:18:24 -04:00
David Zafman
c76f306ff5 test: test_pidfile running 2nd mon has unreliable log output
Signed-off-by: David Zafman <dzafman@redhat.com>
2017-07-27 11:23:54 -07:00
Neha Ojha
f8ae463492 osd: add default_device_class to metadata
Signed-off-by: Neha Ojha <nojha@redhat.com>
2017-07-27 11:21:10 -07:00
Jason Dillaman
da62225448 osd: moved OpFinisher logic from OSDOp to OpContext
This allows the memory lifetime of the OpFinisher to be tightly
controlled since the OpContext cannot be copied.

Fixes: http://tracker.ceph.com/issues/20783
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-07-27 14:12:17 -04:00
Gregory Farnum
ba03ab92a8 Merge pull request #16629 from johnwilkins/wip-doc-remove-contractions
Remove contractions from the documentation.

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2017-07-27 10:49:38 -07:00
Sage Weil
541de391e1 Merge pull request #16572 from liewegas/wip-pidfile
test: add separate ceph-helpers-based smoke test

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-07-27 12:32:36 -05:00
John Wilkins
3b9f70d4fd doc/cephfs: Removed contractions for ESL speakers.
Signed-off-by: John Wilkins <jowilkin@redhat.com>
2017-07-27 10:01:29 -07:00
John Wilkins
c978a76b4d doc/start: Removed contractions for ESL speakers.
Signed-off-by: John Wilkins <jowilkin@redhat.com>
2017-07-27 09:59:00 -07:00
Ilya Dryomov
bd6e3e5f1f qa/tasks/rbd_fio: bump default fio version to 2.21
I'm seeing sporadic single thread deadlocks on fio stat_mutex during krbd
thrash runs:

  (gdb) info threads
    Id   Target Id         Frame
  * 1    Thread 0x7f89ee730740 (LWP 15604) 0x00007f89ed9f41bd in __lll_lock_wait () from /lib64/libpthread.so.0
  (gdb) bt
  #0  0x00007f89ed9f41bd in __lll_lock_wait () from /lib64/libpthread.so.0
  #1  0x00007f89ed9f17b2 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
  #2  0x00000000004429b9 in fio_mutex_down (mutex=0x7f89ee72d000) at mutex.c:170
  #3  0x0000000000459704 in thread_main (data=<optimized out>) at backend.c:1639
  #4  0x000000000045b013 in fork_main (offset=0, shmid=<optimized out>, sk_out=0x0) at backend.c:1778
  #5  run_threads (sk_out=sk_out@entry=0x0) at backend.c:2195
  #6  0x000000000045b47f in fio_backend (sk_out=sk_out@entry=0x0) at backend.c:2400
  #7  0x000000000040cb0c in main (argc=2, argv=0x7fffad3e3888, envp=<optimized out>) at fio.c:63
  (gdb) up 2
  170                     pthread_cond_wait(&mutex->cond, &mutex->lock);
  (gdb) p mutex.lock.__data.__owner
  $1 = 15604

Upgrading to 2.21 seems to make these go away.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2017-07-27 18:57:43 +02:00
John Wilkins
ff2eebf88a doc/man: Removed contractions for ESL speakers.
Signed-off-by: John Wilkins <jowilkin@redhat.com>
2017-07-27 09:57:23 -07:00
John Wilkins
096af64ae6 doc/install: Removed contractions for ESL speakers.
Signed-off-by: John Wilkins <jowilkin@redhat.com>
2017-07-27 09:55:58 -07:00
John Wilkins
60e6cf509c doc/rgw: Removed contractions for ESL speakers.
Signed-off-by: John Wilkins <jowilkin@redhat.com>
2017-07-27 09:54:37 -07:00
John Wilkins
112e9936b1 doc/rbd: Removed contractions for ESL speakers.
Signed-off-by: John Wilkins <jowilkin@redhat.com>
2017-07-27 09:52:56 -07:00
John Wilkins
6640837da3 doc/rados: Removed contractions to improve readabilty for ESL speakers.
Signed-off-by: John Wilkins <jowilkin@redhat.com>
2017-07-27 09:46:53 -07:00
Sage Weil
c1aef68f02 Merge pull request #16569 from liewegas/wip-set-not-put
mon: 'config-key put' -> 'config-key set'

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
2017-07-27 11:34:37 -05:00
Sage Weil
e469a8044c qa/standalone/crush/crush-classes: fix test
Signed-off-by: Sage Weil <sage@redhat.com>
2017-07-27 12:25:25 -04:00
Sage Weil
380de3395f qa/standalone/README
Signed-off-by: Sage Weil <sage@redhat.com>
2017-07-27 12:24:52 -04:00
Sage Weil
52d1814caf test/smoke.sh: add simple ceph-helpers-based smoke test
This is just enough during make check to know things aren't totally
broken.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-07-27 12:24:52 -04:00
Sage Weil
a98a2619b3 osdc/Objecter: unify disparate EAGAIN handling paths into one
We had two different code paths for EAGAIN that both
seemed to resend the same request again (with a new
tid), but implemneted it in two different ways. Further,
the first one was conditioned on the BALANCE_READS
flag but not LOCALIZED_READS, which should (I think) be
equivalent in this context.

Unify them into a single path.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-07-27 12:13:39 -04:00
Sage Weil
0b5036f072 qa/suites/rados/upgrade: fix upgrade wait for healthy
There is no mgr, so we can't call ceph.healthy.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-07-27 12:10:34 -04:00
Sage Weil
a40d94b163 qa/tasks/ceph: wait for pg stats to flush in healthy check
Signed-off-by: Sage Weil <sage@redhat.com>
2017-07-27 12:10:27 -04:00
Sage Weil
80978dea8a qa/tasks/ceph_manager: wait_for_all_up -> wait_for_all_osds_up
Signed-off-by: Sage Weil <sage@redhat.com>
2017-07-27 12:10:26 -04:00
Sage Weil
7648894e55 qa/tasks/ceph_manager: expose flush_all_pg_stats
Signed-off-by: Sage Weil <sage@redhat.com>
2017-07-27 12:10:26 -04:00
Sage Weil
c7430c56cd Merge pull request #16388 from xiexingguo/wip-class-misc-fixes
crush, mon: simplify device class manipulation commands

Reviewed-by: Sage Weil <sage@redhat.com>
2017-07-27 11:04:33 -05:00
Josh Durgin
c1a4877da1 Merge pull request #16172 from ivancich/wip-dup-ops
PGLog: store extra duplicate ops beyond the normal log entries

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2017-07-27 08:57:39 -07:00
Yuri Weinstein
6942e3932b Merge pull request #16558 from hjwsm1989/fix-recovering-hang-with-unfound-objects
osd/PrimaryLogPG: fix recovering hang when have unfound objects

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2017-07-27 08:37:15 -07:00
Yuri Weinstein
2eaa086c19 Merge pull request #16561 from Yan-waller/wip-walle-0725osddumpclinfo
osd: add dump filter for tracked ops

Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
2017-07-27 08:36:23 -07:00
J. Eric Ivancich
a3d2c6b6a0 PGLog: continuation, store extra duplicate ops beyond the normal log entries
This helps us avoid replaying non-idempotent client operations when
the pg log is very short, e.g. in an effort to force OSDs to use
backfill rather than regular recovery. This can be advantageous to
avoid blocking i/o to objects, at the cost of longer total time to
become clean (since backfill requires scanning the objects to see what
is missing).

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
2017-07-27 11:09:04 -04:00
Yuri Weinstein
105435a38e Merge pull request #16384 from mikulely/2-checkout-placmenet-target-existness
rgw: check placement target existence during bucket creation

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2017-07-27 07:29:13 -07:00
Yuri Weinstein
2357dcd23c Merge pull request #16389 from prallabh/wip-20661
rgw: Do not decrement stats cache when the cache values are zero

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
2017-07-27 07:27:37 -07:00
Yuri Weinstein
63a5f60b07 Merge pull request #16463 from cbodley/wip-20708
rgw: fix parse/eval of policy conditions with IfExists

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
2017-07-27 07:25:50 -07:00
Yuri Weinstein
8ff76b7033 Merge pull request #16495 from weiqiaomiao/wip_weiqm_rgw_crash
rgw: fix radosgw will crash when service is restarted during lifecycl…

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
2017-07-27 07:22:59 -07:00
Yuri Weinstein
5fc9dfa36f Merge pull request #16531 from rzarzynski/wip-rgw-20757
rgw: fix memory leaks during Swift Static Website's error handling.

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2017-07-27 07:19:22 -07:00
Yuri Weinstein
b59e577334 Merge pull request #16601 from rzarzynski/wip-rgw-20774
rgw: never let http_redirect_code of RGWRedirectInfo to stay uninitialized

Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
2017-07-27 07:18:42 -07:00
Yuri Weinstein
1d4593703b Merge pull request #16604 from rzarzynski/wip-rgw-20779
rgw: fix the UTF8 check on bucket entry name in rgw_log_op().

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2017-07-27 07:17:32 -07:00
Sage Weil
203c68ad55 Merge pull request #16575 from liewegas/wip-20693
qa/suites/rados: at-end: ignore PG_{AVAILABILITY,DEGRADED}

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2017-07-27 08:31:53 -05:00
Sage Weil
e398fd4ee4 qa/suites: more whitelisting
Signed-off-by: Sage Weil <sage@redhat.com>
2017-07-27 09:31:24 -04:00
huanwen ren
cfc663726c cephfs/ceph-fuse: add and modify ceph-fuse mount hint
1. "-n" is applied the client authorization feature.
2. "root_directory" misleading to mount the root directory ,
     in fact, here mount should be "sub_directory".
Refer to: http://docs.ceph.com/docs/master/cephfs/client-auth/#cephfs-client-capabilities

Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
2017-07-27 21:14:38 +08:00
Jason Dillaman
42fabc2e80 Merge pull request #16398 from dillaman/wip-20655
rbd-mirror: guard the deletion of non-primary images

Reviewed-by: Venky Shankar <vshankar@redhat.com>
2017-07-27 08:27:39 -04:00
Xinying Song
e15b2b9cc8 common: use std::move() for better performance
use std::move() to avoid extra copy constructions in src/common/OutputDataSocket.cc.

Signed-off-by: Xinying Song <songxinying@cloudin.cn>
2017-07-27 15:52:54 +08:00
Kefu Chai
2531063c30 Merge pull request #16574 from batrick/rgw-rbd-stripped-build
CMakeLists: trim rbd/rgw forced dependencies

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-07-27 13:10:07 +08:00
Kefu Chai
35f332871d doc: remove docs on non-existant command
also use "tab" to indent command snippet to be more consistent.

Signed-off-by: Luo Kexue <luo.kexue@zte.com.cn>
2017-07-27 11:57:54 +08:00
Kefu Chai
472df1540a README: quote file names with "`"
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-07-27 11:57:54 +08:00
Venky Shankar
3d86277b2e Merge pull request #16603 from dillaman/wip-rbd-mirror-valgrind
rbd-mirror: initialize timer context pointer to null
2017-07-27 08:24:28 +05:30
Kefu Chai
3cab2ce179 kv/RocksDBStore: use vector instead of VLA for holding slices
clang complains:

ceph/src/kv/RocksDBStore.cc:611:32: error: variable length array of
non-POD element type
      'rocksdb::Slice'
    rocksdb::Slice value_slices[to_set_bl.buffers().size()];

and i believe GCC will also complains with: -Wvla or -pedantic. as
to_set_bl.buffers().size() is not a const expr at compile time.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-07-27 10:44:50 +08:00
Sage Weil
964432b97c Merge pull request #16613 from liewegas/wip-vstart-mgr
vstart.sh: start mgr after mon, before osds

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
2017-07-26 21:04:25 -05:00
Jos Collin
0a8becf8a5 Merge pull request #16584 from gregsfortytwo/wip-deletes-coverity
messages: default-initialize MOSDPGRecoveryDelete[Reply] members

Reviewed-by: Jos Collin <jcollin@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2017-07-27 01:11:01 +00:00
Sage Weil
77ba569ac9 vstart.sh: start mgr after mon, before osds
Signed-off-by: Sage Weil <sage@redhat.com>
2017-07-26 17:22:25 -04:00