Commit Graph

36366 Commits

Author SHA1 Message Date
Sage Weil
188370a943 doc/release-notes: fix attributions for 8702 fix
Oops!

Signed-off-by: Sage Weil <sage@redhat.com>
2014-10-01 18:01:51 -07:00
Sage Weil
c0dc3a5697 doc/release-notes: v0.80.6
Signed-off-by: Sage Weil <sage@redhat.com>
2014-10-01 17:48:49 -07:00
Sage Weil
73d7be0da5 Merge pull request #2623 from ceph/wip-coverity-20141002
build and coverity fixes

Reviewed-by: Sage Weil <sage@redhat.com>
2014-10-01 16:20:09 -07:00
Sage Weil
b3e2e1ed05 Merge pull request #2622 from dachary/wip-osd-pool-ls
qa: fix osd pool ls invalid test
2014-10-01 16:18:36 -07:00
Sage Weil
2f2f8c48a9 Merge pull request #2621 from ceph/wip-objecter-shutdown
Fix Objecter shutdown races with message handling

Reviewed-by: Sage Weil <sage@redhat.com>
2014-10-01 16:14:07 -07:00
Loic Dachary
29356d8765 qa: fix osd pool ls invalid test
expect_false does not extend past the pipe and fails because the command
succeeds

introduced in f05c977bbc

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
2014-10-01 23:41:09 +02:00
Samuel Just
a1aa06b7fb ReplicatedPG: dump snap_trimq on pg query
Signed-off-by: Samuel Just <sam.just@inktank.com>
2014-10-01 14:31:19 -07:00
Samuel Just
34f38b68d8 ReplicatedPG: do not queue the snap trimmer constantly
Previously, we continuously requeued the snap trimmer while in
TrimmingObjects.  This is not a good idea now that we try to
limit the number of snap trimming repops in flight and requeue
the snap trimmer directly as those repops complete.

Fixes: #9113
Backport: giant, dumpling, firefly
Signed-off-by: Samuel Just <sam.just@inktank.com>
2014-10-01 14:31:18 -07:00
Samuel Just
b29bf00f68 ReplicatedPG: clean out completed trimmed objects as we go
Also, explicitely maintain a max number of concurrently trimming
objects.

Fixes: 9113
Backport: dumpling, firefly, giant
Signed-off-by: Samuel Just <sam.just@inktank.com>
2014-10-01 14:31:16 -07:00
Danny Al-Gaaf
3374a0b227 BtrfsFileStoreBackend.cc: fix string overflow
Use strncpy() instead of strcpy and make sure the result
is '\0' terminated.

Fix for:

CID 1063700 (#1 of 1): Copy into fixed size buffer (STRING_OVERFLOW)
 fixed_size_dest: You might overrun the 4088 byte fixed-size string
 vol_args.name by copying the return value of c_str without checking
 the length.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-10-01 23:08:15 +02:00
Danny Al-Gaaf
8b7fc61c44 test_librbd.cc: fix compiler warning, cast to size_t
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-10-01 23:07:36 +02:00
Josh Durgin
e506f896a9 Objecter: check the 'initialized' atomic_t safely
shutdown() resets initialized to 0, but we can still receive messages
after this point, so fix message handlers to skip messages in this
case instead of asserting.

Also read initialized while holding Objecter::rwlock to avoid races
where e.g. handle_osd_map() checks initialized -> 1, continues,
shutdown() is called, sets initialized to 0, then handle_osd_map()
goes about its business and calls op_submit(), which would fail the
assert(initialized.read()) check. Similar races existed in other
message handlers which change Objecter state.

The Objecter is not destroyed until after its Messenger in
the MDS, OSD, and librados, so this should be safe.

Fixes: #9617
Backport: giant
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2014-10-01 14:05:17 -07:00
Samuel Just
b1ca1f23ff Merge pull request #2525 from ceph/wip-9487
RFC: initialize purged_snaps on backfill

Reviewed-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@redhat.com>
2014-10-01 13:45:27 -07:00
Sage Weil
7aacccd0bb Merge pull request #2620 from ceph/revert-2604-wip-9113
Revert "ReplicatedPG: clean out completed trimmed objects as we go"
2014-10-01 13:23:21 -07:00
Samuel Just
0f731ae580 Revert "ReplicatedPG: clean out completed trimmed objects as we go" 2014-10-01 13:18:46 -07:00
Sage Weil
fea0154841 mon: break recovery status onto separate lines
This affects both the 'health' and 'pgmap' sections of 'ceph status'
output.

Signed-off-by: Sage Weil <sage@redhat.com>
2014-10-01 13:05:57 -07:00
Sage Weil
46a76d513f mon: put 'ceph status' quorum status on new line
Signed-off-by: Sage Weil <sage@redhat.com>
2014-10-01 13:02:23 -07:00
Sage Weil
e127c8982e mon: put 'ceph status' health items on separate lines
This makes it *way* easier to read.

Signed-off-by: Sage Weil <sage@redhat.com>
2014-10-01 13:01:50 -07:00
Josh Durgin
ea434804b1 Merge pull request #2619 from ceph/wip-8187
librbd: Skip tier pools in list_children and snap_unprotect

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2014-10-01 12:53:53 -07:00
Sage Weil
da9ae5c92e ceph.spec: fix typo
Signed-off-by: Sage Weil <sage@redhat.com>
2014-10-01 12:33:38 -07:00
Sage Weil
b1d5dc6bc4 Merge pull request #2614 from ceph/wip-rpm-epoch
rpm: set epoch 1 to match fedora

Reviewed-by: Boris Ranto <branto@redhat.com>
2014-10-01 12:23:44 -07:00
Adam Crume
63b30d4877 librbd: Skip tier pools in list_children and snap_unprotect
Fixes: #8187
Signed-off-by: Adam Crume <adamcrume@gmail.com>
2014-10-01 11:31:33 -07:00
Yehuda Sadeh
f26ba0461e Merge branch 'wip-9013' into giant 2014-10-01 10:28:38 -07:00
Yehuda Sadeh
63d0ec7b2c rgw: add civetweb as a default frontend
Fixes: #9013
Originally the configurable was empty, now setting explicitly both
fastcgi and civetweb (on port 7480).

Reviewed-by: Sage Weil <sage@redhat.com>
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2014-10-01 10:27:51 -07:00
Sage Weil
c79b53c238 Merge pull request #2552 from ceph/wip-8188
librados: Add rados_pool_get_tiers call

Reviewed-by: Sage Weil <sage@redhat.com>
2014-10-01 09:52:47 -07:00
Adam Crume
d8ae14f489 librados: Add rados_pool_get_base_tier call
Fixes: #8188
Signed-off-by: Adam Crume <adamcrume@gmail.com>
2014-10-01 09:40:34 -07:00
Sage Weil
f5fa685267 Merge pull request #2618 from ceph/wip-coverity-20141001
Fixes for Coverity issues

Reviewed-by: Sage Weil <sage@redhat.com>
2014-10-01 09:23:01 -07:00
João Eduardo Luís
46166eefe6 Merge pull request #2452 from ceph/wip-pool-ls
mon: add 'osd pool ls [detail]' command

Reviewed-by: Joao Eduardo Luis <joao@redhat.com>
2014-10-01 16:22:42 +00:00
Danny Al-Gaaf
5b58f16544 test_librbd.cc: fix compiler warning
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-10-01 17:05:32 +02:00
Danny Al-Gaaf
58c732f3e5 client/SyntheticClient.cc: remove dead code
Fix for:

const: At condition do_sync, the value of do_sync must be equal to 0.
dead_error_condition: The condition do_sync cannot be true.
CID 716893 (#1 of 1): Logically dead code (DEADCODE)
dead_error_begin: Execution cannot reach this statement op.OSDOp()

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-10-01 17:05:01 +02:00
Wido den Hollander
3184a20733 doc: A couple of fixes to the CloudStack documentation 2014-10-01 17:02:29 +02:00
Danny Al-Gaaf
88022e8221 SyntheticClient.cc: remove dead code
Fix for coverity issue:

const: At condition unsafe > 0, the value of unsafe must be equal to 0.
dead_error_condition: The condition unsafe > 0 cannot be true.

CID 716892 (#1 of 1): Logically dead code (DEADCODE)
dead_error_begin: Execution cannot reach this statement

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-10-01 16:03:34 +02:00
Danny Al-Gaaf
17fa397b36 LogEntry.h: init LogEntry::prio in constructor
CID 1240202 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
 uninit_member: Non-static class member prio is not initialized
 in this constructor nor in any functions that it calls.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-10-01 16:03:28 +02:00
Sage Weil
7d6e21d8d1 osd: fix need_journal call
From 2955b3da4e

Signed-off-by: Sage Weil <sage@redhat.com>
2014-10-01 06:34:20 -07:00
Sage Weil
2b441e5a0b Merge pull request #2607 from yuyuyu101/wip-9580
ObjectStore: Add "need_journal" interface to make aware of journal devic...

Reviewed-by: Sage Weil <sage@redhat.com>
2014-10-01 06:11:10 -07:00
Sage Weil
ee194c2a31 Merge pull request #2608 from yuyuyu101/pipe-iovec
Pipe: avoid redundancy new/delete for struct iovec

Reviewed-by: Sage Weil <sage@redhat.com>
2014-10-01 06:10:24 -07:00
Sage Weil
8388836208 ceph.spec.: add epoch
This is done in fedora packaging.  Do it here too so that you can move
between upstream packages (from ceph.com) and fedora and other derivatives
will builds.

Backport: firefly, dumpling
Signed-off-by: Sage Weil <sage@redhat.com>
2014-10-01 06:02:02 -07:00
Sage Weil
17544a460a Merge pull request #2615 from ceph/wip-fsls-json
mon: fix JSON `fs ls` output

Reviewed-by: Sage Weil <sage@redhat.com>
2014-10-01 05:54:45 -07:00
John Spray
a470c96e6b mon: fix JSON fs ls output
A missing list terminator was causing unparseable output.

Signed-off-by: John Spray <john.spray@redhat.com>
2014-10-01 12:09:16 +01:00
Haomai Wang
2955b3da4e ObjectStore: Add "need_journal" interface to make aware of journal device
Impl feature #9580

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
2014-10-01 10:40:09 +08:00
Haomai Wang
05fd5077dd Pipe: avoid redundancy new/delete for struct iovec
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
2014-10-01 10:36:21 +08:00
Josh Durgin
fd5af13949 Merge pull request #2564 from ceph/wip-8587
rgw: subuser creation fixes

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2014-09-30 17:24:02 -07:00
Sage Weil
cefb1a35ca mon: wait for paxos writes before touching state
Fix two other paths where may change the mon state so that we wait for the
pending write first.  start_election() in particular can be triggered at
almost any time if we see an election message from another mon.

Signed-off-by: Sage Weil <sage@redhat.com>
2014-09-30 17:19:37 -07:00
Sage Weil
46c1d93653 mon: flush paxos write before setting shutdown state
Paxos::commit_finish() makes assertions about our state (writing |
writing-previous).

Fixes: #9635
Signed-off-by: Sage Weil <sage@redhat.com>
2014-09-30 17:19:35 -07:00
Sage Weil
4072ef782e mon: move paxos write wait into a helper
Avoid duplicated code.

Signed-off-by: Sage Weil <sage@redhat.com>
2014-09-30 17:15:25 -07:00
Sage Weil
544d8255c9 Merge pull request #2613 from ceph/wip-8822
osd: swap state spinlock for atomic_t

Reviewed-by: Samuel Just <sam.just@inktank.com>
2014-09-30 14:45:27 -07:00
Samuel Just
624aaf2a4e PG: release backfill reservations if a backfill peer rejects
Also, the full peer will wait until the rejection from the primary
to do a state transition.

Fixes: #9626
Backport: giant, firefly, dumpling
Signed-off-by: Samuel Just <sam.just@inktank.com>
2014-09-30 14:15:34 -07:00
Sage Weil
62e2bca8d8 osd: swap state spinlock for atomic_t
We are hitting a strange issue with valgrind and pthread spinlocks. Avoid
the issue by using an atomic_t here (which is simpler anyway).

Avoids: #8822
Backport: firefly
Signed-off-by: Sage Weil <sage@redhat.com>
2014-09-30 11:56:30 -07:00
Gregory Farnum
e30969b19e Merge pull request #2612 from ceph/wip-9562-backport
osdc/Filer: drop probe/purge locks before calling objecter

Reviewed-by: Greg Farnum <greg@inktank.com>
2014-09-30 10:49:05 -07:00
John Spray
a8ac4b62a5 osdc/Filer: drop probe/purge locks before calling objecter
Fixes: #9562

Signed-off-by: John Spray <john.spray@redhat.com>
(cherry picked from commit 8dc94a2d8c)
2014-09-30 18:46:25 +01:00