John Spray
b9c0ce4f4a
osdc/Objecter: don't consume non-osd cmd replies
...
...so that Client can get command replies from MDSs.
Signed-off-by: John Spray <john.spray@redhat.com>
2014-10-08 11:58:19 +01:00
John Spray
e8f3f6b91c
mds: introduce MDS auth caps
...
Signed-off-by: John Spray <john.spray@redhat.com>
2014-10-08 11:58:19 +01:00
John Spray
fad2865f96
mds: handle MCommand (mds tell)
...
Separate path to legacy MMonCommand, because MCommand
from the CLI sends JSON-style commands.
Signed-off-by: John Spray <john.spray@redhat.com>
2014-10-08 11:58:19 +01:00
John Spray
5e7cb60827
mds: deprecation-warn on numeric mds names
...
To be turned into strict check in post-hammer
release, so that we can always unambiguously
discriminate a string into one of name, rank, gid.
Signed-off-by: John Spray <john.spray@redhat.com>
2014-10-08 11:58:19 +01:00
John Spray
9552e8fc44
common: fix cmd_getval constness
...
...so that one can pass in a const cmdmap.
Signed-off-by: John Spray <john.spray@redhat.com>
2014-10-08 11:58:19 +01:00
John Spray
9610029d3e
messages: fix constness in MCommand constructor
...
Signed-off-by: John Spray <john.spray@redhat.com>
2014-10-08 11:58:19 +01:00
John Spray
f93bf3853f
mds: typedefs for rank and gid in MDSMap
...
Make it clearer what these numbers are where they appear.
Signed-off-by: John Spray <john.spray@redhat.com>
2014-10-08 11:58:18 +01:00
Loic Dachary
da074f02cd
Merge pull request #2668 from theanalyst/fix/mailmap-again
...
Fix/mailmap again
Reviewed-by: Loic Dachary <loic-201408@dachary.org>
2014-10-08 12:11:02 +02:00
Abhishek Lekshmanan
90ca5e3c68
mailmap: João Eduardo Luís name normalization
...
Reported-by: Loic Dachary <loic@dachary.org>
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
2014-10-08 15:10:09 +05:30
Abhishek Lekshmanan
c967ced78d
mailmap: Yongyue sun affiliation
...
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
2014-10-08 15:10:09 +05:30
Abhishek Lekshmanan
8149ac6328
mailmap: Andreas Peters name normalization
...
Reported-by: Loic Dachary <loic@dachary.org>
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
2014-10-08 15:10:09 +05:30
Loic Dachary
8be3446e86
Merge pull request #2665 from yuyuyu101/update-mailmap
...
mailmap: add yuandong to organizationmap
Reviewed-by: Loic Dachary <loic-201408@dachary.org>
2014-10-08 10:18:54 +02:00
Loic Dachary
64ca744313
doc: update memory-profiling with examples
...
* Update the ceph tell from ceph daemon tell id to the new
ceph tell deamon.id form
* Add usages examples for easier copy / paste
* Add MON to the list of daemons that can be profiled
* Document CEPH_HEAP_PROFILER_INIT=true
* Remove trailing empty lines
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
2014-10-08 09:47:54 +02:00
Loic Dachary
6f6e7e2553
mon,mds: call ceph_heap_profiler_init() at boot time
...
So that the CEPH_HEAP_PROFILER_INIT environment variable can be used to
start profiling.
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
2014-10-08 09:47:54 +02:00
Loic Dachary
472a4b32ae
perfglue: profiler stats need more than 1024 bytes
...
With a 1024 bytes buffer to display the stats, the end is truncated.
Use an array on the stack instead of leaking the buffer.
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
2014-10-08 09:47:50 +02:00
Haomai Wang
cb36ccbbac
mailmap: add yuandong to organizationmap
...
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
2014-10-08 15:23:47 +08:00
Loic Dachary
bc0209e720
test,tools: indentation, whitespace only
...
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
2014-10-08 09:03:14 +02:00
Loic Dachary
3677fe0f5c
tools: allow_unregistered() options
...
So that --debug-mon etc. can be parsed afterwards.
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
2014-10-08 09:03:14 +02:00
Loic Dachary
29b3771698
tools: move po::collect_unrecognized in the try block
...
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
2014-10-08 09:03:14 +02:00
Loic Dachary
8e5b7acad1
tools: display boost::program_options errors
...
Instead of silently discarding them. Do not display the usage on error
as it will probably hide the error message that shows before it.
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
2014-10-08 08:59:15 +02:00
Loic Dachary
0100c9cfd2
test: catch boost::program_options errors
...
And display it before returning on error.
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
2014-10-08 08:59:15 +02:00
Loic Dachary
b085fd8dbf
test,tools: capture boost::program_options in a try
...
When something fails boost::program_options throws an exception that
needs to be caught.
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
2014-10-08 08:59:15 +02: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
Gregory Farnum
1b7fae7b29
Merge pull request #2617 from ceph/wip-9628
...
mds: Add session to sessionmap when its state becomes opening
Reviewed-by: Greg Farnum <greg@inktank.com>
2014-10-07 19:26:20 -07:00
Adam Crume
82175ec94a
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>
2014-10-07 17:45:53 -07: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
1036e9827c
Merge remote-tracking branch 'gh/giant'
...
Conflicts:
src/osdc/Objecter.cc
2014-10-07 12:40:45 -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
Samuel Just
45a201f36f
Merge pull request #2489 from guangyy/wip-9008
...
For pgls OP, get/put budget on per list session basis, instead of per OP basis.
Reviewed-by: Greg Farnum <greg@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
2014-10-07 10:51:21 -07: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
51fd5ac46a
Merge pull request #2654 from dachary/wip-9677-ioprio-class
...
common: ceph_ioprio_string_to_class always returns -EINVAL
Reviewed-by: Sage Weil <sage@redhat.com>
2014-10-07 08:47:44 -07:00
Sage Weil
cba5e1cf1f
Merge pull request #2626 from dachary/wip-rados-empty-file
...
tools: rados put /dev/null should write() and not create()
Reviewed-by: Sage Weil <sage@redhat.com>
2014-10-07 08:13:22 -07:00
Gregory Farnum
c00fe10fb8
Merge pull request #2652 from ceph/wip-msgr
...
msgr: fix remaining direct references to "new SimpleMessenger" by replacing with the factory method
Reorganize the src/msg hierarchy to push SimpleMessenger down into a subfolder to make way for organizing new in-tree implementations.
Reviewed-by: Greg Farnum <greg@inktank.com>
2014-10-07 07:23:54 -07: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
Sage Weil
ffe0a0e796
Merge pull request #2647 from ceph/wip-rm-legacy-cli
...
tools: remove old ceph.cc
Reviewed-by: Loic Dachary <loic@dachary.org>
2014-10-07 06:30:46 -07:00
Sage Weil
47f9600634
Merge pull request #2646 from ceph/wip-osd-op-macro
...
rados.h: use macros to generate osd ops definitons and strings
Reviewed-by: Sage Weil <sage@redhat.com>
2014-10-07 06:27:09 -07:00