Patrick Donnelly
a69d4ec500
messages: fix get_opname return type
...
It cannot be a constexpr.
Introduce-by: 00b867fae2
/ #23623
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-08-17 14:15:18 -07:00
Patrick Donnelly
21c56b7402
Merge PR #23575 into master
...
* refs/pull/23575/head:
tools/cephfs-shell:pep8 code clean
tools/cephfs-shell:resolved removing files using pattern inside sub-directories
tools/cephfs-shell:changed output representation for the commands cwd and ls
tools/cephfs-shell:resolved removing directories using pattern inside sub-directories
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2018-08-17 12:04:42 -07:00
Sage Weil
2b2f0ec6a5
Merge PR #18096 into master
...
* refs/pull/18096/head:
os/bluestore: factor VDO into bluestore's 'allocated' value
os/filestore: estimate omap_allocated
os/ObjectMap: add get_db() accessor
osd/OSDMap: include data, omap in 'osd df' output
os/bluestore: report omap and internal metadata usage
os/bluestore/BlueFS: drop get_fs_usage(); add get_used()
kv: add per-prefix space estimation
osd: decouple statfs update from hb peers, pg count
osd: drop useless OSDService::update_osd_stat()
osd/osd_types: separate accounting for data, omap, and metadata
osd: re-add get_num_pgs()
Reviewed-by: Igor Fedotov <ifedotov@suse.com>
2018-08-17 13:56:22 -05:00
Pavani Rajula
ed1b0c9c95
tools/cephfs-shell:pep8 code clean
...
Signed-off-by: Pavani Rajula <rpavani1998@gmail.com>
2018-08-17 23:37:37 +05:30
Pavani Rajula
05428f4962
tools/cephfs-shell:resolved removing files using pattern inside sub-directories
...
Signed-off-by: Pavani Rajula <rpavani1998@gmail.com>
2018-08-17 23:37:24 +05:30
Pavani Rajula
d5efa9caae
tools/cephfs-shell:changed output representation for the commands cwd and ls
...
Signed-off-by: Pavani Rajula <rpavani1998@gmail.com>
2018-08-17 23:37:05 +05:30
Pavani Rajula
384700acdf
tools/cephfs-shell:resolved removing directories using pattern inside sub-directories
...
Signed-off-by: Pavani Rajula <rpavani1998@gmail.com>
2018-08-17 23:36:52 +05:30
Kefu Chai
00b867fae2
Merge pull request #23623 from tchaikov/wip-inline-constants
...
messages: define HEAD_VERSION and COMPAT_VERSION inlined
Reviewed-by: Zheng Yan <zyan@redhat.com>
Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
2018-08-17 23:07:04 +08:00
Kefu Chai
09d388e97f
messages: define HEAD_VERSION and COMPAT_VERSION inlined
...
otherwise we could have ../lib/libceph-common.so.0: undefined reference
to `MOSDPGNotify::HEAD_VERSION
when the compiler tries to be smart and pass them by reference.
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-08-17 18:59:29 +08:00
Lenz Grimmer
2d7d0d2069
Merge pull request #23419 from tspmelo/fix-26856
...
mgr/dashboard: Add decorator to skip parameter encoding
Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
2018-08-17 11:08:05 +02:00
Lenz Grimmer
39ef941966
Merge pull request #23446 from tspmelo/wip-25075
...
mgr/dashboard: Use human readable units on the sparkline graphs
Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
2018-08-17 11:07:48 +02:00
Lenz Grimmer
ec1c0f89a5
Merge pull request #23388 from ricardoasmarques/wip-fix-auto-logout
...
mgr/dashboard: Fix redirect to login page on session lost
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
2018-08-17 11:04:31 +02:00
Patrick Donnelly
c25ef2a7ee
Merge PR #23468 into master
...
* refs/pull/23468/head:
Allow to unittest shell using transcript
2018-08-16 16:34:23 -07:00
Patrick Donnelly
769a93f4ec
Merge PR #22555 into master
...
* refs/pull/22555/head:
msg: define MFoo::create helper
msg: add msgref cast method
msg: cleanup factory/ref definition in messages
mds: use message factory to avoid leaks
msg: add factory method to correctly construct smart_ptr
mds: remove dead MDS-MDS forwarding code
mds: manage Message lifetime with intrusive_ptr
common: add templated Context factory
msg: add const version of get_payload
msg: use queue of messages for dispatch
msg: dispatch intrusive_ptr Messages
msg: use deque for dispatcher pointers
Reviewed-by: Zheng Yan <zyan@redhat.com>
2018-08-16 16:17:42 -07:00
Patrick Donnelly
acd02343f4
Merge PR #23551 into master
...
* refs/pull/23551/head:
qa: use recent kernel to kernel build testing
Reviewed-by: Sage Weil <sage@redhat.com>
2018-08-16 09:57:27 -07:00
Jason Dillaman
a5302e18ff
Merge pull request #23608 from tchaikov/wip-librbd-test
...
test/librbd: fix -Wsign-compare warnings
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-08-16 12:43:04 -04:00
Patrick Donnelly
f0fe0936e6
qa: use recent kernel to kernel build testing
...
Fixes: http://tracker.ceph.com/issues/24679
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-08-16 09:16:39 -07:00
Patrick Donnelly
f0800a49ed
Merge PR #23597 into master
...
* refs/pull/23597/head:
qa: add cephfs-shell skeleton test case
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2018-08-16 09:14:11 -07:00
Patrick Donnelly
0b5df6e00a
qa: add cephfs-shell skeleton test case
...
Right now just tests that "help" works.
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-08-16 09:13:36 -07:00
Matt Benjamin
d12c72cf4c
Merge pull request #21286 from joke-lee/wip-auth-uri-encode-decode
...
rgw: should recode canonical_uri when caculate s3 v4 auth
2018-08-16 11:58:14 -04:00
Yuri Weinstein
d3385fc6bb
Merge pull request #23533 from wjwithagen/wjw-fix-random_shuffle
...
osd: make random shuffle comply with C++17
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
2018-08-16 08:09:21 -07:00
Yuri Weinstein
dbed62b323
Merge pull request #23547 from yaozongyou/mon-get-rank
...
mon/MonMap: remove duplicate code in get_rank
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Joao Eduardo Luis <joao@suse.de>
2018-08-16 08:06:16 -07:00
Kefu Chai
fa43fc0ca7
test/librbd: fix -Wsign-compare warnings
...
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-08-16 22:53:27 +08:00
Tiago Melo
45e645b770
mgr/dashboard: Add decorator to skip parameter encoding
...
By enconding all parameters of api services we were also encoding parameters
that were being sent in the body of the request.
Those parameters don't need to be enconded and the server never decodes them.
With this new decorator you can specify if you don't want a parameter to be
enconded.
This is a regression introduced in f21d0da5a3
.
Fixes: http://tracker.ceph.com/issues/26856
Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-08-16 15:29:11 +01:00
Tiago Melo
6a8cdcef77
mgr/dashboard: Use human readable units on the sparkline graphs
...
Fixes: http://tracker.ceph.com/issues/25075
Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-08-16 15:00:46 +01:00
Lenz Grimmer
0feccf0ca9
Merge pull request #23445 from ricardoasmarques/wip-rbd-actions-disable
...
mgr/dashboard: Disable RBD actions during task execution
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
2018-08-16 15:55:11 +02:00
Kefu Chai
5a2b1af273
Merge pull request #23485 from javacruft/misc-32bit-fixes
...
build: 32 bit architecture fixes
Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-08-16 20:57:59 +08:00
Kefu Chai
7a25929687
Merge pull request #23581 from JiYou/fix.examples.Makefile
...
examples/Makefile: add -Wno-unused-parameter to avoid compile error
Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-08-16 20:17:13 +08:00
Pavani Rajula
b0358447aa
Allow to unittest shell using transcript
...
Signed-off-by: Pavani Rajula <rpavani1998@gmail.com>
2018-08-16 17:11:20 +05:30
Kefu Chai
d9efc5aa63
Merge pull request #23600 from wjwithagen/wjw-fix-freebsd-manual
...
doc: fix/cleanup freebsd osd disk creation
Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-08-16 18:13:33 +08:00
Willem Jan Withagen
8e4b277367
doc: fix/cleanup osd disk creation
...
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
2018-08-16 11:12:36 +02:00
Yan, Zheng
c0d3e5b3da
msg: define MFoo::create helper
...
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
2018-08-16 16:14:40 +08:00
Ji You
1803671166
examples/Makefile: add -Wno-unused-parameter to avoid compile error
...
Signed-off-by: You Ji <youji@ebay.com>
2018-08-15 18:20:17 -07:00
Sage Weil
04b47939b8
os/bluestore: factor VDO into bluestore's 'allocated' value
...
If we are on VDO, report the *raw* storage we've allocated, as reported
by VDO.
Signed-off-by: Sage Weil <sage@redhat.com>
2018-08-15 17:18:44 -05:00
Sage Weil
186edca81e
os/filestore: estimate omap_allocated
...
Assume all of leveldb/rocksdb is omap. This is an overestimate, but
better than nothing.
We don't populate the metadata overhead (no easy way to calculate this
that comes to mind). And we don't populate the compression-related
fields. It's possible we could make something up here in the VDO
case...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-08-15 17:18:43 -05:00
Sage Weil
6c82e66dde
os/ObjectMap: add get_db() accessor
...
This is just to let us get at the underlying KeyValueDB for DBObjectMap.
It is not really better or worse than adding accessors for things like
GetEstimatedSize() to ObjectMap.
Signed-off-by: Sage Weil <sage@redhat.com>
2018-08-15 17:18:43 -05:00
Sage Weil
13295a3883
osd/OSDMap: include data, omap in 'osd df' output
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-08-15 17:18:43 -05:00
Sage Weil
fc5561ed6e
os/bluestore: report omap and internal metadata usage
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-08-15 17:18:43 -05:00
Sage Weil
52cfc505fb
os/bluestore/BlueFS: drop get_fs_usage(); add get_used()
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-08-15 17:18:43 -05:00
Sage Weil
c6da00b418
kv: add per-prefix space estimation
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-08-15 17:18:43 -05:00
Sage Weil
71d8fe7faf
osd: decouple statfs update from hb peers, pg count
...
These don't need to be updated in synchrony. (In fact, the statfs update
could be much more infrequent.)
Signed-off-by: Sage Weil <sage@redhat.com>
2018-08-15 17:18:43 -05:00
Sage Weil
a66f8bfe7d
osd: drop useless OSDService::update_osd_stat()
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-08-15 17:18:43 -05:00
Sage Weil
fa120cec38
osd/osd_types: separate accounting for data, omap, and metadata
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-08-15 17:18:43 -05:00
Sage Weil
b116d21408
osd: re-add get_num_pgs()
...
We removed this but it's a useful accessor.
Signed-off-by: Sage Weil <sage@redhat.com>
2018-08-15 17:18:42 -05:00
Patrick Donnelly
583e7976cc
msg: add msgref cast method
...
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-08-15 13:36:38 -07:00
Patrick Donnelly
e0d3db8904
msg: cleanup factory/ref definition in messages
...
This eliminates duplicate code definitions.
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-08-15 13:36:38 -07:00
Patrick Donnelly
6632131da1
mds: use message factory to avoid leaks
...
Fixes: http://tracker.ceph.com/issues/24306
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-08-15 13:36:36 -07:00
Patrick Donnelly
89cb1adeeb
msg: add factory method to correctly construct smart_ptr
...
This is to avoid easy leaks of the form:
boost::intrusive_ptr(new M*(...));
where a ref is leaked because constructing the intrusive_ptr adds a ref.
It is expected that eventually all constructors move to protected/private so
that the message's factory is the only way to build a new message (safely).
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-08-15 13:36:18 -07:00
Patrick Donnelly
52fac5eb75
mds: remove dead MDS-MDS forwarding code
...
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-08-15 13:36:16 -07:00
Patrick Donnelly
d2a202af39
mds: manage Message lifetime with intrusive_ptr
...
This change turned out to be far more extensive than I hoped but the end result
should prevent all Message-related memory leaks. I believe I fixed several
incidentally.
Fixes: http://tracker.ceph.com/issues/24306
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-08-15 13:35:30 -07:00