Commit Graph

81383 Commits

Author SHA1 Message Date
David Zafman
5083287845 ceph-objectstore-tool: Fix output of section type number
Signed-off-by: David Zafman <dzafman@redhat.com>
2017-12-05 19:40:33 -08:00
David Zafman
c6896cccc3 ceph-objectstore-tool: Improve ceph-objectstore-tool usage output
Remove unused argument test-align

Caused by: 1c8731c31e

Positional arguments are described by usage() because
the parsing code creates descriptions like "--object" for the
object positional argument.

Signed-off-by: David Zafman <dzafman@redhat.com>
2017-12-05 19:37:37 -08:00
Shinobu Kinjo
85758234ca common: Remove ceph_clock_gettime, extern keyword
ceph_clock_gettime is only used in src/tools/rbd/action/Trash.cc

Signed-off-by: Shinobu Kinjo <shinobu@redhat.com>
2017-12-05 21:38:31 -05:00
Andrew Schoen
813276ef6a
Merge pull request #19347 from ceph/wip-rm22326
ceph-volume: warn on missing ceph.conf file

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
2017-12-05 15:43:56 -06:00
Alfredo Deza
07be6fe0ab ceph-volume lvm.create rollback osd creation when prepare or activate fails
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-12-05 15:32:10 -05:00
Alfredo Deza
6781d6498e ceph-volume lvm.create fallback to bluestore when objectstore is not specified
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-12-05 15:32:10 -05:00
Alfredo Deza
9b17ad2f8f ceph-volume lvm.prepare fallback to bluestore when objectstore is not specified
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-12-05 15:32:10 -05:00
Alfredo Deza
579d12806b ceph-volume lvm.prepare rollback osd when prepare fails and an osd id was generated
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-12-05 15:32:10 -05:00
Alfredo Deza
e533792e0d ceph-volume lvm.common create a rollback_osd utility to cleanup failed osd prepare/create calls
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-12-05 15:32:09 -05:00
Mykola Golub
7a1b13f884 pybind/rbd: raise KeyError when metadata does not exist
Signed-off-by: Mykola Golub <to.my.trociny@gmail.com>
2017-12-05 22:09:30 +02:00
Adam C. Emerson
e5c24fa1c8 rados: Add noreturn attribute to silence uninitialized warning
Marking the `usage_exit` function as noreturn lets the compiler know
that execution won't continue beyond the statement where it's called,
so the path that would lead to the variables being used uninitialized
doesn't count.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
2017-12-05 15:03:01 -05:00
Alfredo Deza
69482d1d80 ceph-volume test logging ignored ceph.conf file
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-12-05 13:59:22 -05:00
Alfredo Deza
44c768db0d ceph-volume main warn on inability to load ceph.conf, don't raise
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-12-05 13:58:53 -05:00
Sage Weil
9255516b77 qa/suites/rados/upgrade: whitelist MON_DOWN, MGR_DOWN
They get restarted.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-12-05 12:26:12 -06:00
amitkuma
223c559e37 osd,os,io: Initializing C_ProxyChunkRead members,queue,request
Fixes the coverity issue:

2. uninit_member: Non-static class member op_index is not initialized
in this constructor nor in any functions that it calls.
4. uninit_member: Non-static class member req_offset is not initialized
in this constructor nor in any functions that it calls.
CID 1424845 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
6. uninit_member: Non-static class member req_total_len is not
initialized in this constructor nor in any functions that it calls.

CID 1422461 (#1 of 1): Uninitialized pointer field (UNINIT_CTOR)
2. uninit_member: Non-static class member queue is not initialized
in this constructor nor in any functions that it calls.

CID 1422362 (#1 of 1): Uninitialized pointer field (UNINIT_CTOR)
2. uninit_member: Non-static class member request is not initialized
in this constructor nor in any functions that it calls

Signed-off-by: Amit Kumar amitkuma@redhat.com
2017-12-05 21:38:35 +05:30
Kefu Chai
84660c977c install-deps.sh: install centos-release-scl-rh on aarch64
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-12-05 23:48:15 +08:00
Kefu Chai
4068217579 ceph.spec: use devtoolset-6-gcc-c++ on aarch64
see https://github.com/sclorg/centos-release-scl
see https://buildlogs.centos.org/centos/7/sclo/aarch64/rh/

Fixes: http://tracker.ceph.com/issues/22301
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-12-05 23:48:15 +08:00
amitkuma
1bed1927c7 test: Initializing ChunkReadOp members
Fixes the coverity issue:
2. uninit_member: Non-static class member offset is not
initialized in this constructor nor in any functions that it calls.
4. uninit_member: Non-static class member length is not
initialized in this constructor nor in any functions that it calls.

CID 1424433 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
6. uninit_member: Non-static class member tgt_offset is not initialized
in this constructor nor in any functions that it calls.

Signed-off-by: Amit Kumar amitkuma@redhat.com
2017-12-05 21:08:53 +05:30
amitkuma
2622830c75 osd: Initializing start_offset,last_offset,offset
Fixes the coverity issues:

2. uninit_member: Non-static class member start_offset
is not initialized in this constructor nor in any functions
that it calls.

CID 1424396 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
4. uninit_member: Non-static class member last_offset is not
initialized in this constructor nor in any functions that it calls.

CID 1424658 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
2. uninit_member: Non-static class member offset is not initialized
in this constructor nor in any functions that it calls.

Signed-off-by: Amit Kumar <amitkuma@redhat.com>
2017-12-05 21:01:52 +05:30
J. Eric Ivancich
db75805628 Merge commit 'c00eaf7446cbe456aa93bf8b05cf0a224dedca49' into wip-bring-in-dmclock
Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
2017-12-05 10:28:49 -05:00
J. Eric Ivancich
c00eaf7446 Squashed 'src/dmclock/' changes from d1ff03b667..6f9250b4e9
6f9250b4e9 Merge pull request #45 from TaewoongKim/reduce_phasetype_size
343e4105a6 Reduce the size of enum class PhaseType

git-subtree-dir: src/dmclock
git-subtree-split: 6f9250b4e9
2017-12-05 10:28:48 -05:00
Kefu Chai
bcc0511d3b cmake: bail out if GCC version is less than 5.1
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-12-05 22:59:48 +08:00
Jason Dillaman
b00ac12f40 ceph-dencoder: moved RBD types outside of RGW preprocessor guard
Fixes: http://tracker.ceph.com/issues/22321
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-12-05 09:58:04 -05:00
Mykola Golub
2e6872b28e pybind/rbd: fix metadata functions error handling
Fixes: http://tracker.ceph.com/issues/22306
Signed-off-by: Mykola Golub <to.my.trociny@gmail.com>
2017-12-05 15:52:17 +02:00
Igor Fedotov
559c54f9c2
Merge pull request #19101 from ifed01/wip-ifed-extending-fio
test/fio: extend fio objectstore plugin to better simulate OSD behavior
2017-12-05 14:41:19 +01:00
Kefu Chai
7c3906c7dd
Merge pull request #18863 from tchaikov/wip-devtoolset-7
build/ops: use devtoolset-7 on centos/rhel-7

Reviewed-by: Sage Weil <sage@redhat.com>
2017-12-05 21:27:42 +08:00
Kefu Chai
27c3b63b25
Merge pull request #18812 from tchaikov/wip-pybind-rados-service-api
pybind/rados: add rados_service_*()

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2017-12-05 20:33:58 +08:00
Kefu Chai
5418c98fb7
Merge pull request #19307 from tchaikov/wip-drop-ubuntu-trusty
qa,doc: drop support of ubuntu trusty

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2017-12-05 20:31:58 +08:00
songweibin
01e8f506ff rbd: comment/msg cleanup
Signed-off-by: songweibin <song.weibin@zte.com.cn>
2017-12-05 16:42:32 +08:00
songweibin
2146afb624 rbd: list parent info with "--long" when image child is in trash
We can get child's parent information even it's in
trash bin if "--long" flag is specified.

Signed-off-by: songweibin <song.weibin@zte.com.cn>
2017-12-05 16:41:52 +08:00
Enming Zhang
ba7780596a osd/PGLog: cleanup unused function revise_have
Signed-off-by: Enming Zhang <enming.zhang@umcloud.com>
2017-12-05 15:23:02 +08:00
Yan, Zheng
0c6fbaf5b1 mds: bump protocol for snapshot changes
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
2017-12-05 15:00:04 +08:00
Yan, Zheng
f5e6b6ad19 mds: force client to do snapflush
Snap inodes that are waiting for flush are auth pinned, they affect
subtree/dirfrag frozen. Force client to do snapflush after waiting
for a period of time.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
2017-12-05 15:00:04 +08:00
Yan, Zheng
fe041e3dce mds: check existance of snaps when rebuilding need_snapflush
do nothing if there is no snap

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
2017-12-05 15:00:04 +08:00
Yan, Zheng
6085e035bc mds: properly setup need_snapflush for flushsnap messages
When processing a cap flush message that is re-sent, it's possble
that the sender has already released all WR caps. So can't rely on
CEPH_CAP_ANY_WR check in MDCache:cow_inode().

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
2017-12-05 15:00:04 +08:00
Yan, Zheng
df36378767 mds: properly update CInode::first and CDentry first
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
2017-12-05 15:00:01 +08:00
Sage Weil
6dc46fc6c1
Merge pull request #19328 from liewegas/wip-fix-tools-deb
debian/control: adjust ceph-{osdomap,kvstore,monstore}-tool feature move

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-12-04 21:28:21 -06:00
Sage Weil
e0c814266f debian/control: adjust ceph-{osdomap,kvstore,monstore}-tool feature move
The backport didn't make 12.2.2, but it will be in 12.2.3.

Fixes: http://tracker.ceph.com/issues/22319
Signed-off-by: Sage Weil <sage@redhat.com>
2017-12-04 21:26:15 -06:00
Sage Weil
0e81fa9f39 qa/suites/rados/singleton/all/threash-eio: whitelist OBJECT_*
Signed-off-by: Sage Weil <sage@redhat.com>
2017-12-04 21:16:44 -06:00
Kefu Chai
24d0f935dc 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>
2017-12-05 10:29:49 +08:00
Kefu Chai
246c27a9c5 ceph.spec: use devtoolset-7-gcc-c++ on centos/rhel
for better performance.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-12-05 10:29:48 +08:00
Kefu Chai
eccc961c72 install-deps.sh: always use yum-config-manager for consistency
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-12-05 10:29:48 +08:00
Kefu Chai
f9aa49cee1 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>
2017-12-05 10:29:48 +08:00
Josh Durgin
4a0186ee30
Merge pull request #19324 from neha-ojha/wip-fix-collectl
qa: install collectl with cbt task

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2017-12-04 17:33:43 -08:00
Alfredo Deza
ebe246fef4
Merge pull request #19325 from ceph/wip-ceph-disk-man-fix
doc/man remove deprecation of ceph-disk man page title

Reviewed-by: Brad Hubbard
2017-12-04 19:43:36 -05:00
Patrick Donnelly
5b2b1d1446
client: quit on failed remount during dentry invalidate test
Fixes: http://tracker.ceph.com/issues/22269

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2017-12-04 16:10:27 -08:00
Patrick Donnelly
4f2fa427f4
client: xlist link dentries instead of set
This saves space and avoids unnecessary set logic. In particular, we no longer
need to do a heap allocation for each Dentry * in the std::set.

Before:

(gdb) print sizeof(Inode)
$1 = 1336
(gdb) print sizeof(Inode::dn_set)
$2 = 48

After:

(gdb) print sizeof(Inode)
$1 = 1360
(gdb) print sizeof(Inode::dentries)
$2 = 24

I'm not sure why the Inode size increased when the member size decreased (weird
padding by g++)? Anyway, we still get the benefit of no heap allocations for
the Dentry *s.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2017-12-04 14:05:50 -08:00
Alfredo Deza
7671b66e19 doc/man remove deprecation of ceph-disk man page title
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-12-04 17:01:33 -05:00
Neha Ojha
877e3ccada qa: install collectl with cbt task
Signed-off-by: Neha Ojha <nojha@redhat.com>
2017-12-04 13:50:33 -08:00
Sage Weil
7d33ceb65e osd/PGBackend: remove unused on_flushed()
Signed-off-by: Sage Weil <sage@redhat.com>
2017-12-04 12:45:17 -06:00