]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
10 years agomon: Monitor: use 'ceph mon compact' instead of 'ceph compact'
Joao Eduardo Luis [Fri, 8 May 2015 23:06:35 +0000 (00:06 +0100)]
mon: Monitor: use 'ceph mon compact' instead of 'ceph compact'

Makes it easier to identify the command as being related with the
monitor instead of cluster-wide.

This entails adding an exception to module 'mon' in order to have this
command handled by the Monitor class instead of MonmapMonitor (which is
the one traditionally handling 'mon' module commands).

Fixes: #11545
Signed-off-by: Joao Eduardo Luis <joao@suse.de>
10 years agoqa/workunits: cephtool: test deprecated commands
Joao Eduardo Luis [Fri, 8 May 2015 18:50:35 +0000 (19:50 +0100)]
qa/workunits: cephtool: test deprecated commands

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
10 years agoPendingReleaseNotes: note deprecation of commands
Joao Eduardo Luis [Fri, 8 May 2015 23:27:24 +0000 (00:27 +0100)]
PendingReleaseNotes: note deprecation of commands

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
10 years agomon: MonCommands.h: DEPRECATE 'ceph sync force'
Joao Eduardo Luis [Fri, 8 May 2015 18:15:03 +0000 (19:15 +0100)]
mon: MonCommands.h: DEPRECATE 'ceph sync force'

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
10 years agomon: MonCommands.h: DEPRECATE 'ceph compact'
Joao Eduardo Luis [Fri, 8 May 2015 18:14:42 +0000 (19:14 +0100)]
mon: MonCommands.h: DEPRECATE 'ceph compact'

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
10 years agomon: MonCommands.h: DEPRECATE 'ceph scrub'
Joao Eduardo Luis [Fri, 8 May 2015 18:14:16 +0000 (19:14 +0100)]
mon: MonCommands.h: DEPRECATE 'ceph scrub'

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
10 years agomon: Monitor: allow deprecating commands and debugging as obsolete
Joao Eduardo Luis [Fri, 8 May 2015 18:09:03 +0000 (19:09 +0100)]
mon: Monitor: allow deprecating commands and debugging as obsolete

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
10 years agomon: Monitor: add is_noforward() helper to MonCommand
Joao Eduardo Luis [Fri, 8 May 2015 18:05:00 +0000 (19:05 +0100)]
mon: Monitor: add is_noforward() helper to MonCommand

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
10 years agomon: Monitor: add support to have OBSOLETE commands
Joao Eduardo Luis [Fri, 8 May 2015 18:02:58 +0000 (19:02 +0100)]
mon: Monitor: add support to have OBSOLETE commands

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
10 years agomon: MonCommand: don't match help string in is_compat()
Joao Eduardo Luis [Fri, 8 May 2015 15:29:23 +0000 (16:29 +0100)]
mon: MonCommand: don't match help string in is_compat()

Otherwise it's virtually impossible to change a command's help string
without triggering a mismatch with the leader's command set.

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
10 years agomon: MonCommands: add NOFORWARD to 'ceph sync force'
Joao Eduardo Luis [Fri, 8 May 2015 15:00:35 +0000 (16:00 +0100)]
mon: MonCommands: add NOFORWARD to 'ceph sync force'

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
10 years agomon: MonCommand: add FLAG_NONE
Joao Eduardo Luis [Fri, 8 May 2015 14:57:08 +0000 (15:57 +0100)]
mon: MonCommand: add FLAG_NONE

Instead of passing '0' for commands without flags, pass FLAG_NONE
instead.  It's prettier and more obvious -- and it only costs 64 bits.

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
10 years agomon: MonCommand: have flags as uint32_t instead of enum
Joao Eduardo Luis [Fri, 8 May 2015 14:53:31 +0000 (15:53 +0100)]
mon: MonCommand: have flags as uint32_t instead of enum

Makes much more sense if we're OR'ing flags.  Or not as weird.

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
10 years agomon: MonCommands: accept FLAG(f) instead of 'f' in command sig
Joao Eduardo Luis [Fri, 8 May 2015 14:47:55 +0000 (15:47 +0100)]
mon: MonCommands: accept FLAG(f) instead of 'f' in command sig

This allows us to do nifty stuff like 'FLAG(foo) | FLAG(bar)' and expand
it to (MonCommand::FLAG_foo | MonCommand::FLAG_bar), instead of being
bound by a single flag on macro expansion.

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
10 years agoMerge pull request #5143 from trociny/fix-mds_metadata
Kefu Chai [Thu, 16 Jul 2015 06:41:41 +0000 (14:41 +0800)]
Merge pull request #5143 from trociny/fix-mds_metadata

mon: fix mds metadata

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
Reviewed-by: Kefu Chai <kchai@redhat.com>
10 years agoMerge pull request #4917 from hjwsm1989/wip-rest-bench
Kefu Chai [Thu, 16 Jul 2015 04:19:06 +0000 (12:19 +0800)]
Merge pull request #4917 from hjwsm1989/wip-rest-bench

 tools/rest_bench.cc: bucket is not mandatory bc we have a default one

Reviewed-by: Kefu Chai <kchai@redhat.com>
10 years ago rest_bench: bucketname is not mandatory as we have a default name 4917/head
huangjun [Thu, 16 Jul 2015 01:42:55 +0000 (09:42 +0800)]
  rest_bench: bucketname is not mandatory as we have a default name

Signed-off-by: huangjun <hjwsm1989@gmail.com>
10 years ago rest_bench: drain the work queue to fix a crash
huangjun [Thu, 16 Jul 2015 01:17:59 +0000 (09:17 +0800)]
  rest_bench: drain the work queue to fix a crash
Fixes: #3896
Signed-off-by: huangjun <hjwsm1989@gmail.com>
10 years agoMerge pull request #5249 from tchaikov/wip-11101
Kefu Chai [Wed, 15 Jul 2015 15:53:16 +0000 (23:53 +0800)]
Merge pull request #5249 from tchaikov/wip-11101

ceph.in: improve the error message

Reviewed-by: Abhishek Lekshmanan <abhishek.lekshmanan@ril.com>
10 years agoMerge pull request #5110 from ceph/wip-11864-rgw-mime-types-pkg
branto1 [Wed, 15 Jul 2015 15:49:05 +0000 (17:49 +0200)]
Merge pull request #5110 from ceph/wip-11864-rgw-mime-types-pkg

11864: packaging: RGW depends on /etc/mime.types

Reviewed-by: Boris Ranto <branto@redhat.com>
10 years agopackaging: RGW depends on /etc/mime.types 5110/head
Ken Dreyer [Tue, 23 Jun 2015 19:41:53 +0000 (13:41 -0600)]
packaging: RGW depends on /etc/mime.types

If the mimecap RPM or mime-support DEB is not installed, then the
/etc/mime.types file is not present on the system. RGW attempts to read
this file during startup, and if the file is not present, RGW logs an
error:

  ext_mime_map_init(): failed to open file=/etc/mime.types ret=-2

Make the radosgw package depend on the mailcap/mime-support packages so
that /etc/mime.types is always available on RGW systems.

http://tracker.ceph.com/issues/11864 Fixes: #11864

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
10 years agoMerge pull request #4699 from joehandzik/master
Sage Weil [Wed, 15 Jul 2015 13:47:22 +0000 (09:47 -0400)]
Merge pull request #4699 from joehandzik/master

FileStore: Collect device partition information

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Haomai Wang <haomaiwang@gmail.com>
10 years agoMerge pull request #4876 from ceph/wip-11855
Sage Weil [Wed, 15 Jul 2015 13:45:33 +0000 (09:45 -0400)]
Merge pull request #4876 from ceph/wip-11855

crush: fix 'ceph osd crush reweight-subtree'

Reviewed-by: Li Wang <liwang@ubuntukylin.com>
Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agoceph.in: print more detailed warning for 'ceph <type> tell' 5249/head
Kefu Chai [Wed, 15 Jul 2015 11:03:33 +0000 (19:03 +0800)]
ceph.in: print more detailed warning for 'ceph <type> tell'

put the full signature of "tell <target> <command> [options...]"
instead of "tell {0}.<id>", which could be misleading somehow.

Fixes: 11101
Signed-off-by: Kefu Chai <kchai@redhat.com>
10 years agoceph.in: print more detailed error message for 'tell' command
Kefu Chai [Wed, 15 Jul 2015 10:01:52 +0000 (18:01 +0800)]
ceph.in: print more detailed error message for 'tell' command

* we do not allow user specify a certain daemon when starting an
  interactive session. the existing error message could lead to
  some confusion. so put more details in it.

Fixes: #11101
Signed-off-by: Kefu Chai <kchai@redhat.com>
10 years agoMerge pull request #5245 from yuyuyu101/wip-async-fix-18
Haomai Wang [Wed, 15 Jul 2015 08:12:45 +0000 (16:12 +0800)]
Merge pull request #5245 from yuyuyu101/wip-async-fix-18

AsyncConnection: Fix incorrect sign_message usages

10 years agoMerge pull request #5244 from zhouyuan/rgw_obj_stripe_size
Loic Dachary [Wed, 15 Jul 2015 05:53:35 +0000 (07:53 +0200)]
Merge pull request #5244 from zhouyuan/rgw_obj_stripe_size

rgw: doc: Fix radosgw stripe size config ref

Reviewed-by: Abhishek Lekshmanan <abhishek.lekshmanan@ril.com>
10 years agoMerge pull request #5240 from dachary/wip-ceph-release-notes
Loic Dachary [Wed, 15 Jul 2015 05:52:38 +0000 (07:52 +0200)]
Merge pull request #5240 from dachary/wip-ceph-release-notes

tools: src/script/ceph-release-notes normalization

Reviewed-by: Abhishek Lekshmanan <abhishek.lekshmanan@ril.com>
10 years agoMerge pull request #5165 from zhouyuan/librados_default_crush_ruleset
Kefu Chai [Wed, 15 Jul 2015 02:37:06 +0000 (10:37 +0800)]
Merge pull request #5165 from zhouyuan/librados_default_crush_ruleset

Make librados pool_create respect default_crush_ruleset

Reviewed-by: Kefu Chai <kchai@redhat.com>
10 years agolibrados: Make librados pool_create respect default_crush_ruleset 5165/head
Yuan Zhou [Wed, 8 Jul 2015 02:35:49 +0000 (10:35 +0800)]
librados: Make librados pool_create respect default_crush_ruleset

Make pool_create in librados use the osd_pool_default_crush_replicated_ruleset

Fixes: #11640
Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
10 years agoAsyncConnection: Make sign_message ahead of construct message bufferlist 5245/head
Haomai Wang [Tue, 14 Jul 2015 18:06:36 +0000 (02:06 +0800)]
AsyncConnection: Make sign_message ahead of construct message bufferlist

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
10 years agoAsyncConnection: Fix non-fastdispatch message doesn't prepare case
Haomai Wang [Tue, 14 Jul 2015 17:44:14 +0000 (01:44 +0800)]
AsyncConnection: Fix non-fastdispatch message doesn't prepare case

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
10 years agorgw: doc: Fix radosgw stripe size config ref 5244/head
Yuan Zhou [Tue, 14 Jul 2015 15:53:20 +0000 (23:53 +0800)]
rgw: doc: Fix radosgw stripe size config ref

s/rgw object stripe size/rgw obj stripe size
https://github.com/ceph/ceph/blob/master/src/common/config_opts.h#L1024

Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
10 years agotools: src/script/ceph-release-notes normalization 5240/head
Loic Dachary [Tue, 14 Jul 2015 13:59:38 +0000 (15:59 +0200)]
tools: src/script/ceph-release-notes normalization

Issue an error if for the title does not start with a known prefix.
Issue an error if no issue is associated to a pull request.

Group the pull requests fixing the same issue together.

Add link to the issue and the pull request.

Signed-off-by: Loic Dachary <loic@dachary.org>
10 years agoMerge pull request #5230 from majianpeng/check_ops_in_flight_cleanup
Gregory Farnum [Tue, 14 Jul 2015 14:10:34 +0000 (15:10 +0100)]
Merge pull request #5230 from majianpeng/check_ops_in_flight_cleanup

common: clean up code for OpTracker::check_ops_in_flight.

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agocommon: clean up code for OpTracker::check_ops_in_flight. 5230/head
Jianpeng Ma [Tue, 14 Jul 2015 14:02:21 +0000 (22:02 +0800)]
common: clean up code for OpTracker::check_ops_in_flight.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
10 years agoMerge pull request #5220 from vumrao/wip-vumrao-12318
Kefu Chai [Tue, 14 Jul 2015 12:19:21 +0000 (20:19 +0800)]
Merge pull request #5220 from vumrao/wip-vumrao-12318

doc: change tcp rcvbuf and tcp nodelay to ms tcp rcvbuf and ms tcp nodelay

Reviewed-by: Kefu Chai <kchai@redhat.com>
10 years agodoc: change tcp rcvbuf and tcp nodelay to ms tcp rcvbuf 5220/head
Vikhyat Umrao [Tue, 14 Jul 2015 03:42:06 +0000 (09:12 +0530)]
doc: change tcp rcvbuf and tcp nodelay to ms tcp rcvbuf
     and ms tcp nodelay

Signed-off-by: Vikhyat Umrao <vumrao@redhat.com>
10 years agoMerge pull request #4939 from ceph/wip-offline-backward
Gregory Farnum [Tue, 14 Jul 2015 10:42:48 +0000 (11:42 +0100)]
Merge pull request #4939 from ceph/wip-offline-backward

cephfs-data-scan (offline backward file recovery)

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agoMerge pull request #5190 from guce/master
Yehuda Sadeh [Mon, 13 Jul 2015 22:51:35 +0000 (15:51 -0700)]
Merge pull request #5190 from guce/master

radosgw-admin: after subuser modify print only once user info

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoMerge pull request #5183 from zhouyuan/rgw_max_put_size_configurable
Yehuda Sadeh [Mon, 13 Jul 2015 22:47:56 +0000 (15:47 -0700)]
Merge pull request #5183 from zhouyuan/rgw_max_put_size_configurable

rgw: Make RGW_MAX_PUT_SIZE configurable

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoMerge pull request #5213 from wido/wip-rgw-keepalive
Yehuda Sadeh [Mon, 13 Jul 2015 22:30:24 +0000 (15:30 -0700)]
Merge pull request #5213 from wido/wip-rgw-keepalive

rgw: If the client sends a Connection: close header respond accordingly.

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoMerge pull request #5210 from tweenk/docs-improvements
Josh Durgin [Mon, 13 Jul 2015 20:41:34 +0000 (13:41 -0700)]
Merge pull request #5210 from tweenk/docs-improvements

Document librbd::parent_spec and librbd::parent_info.

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agoMerge pull request #5215 from SUSE/wip-fdupes
Ken Dreyer [Mon, 13 Jul 2015 16:26:26 +0000 (10:26 -0600)]
Merge pull request #5215 from SUSE/wip-fdupes

ceph.spec.in: do not run fdupes, even on SLE/openSUSE

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
10 years agoceph.spec.in: do not run fdupes, even on SLE/openSUSE 5215/head
Nathan Cutler [Mon, 13 Jul 2015 16:12:01 +0000 (18:12 +0200)]
ceph.spec.in: do not run fdupes, even on SLE/openSUSE

In openSUSE there is a policy to use %fdupes in the spec file if RPMLINT
complains about duplicate files wasting space in the filesystem.

However, RPMLINT is not so complaining, so drop fdupes.

http://tracker.ceph.com/issues/12301 Fixes: #12301

Signed-off-by: Nathan Cutler <ncutler@suse.com>
10 years agoMerge pull request #5102 from ceph/wip-mds-refactor-small
Gregory Farnum [Mon, 13 Jul 2015 15:01:40 +0000 (16:01 +0100)]
Merge pull request #5102 from ceph/wip-mds-refactor-small

Minor MDS:: refactor

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agoMerge pull request #5209 from zhouyuan/rgw_swift_user
Sage Weil [Mon, 13 Jul 2015 14:15:07 +0000 (10:15 -0400)]
Merge pull request #5209 from zhouyuan/rgw_swift_user

rgw: Make vstart.sh print out swift user info

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agopackaging: add cephfs-data-scan 4939/head
John Spray [Thu, 14 May 2015 15:05:48 +0000 (16:05 +0100)]
packaging: add cephfs-data-scan

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agotools/cephfs: add cephfs-data-scan
John Spray [Wed, 29 Apr 2015 12:45:46 +0000 (13:45 +0100)]
tools/cephfs: add cephfs-data-scan

For scraping cephfs data pools for metadata in
backtraces, and injecting that metadata into
the cephfs metadata pool (initially offline).

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agodoc: add some docs about cephfs-data-scan
John Spray [Fri, 8 May 2015 15:22:20 +0000 (16:22 +0100)]
doc: add some docs about cephfs-data-scan

These are deliberately fairly sparse, because:
 * These tools are for experts
 * These tools may well be wrapped in a higher
   level recovery tool that orchestrates parallel
   workers at some stage.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoinclude/ceph_fs.h: define magic LOST+FOUND ino
John Spray [Fri, 8 May 2015 13:24:37 +0000 (14:24 +0100)]
include/ceph_fs.h: define magic LOST+FOUND ino

So that recovery tools can create this dir without
having to consult/modify InoTable.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agocls: add CephFS object class
John Spray [Wed, 6 May 2015 11:38:44 +0000 (12:38 +0100)]
cls: add CephFS object class

For use in cephfs-data-scan for file size and mtime
recovery, by doing a set-if-greater for size/mtime
xattrs on the 0th object of a file.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomds: include damage_flags in inter-mds encoding
John Spray [Thu, 25 Jun 2015 13:08:39 +0000 (14:08 +0100)]
mds: include damage_flags in inter-mds encoding

...and correspondingly bump the cluster protocol
version as these structures are not versioned
themselves.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomds: bump required version on fnode_t encoding
John Spray [Wed, 8 Jul 2015 09:16:46 +0000 (10:16 +0100)]
mds: bump required version on fnode_t encoding

So that older MDS instances can't miss/ignore
the damage flags.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomds: add damage_flags_t to inode+frag
John Spray [Mon, 22 Jun 2015 15:05:35 +0000 (16:05 +0100)]
mds: add damage_flags_t to inode+frag

Used to mark inodes+fnodes with flags indicating
that particular types of damage have either
been detected (scrub/fetch) or caused (cephfs-data-scan
inject).

This should serve as a cue to the MDS to do online
repair of stats for the nodes that have been injected.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomds/CInode: move hash_dentry_name up into InodeStore
John Spray [Fri, 12 Jun 2015 13:24:04 +0000 (14:24 +0100)]
mds/CInode: move hash_dentry_name up into InodeStore

Because it only depends on the data in the store, not
anything from a live MDS, and it's useful when
we're dealing with fragmented directories from
an offline tool.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agotools: fix journal reset error handling
John Spray [Thu, 14 May 2015 14:08:16 +0000 (15:08 +0100)]
tools: fix journal reset error handling

When we failed and prompted for --force, it still
looked like a success.  ::reset never had any
proper error handling since it was lifted out
of the MDS, so add it now.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoclient: fix typo
John Spray [Thu, 7 May 2015 16:55:53 +0000 (17:55 +0100)]
client: fix typo

s/bye/byte/

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomds: correct typo in log message
John Spray [Thu, 7 May 2015 10:28:50 +0000 (11:28 +0100)]
mds: correct typo in log message

s/issueing/issuing/

Silly, but it annoyed me every time I saw it...

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoMerge pull request #5164 from ceph/wip-12088
John Spray [Mon, 13 Jul 2015 12:35:54 +0000 (13:35 +0100)]
Merge pull request #5164 from ceph/wip-12088

client: reference counting 'struct Fh'

Reviewed-by: John Spray <john.spray@redhat.com>
10 years agorgw: If the client sends a Connection: close header respond accordingly. 5213/head
Wido den Hollander [Fri, 10 Jul 2015 22:01:52 +0000 (00:01 +0200)]
rgw: If the client sends a Connection: close header respond accordingly.

HTTP/1.1 assumes Keep-Alive by default, but if a Connection: close header is send
the server should respond with it as well.

This makes the client close the connection after the request.

Fixes: #12298
10 years agoMerge pull request #5201 from ceph/wip-12272
John Spray [Mon, 13 Jul 2015 07:35:44 +0000 (08:35 +0100)]
Merge pull request #5201 from ceph/wip-12272

tools: Fix rados export to use io_ctx in the right way

Reviewed-by: John Spray <john.spray@redhat.com>
10 years agorgw: Make vstart.sh print out swift user info 5209/head
Yuan Zhou [Mon, 13 Jul 2015 03:07:41 +0000 (11:07 +0800)]
rgw: Make vstart.sh print out swift user info

Currently vstart.sh only print out S3 user info. This patch updates it
to print swift user info too. Also changes the swift account/user/password
to test/tester/testing which align with openstack-swift better:
https://github.com/openstack/swift/blob/master/etc/proxy-server.conf-sample#L270

Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
10 years agoFixes: #12286 radosgw-admin: after subuser modify print only once user info. 5190/head
guce [Sat, 11 Jul 2015 06:08:33 +0000 (14:08 +0800)]
Fixes: #12286 radosgw-admin: after subuser modify print only once user info.
remove rgw_admin.cc OPT_SUBUSER_MODIFY, show_user_info code block.

switch (opt_cmd) {
...
case OPT_SUBUSER_MODIFY:
show_user_info(info, formatter);       //show first time (remove this)
break;
...
}

// output the result of a user operation
if (output_user_info) {
...
show_user_info(info, formatter);       //show second time
}

test fix:
before: after subuser modify print twice user info.
after changes, do the same procedure, print only once user info.

Signed-off-by: guce guce@h3c.com
10 years agorgw: Make RGW_MAX_PUT_SIZE configurable 5183/head
Yuan Zhou [Thu, 9 Jul 2015 08:56:07 +0000 (16:56 +0800)]
rgw: Make RGW_MAX_PUT_SIZE configurable

The 5GB limit of a single operation uploading was part of S3 spec.
However some private setups may have some special requirements
on this limit. It's more convinent to have a configurable value.

Fixes: #6999
Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
10 years agotools: Fix rados export to use io_ctx in the right way 5201/head
David Zafman [Fri, 10 Jul 2015 21:40:34 +0000 (14:40 -0700)]
tools: Fix rados export to use io_ctx in the right way

Cause by: 868f6b7626db4a802b38d1d8ce5135108b322f74

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoMerge pull request #5197 from ceph/wip-cot-meta
David Zafman [Fri, 10 Jul 2015 21:31:10 +0000 (14:31 -0700)]
Merge pull request #5197 from ceph/wip-cot-meta

Wip cot meta

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #5198 from tchaikov/wip-doc-erasure-fix
Loic Dachary [Fri, 10 Jul 2015 19:34:58 +0000 (21:34 +0200)]
Merge pull request #5198 from tchaikov/wip-doc-erasure-fix

doc/erasure-code: fix couple typos

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agodoc/erasure-code: fix couple typos 5198/head
Kefu Chai [Fri, 10 Jul 2015 17:47:14 +0000 (01:47 +0800)]
doc/erasure-code: fix couple typos

Signed-off-by: Kefu Chai <kchai@redhat.com>
10 years agotools, test: Some ceph-objectstore-tool error handling fixes 5197/head
David Zafman [Fri, 26 Jun 2015 00:15:39 +0000 (17:15 -0700)]
tools, test: Some ceph-objectstore-tool error handling fixes

Improve various error messages generated with invalid syntax
Add test cases for most of these error messages

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agotest: Add debug argument to the ceph-objectstore-tool test
David Zafman [Tue, 23 Jun 2015 23:51:27 +0000 (16:51 -0700)]
test: Add debug argument to the ceph-objectstore-tool test

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agotools: Check for valid --op earlier so we can get a better error message
David Zafman [Tue, 23 Jun 2015 03:11:10 +0000 (20:11 -0700)]
tools: Check for valid --op earlier so we can get a better error message

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agotools, test: Add ceph-objectstore-tool to operate on the meta collection
David Zafman [Thu, 4 Jun 2015 17:37:42 +0000 (10:37 -0700)]
tools, test: Add ceph-objectstore-tool to operate on the meta collection

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agotools: Fix newlines in output of --op list
David Zafman [Thu, 11 Jun 2015 00:04:57 +0000 (17:04 -0700)]
tools: Fix newlines in output of --op list

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agotools: Fix dump-super which doesn't require pgid
David Zafman [Tue, 23 Jun 2015 01:38:01 +0000 (18:38 -0700)]
tools: Fix dump-super which doesn't require pgid

A valid pgid had to be specified in order for superblock to be displayed,
but it was otherwise ignored.
Fix message that didn't include dump-super

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agotools: Check and specify commands that require the pgid specification
David Zafman [Tue, 23 Jun 2015 02:16:22 +0000 (19:16 -0700)]
tools: Check and specify commands that require the pgid specification

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoMerge pull request #4404 from rzarzynski/wip-11431
Yehuda Sadeh [Fri, 10 Jul 2015 16:30:24 +0000 (09:30 -0700)]
Merge pull request #4404 from rzarzynski/wip-11431

rgw: fix lack of account name attribute in XML-formatted bucket listing of Swift account

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoMerge pull request #5078 from rzarzynski/wip-12158
Yehuda Sadeh [Fri, 10 Jul 2015 16:06:08 +0000 (09:06 -0700)]
Merge pull request #5078 from rzarzynski/wip-12158

rgw: send Content-Length in response for GET on Swift account.

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoMerge branch 'wip-temp'
Sage Weil [Fri, 10 Jul 2015 15:35:23 +0000 (11:35 -0400)]
Merge branch 'wip-temp'

Conflicts:
src/osd/ReplicatedPG.cc
src/test/osd/RadosModel.h

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: David Zafman <dzafman@redhat.com>
10 years agoosd, tools: Always filter temp objects since not being exported
David Zafman [Tue, 7 Jul 2015 01:14:06 +0000 (18:14 -0700)]
osd, tools: Always filter temp objects since not being exported

Can't use object_locator_to_pg() directly with a temp object
because the pool is negative.

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agotools: Don't export temporary objects until we have persistent-temp objects
David Zafman [Mon, 22 Jun 2015 18:15:58 +0000 (11:15 -0700)]
tools: Don't export temporary objects until we have persistent-temp objects

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoosd: fix temp clearing in OSD
David Zafman [Mon, 6 Jul 2015 23:35:16 +0000 (16:35 -0700)]
osd: fix temp clearing in OSD

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoDocument librbd::parent_spec and librbd::parent_info. 5210/head
Krzysztof Kosiński [Fri, 10 Jul 2015 09:49:45 +0000 (11:49 +0200)]
Document librbd::parent_spec and librbd::parent_info.

Add an explanatory comment to parent_types.h that explains what
the "overlap" member in parent_info means. This was not exactly easy
to figure out.

Signed-off-by: Krzysztof Kosiński <krzysztof.kosinski@intel.com>
10 years agoMerge pull request #5175 from david-z/wip-mds-dump-crash
Yan, Zheng [Fri, 10 Jul 2015 09:24:41 +0000 (17:24 +0800)]
Merge pull request #5175 from david-z/wip-mds-dump-crash

Fix mds dump_ops_in_flight crashing ocassionally

10 years agoFix mds dump_ops_in_flight crashing ocassionally 5175/head
zhangzhi [Fri, 10 Jul 2015 09:10:30 +0000 (17:10 +0800)]
Fix mds dump_ops_in_flight crashing ocassionally

10 years agoMerge pull request #4977 from theanalyst/rados/wip-9737
Loic Dachary [Fri, 10 Jul 2015 08:00:11 +0000 (10:00 +0200)]
Merge pull request #4977 from theanalyst/rados/wip-9737

rados/tool: handle --snapid correctly

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #5185 from yuyuyu101/wip-store-test-zero
Haomai Wang [Fri, 10 Jul 2015 01:50:36 +0000 (09:50 +0800)]
Merge pull request #5185 from yuyuyu101/wip-store-test-zero

StoreTest: Add zero test for SyntheticTest

10 years agoMerge pull request #3273 from majianpeng/fix4
Samuel Just [Fri, 10 Jul 2015 00:13:43 +0000 (17:13 -0700)]
Merge pull request #3273 from majianpeng/fix4

cleanup code for RecoveyMessages

Reviewed-by: Samuel Just <sjust@redhat.com>
10 years agoMerge pull request #4143 from majianpeng/ec-notsupp-omap
Samuel Just [Fri, 10 Jul 2015 00:12:28 +0000 (17:12 -0700)]
Merge pull request #4143 from majianpeng/ec-notsupp-omap

fix bugs about cache tier.

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #4329 from majianpeng/filestore-copy
Samuel Just [Fri, 10 Jul 2015 00:10:57 +0000 (17:10 -0700)]
Merge pull request #4329 from majianpeng/filestore-copy

Filestore copy:using splice instead read/write for clone

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
10 years agoMerge pull request #4458 from wonzhq/dup-promote
Samuel Just [Fri, 10 Jul 2015 00:10:10 +0000 (17:10 -0700)]
Merge pull request #4458 from wonzhq/dup-promote

osd/ReplicatedPG: need to queue op when avoiding dup promotion in maybe_handle_cache

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
10 years agoMerge pull request #5075 from SUSE/wip-logrotate-requires
Ken Dreyer [Thu, 9 Jul 2015 21:37:11 +0000 (15:37 -0600)]
Merge pull request #5075 from SUSE/wip-logrotate-requires

packaging: add find and which dependencies

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
10 years agopackaging: add find and which dependencies 5075/head
Nathan Cutler [Thu, 25 Jun 2015 14:00:24 +0000 (16:00 +0200)]
packaging: add find and which dependencies

The postrotate script in src/logrotate.conf uses the which and find utilities
to do its work. Although logrotate itself is only a Recommends, I think which
and find are so ubiquitous that it makes sense to have them as hard
dependencies.

Also, I checked and the package names which and findutils are the same on all
the RPM distros we are currently targeting in the spec file.

In Debian, find is also in a package called findutils while the package
containing 'which' is called debianutils.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
10 years agoMerge pull request #5187 from SUSE/wip-12261
Ken Dreyer [Thu, 9 Jul 2015 19:44:54 +0000 (13:44 -0600)]
Merge pull request #5187 from SUSE/wip-12261

ceph.spec.in: install 95-ceph-osd.rules, mount.ceph, and mount.fuse.c…

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
10 years agoMerge pull request #5181 from SUSE/wip-snappy-devel
Ken Dreyer [Thu, 9 Jul 2015 19:43:37 +0000 (13:43 -0600)]
Merge pull request #5181 from SUSE/wip-snappy-devel

ceph.spec.in: snappy-devel for all supported distros

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
10 years agoMerge pull request #5180 from SUSE/wip-add-missing-specfile-bit
Ken Dreyer [Thu, 9 Jul 2015 19:42:40 +0000 (13:42 -0600)]
Merge pull request #5180 from SUSE/wip-add-missing-specfile-bit

ceph.spec.in: add missing -%{release}

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
10 years agoMerge pull request #5076 from SUSE/wip-logrotate-hard-dependency
Ken Dreyer [Thu, 9 Jul 2015 19:40:23 +0000 (13:40 -0600)]
Merge pull request #5076 from SUSE/wip-logrotate-hard-dependency

packaging: make logrotate a hard dependency across all distros

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
 Conflicts:
debian/control

10 years agoceph.spec.in: install 95-ceph-osd.rules, mount.ceph, and mount.fuse.ceph properly... 5187/head
Nathan Cutler [Thu, 9 Jul 2015 19:38:46 +0000 (21:38 +0200)]
ceph.spec.in: install 95-ceph-osd.rules, mount.ceph, and mount.fuse.ceph properly on SUSE

http://tracker.ceph.com/issues/12261 Fixes: #12261

Signed-off-by: Nathan Cutler <ncutler@suse.com>
10 years agoMerge pull request #5079 from SUSE/wip-12166
Ken Dreyer [Thu, 9 Jul 2015 18:55:54 +0000 (12:55 -0600)]
Merge pull request #5079 from SUSE/wip-12166

ceph.spec.in: use %_udevrulesdir to eliminate conditionals

10 years agoMerge pull request #5126 from SUSE/wip-12201
Ken Dreyer [Thu, 9 Jul 2015 16:32:26 +0000 (10:32 -0600)]
Merge pull request #5126 from SUSE/wip-12201

ceph.spec.in: /var/run/ceph fixes

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
Reviewed-by: Boris Ranto <branto@redhat.com>