Commit Graph

36131 Commits

Author SHA1 Message Date
Samuel Just
d9ff3a6b78 PG:: reset_interval_flush and in set_last_peering_reset
If we have a change in the prior set, but not in the up/acting set, we go back
through Reset in order to reset peering state.  Previously, we would reset
last_peering_reset in the Reset constructor.  This did not, however, reset the
flush_interval, which caused the eventual flush event to be ignored and the
peering messages to not be sent.

Instead, we will always reset_interval_flush if we are actually changing the
last_peering_reset value.

Fixes: #9821
Backport: firefly
Signed-off-by: Samuel Just <sam.just@inktank.com>
2014-10-21 11:02:49 -07:00
Adam Crume
65be257e92 Fix read performance regression in ObjectCacher
The regression was introduced in commit
4fc9fffc49.  The problem is that the cache
thinks it's full (when it's not), so it defers the read.  This change
frees up cache space if necessary and only defers the read if enough
space cannot be freed.

Fixes: 9513
Signed-off-by: Adam Crume <adamcrume@gmail.com>
(cherry picked from commit 82175ec94a)
2014-10-20 13:49:04 -07:00
Sage Weil
27d5ae61b1 Merge pull request #2758 from ceph/wip-9820
qa/workunits: cephtool: don't remove self's key on auth tests

Reviewed-by: Sage Weil <sage@redhat.com>
2014-10-20 10:46:48 -07:00
Joao Eduardo Luis
ac3c1cb5d0 qa/workunits: cephtool: don't remove self's key on auth tests
Suites run with CEPH_TEST_CLI_DUP_COMMAND=1, which will send a duplicate
command for every command issued with the 'ceph' tool.  Behavior is to
get a reply from the command and then send a duplicate, looking for the
same outcome (guaranteeing idempotency of the operations).  However, it
so happens that if you remove the entity's own key from the keyring and
you happen to be unlucky enough so that the client's connection gets
failed (we also run tests with connection failure injections), the
'ceph' tool won't be able to reconnect to the cluster to send the
duplicate command (as it's entity no longer exists in the cluster's
keyring).

We rewrite the test instead of resorting to ugly hacks to work around
this behavior, simply having a new 'role-definer' added by the existing
'role-definer' (which we weren't testing anyway, so bonus points for
that) and then have one removing the other (to test the procedure) and
finally using 'client.admin' to remove the last 'role-definer'.

Fixes: #9820

Signed-off-by: Joao Eduardo Luis <joao@redhat.com>
2014-10-20 18:00:15 +01:00
Samuel Just
22877ba735 Merge pull request #2708 from ceph/wip-9718
osd/osd_types: consider CRUSH_ITEM_NONE in check_new_interval() min_size

Reviewed-by: Samuel Just <sam.just@inktank.com>
2014-10-17 10:38:43 -07:00
Samuel Just
234f5a2347 Merge pull request #2711 from guangyy/wip-9614-followup
Follow-up fix for 9614

Reviewed-by: Samuel Just <sam.just@inktank.com>
2014-10-17 10:38:30 -07:00
Sage Weil
fdf534dd89 Merge pull request #2740 from ceph/giant-unknown-locktype
mds: reply -EOPNOTSUPP for unknown lock type
2014-10-17 08:21:16 -07:00
Yan, Zheng
9e6ae73a13 mds: reply -EOPNOTSUPP for unknown lock type
Signed-off-by: Yan, Zheng <zyan@redhat.com>
(cherry picked from commit 675392335c)
2014-10-17 22:02:49 +08:00
Sage Weil
5558afa03d qa/workunits/rbd/import_export.sh: be case insensitive
Stop tripping over this change (from dumpling).

Signed-off-by: Sage Weil <sage@redhat.com>
2014-10-15 12:26:00 -07:00
Yehuda Sadeh
c44fbf7c44 Merge pull request #2702 from ceph/wip-9706
objecter: fix session locking, use after frees (#9706)

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2014-10-15 08:58:16 -07:00
Gregory Farnum
0aaae4542e Merge pull request #2719 from ceph/wip-inotable-init
mds: fix inotable initialization/reset

Reviewed-by: Yan, Zheng <zyan@redhat.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
2014-10-14 13:38:50 -07:00
Henry C Chang
c4bac3eb3e mds: fix inotable initialization/reset
interval_set::insert takes arguments start and len, not end.

Signed-off-by: Henry C Chang <henry.cy.chang@gmail.com>
(cherry picked from commit c95bb59434)
2014-10-14 21:56:08 +08:00
Sage Weil
674781960b Merge pull request #2707 from ceph/wip-9731
PGLog::IndexedLog::trim(): rollback_info_trimmed_to_riter may be log.ren...

Reviewed-by: Sage Weil <sage@redhat.com>
2014-10-13 11:17:17 -07:00
Loic Dachary
f1fccb1d19 rpm: 95-ceph-osd-alt.rules is not needed for centos7 / rhel7
The || instead of && had it always installed. That was fixed in EPEL
already.

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

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
(cherry picked from commit 5ff4a850a0)
2014-10-13 08:16:40 -07:00
Guang Yang
35bbb2d600 The fix for issue 9614 was not completed, as a result, for those erasure coded PGs with one OSD down, the state was wrongly marked as active+clean+degraded. This patch makes sure the clean flag is not set for such PG.
Signed-off-by: Guang Yang <yguang@yahoo-inc.com>
2014-10-13 04:18:45 +00:00
Sage Weil
d947050c82 osd/osd_types: consider CRUSH_ITEM_NONE in check_new_interval() min_size check
Fixes: #9718
Backport: firefly
Signed-off-by: Sage Weil <sage@redhat.com>
2014-10-12 10:05:51 -07:00
Sage Weil
809ddd2936 osdc/Objecter: fix use-after-frees in close_session, shutdown
For,  linger ops, _session_linger_op_remove invalidates our iterator; add
it to the list first.  Same goes for the others.

Signed-off-by: Sage Weil <sage@redhat.com>
2014-10-10 16:48:14 -07:00
Sage Weil
72a2ab138b osdc/Objecter: fix tick() session locking
We need to take the session read lock before traversing the ops lists.

Fixes: #9706
Signed-off-by: Sage Weil <sage@redhat.com>
2014-10-10 16:36:40 -07:00
Samuel Just
d458b4f0f3 PGLog::IndexedLog::trim(): rollback_info_trimmed_to_riter may be log.rend()
Fixes: #9731
Backport: giant, firefly
Signed-off-by: Samuel Just <sam.just@inktank.com>
2014-10-10 13:55:42 -07:00
Samuel Just
bd61ee001b Merge pull request #2684 from ceph/wip-9696
PG::choose_acting: in mixed cluster case, acting may include backfill

Reviewed-by: Sage Weil <sage@redhat.com>
2014-10-10 10:32:15 -07:00
Gregory Farnum
75fc54bf9e Merge pull request #2693 from ceph/giant-unused-variable
Giant unused variable
2014-10-10 06:59:22 -07:00
Yan, Zheng
459b2d245e mds: Locker: remove unused variable
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2014-10-10 21:57:53 +08:00
Yan, Zheng
33d2c735ef Merge pull request #2679 from ceph/giant-locker-null
mds: Locker: fix a NULL deref in _update_cap_fields
2014-10-10 09:37:28 +08:00
Samuel Just
9b18d99817 PG::choose_acting: in mixed cluster case, acting may include backfill
Fixes: 9696
Backport: firefly, giant
Introduced: 92cfd37039
Signed-off-by: Samuel Just <sam.just@inktank.com>
2014-10-09 16:21:25 -07:00
Greg Farnum
3cd8a7fb96 mds: Locker: fix a NULL deref in _update_cap_fields
The MClientCaps* is allowed to be NULL, so we can't deref it unless
the dirty param is non-zero. So don't do the ahead-of-time lookup;
just call it explicitly in the if block.

Signed-off-by: Greg Farnum <greg@inktank.com>
2014-10-09 15:12:19 -07:00
Samuel Just
3bfb5fab41 Merge pull request #2616 from guangyy/wip-giant-9614
PG::actingset should be used when checking the number of acting OSDs for a given PG.

Backport: firefly
Reviewed-by: Samuel Just <sam.just@inktank.com>
2014-10-08 11:08:35 -07:00
Samuel Just
e0d37c55a3 Merge pull request #2663 from ceph/wip-9496
mon: PGMonitor: populate scrub timestamps with 'now' on pg creation

Reviewed-by: Samuel Just <sam.just@inktank.com>
2014-10-08 11:07:06 -07:00
Samuel Just
4a5af13912 Merge pull request #2650 from ceph/wip-9128
Add reset_tp_timeout in long loop in add_source_info for suicide timeout

Reviewed-by: Samuel Just <sam.just@inktank.com>
2014-10-08 11:04:42 -07:00
Samuel Just
e684abcb3f Merge pull request #2543 from ceph/wip-9419
Wip 9419

Reviewed-by: Samuel Just <sam.just@inktank.com>
2014-10-08 11:01:26 -07:00
Loic Dachary
66eb04664f Merge pull request #2661 from dachary/wip-9677-ioprio-class-giant
common: ceph_ioprio_string_to_class always returns -EINVAL
2014-10-08 08:44:08 +02:00
Joao Eduardo Luis
0dd3afd87e mon: PGMonitor: populate scrub timestamps with 'now' on pg creation
Fixes: #9496

Signed-off-by: Joao Eduardo Luis <joao@redhat.com>
2014-10-08 00:13:49 +01:00
Joao Eduardo Luis
ccdbfb441a mon: PGMonitor: prettify access to pg_stats_t in register_pg
Signed-off-by: Joao Eduardo Luis <joao@redhat.com>
2014-10-08 00:12:29 +01:00
Sage Weil
60de42c296 Merge pull request #2660 from athanatos/wip-9203
test/osd/Object: don't generate length of 0

Reviewed-by: Sage Weil <sage@redhat.com>
2014-10-07 14:08:39 -07:00
Sage Weil
ae5d294902 Merge pull request #2659 from athanatos/wip-9113
Wip 9113

Reviewed-by: Sage Weil <sage@redhat.com>
2014-10-07 14:06:38 -07:00
Sage Weil
ef006aeb1a Merge pull request #2658 from athanatos/wip-9625
PG: release backfill reservations if a backfill peer rejects

Reviewed-by: Sage Weil <sage@redhat.com>
2014-10-07 14:03:55 -07:00
David Zafman
9b39033f2b osd: Return EOPNOTSUPP if a set-alloc-hint occurs with OSDs that don't support
Add CEPH_FEATURE_OSD_SET_ALLOC_HINT feature bit
Collect the intersection of all peer feature bits during peering
When handling CEPH_OSD_OP_SETALLOCHINT check that all OSDs support it
by checking for CEPH_FEATURE_OSD_SET_ALLOC_HINT feature bit.

Fixes: #9419
Backport: firefly

Signed-off-by: David Zafman <dzafman@redhat.com>
2014-10-07 14:01:04 -07:00
David Zafman
70ef4c11cb osd: Remove unused PG functions queue_notify(), queue_info(), queue_log()
Signed-off-by: David Zafman <dzafman@redhat.com>
2014-10-07 14:01:04 -07:00
Sage Weil
f91188e013 v0.86
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.11 (GNU/Linux)
 
 iQIcBAABAgAGBQJUM+iVAAoJEH6/3V0X7TFt2twP+wSdzthj36mTpv7Q1THNEFix
 /D8q69gHhDNGFLXT9xvd11IDJlD+Nhhl0SNbK40WDRRIlcgUxv7RXfw6CEVz9CTe
 9ELV6m9jjtA3VyogygKOsC5p9zwQ1lvh8Fq2K/vPBpQ7UcKSdg+5mBD5hiraAvsz
 /VnXxMYOIaMDAWyWURR2PefwKjepiBIcyJQeD+gANfneYjNhq9UiH2OvO8RcyMjA
 gAzgnnq1bPfjJ5VY2CTrynPy36yHgwMVbAuhcDTRv0NR9Qpdj6bqdHD4wbidz0Cj
 wmCMVRmAqQh0fQJOoOJZpKWwX+FiUesz84bINX4oZYS4PyjMLFnvsX8HZUqPf8+L
 m02j+zy58nfMAUTS7FHJiBOpp5Ufg3lEd1nVSUJNJXihWWeHsQ52dTuEf5x4ZanD
 h6H6fBgS8Deeuc8LP3rot7AVsC5j1S3nY3AMb6WAklk9JARVmA94Y3xP0d7LRSBj
 at/l54omBLsg6RKbiUR25d7nJLcfFsqoYAyutsxHcJh8vltJSM2SrZOkB4RQWi6C
 Cl6+uNmMZPrqwPHzHNcRePQcs4LOzgkTzB4Og6gJyvThkGj4cDhWJmXgtvu1XLbv
 +BBKxxKMi7bitxm87qw0YpIFWKmucAkkkXZc3vobBhaY02e1K/lVDdjUhEfNzPxm
 T6LKWQnULtXIJC3lJ6df
 =9IZj
 -----END PGP SIGNATURE-----

Merge tag 'v0.86' into giant

v0.86
2014-10-07 12:34:10 -07:00
Jenkins
d14ca34a1c 0.86 2014-10-07 12:16:58 -07:00
Samuel Just
1d22575cb0 Merge remote-tracking branch 'guangyy/wip-9008' into giant 2014-10-07 11:42:14 -07:00
Sage Weil
887652f66c Merge pull request #2631 from ceph/wip-rwtimer
DNM: osdc/Objecter: use SafeTimer; make callbacks race-tolerant

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2014-10-07 11:41:11 -07:00
Loic Dachary
7c4e278a1e common: ceph_ioprio_string_to_class always returns -EINVAL
The l string is always empty because std::transform needs a
pre-allocated string. Replace with the in-place version. Add unit tests.

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

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
(cherry picked from commit 3535b7aba3)
2014-10-07 20:30:26 +02:00
Loic Dachary
822b088e42 osd: log error if set_ioprio fails to parse class
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
(cherry picked from commit 5088e0d493)
2014-10-07 20:30:17 +02:00
Loic Dachary
efb23b86c6 common: set_ioprio debug message including pid
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
(cherry picked from commit 33339c7754)
2014-10-07 20:30:07 +02:00
Loic Dachary
62f0ef406a common: do not set ioprio if pid is not set
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
(cherry picked from commit c7e4c0bfe7)
2014-10-07 20:29:55 +02:00
Loic Dachary
19c92d86fd doc: missing osd prefix to ioprio config options
http://tracker.ceph.com/issues/9676 Fixes: #9676

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
(cherry picked from commit 62235688c4)
2014-10-07 20:29:41 +02:00
João Eduardo Luís
6b692b9fd8 Merge pull request #2655 from ceph/wip-9635
mon: fix async write completion waits

Fixes: #9635

Reviewed-by: Joao Eduardo Luis <joao@redhat.com>
2014-10-07 15:54:50 +00:00
Sage Weil
2ac2a96898 Merge pull request #2560 from ceph/wip-9418
mon: add new profiles & audit cap checks

Reviewed-by: Sage Weil <sage@redhat.com>
2014-10-07 06:32:53 -07:00
Jenkins
97dcc0539d 0.86 2014-10-07 06:20:21 -07:00
Sandon Van Ness
32e8bcda49 Run configure without liblttng on squeeze as well.
Signed-off-by: Sandon Van Ness <sandon@inktank.com>
2014-10-07 06:04:39 -07:00