Commit Graph

35830 Commits

Author SHA1 Message Date
John Wilkins
8569b93cba doc: Updated Keyring settings from comments and ceph-deploy defaults.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-09-02 11:37:33 -07:00
Loic Dachary
9c98d555c4 Merge pull request #2372 from dachary/wip-disk-thread-ioprio
documentation: document disk thread ioprio options

Reviewed-by: Volker Voigt <volker.voigt@1und1.de>
2014-09-02 19:18:35 +02:00
Loic Dachary
b6a97d83da documentation: disk thread ioprio options
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
2014-09-02 19:08:00 +02:00
Danny Al-Gaaf
6ec08e06bc client/Client.cc: fix null pointer checks for 'in'
Cleanup checks for null pointer dereference of 'in' use a
wider code block the cover 'in'.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-09-02 15:15:04 +02:00
John Spray
c8d2388060 mon: add MDS metric metadata to health detail
This is a bit wonky because the mon health structure expects
a string, and we have a key-val structure, but it's better
to output this somehow than to have it rot as a purely internal
thing.

Signed-off-by: John Spray <john.spray@redhat.com>
2014-09-02 14:06:25 +01:00
John Spray
9ee801524f mds: add thread to progress queues outside dispatch
This speeds up processing of queued waiters.

Fixes: #9252

Signed-off-by: John Spray <john.spray@redhat.com>
2014-09-02 14:06:25 +01:00
John Spray
1058a9e18a mon: handle beacon health metrics in MDSMonitor
Fixes: #9151

Signed-off-by: John Spray <john.spray@redhat.com>
2014-09-02 14:06:25 +01:00
John Spray
0fc8a0da1a mds: populate health metrics in beacon
Signed-off-by: John Spray <john.spray@redhat.com>
2014-09-02 14:06:25 +01:00
John Spray
12ab937a71 messages: add health fields to MMDSBeacon
Signed-off-by: John Spray <john.spray@redhat.com>
2014-09-02 14:06:25 +01:00
John Spray
f5e7a4be4a mds: use HeartbeatMap to control beacons
...so that if something hogs mds_lock without
pinging the heartbeat map, we will stop sending
beacons to the mon and it will have the chance
to recognise that we are laggy.

Signed-off-by: John Spray <john.spray@redhat.com>
2014-09-02 14:06:25 +01:00
John Spray
681f4f8bd1 mds: const getters in MDLog
Signed-off-by: John Spray <john.spray@redhat.com>
2014-09-02 14:06:24 +01:00
John Spray
124856ab58 include/CompatSet: more const-ness
Signed-off-by: John Spray <john.spray@redhat.com>
2014-09-02 14:06:24 +01:00
John Spray
232757f45e mds: promote Beacon to be a Dispatcher
This allows it to handle its own MSG_MDS_BEACON
messages from the mon, outside of mds_lock.

This is less important than the sending of beacons
being outside the lock, but still nice to have and
gets all the beacon messaging in one place.

Signed-off-by: John Spray <john.spray@redhat.com>
2014-09-02 14:06:24 +01:00
John Spray
17d547ed3e mds: extract beacon state from MDS lock
For clarity, give it its own class for the
state protected by the separate lock too.

Fixes: #9152

Signed-off-by: John Spray <john.spray@redhat.com>
2014-09-02 14:06:24 +01:00
John Spray
e69f3214d1 include/CompatSet: make merge const()
With usual shenanigans to deal with [] on map
not being const-safe.

Signed-off-by: John Spray <john.spray@redhat.com>
2014-09-02 14:06:24 +01:00
Danny Al-Gaaf
46c94e9561 mds/CInode.h: prefer ++operator for non-primitive iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-09-02 14:56:47 +02:00
Danny Al-Gaaf
a5468abe44 ceph_objectstore_tool.cc: prefer ++operator for non-primitive iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-09-02 14:56:10 +02:00
John Spray
4d9927e048 mds: cap and lease count in session ls asok
Signed-off-by: John Spray <john.spray@redhat.com>
2014-09-02 13:18:39 +01:00
John Spray
ea2a8d0415 mds: Fix Session::get_request_count
Signed-off-by: John Spray <john.spray@redhat.com>
2014-09-02 13:18:19 +01:00
Danny Al-Gaaf
15df8ac4f3 rbd_replay/Replayer.cc: pass const string parameter by reference
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-09-02 14:15:21 +02:00
Danny Al-Gaaf
9d926f1eea ReplicatedPG.cc: prefer ++operator for non-primitive iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-09-02 14:03:51 +02:00
Danny Al-Gaaf
dae0593839 IndexManager.cc: prefer ++operator for non-primitive iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-09-02 14:03:03 +02:00
Danny Al-Gaaf
40189a2891 PGMonitor.cc: prefer empty() over size() for emptiness check
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-09-02 13:57:23 +02:00
Danny Al-Gaaf
99fc33f9df ErasureCodeLrc.cc: prefer ++operator for non-primitive iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-09-02 13:53:52 +02:00
Danny Al-Gaaf
2dcfe0fec3 ErasureCodePlugin.cc: prefer ++operator for non-primitive iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-09-02 13:49:32 +02:00
Danny Al-Gaaf
a754ce517b ErasureCodeLrc.cc: fix -Wmaybe-uninitialized compiler warning
Init 'n' with 0 to prevent uninitialized integer.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-09-02 13:42:49 +02:00
Danny Al-Gaaf
0d27bcc534 osd/ReplicatedPG.cc: fix resource leak
CID 1204294 (#1 of 1): Resource leak (RESOURCE_LEAK)
 leaked_storage: Variable filter going out of scope leaks the
 storage it points to.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-09-02 13:22:08 +02:00
Danny Al-Gaaf
38e6c64aee test_rgw_admin_log.cc: remove unused variables
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-09-02 13:22:08 +02:00
Danny Al-Gaaf
473b33b0c9 osdc/ObjectCacher.cc: refer ++operator for non-primitive iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-09-02 13:22:07 +02:00
Danny Al-Gaaf
16cbababfc osd/PGLog.h: prefer ++operator for non-primitive iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-09-02 13:22:07 +02:00
Swami Reddy
8f368c51b0 mailmap: Ashish Chandra affiliation
Signed-off-by: M Ranga Swami Reddy <swamireddy@gmail.com>
2014-09-02 06:22:08 +05:30
Swami Reddy
5fd50c99da mailmap: Boris Ranto affiliation
Signed-off-by: M Ranga Swami Reddy <swamireddy@gmail.com>
2014-09-02 06:04:31 +05:30
Loic Dachary
3215c520e1 Merge pull request #2366 from dachary/wip-mailmap
mailmap: add .peoplemap

Reviewed-by: M Ranga Swami Reddy <swamireddy@gmail.com>
2014-09-01 11:24:12 +02:00
Loic Dachary
5554c7e7d2 Merge pull request #2370 from ceph/wip-9309
lockdep: increase max locks (1000 -> 2000)

Reviewed-by: Loic Dachary <loic-201408@dachary.org>
2014-09-01 10:14:57 +02:00
Sage Weil
a5b4c58316 lockdep: increase max locks (1000 -> 2000)
We hit the 1000 lock limit on

 ubuntu@teuthology:/a/teuthology-2014-08-31_02:30:01-rados-next-testing-basic-multi/463411

Fixes: #9309
Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-31 17:46:33 -07:00
Sage Weil
41914ec3a4 Merge pull request #2369 from dachary/wip-mark-unfound-lost
documentation: add the mark_unfound_lost delete option

Reviewed-by: Sage Weil <sage@redhat.com>
2014-08-31 17:32:42 -07:00
Sage Weil
89ca4f6fc3 Merge pull request #2368 from dachary/wip-pg-const
osd: MissingLoc::get_all_missing is const

Reviewed-by: Sage Weil <sage@redhat.com>
2014-08-31 17:31:19 -07:00
Sage Weil
bf0a76ff4b Merge pull request #2367 from dachary/wip-early-fail
tests: qa/workunits/cephtool/test.sh early fail

Reviewed-by: Sage Weil <sage@redhat.com>
2014-08-31 17:30:35 -07:00
Loic Dachary
9fac072380 documentation: add the mark_unfound_lost delete option
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
2014-09-01 00:42:19 +02:00
Loic Dachary
bec30324b1 osd: MissingLoc::get_all_missing is const
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
2014-08-31 23:01:48 +02:00
Loic Dachary
e13ddc7dae tests: qa/workunits/cephtool/test.sh early fail
Add tests to fail as soon as an unexpected condition is met in
test_mon_osd. Otherwise the actual error will be more difficult find in
the logs.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
2014-08-31 22:59:04 +02:00
Loic Dachary
fc499aa541 mailmap: add .peoplemap
In .mailmap, an individual may be represented by multiple mails which
may reflect an organization affiliation change that needs to be
preserved to find out which organization sponsored which commit.

The .peoplemap file aggregates these mails to show a single line for
each person

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
2014-08-31 22:08:56 +02:00
Loic Dachary
fb79062fb4 Merge pull request #2358 from dachary/wip-lrc
rename LRC to lrc + preload

Reviewed-by: Sage Weil <sage@redhat.com>
2014-08-31 12:52:43 +02:00
Loic Dachary
177202e4df erasure-code: lowercase LRC plugin name
So that all erasure code plugins are lowercase.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
2014-08-31 12:51:03 +02:00
Sage Weil
4c9fdbf648 common/LogEntry: fix warning on x86_64
Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-30 22:39:04 -07:00
Sage Weil
a24c8bac2b common/LogEntry: fix warning on i386
common/LogEntry.cc: In member function 'void LogEntry::log_to_syslog(std::string, std::string)':
warning: common/LogEntry.cc:161:20: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'uint64_t {aka long long unsigned int}' [-Wformat=]
msg.c_str());
^

Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-30 21:56:31 -07:00
Sage Weil
fa45ed8190 osd/ReplicatedPG: do not evict blocked objects
If the object is blocked, that means we are either still promoting it, or
we are in the process of doing a blocking flush.  In both cases, do not
evict it just yet.  For the promotion case in particular this can cause a
very long op delay because we'll have to restart the promotion, and this
can potentially loop indefinitely.

For the flush case, flushes are generally only blocking when the user
explicitly requests it.  In that case, we are not particularly concerned
that we may delay the objects eventual eviction as the user is probably
controlling that anyway (and even if they aren't, the agent will still
try this object again later).

Fixes: #9285
Reported-by: Wang, Zhiqiang <zhiqiang.wang@intel.com>
Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-29 19:27:34 -07:00
Sage Weil
ded1cf4a93 osd/ReplicatedPG: avoid dereferencing iterator at end()
The preceding loop could terminate with p == snapset.clones.end(), which
we assign to dnewest.  We can't dereference the iterator in that case.

For example:

 start_flush ffe627f3/foo/a/test-rados-api-plana05-22080-18/83 v430'42 uv130 blocking
  snapset b=[b,a]:[a,b]+head
 start_flush no older clones

prev_snapc will be 0, oi.snaps will be [a], p will end up at end(), get
assigned to dnewest, and we'll dereference.  It's only sometime harmful
though because we may still take the right (else) branch...

Fixes: #9294
Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-29 19:16:56 -07:00
Sage Weil
bb26c66b82 Merge pull request #2360 from ceph/wip-9281
tools: use cout instead of cerr in journal tool

Reviewed-by: Sage Weil <sage@redhat.com>
2014-08-29 17:46:26 -07:00
Loic Dachary
d20432ecc0 erasure-code: preload LRC plugin
Add LRC to the list of erasure code plugins preloaded by default.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
2014-08-30 02:12:47 +02:00