Kefu Chai
258b10cc01
Merge pull request #19515 from tchaikov/wip-cmake-lttng-leak
...
cmake: link libcommon with libstdc++ statically if WITH_STATIC_LIBSTDCXX
Reviewed-by: Casey Bodley <cbodley@redhat.com>
2017-12-16 12:31:57 +08:00
Kefu Chai
419a182241
Merge pull request #19490 from adamemerson/wip-hypomodern
...
Update C++ standard to 14 and clean up
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-12-16 12:31:13 +08:00
Kefu Chai
5ad7efd61f
Merge pull request #19486 from liewegas/wip-22419
...
osd: pass pool options to ObjectStore on pg create
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Igor Fedotov <ifedotov@suse.com>
2017-12-16 12:29:15 +08:00
Kefu Chai
5d9dd9e12c
Merge pull request #19385 from liewegas/wip-stdout-logs
...
mon: allow cluter and debug logs to go to stderr, with appropriate prefix
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-12-16 12:27:57 +08:00
Kefu Chai
6c13ea9a6a
Merge pull request #19542 from tchaikov/mimic-22093
...
qa: decrease the msg_inject_socket_failures from 1/500 to 1/1000
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
2017-12-16 12:27:00 +08:00
root
7708bff40c
cephfs-journal-tool: tool would miss to report some invalid range
...
Fixes: http://tracker.ceph.com/issues/22459
Signed-off-by: dongdong tao <tdd21151186@gmail.com>
2017-12-16 11:56:13 +08:00
root
590c39eab0
cephfs: potential adjust failure in lru_expire
...
Fix: the first adjust is no needed,it will never take real effect.
the second 'adjust' may never get the chance to be executed
suppose we can reach the second 'adjust', it will crash because the bottom list is empty now.
Fixes: http://tracker.ceph.com/issues/22458
Signed-off-by: dongdong tao <tdd21151186@gmail.com>
2017-12-16 11:44:19 +08:00
myoungwon oh
9d2456fc43
Merge pull request #19464 from myoungwon/wip-bug-fix-22369
...
osd: fix unordered read bug (for chunked object)
Reviewed-by: Sage Weil <sage@redhat.com>
2017-12-16 10:50:44 +09:00
Patrick Donnelly
634a2ccb34
Merge PR #19535 into master
...
* refs/pull/19535/head:
doc: clarify type of client in config ref
Reviewed-by: Jos Collin <jcollin@redhat.com>
2017-12-15 15:31:30 -08:00
Jason Dillaman
9eb247961a
rbd-mirror: cluster watcher should ensure it has latest OSD map
...
Fixes: http://tracker.ceph.com/issues/22461
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-12-15 14:51:46 -05:00
Patrick Donnelly
d1877b68d9
Merge PR #18512 into master
...
* refs/pull/18512/head:
mon,mgr,doc,test: standardize argument as role
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2017-12-15 11:08:29 -08:00
Patrick Donnelly
0e1835a727
Merge PR #18899 into master
...
* refs/pull/18899/head:
mds: add asok command that dumps metadata popularity
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2017-12-15 11:08:23 -08:00
Patrick Donnelly
9584674630
Merge PR #19170 into master
...
* refs/pull/19170/head:
mds: Improve the log info for read pointers
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Amit Kumar <amitkuma@redhat.com>
2017-12-15 11:08:17 -08:00
Patrick Donnelly
199f9d4c6b
Merge PR #19271 into master
...
* refs/pull/19271/head:
client: update Dir::num_null_dentries in Dentry::{link,unlink}
client: drop null child dentries before try pruning inode's alias
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2017-12-15 11:08:11 -08:00
Patrick Donnelly
0f48b3d29e
Merge PR #19414 into master
...
* refs/pull/19414/head:
mds: properly eval locks after importing inode
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2017-12-15 11:08:04 -08:00
Patrick Donnelly
ee9d5f9a45
Merge PR #19440 into master
...
* refs/pull/19440/head:
mds: update mds option descriptions
mds: obsolete MDSMap option configs
mds: organize Filesystem class def
Reviewed-by: John Spray <john.spray@redhat.com>
2017-12-15 11:07:58 -08:00
Mykola Golub
18b92192a8
Merge pull request #19540 from dillaman/wip-rbd-trash-list-enoent
...
rbd: 'trash list --long' will return a failure on non-cloned images
Reviewed-by: Mykola Golub <to.my.trociny@gmail.com>
2017-12-15 19:18:21 +02:00
Jason Dillaman
bed3356050
rbd: 'trash list --long' will return a failure on non-cloned images
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-12-15 09:06:37 -05:00
Kefu Chai
77f083fb35
cmake: link libcommon with libstdc++ statically if WITH_STATIC_LIBSTDCXX
...
this matches the linkage of libceph-common, because valgrind reports
Leak_StillReachable if daemons are linked against libceph-common, will
link daemons against common instead, and let common link libstdc++
statically, if WITH_STATIC_LIBSTDCXX=ON.
this change also reverts e6695bb6
Fixes: http://tracker.ceph.com/issues/22438
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit df9a59894291fe81e727babb631fb0e23cd1bbb0)
2017-12-15 19:16:12 +08:00
Kefu Chai
f40a3fb873
cmake: link global-static against common
...
* as global-static references symbols offered by common.
* and remove DPDK_LIBRARIES from global, as it is libcommon which
is using DPDK.
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit a2cad3bb1cad57cab5f0acc11310613077866a87)
2017-12-15 19:16:12 +08:00
Kefu Chai
76ed2c4035
cmake: link executables against ceph-common
...
so they can have access to libstdc++ if it is linked statically.
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit e6695bb63a
)
2017-12-15 19:16:12 +08:00
Kefu Chai
c869054645
cmake: add WITH_STATIC_LIBSTDCXX option
...
to link libceph-common with libstdc++ if it is enabled.
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 4c2216de6a
)
2017-12-15 19:16:12 +08:00
Kefu Chai
020f641bdf
install-deps.sh: use tee for writing a file
...
because the stdout redirect is performed by current shell not `$SUDO
cat`, so $SUDO does not help here. use `$SUDO tee` instead, which is
able to read the stdin and write to the given file just as expected.
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 0beb846e57
)
2017-12-15 19:11:52 +08:00
Kefu Chai
eba0fca4f6
install-deps.sh: avoid re-installing g++-7
...
* add ubuntu-toolchain-r mirrors in case the ppa.launchpad.net is not
accessible
* add ppa repo manually, it's faster than installing
`software-properties-common` and then launch `add-apt-repository`
* hardwire $old to the gcc version shipped by the distro, simpler this
way.
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit b69e3efe64
)
2017-12-15 19:11:52 +08:00
Kefu Chai
acfc351095
install-deps.sh: use GCC-7 on xenial also
...
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 8a0935988f
)
2017-12-15 19:11:51 +08:00
Kefu Chai
f95ab869e8
install-deps.sh: install new gcc as the default the right way
...
* should install software-properties-common beforehand, otherwise
the `add-apt-repository` command will not be available.
* the update-alternative commandline were copied from ceph-build,
should remove the escape characters.
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 3882deae8c
)
2017-12-15 19:11:51 +08:00
Kefu Chai
ebe7ed686e
install-deps.sh: enable testing repo on centos on aarch64
...
the DTS-6 is only available in the testing repo
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 4cedada14e
)
2017-12-15 19:11:51 +08:00
Kefu Chai
b936ac82a5
install-deps.sh: use DTS on centos if GCC is too old
...
please note, run-make-check.sh sources install-deps.sh here to import
the $PATH and other environmental variables, which could be changed by
the the DTS "enable" script.
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 3f8647a7e8
)
2017-12-15 19:11:51 +08:00
Kefu Chai
c2d1e02675
install-deps.sh: install centos-release-scl-rh on aarch64
...
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 84660c977c
)
2017-12-15 19:11:51 +08:00
Kefu Chai
0b7b53a4a9
install-deps.sh: use gcc-7 on trusty
...
* always install gcc-7 on trusty
* point g++ to g++-7 if not yet
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 24d0f935dc
)
2017-12-15 19:11:51 +08:00
Kefu Chai
dba0028ba1
install-deps.sh: always use yum-config-manager for consistency
...
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit eccc961c72
)
2017-12-15 19:11:51 +08:00
Kefu Chai
a2f6690136
install-deps.sh: install devtoolset-7 for centos/rhel
...
ready them for gcc7 and libstdc++-7 for better performance.
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit f9aa49cee1
)
2017-12-15 19:11:50 +08:00
Kefu Chai
4ddd6b5b0e
cmake: disable FAIL_ON_WARNINGS for rocksdb
...
otherwise -Werror=implicit-fallthrough will fail the build with GCC-7
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 6559a85051
)
2017-12-15 19:07:26 +08:00
Kefu Chai
2ceff9eb4e
qa/stanalone: pass options using --<option-name>=<value>
...
not "--<option-name> <value>', otherwise `ceph-authtool` would error
out:
$ CEPH_ARGS='--osd-map-max-advance 1000' bin/ceph-authtool --gen-print-key
bin/ceph-authtool: unexpected '1000'
usage: ceph-authtool keyringfile [OPTIONS]...
....
but using the syntax of `--<option-name>=<value>', it works:
$ CEPH_ARGS='--osd-map-max-advance=1000' bin/ceph-authtool --gen-print-key
AQBAhTNamf5+ABAASkAp/6IGq7LkUTEOMp/fgw==
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-12-15 16:19:15 +08:00
Kefu Chai
5043e4b494
Merge pull request #19493 from cernceph/dvanders_balancer
...
mgr/balancer: cast config vals to int or float
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: John Spray <john.spray@redhat.com>
2017-12-15 15:22:44 +08:00
Brad Hubbard
a6547d647e
rgw: Silence maybe-uninitialized false positives
...
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
2017-12-15 17:18:37 +10:00
Kefu Chai
633704b8fe
Merge pull request #19482 from jcsp/wip-22361
...
mgr/balancer: don't use 'foo' tags on commands
Reviewed-by: Sage Weil <sage@redhat.com>
2017-12-15 15:16:29 +08:00
Kefu Chai
e9626080c4
Merge pull request #19465 from shinobu-x/no_copy_ctor_assignment
...
common,mds,osd: Explicitly delete copy ctor if noncopyable
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-12-15 15:16:03 +08:00
Kefu Chai
08f8826b05
Merge pull request #19211 from ZVampirEM77/wip-em-pg-cleanup
...
osd: fix typos and some cleanups
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-12-15 15:05:50 +08:00
Kefu Chai
81537efaf2
Merge pull request #19013 from yuyuyu101/wip-fix-racing
...
msg/async/AsyncConnection: unregister connection when racing happened
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-12-15 15:04:13 +08:00
Kefu Chai
6b3d0f61f9
qa: decrease the msg_inject_socket_failures from 1/500 to 1/1000
...
Fixes: http://tracker.ceph.com/issues/22093
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-12-15 14:21:43 +08:00
Jason Dillaman
182c25f3e6
Merge pull request #19361 from Songweibin/wip-init-image-id
...
pybind/rbd: support open the image by image_id
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-12-14 22:17:43 -05:00
Jason Dillaman
ae98ee633a
Merge pull request #19317 from shinobu-x/journaler_trivial_cleanup
...
journal: trivial cleanup
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-12-14 22:17:17 -05:00
Jason Dillaman
a36f26d4ea
Merge pull request #19406 from trociny/wip-deep-copy-pybind
...
pybind/rbd: add deep_copy method
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-12-14 22:16:46 -05:00
Jason Dillaman
aa80cb9925
Merge pull request #19436 from trociny/wip-22333
...
rbd-nbd: support optionally setting device timeout
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-12-14 22:16:23 -05:00
Alfredo Deza
d33f42b5a5
Merge pull request #19477 from wido/mgr-int-json
...
ceph-volume: Try to cast OSD metadata to int while scanning directory
Reviewed-by: Alfredo Deza <adeza@redhat.com>
2017-12-14 18:01:46 -05:00
Patrick Donnelly
61215892d4
doc: clarify type of client in config ref
...
The kernel configuration is different.
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2017-12-14 12:37:17 -08:00
Adam C. Emerson
e08a1cd88a
common: Switch from boost::shared_mutex to std::shared_mutex
...
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
2017-12-14 11:40:44 -05:00
Adam C. Emerson
2d45f808ef
common: Get rid of artifact filename
...
Since we're on C++14, we're just backporting from future standards
generally.
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
2017-12-14 11:40:44 -05:00
Adam C. Emerson
b280bf40d3
common: Remove backported max and make_unique
...
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
2017-12-14 11:40:44 -05:00