Commit Graph

51818 Commits

Author SHA1 Message Date
Kefu Chai
1287846c66 autotools: add rbdmap to dist_man_MANS
this fixes the rpm/deb build failure
was introduced by 20c8650

Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-03-25 23:53:52 +08:00
Sage Weil
1ac8b5f972 Merge pull request #8038 from badone/wip-crushtool-crash
crushtool: Don't crash when called on a file that isn't a crushmap

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-03-25 11:22:43 -04:00
Kefu Chai
816c902ee5 Merge pull request #8309 from tchaikov/wip-15240
test/system/rados_list_parallel: print oid if rados_write fails

Reviewed-by: Sage Weil <sage@redhat.com>
2016-03-25 23:21:31 +08:00
Sage Weil
9f47a5b68e xxHash: fix submodule commit
This was inadvertantly rewinded in b9a14312ed

Signed-off-by: Sage Weil <sage@redhat.com>
2016-03-25 11:10:06 -04:00
xie xingguo
294cab1171 osd/pg: publish stats to osd if pg is currently marked as down
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-03-25 22:14:24 +08:00
xie xingguo
c0ceb8b7a6 osd/pg: publish stats to osd if we recovered from degraded
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-03-25 22:14:23 +08:00
xie xingguo
c6a4f34940 osd/pg: avoid publishing pg_stat twice in a short interval
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-03-25 22:14:21 +08:00
xie xingguo
be3ebd8fe5 osd/pg: fold sanity check into one single "if" qualification
Just as "boost::statechart::result
PG::RecoveryState::WaitRemoteBackfillReserved::react(const RemoteBackfillReserved &evt)"
does.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-03-25 22:14:20 +08:00
xie xingguo
81d692922b osd/pg: drop unnecessary update_heartbeat_peers()
The proc_replica_info() method will do the same job in a
smarter way, so the succeeding call to update_heartbeat_peers()
is unnecessary and cost expensive.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-03-25 22:14:19 +08:00
Sage Weil
a431d04acb Merge pull request #8211 from liewegas/wip-jewel
doc: draft notes for jewel
2016-03-25 09:55:30 -04:00
Sage Weil
bc3dcd22bb Merge pull request #8044 from dzafman/wip-8885
osd: fix dump_ops_in_flight races

Reviewed-by: Samuel Just <sjust@redhat.com>
2016-03-25 09:53:56 -04:00
Sage Weil
7a199ba536 Merge pull request #8156 from liewegas/wip-pg-query
osd/PG: indicate in pg query output whether ignore_history_les would help

Revewed-by: Samuel Just <sjust@redhat.com>
2016-03-25 09:52:35 -04:00
Sage Weil
badb37ddd7 Merge pull request #8177 from majianpeng/signal-handle
global/signal_handler: print thread name in signal handler

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-03-25 09:52:21 -04:00
Kefu Chai
71c41be3b1 test/system/rados_list_parallel: print oid if rados_write fails
Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-03-25 21:43:24 +08:00
Sage Weil
0e1fb2aeef doc/release-notes: rgw typo
Signed-off-by: Sage Weil <sage@redhat.com>
2016-03-25 09:41:12 -04:00
Orit Wasserman
e6cd78c8a4 Merge pull request #8294 from theanalyst/rgw/bucket-quota-check
rgw:Use count fn in RGWUserBuckets for quota check

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
2016-03-25 13:50:44 +01:00
Wido den Hollander
a4e63b5182 doc: Updated CloudStack RBD documentation
Signed-off-by: Wido den Hollander <wido@42on.com>
2016-03-25 12:06:37 +01:00
Marcus Watts
5bf340ebae Update SSL support a bit.
Use cmake's FindOpenSSL.  Actually use the library definitions that
come out of it.  Also use the include path.  If SSL is disabled,
then build without any of this.  The result will be a version
of civetweb that includes openssl support using dlopen() - ie,
what we used to do.  This is probably a bit silly, and I hope
nobody actually expects to use it that way, but it's mostly harmless.

Signed-off-by: Marcus Watts <mwatts@redhat.com>
2016-03-25 06:18:56 -04:00
Matt Benjamin
8e87ce74e7 cmake: add FindOpenSSL.cmake
Use find_package to enforce the dependency up front (we should be
using this pattern throughout top-level CMakeLists.txt).

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2016-03-25 06:18:56 -04:00
Kefu Chai
3e8bb4b19e doc/rados/operations/crush: fix the formatting
unlike in LaTeX, we should use ``foo`` instead of ``bar'' in the
sphinx markdown for the double quote.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-03-25 15:53:13 +08:00
Greg Farnum
ee6f064521 Merge remote-tracking branch 'origin/wip-15065'
Support new standby_for_fscid option, letting us assign daemons to FS clusters.

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2016-03-24 17:55:56 -07:00
Greg Farnum
f474c23d7c Merge branch 'wip-mfsmap-features' of git://github.com/jcsp/ceph
Clean up some code in the new multi-fs handling. Make its output
more precise and add some debug/repair config options.

Reviewed-by: Greg Farnum <gfarnum@redhat.com>

Conflicts:
	src/mds/FSMap.cc

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
2016-03-24 17:50:43 -07:00
Gregory Farnum
74ed53b38f Merge pull request #7952 from ukernel/wip-14360
mds: allow client to request caps when opening file

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2016-03-24 17:49:22 -07:00
Gregory Farnum
0831e5944c Merge pull request #8180 from ukernel/jewel-15167
Be more careful about directory fragmentation and scrubbing

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2016-03-24 17:44:53 -07:00
Gregory Farnum
1996f41846 Merge pull request #8115 from ukernel/jewel-cephfs-data-scan-misc
Minor fixes around data scan in some scenarios

Reviewed-by: John Spray <john.spray@redhat.com>
2016-03-24 17:41:38 -07:00
Yehuda Sadeh
c3fcd83271 rgw: fetch_remote_obj() fix handling of ERR_NOT_MODIFIED
got broken when disabled opstate

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-03-24 15:10:26 -07:00
Yehuda Sadeh
103f4b8706 rgw: parse mtime only when header exists and not error
No need to try parsing mtime otherwise.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-03-24 15:10:26 -07:00
Yehuda Sadeh
7fe265754c rgw: fix lockdep false positive
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-03-24 15:10:25 -07:00
Josh Durgin
a2efc127ba Merge pull request #8297 from dillaman/wip-cls-rbd-mirror-image-list
cls_rbd: mirror_image_list should return global image id

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-03-24 09:28:16 -07:00
Orit Wasserman
dc337df49b Merge pull request #8253 from wido/issue-15119
rgw: Do not send a Content-Type on a '304 Not Modified' response

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
2016-03-24 17:26:25 +01:00
Josh Durgin
20c86506ae Merge pull request #8224 from SUSE/wip-15212
rbdmap: add manpage

Reviewed-by: Boris Ranto <branto@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-03-24 09:19:48 -07:00
Jason Dillaman
206cf5a56d cls_rbd: mirror_image_list should return global image id
The global image id is needed to crosslink images when an image is
replicated between multiple clusters.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-03-24 09:02:13 -04:00
Abhishek Lekshmanan
ccdb0d1b50 rgw:Use count fn in RGWUserBuckets for quota check
We already have a count function from RGWUserBuckets class which gives
the total size of the map, use that instead of getting the map and doing
a count.

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2016-03-24 12:01:51 +01:00
Jenkins Build Slave User
96ae8bd25f 10.1.0 2016-03-24 10:53:48 +00:00
Alfredo Deza
4e3a43bc0d Merge pull request #8285 from dmick/jewel
debian/control: try installing virtualenv first, if it exists

Reviewed-by: Alfredo Deza <adeza@redhat.com>
2016-03-24 06:45:16 -04:00
Venky Shankar
ec6f108df5 os/bluestore: ceph-bluefs-tool fixes
Couple of fixes:
- check vector size before using
- fix assert() failure after write_fd()

Fixes: #15261
Signed-off-by: Venky Shankar <vshankar@redhat.com>
2016-03-24 15:52:02 +05:30
Jianpeng Ma
525a42b53c os/bluestore/BlueStore.cc: when do omapclear, it should clear omap_head.
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
2016-03-24 17:59:44 +08:00
Jianpeng Ma
53cd6420d3 osd/ReplicatedPG: when do omapclear, it clear FLAG_OMAP at the same time.
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
2016-03-24 17:58:31 +08:00
Jianpeng Ma
aeb8141c29 osd/ReplicatedPG: When do omapclear, it should check object whether is omap.
Though is_omap don't make sure object has omap header or k/v now, if
object isn't has FLAG_OMAP, it must don't have omap header or k/v.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
2016-03-24 17:55:00 +08:00
Jianpeng Ma
98caba1d0b osd/ReplicatedPG: For omap read ops, it should check object wether has omap
For set omap heaader or k/v, it set FLAG_OMAP.  When remove header
or k/v, it don't remove FLAG_OMAP  because it don't  know object whether
have omap header or other k/vs.
Though object has FLAG_OMAP dont mean now it has omap header or k/v, it
better check FLAG_OMAP than pool whether support omap operations for omap reads.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
2016-03-24 17:49:39 +08:00
xie xingguo
e29257e43d osd/pg: set dirty_info if we succeeding in updating log from master
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-03-24 16:27:28 +08:00
xie xingguo
15366b7022 osd/pg: set dirty_info if proc_master_log() dirties info
There are newly added branches for proc_master_log() method will
potentially dirty info but without setting dirty_info flag.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-03-24 16:27:16 +08:00
Kefu Chai
518c238fbf Merge pull request #8251 from majianpeng/vstart
vstart: make -k with optional mon_num.

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-03-24 11:16:43 +08:00
Jianpeng Ma
81fa2ca34f vstart: make -k with optional mon_num.
Default mon_num=3, if we change this and using -k to create a new
cluster. It don't work. So we must record the old mon_num.
The same for osd_num/mds_num/rgw_num.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
2016-03-24 17:40:42 +08:00
Josh Durgin
2de626ee98 Merge pull request #8288 from dmick/wip-default-virtualenv-path
Makefile-env.am: set a default for CEPH_BUILD_VIRTUALENV

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-03-23 19:34:55 -07:00
xie xingguo
f45094f722 osd/pg: set dirty_info after we dirty history
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-03-24 10:32:51 +08:00
Dan Mick
5b3da26f54 Makefile-env.am: set a default for CEPH_BUILD_VIRTUALENV
We need to shorten the virtualenv path for non-Jenkins builds
too; gitbuilders were also overflowing the interpreter path limit

Signed-off-by: Dan Mick <dan.mick@redhat.com>
2016-03-23 18:13:21 -07:00
Jason Dillaman
e8f56cf840 Merge pull request #8235 from trociny/wip-rbd-mirror-asok
rbd-mirror: asok commands to get status and flush on Mirror and Replayer level

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2016-03-23 20:47:01 -04:00
Dan Mick
fa05d802c6 debian/control: try installing virtualenv first, if it exists
Debian Jessie (at least) now has the virtualenv command in
package 'virtualenv', which depends on python3-virtualenv, and
that's how you get the virtualenv command there.  Earlier
Debian-based releases still use python-virtualenv.  Jessie's
virtualenv command still creates a python2 venv by default.

This will require a followup fix for install-deps.sh
to handle the | correctly, because currently it sends
the string to apt-get, which treats it as a regular expression
alternation of the two package names, so will try to install both.

The problem occurs when packages are installed without Recommended
packages (because jessie's virtualenv package currently Recommends
python-virtualenv); this is the case under pbuilder, and also using
'mk-build-deps --install', and I suspect under other automated
package-building tools.

Note that Build-Requires processing is not specified to
perform the searches in left-to-right order, so even this is
a tenuous workaround.  We probably need distro-specific
debian/ directories.

Signed-off-by: Dan Mick <dan.mick@redhat.com>
2016-03-23 17:38:12 -07:00
Jason Dillaman
35fe15aa17 Merge pull request #8280 from rjfd/wip-15238
rbd-mirror: switch fsid over to mirror uuid

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2016-03-23 20:34:17 -04:00