Commit Graph

80066 Commits

Author SHA1 Message Date
Danny Al-Gaaf
1ad4a13171 AsyncConnection.cc: init some members in ctor
Fix for:

[src/msg/async/AsyncConnection.cc:122]: (warning) Member variable
 'AsyncConnection::msg_left' is not initialized in the constructor.
[src/msg/async/AsyncConnection.cc:122]: (warning) Member variable
 'AsyncConnection::cur_msg_size' is not initialized in the constructor.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2017-10-25 18:14:05 +02:00
Danny Al-Gaaf
3f1b2ad2d9 MDSMonitor.cc: use string::compare()
Fix for:

[src/mon/MDSMonitor.cc:1717]: (performance) Inefficient usage of
 string::find() in condition; string::compare() would be faster.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2017-10-25 18:14:05 +02:00
Danny Al-Gaaf
435b3661fe kv/MemDB.h: init some members in constructor
Fix for:
[src/kv/MemDB.h:59]: (warning) Member variable 'MemDB::m_total_bytes'
 is not initialized in the constructor.
[src/kv/MemDB.h:59]: (warning) Member variable 'MemDB::m_allocated_bytes'
 is not initialized in the constructor.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2017-10-25 18:14:05 +02:00
Danny Al-Gaaf
606768e8b2 librbd.cc: fix usage of unsigned var
Fix for:

[src/librbd/librbd.cc:3578]: (style) Checking if unsigned variable
 'data_len' is less than zero.
[src/librbd/librbd.cc:3799]: (style) Checking if unsigned variable
 'data_len' is less than zero.
[src/librbd/librbd.cc:3576]: (style) Checking if unsigned variable
 'data_len' is less than zero.
[src/librbd/librbd.cc:3796]: (style) Checking if unsigned variable
 'data_len' is less than zero.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2017-10-25 18:14:05 +02:00
Danny Al-Gaaf
f24a0289ef LZ4Compressor.h: fix usage of unsigned var
Fix for:

[src/compressor/lz4/LZ4Compressor.h:49]: (style) Checking if
 unsigned variable 'compressed_len' is less than zero.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2017-10-25 18:14:05 +02:00
Danny Al-Gaaf
4d2f8384d0 rgw/rgw_op.cc: fix wrong function order
Fix for:

[src/rgw/rgw_op.cc:3829]: (error) Uninitialized variable: calc_md5

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2017-10-25 18:14:05 +02:00
Jianpeng Ma
8960e42ae0 msg/async: batch handle out_seq.
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
2017-10-26 00:03:36 +08:00
Alfredo Deza
4970ab5c80 ceph-volume lvm.prepare use wal and db for mkfs
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-10-25 10:28:43 -04:00
Patrick Donnelly
c9c58c580d
Merge PR #18062 into master
* refs/pull/18062/head:
	client: put MetaSession map container
	client: simplify release context ref mgmt

Reviewed-by: Zheng Yan <zyan@redhat.com>
2017-10-25 06:51:45 -07:00
John Spray
1d0a7d1f35 mds: set PRIO_USEFUL on num_sessions counter
This is used by dashboard and status modules,
so let's make sure we're sending it to the mgr.

Fixes: http://tracker.ceph.com/issues/21927
Signed-off-by: John Spray <john.spray@redhat.com>
2017-10-25 09:47:34 -04:00
Matt Benjamin
9f6d3cf3f4 Merge pull request #18381 from cbodley/wip-21832
Revert "radosgw: fix awsv4 header line sort order."
2017-10-25 09:37:06 -04:00
Matt Benjamin
d1fdc2316c Merge pull request #18369 from baixueyu/refcount_bug
rgw: source data in 'default.rgw.buckets.data' may not be deleted after inter-bucket copy
2017-10-25 08:58:07 -04:00
Kefu Chai
410594aed0 Merge pull request #16605 from theanalyst/tools/release-notes-pyfixes
script: ceph-release-notes: minor fixes for split_component

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-10-25 19:24:53 +08:00
Alfredo Deza
02e1263f06 Merge pull request #18482 from liewegas/wip-luminous-note-fix
doc/release-notes: add jewel->kraken notes

Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
Reviewed-by: Alfredo Deza <adeza@redhat.com>
2017-10-25 07:24:13 -04:00
Kefu Chai
4b6406b086 Merge pull request #18481 from xiexingguo/wip-choose-acting
osd/PG: miscellaneous choose acting changes and cleanups

Reviewed-by: Sage Weil <sage@redhat.com>
2017-10-25 19:21:42 +08:00
Kefu Chai
5fc34435dd Merge pull request #18473 from yuyuyu101/wip-objecter-mono
osdc/Objecter: using coarse_mono instead

Reviewed-by: Adam Emerson <aemerson@redhat.com>
2017-10-25 19:20:59 +08:00
Kefu Chai
68ef19bc3c Merge pull request #18471 from yuyuyu101/wip-omap-stat
osd/ReplicatedPG: add omap write bytes to delta_stats

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2017-10-25 19:20:35 +08:00
Kefu Chai
3ceab4ca43 Merge pull request #16332 from badone/wip-warn-about-objects-with-too-many-omap-entries
osd: Warn about objects with too many omap entries

Reviewed-by: David Zafman <dzafman@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-10-25 19:20:00 +08:00
Kefu Chai
022f08362e Merge pull request #18506 from majianpeng/osd-scrub
osd/PrimaryLogPG: add condition "is_chunky_scrub_active" to check object in chunky_scrub

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
2017-10-25 19:18:50 +08:00
Kefu Chai
0f1e97238c qa: do not "ceph fs get cephfs" w/o a cephfs fs
introduced by 183646c

Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-10-25 19:12:39 +08:00
Abhishek Lekshmanan
35876bb79d script: ceph-release-notes: minor fixes for split_component
make labels a set as intersection would fail otherwise, also sort the
results of prefixes before creating the title

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2017-10-25 10:43:07 +02:00
Nathan Cutler
ca820fff95 build/ops: rpm: recommend python-influxdb with ceph-mgr
The influxdb module won't run if python-influxdb is not present (but it will be
graceful about not running). That means python-influxdb is a dependency of
that module, not mgr itself. However, we are not (yet) packaging the modules
separately. (When we do, this could become a Requires: of the module.)

RPM itself does not support "Recommends", and ignores this line. Higher-level
tools may or may not support it, so put this line in a SUSE-only conditional
since we know that zypper supports it.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
Signed-off-by: Tim Serong <tserong@suse.com>
2017-10-25 09:42:47 +02:00
Mykola Golub
849c21582b Merge pull request #18517 from dillaman/wip-iscsi-docs
doc/rbd: specify additional ESX prerequisites

Reviewed-by: Mykola Golub <to.my.trociny@gmail.com>
2017-10-25 10:41:41 +03:00
Kefu Chai
84f74e5cce OSD/PG: fix calc of misplaced objects
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-10-25 14:29:40 +08:00
Kefu Chai
1fb6277d64 Merge pull request #18466 from zealoussnow/wip-wrong-parameter
OSD: drop unsed parameter passed to check_osdmap_features

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Liu-Chunmei <chunmei.liu@intel.com>
2017-10-25 13:31:19 +08:00
Kefu Chai
4a87cc7fbb Merge pull request #18425 from ZVampirEM77/wip-options-cleanup
common/options.cc: cleanup readable literals for default sizes

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-10-25 13:27:52 +08:00
Kefu Chai
e90916dd77 Merge pull request #17894 from chenliuzhong/change-aio-max-nr
ceph.spec.in,debian/rules: change aio-max-nr to 1048576

Reviewed-by: Nathan Cutler <ncutler@suse.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-10-25 13:25:24 +08:00
Kefu Chai
5277240d87 vstart.sh: should quote the parameters to get them quoted
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-10-25 10:19:14 +08:00
Brad Hubbard
7e6e87e85c Merge pull request #18505 from badone/wip-unittest-crypto-getentropy-limit
unittest_crypto: Don't exceed limit for getentropy

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
2017-10-25 10:27:38 +10:00
Josh Durgin
df7a694896 Merge pull request #18181 from tchaikov/wip-vstart-quoted-print
vstart.sh: quote command only when necessary

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2017-10-24 16:43:38 -07:00
Patrick Donnelly
c58161f25b
Merge PR #17266 into master
* refs/pull/17266/head:
	qa: update test_ceph_argparse to test fs cmds
	qa: use fs rm_data_pool
	qa: fix mdsmap lookup
	qa: remove usage of mds dump
	PendingReleaseNotes: add obsoleted mds commands
	qa: remove use of obsolete mds commands
	ceph_volume_client: remove use of obsolete mds cmd
	doc: update on obsolete mds commands
	cephfs: obsolete deprecated mds commands

Reviewed-by: Douglas Fuller <dfuller@redhat.com>
2017-10-24 16:37:14 -07:00
Josh Durgin
184ca91dbc Merge pull request #17909 from tchaikov/wip-coverity
test/objectstore/test_bluefs: cleanups

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2017-10-24 16:34:02 -07:00
Patrick Donnelly
b14a8a4aa1
qa: update test_ceph_argparse to test fs cmds
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2017-10-24 15:41:10 -07:00
Alexandre Marangone
25324164dc doc: Kube + Helm installation
Signed-off-by: Alexandre Marangone <amarango@redhat.com>
2017-10-24 13:57:35 -07:00
Sage Weil
f3ad3401a9 Merge pull request #18475 from yuyuyu101/wip-fix-alignment
os/ObjectStore: fix get_data_alignment return -1 causing problem in msg header

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Amit Kumar <amitkuma@redhat.com>
2017-10-24 15:39:11 -05:00
David Zafman
1ad05b1068 osd: Scrub of object with only object error(s) are not logged
Signed-off-by: David Zafman <dzafman@redhat.com>
2017-10-24 13:32:44 -07:00
David Zafman
b7d2f27da1 osd: Primary shard needs to be at the front to be preferred
Caused by: cd0d8b0714

Fixes: http://tracker.ceph.com/issues/21907

Signed-off-by: David Zafman <dzafman@redhat.com>
2017-10-24 13:32:14 -07:00
Yuri Weinstein
64bd835813 Merge pull request #18297 from dzafman/wip-21803
osd/PG: fix objects degraded higher than 100%

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2017-10-24 13:31:40 -07:00
Yuri Weinstein
e13a8ce8f1 Merge pull request #18479 from wzliao/wip-correct-scrub-cost
osd/OSD.cc: use option 'osd_scrub_cost' instead

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-10-24 13:30:01 -07:00
Alfredo Deza
58dbefd3be ceph-volume lvm.prepare ensure tags are set for ceph.type correctly for block and data
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-10-24 16:28:33 -04:00
Alfredo Deza
1ead135bef ceph-volume lvm.activate check if lv device is mounted at path
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-10-24 16:26:03 -04:00
Sage Weil
390779d1aa ceph_test_objectstore: do not change model for 0-length zero
We almost fixed this in the pr merged at 2dbbb351e2
but missed this piece.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-10-24 15:20:49 -05:00
Alfredo Deza
39dd0d1d10 ceph-volume lvm.prepare default to using bluestore
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-10-24 15:55:21 -04:00
Alfredo Deza
d3145da6e6 ceph-volume lvm.create default to using bluestore
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-10-24 15:54:57 -04:00
Alfredo Deza
a7d5965ab5 ceph-volume lvm.common remove boolean defaults for CLI flags
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-10-24 15:54:11 -04:00
Jason Dillaman
61ad73526c doc/rbd: specify additional ESX prerequisites
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-10-24 15:49:42 -04:00
Patrick Donnelly
6809dbed6b
Merge PR #18109 into master
* refs/pull/18109/head:
	mds: clean up non-existent data pools in MDSMap
	mds: reduce variable scope

Reviewed-by: John Spray <john.spray@redhat.com>
2017-10-24 12:17:25 -07:00
Patrick Donnelly
db5df3c605
Merge PR #18366 into master
* refs/pull/18366/head:
	mon: s/mds_blacklist_interval/mon_mds_blacklist_interval/
	mon: tidy up mds_blacklist_interval

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2017-10-24 12:17:19 -07:00
Patrick Donnelly
710cf45e48
Merge PR #18384 into master
* refs/pull/18384/head:
	mds: disable early reply for dir layout and quota related requests
	mds: make mksnap/setlayout wait for unsafe requests on other mds
	mds: don't rdlock locks in replica object while auth mds is recovering
	mds: move ScatterLock::state_flags into SimpleLock

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2017-10-24 12:17:14 -07:00
Patrick Donnelly
3e9d8155e9
Merge PR #18393 into master
* refs/pull/18393/head:
	ceph_context: re-expand admin_socket metavariables in child process

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2017-10-24 12:17:08 -07:00