]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
9 years agosystemd: Use the same restart limits as upstart 8188/head
Boris Ranto [Thu, 17 Mar 2016 17:54:47 +0000 (18:54 +0100)]
systemd: Use the same restart limits as upstart

Currently, the systemd daemons are not restarted on failure. This patch
adds this functionality and sets the defaults to those defined in
upstart. This resolves to 3 fails per 30 minutes for osd, mon and mds
and 5 fails per 30 seconds for radosgw.

Signed-off-by: Boris Ranto <branto@redhat.com>
9 years agoMerge pull request #8498 from liewegas/wip-bluestore
Sage Weil [Wed, 13 Apr 2016 15:26:44 +0000 (11:26 -0400)]
Merge pull request #8498 from liewegas/wip-bluestore

os/bluestore: fix shortened bluefs paths in env mirror case

9 years agoos/bluestore: fix shortened bluefs paths in env mirror case 8498/head
Sage Weil [Thu, 7 Apr 2016 23:00:26 +0000 (19:00 -0400)]
os/bluestore: fix shortened bluefs paths in env mirror case

If we are mirroring the rocksdb env, don't shorten the
paths.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #8556 from liewegas/wip-ext4
Sage Weil [Wed, 13 Apr 2016 13:19:19 +0000 (09:19 -0400)]
Merge pull request #8556 from liewegas/wip-ext4

doc: recommend against ext4

Reviewed-by: Alfredo Deza <adeza@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.cz>
9 years agoMerge pull request #8574 from tchaikov/wip-readable-test-fix
Kefu Chai [Wed, 13 Apr 2016 12:32:50 +0000 (20:32 +0800)]
Merge pull request #8574 from tchaikov/wip-readable-test-fix

test/encoding/readable: use [ for "test" not ((

Reviewed-by: Erwan Velu <erwan@redhat.com>
9 years agoMerge pull request #8567 from cbodley/wip-rgw-period-pull-url
Orit Wasserman [Wed, 13 Apr 2016 11:30:05 +0000 (13:30 +0200)]
Merge pull request #8567 from cbodley/wip-rgw-period-pull-url

radosgw-admin: allow 'period pull --url' without full multisite config
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
9 years agotest/encoding/readable: use [ for "test" not (( 8574/head
Kefu Chai [Wed, 13 Apr 2016 08:04:33 +0000 (16:04 +0800)]
test/encoding/readable: use [ for "test" not ((

and use '&&' instead, easier to understand.

this also fixes following error in the ubuntu gitbuilder

error: Added files:
+ cat .git/added-files
src/0

where sh points to dash.

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agoradosgw-admin: 'realm pull' only accepts --url 8567/head
Casey Bodley [Mon, 11 Apr 2016 20:53:48 +0000 (16:53 -0400)]
radosgw-admin: 'realm pull' only accepts --url

'realm pull' is defined as a 'raw storage op', so cannot use the
--remote argument to refer to endpoints from the period or local
zonegroup

refactored send_to_url() slightly to make it easier to call directly

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agoradosgw-admin: allow 'period pull --url' without full multisite config
Casey Bodley [Fri, 8 Apr 2016 19:54:27 +0000 (15:54 -0400)]
radosgw-admin: allow 'period pull --url' without full multisite config

to support 'period pull --remote', radosgw-admin needs a complete
multisite configuration to look up remote endpoints by name

however, 'period pull' will also accept a --url argument, which doesn't
require a working configuration. this patch splits the handling of these
two cases, so that 'period pull --url' can succeed when run on a cluster
that hasn't yet been fully configured

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agoMerge pull request #8520 from yuyuyu101/wip-15440
Sage Weil [Tue, 12 Apr 2016 20:23:57 +0000 (16:23 -0400)]
Merge pull request #8520 from yuyuyu101/wip-15440

msg/async: AsyncConnection: avoid is_connected require connection's lock

9 years agoMerge pull request #8559 from liewegas/wip-15643
Sage Weil [Tue, 12 Apr 2016 18:03:56 +0000 (14:03 -0400)]
Merge pull request #8559 from liewegas/wip-15643

rgw: fix unsafe c_str() usage

Reviewed-by: Casey Bodley <cbodley@redhat.com>
9 years agodoc/configuration/filesystem-recommendations: recommend against ext4 8556/head
Sage Weil [Tue, 12 Apr 2016 17:24:56 +0000 (13:24 -0400)]
doc/configuration/filesystem-recommendations: recommend against ext4

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agodoc/release-notes: mention ext4 in the release notes
Sage Weil [Tue, 12 Apr 2016 13:06:14 +0000 (09:06 -0400)]
doc/release-notes: mention ext4 in the release notes

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agodoc/start/os-recommendations: drop ancient 'syncfs' note
Sage Weil [Tue, 12 Apr 2016 13:02:48 +0000 (09:02 -0400)]
doc/start/os-recommendations: drop ancient 'syncfs' note

...and with it it's mention of ext4.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agodoc/rados/configuration: minor cleanup of inline xattr description
Sage Weil [Tue, 12 Apr 2016 12:50:49 +0000 (08:50 -0400)]
doc/rados/configuration: minor cleanup of inline xattr description

- whitespace
- it's not omap

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agorgw/rgw_rados: use to_str() instead of c_str() 8559/head
Sage Weil [Tue, 12 Apr 2016 14:25:19 +0000 (10:25 -0400)]
rgw/rgw_rados: use to_str() instead of c_str()

bufferlist::c_str() doesn't guarantee null termination.

Fixes: http://tracker.ceph.com/issues/15463
Signed-off-by: Sage Weil <sage@redhat.com>
9 years agobuffer: add list::to_str()
Sage Weil [Tue, 12 Apr 2016 14:14:56 +0000 (10:14 -0400)]
buffer: add list::to_str()

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #8552 from tchaikov/wip-15426
Kefu Chai [Tue, 12 Apr 2016 15:09:55 +0000 (23:09 +0800)]
Merge pull request #8552 from tchaikov/wip-15426

PG: set epoch_created and parent_split_bits for child pg

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #8521 from stiopaa1/checkgenerated
Kefu Chai [Tue, 12 Apr 2016 14:57:44 +0000 (22:57 +0800)]
Merge pull request #8521 from stiopaa1/checkgenerated

check-generated.sh: can't source bash from sh

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge branch 'jewel'
Greg Farnum [Tue, 12 Apr 2016 14:32:48 +0000 (07:32 -0700)]
Merge branch 'jewel'

9 years agoMerge remote-tracking branch 'origin/greg-fs-testing-411' into jewel
Greg Farnum [Tue, 12 Apr 2016 14:32:34 +0000 (07:32 -0700)]
Merge remote-tracking branch 'origin/greg-fs-testing-411' into jewel

9 years agodoc: do not include ext4 as an example
Sage Weil [Tue, 12 Apr 2016 12:49:55 +0000 (08:49 -0400)]
doc: do not include ext4 as an example

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agodoc/8/ceph-deploy: do not include ext4 as an example value
Sage Weil [Tue, 12 Apr 2016 12:48:46 +0000 (08:48 -0400)]
doc/8/ceph-deploy: do not include ext4 as an example value

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agodoc: list ext4 last
Sage Weil [Tue, 12 Apr 2016 12:48:25 +0000 (08:48 -0400)]
doc: list ext4 last

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agodoc/dev: remove ancient filestore-filesystem-compat doc
Sage Weil [Tue, 12 Apr 2016 12:39:00 +0000 (08:39 -0400)]
doc/dev: remove ancient filestore-filesystem-compat doc

This describes a problem we fixed years ago.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoPG: set epoch_created and parent_split_bits for child pg 8552/head
Kefu Chai [Tue, 12 Apr 2016 09:31:27 +0000 (17:31 +0800)]
PG: set epoch_created and parent_split_bits for child pg

if we have a wrong "created", OSD receiving an osd_pg_create message
could fail to project its history and crash. a bad split_bits could
mislead the monitor and osd, and hence cause problems.
* set child.info.history.epoch_created to osdmap.get_epoch() instead of
  using the parent's epoch_created
* set child.info.stats.parent_split_bits to the calculated split_bits
  instead using the parent's split_bits

Fixes: http://tracker.ceph.com/issues/15426
Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #8544 from xiexingguo/xxg-wip-15464
Kefu Chai [Tue, 12 Apr 2016 02:50:52 +0000 (10:50 +0800)]
Merge pull request #8544 from xiexingguo/xxg-wip-15464

test: fix ut test failure caused by lfn change

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agotest: fix ut test failure caused by lfn change 8544/head
xie xingguo [Tue, 12 Apr 2016 01:06:36 +0000 (09:06 +0800)]
test: fix ut test failure caused by lfn change

"https://github.com/ceph/ceph/pull/8496/commits/755c685f2d09c36b53bc39589a77fa73faba5149"
change the lfn_parse_object_name() return type from bool to int but does not
change the relevant test correspondingly.

Fixes: http://tracker.ceph.com/issues/15464
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoMerge branch 'jewel-15402' of git://github.com/ukernel/ceph into greg-fs-testing
Greg Farnum [Mon, 11 Apr 2016 21:13:07 +0000 (14:13 -0700)]
Merge branch 'jewel-15402' of git://github.com/ukernel/ceph into greg-fs-testing

Do not ignore standby_for_fscid when selecting a standby.

https://github.com/ceph/ceph/pull/8536

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
9 years agoFixed ceph-common install.
John Wilkins [Mon, 11 Apr 2016 16:54:02 +0000 (09:54 -0700)]
Fixed ceph-common install.

Fixes: #15438
Signed-off-by: John Wilkins <jowilkin@redhat.com>
9 years agolibrbd: fixed bug in disabling non-primary image mirroring
Jason Dillaman [Mon, 11 Apr 2016 16:33:25 +0000 (12:33 -0400)]
librbd: fixed bug in disabling non-primary image mirroring

librbd: fixed bug in disabling non-primary image mirroring

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #8496 from athanatos/wip-15312
Sage Weil [Mon, 11 Apr 2016 15:49:58 +0000 (11:49 -0400)]
Merge pull request #8496 from athanatos/wip-15312

os/filestore: force lfn attrs to be written atomically, restructure name length limits

9 years agomds: take standby_for_fscid into account in FSMap::find_unused() 8536/head
Yan, Zheng [Mon, 11 Apr 2016 14:39:50 +0000 (22:39 +0800)]
mds: take standby_for_fscid into account in FSMap::find_unused()

Fixes: http://tracker.ceph.com/issues/15402
Signed-off-by: Yan, Zheng <zyan@redhat.com>
9 years agoMerge pull request #8529 from oritwas/wip-rgw-fix-zone-set
Casey Bodley [Mon, 11 Apr 2016 13:56:47 +0000 (09:56 -0400)]
Merge pull request #8529 from oritwas/wip-rgw-fix-zone-set

radosgw-admin: allow

9 years agolibrbd: Fixed bug in disabling non-primary image mirroring 8512/head
Ricardo Dias [Fri, 8 Apr 2016 20:40:20 +0000 (21:40 +0100)]
librbd: Fixed bug in disabling non-primary image mirroring

It is only possible to remove image from rbd_mirroring object if the
mirroring image state is set to DISABLING.

Signed-off-by: Ricardo Dias <rdias@suse.com>
9 years agoMerge pull request #8508 from JiYou/fix-ceph-disk
Loic Dachary [Mon, 11 Apr 2016 12:44:18 +0000 (14:44 +0200)]
Merge pull request #8508 from JiYou/fix-ceph-disk

ceph-disk: do not always fail when re-using a partition

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agoMerge remote-tracking branch 'gh/jewel'
Sage Weil [Mon, 11 Apr 2016 12:38:27 +0000 (08:38 -0400)]
Merge remote-tracking branch 'gh/jewel'

9 years agoceph-disk: fix PrepareData.set_type() args should be class member. 8508/head
youji [Fri, 8 Apr 2016 15:36:44 +0000 (08:36 -0700)]
ceph-disk: fix PrepareData.set_type() args should be class member.

Signed-off-by: You Ji <youji@ebay.com>
9 years agoceph-disk: fix spelling mistake geattr to getattr.
youji [Fri, 8 Apr 2016 15:33:35 +0000 (08:33 -0700)]
ceph-disk: fix spelling mistake geattr to getattr.

Signed-off-by: You Ji <youji@ebay.com>
9 years agoceph-disk: fix lockbox set_or_create_partition()
youji [Fri, 8 Apr 2016 15:29:45 +0000 (08:29 -0700)]
ceph-disk: fix lockbox set_or_create_partition()

Signed-off-by: You Ji <youji@ebay.com>
9 years agoMerge pull request #8507 from kmroz/wip-rgw-admin-cleanup
Orit Wasserman [Mon, 11 Apr 2016 10:47:12 +0000 (12:47 +0200)]
Merge pull request #8507 from kmroz/wip-rgw-admin-cleanup

rgw-admin: remove unused iterator and fix error message

9 years agoradosgw-admin: fix name checking 8529/head
Orit Wasserman [Mon, 11 Apr 2016 08:53:36 +0000 (10:53 +0200)]
radosgw-admin: fix name checking

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agoradosgw-admin: allow setting zone when there is no realm
Orit Wasserman [Mon, 11 Apr 2016 08:38:20 +0000 (10:38 +0200)]
radosgw-admin: allow setting zone when there is no realm

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agoMerge pull request #8522 from swamireddy/10.1.1-mailmap
Loic Dachary [Sun, 10 Apr 2016 15:14:01 +0000 (17:14 +0200)]
Merge pull request #8522 from swamireddy/10.1.1-mailmap

mailmap update

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agoAsyncConnection: avoid is_connected require connection's lock 8520/head
Haomai Wang [Sun, 10 Apr 2016 07:21:55 +0000 (15:21 +0800)]
AsyncConnection: avoid is_connected require connection's lock

Fixes: http://tracker.ceph.com/issues/15440
Signed-off-by: Haomai Wang <haomai@xsky.com>
9 years agocheck-generated.sh: can't source bash from sh 8521/head
Michal Jarzabek [Sun, 10 Apr 2016 08:36:06 +0000 (09:36 +0100)]
check-generated.sh: can't source bash from sh

'source' is not sh command and executing bash commands in sh won't
work. We could try to replace it with:
'. ../qa/workunits/ceph-helpers.sh'
but the above file uses bash.

Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
9 years agoMerge pull request #8519 from dachary/wip-xenial
Loic Dachary [Sat, 9 Apr 2016 21:19:09 +0000 (23:19 +0200)]
Merge pull request #8519 from dachary/wip-xenial

tests: add Ubuntu 16.04 xenial dockerfile

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #8517 from kjurka/rgw-admin-doc-region-list
Sage Weil [Sat, 9 Apr 2016 18:21:43 +0000 (14:21 -0400)]
Merge pull request #8517 from kjurka/rgw-admin-doc-region-list

doc: rgw admin uses "region list" not "regions list"

9 years agoMerge pull request #8518 from wjin/fix
Sage Weil [Sat, 9 Apr 2016 18:21:10 +0000 (14:21 -0400)]
Merge pull request #8518 from wjin/fix

crush: fix typo

Reviewed-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
9 years agoMerge pull request #8462 from xiexingguo/xxg-wip-scrub
Sage Weil [Sat, 9 Apr 2016 17:38:20 +0000 (13:38 -0400)]
Merge pull request #8462 from xiexingguo/xxg-wip-scrub

osd: fix two scrub relevant issues

Reviewed-by: David Zafman <dzafman@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #8485 from liewegas/wip-fuse-log
Sage Weil [Sat, 9 Apr 2016 17:35:15 +0000 (13:35 -0400)]
Merge pull request #8485 from liewegas/wip-fuse-log

ceph-fuse: rotate log file

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
9 years agoMerge pull request #8487 from liewegas/wip-copy-from-fail-cleanup
Sage Weil [Sat, 9 Apr 2016 17:34:39 +0000 (13:34 -0400)]
Merge pull request #8487 from liewegas/wip-copy-from-fail-cleanup

osd: clean up temp object if copy-from fails

Reviewed-by: Samuel Just <sjust@redhat.com>
9 years agoMerge pull request #8486 from liewegas/wip-14695
Sage Weil [Sat, 9 Apr 2016 17:33:54 +0000 (13:33 -0400)]
Merge pull request #8486 from liewegas/wip-14695

librados: Revert "rados: Add new field flags for ceph_osd_op.copy_get."

Reviewed-by: Samuel Just <sjust@redhat.com>
9 years agoMerge pull request #7956 from xiexingguo/xxg-wip-fixfstat
Sage Weil [Sat, 9 Apr 2016 17:32:57 +0000 (13:32 -0400)]
Merge pull request #7956 from xiexingguo/xxg-wip-fixfstat

common: buffer: put a guard for stat() syscall during read_file

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #8516 from runsisi/wip-fix-ret
Jason Dillaman [Sat, 9 Apr 2016 13:22:12 +0000 (09:22 -0400)]
Merge pull request #8516 from runsisi/wip-fix-ret

journal: fix final result for JournalTrimmer::C_RemoveSet

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agotests: add Ubuntu 16.04 xenial dockerfile 8519/head
Loic Dachary [Sat, 9 Apr 2016 07:06:50 +0000 (09:06 +0200)]
tests: add Ubuntu 16.04 xenial dockerfile

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agocrush: fix typo 8518/head
Wei Jin [Sat, 9 Apr 2016 06:52:11 +0000 (14:52 +0800)]
crush: fix typo

Signed-off-by: Wei Jin <wjin.cn@gmail.com>
9 years agodoc: rgw admin uses "region list" not "regions list" 8517/head
Kris Jurka [Sat, 9 Apr 2016 04:47:28 +0000 (21:47 -0700)]
doc: rgw admin uses "region list" not "regions list"

9 years agojournal: fix final result for JournalTrimmer::C_RemoveSet 8516/head
runsisi [Sat, 9 Apr 2016 03:03:56 +0000 (11:03 +0800)]
journal: fix final result for JournalTrimmer::C_RemoveSet

if the first journal object got removed successfully while later objects
failed then the final result should be set to fail

Signed-off-by: runsisi <runsisi@zte.com.cn>
9 years agotest/rados/misc.cc: add long locator key and namespace tests 8496/head
Samuel Just [Fri, 8 Apr 2016 21:56:51 +0000 (14:56 -0700)]
test/rados/misc.cc: add long locator key and namespace tests

Signed-off-by: Samuel Just <sjust@redhat.com>
9 years agoLFNIndex: use chain_getxattr_buf
Samuel Just [Fri, 8 Apr 2016 18:38:06 +0000 (11:38 -0700)]
LFNIndex: use chain_getxattr_buf

LFN attrs can be longer than these hard coded limits, let's just do
buffer doubling everywhere.

Signed-off-by: Samuel Just <sjust@redhat.com>
9 years agochain_xattr: add chain_getxattr_buf
Samuel Just [Fri, 8 Apr 2016 18:32:37 +0000 (11:32 -0700)]
chain_xattr: add chain_getxattr_buf

Otherwise callers need to implement buffer doubling in a lot of cases,
which is error prone.

Signed-off-by: Samuel Just <sjust@redhat.com>
9 years agoLFNIndex::lfn_parse_object_name: return int rather than bool
Samuel Just [Fri, 8 Apr 2016 18:10:18 +0000 (11:10 -0700)]
LFNIndex::lfn_parse_object_name: return int rather than bool

All current callers (except list_objects) already expect
ret < 0 for error.  Adjust list_objects to skip on EINVAL
instead of 0.

Signed-off-by: Samuel Just <sjust@redhat.com>
9 years agoLFNIndex::list_objects: lfn_translate does not set errno
Samuel Just [Fri, 8 Apr 2016 17:45:45 +0000 (10:45 -0700)]
LFNIndex::list_objects: lfn_translate does not set errno

Signed-off-by: Samuel Just <sjust@redhat.com>
9 years agoFileStore::set_xattr_limits_via_conf: add warning if max xattr size smaller than...
Samuel Just [Mon, 4 Apr 2016 23:48:28 +0000 (16:48 -0700)]
FileStore::set_xattr_limits_via_conf: add warning if max xattr size smaller than max name

Signed-off-by: Samuel Just <sjust@redhat.com>
9 years agotest/objectstore/chain_xattr.cc: add test for ensure_single_attr
Samuel Just [Sat, 2 Apr 2016 00:50:37 +0000 (17:50 -0700)]
test/objectstore/chain_xattr.cc: add test for ensure_single_attr

Signed-off-by: Samuel Just <sjust@redhat.com>
9 years agoLFNIndex: ensure that lfn and directory attrs are written atomically
Samuel Just [Fri, 1 Apr 2016 23:57:48 +0000 (16:57 -0700)]
LFNIndex: ensure that lfn and directory attrs are written atomically

We leave skip_chain_cleanup = false since the object may have been
written using code that split the lfn attr over multiple attrs.

Signed-off-by: Samuel Just <sjust@redhat.com>
9 years agochain_[f]getxattr: always use size, no reaon to consider CHAIN_XATTR_MAX_BLOCK_LEN
Samuel Just [Fri, 8 Apr 2016 20:01:07 +0000 (13:01 -0700)]
chain_[f]getxattr: always use size, no reaon to consider CHAIN_XATTR_MAX_BLOCK_LEN

Users of setxattr can now set attrs larger than that size.

Signed-off-by: Samuel Just <sjust@redhat.com>
9 years agochain_xattr: s/onechunk/skip_chain_cleanup, add ensure_single_attr
Samuel Just [Fri, 1 Apr 2016 23:56:43 +0000 (16:56 -0700)]
chain_xattr: s/onechunk/skip_chain_cleanup, add ensure_single_attr

onechunk was a deceptive name since it didn't actually ensure that
a single chunk would be used.  Rename to ensure_single_attr.  Also,
add a parameter to ensure that we use a single attribute.  We need
these to be distinct since we have LFN attrs which have been split
over 254 byte xattrs since after hammer which we need to correctly
clean up.  However, we need to ensure going forward that those attrs
are never split over more than one chunk -- it's not atomic.
Further, skip_chain_cleanup should imply ensure_single_attr, so make
them template params and add a static check to make sure we don't
mess this up in the future.

Signed-off-by: Samuel Just <sjust@redhat.com>
9 years agoos/,osd/: restructure the rados name length check
Samuel Just [Fri, 1 Apr 2016 23:24:42 +0000 (16:24 -0700)]
os/,osd/: restructure the rados name length check

Enforce locator length vs the max name length and also
introduce a namespace length limit.

In addition to these checks, also pass the head object to the
ObjectStore implementation to validate.  This allows LFNIndex to account
for the idiosyncracies of its filename escaping and for different xattr
value max sizes.

Signed-off-by: Samuel Just <sjust@redhat.com>
9 years agoMerge pull request #8453 from cbodley/wip-rgw-sync-master-down
Orit Wasserman [Fri, 8 Apr 2016 15:43:25 +0000 (17:43 +0200)]
Merge pull request #8453 from cbodley/wip-rgw-sync-master-down

rgw: retry RGWRemoteMetaLog::read_log_info() while master is down
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
9 years agoceph-disk: fix set_data_partition() when data is partition.
youji [Fri, 8 Apr 2016 14:16:04 +0000 (07:16 -0700)]
ceph-disk: fix set_data_partition() when data is partition.

Signed-off-by: You Ji <youji@ebay.com>
9 years agorgw-admin: fix period delete error message 8507/head
Karol Mroz [Fri, 8 Apr 2016 14:47:40 +0000 (16:47 +0200)]
rgw-admin: fix period delete error message

Signed-off-by: Karol Mroz <kmroz@suse.com>
9 years agorgw-admin: remove unused iterator
Karol Mroz [Fri, 8 Apr 2016 14:44:34 +0000 (16:44 +0200)]
rgw-admin: remove unused iterator

Signed-off-by: Karol Mroz <kmroz@suse.com>
9 years agoMerge pull request #8434 from theanalyst/rgw/typo-fix
Matt Benjamin [Fri, 8 Apr 2016 14:39:09 +0000 (10:39 -0400)]
Merge pull request #8434 from theanalyst/rgw/typo-fix

rgw: fix a typo in error message

9 years agoMerge pull request #8481 from weiqiaomiao/wq
Orit Wasserman [Fri, 8 Apr 2016 14:19:29 +0000 (16:19 +0200)]
Merge pull request #8481 from weiqiaomiao/wq

rgw: the map 'headers' is assigned a wrong value
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
9 years agoMerge pull request #8488 from oritwas/wip-15318
Matt Benjamin [Fri, 8 Apr 2016 13:57:44 +0000 (09:57 -0400)]
Merge pull request #8488 from oritwas/wip-15318

rgw: fix problem deleting objects begining with double underscores

9 years agorbd-mirror: fixed infinite loop when disabling image mirroringReviewed-by: Jason...
Jason Dillaman [Fri, 8 Apr 2016 12:36:55 +0000 (08:36 -0400)]
rbd-mirror: fixed infinite loop when disabling image mirroringReviewed-by: Jason Dillaman <dillaman@redhat.com>

librbd: fixed infinite loop when disabling image mirroring

9 years agorbd-mirror: fixed bug that caused infinite loop when disabling image mirroring 8504/head
Ricardo Dias [Fri, 8 Apr 2016 10:00:55 +0000 (11:00 +0100)]
rbd-mirror: fixed bug that caused infinite loop when disabling image mirroring

Signed-off-by: Ricardo Dias <rdias@suse.com>
9 years agoMerge pull request #8501 from dachary/wip-releases
Loic Dachary [Fri, 8 Apr 2016 09:41:08 +0000 (11:41 +0200)]
Merge pull request #8501 from dachary/wip-releases

releases: update the v10.1.0 release link

Reviewed-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
9 years agomailmap: Luo Kexue name normalization 8522/head
Swami Reddy [Fri, 8 Apr 2016 09:27:38 +0000 (14:57 +0530)]
mailmap: Luo Kexue name normalization

Signed-off-by: M Ranga Swami Reddy <swamireddy@gmail.com>
9 years agomailmap: Ning Yao affiliation
Swami Reddy [Fri, 8 Apr 2016 09:21:18 +0000 (14:51 +0530)]
mailmap: Ning Yao affiliation

Signed-off-by: M Ranga Swami Reddy <swamireddy@gmail.com>
9 years agomailmap: Vitja Makarov affiliation
Swami Reddy [Fri, 8 Apr 2016 09:19:31 +0000 (14:49 +0530)]
mailmap: Vitja Makarov affiliation

Signed-off-by: M Ranga Swami Reddy <swamireddy@gmail.com>
9 years agorelease-notes: v10.1.1 release notes 8501/head
Loic Dachary [Fri, 8 Apr 2016 09:19:13 +0000 (11:19 +0200)]
release-notes: v10.1.1 release notes

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agorelease-notes: v10.1.1 release notes (draft)
Loic Dachary [Fri, 8 Apr 2016 09:06:33 +0000 (11:06 +0200)]
release-notes: v10.1.1 release notes (draft)

cd src/script
virtualenv v
source v/bin/activate
pip install githubpy GitPython requests
GITHUB_ACCESS_TOKEN=xxxxxxx ./ceph-release-notes \
      -r tags/v10.1.0..tags/v10.1.1 $(git rev-parse --show-toplevel)

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agomailmap: sunspot affiliation
Swami Reddy [Fri, 8 Apr 2016 09:14:03 +0000 (14:44 +0530)]
mailmap: sunspot affiliation

Signed-off-by: M Ranga Swami Reddy <swamireddy@gmail.com>
9 years agomailmap: Qinghua Jin affiliation
Swami Reddy [Fri, 8 Apr 2016 09:10:01 +0000 (14:40 +0530)]
mailmap: Qinghua Jin affiliation

Signed-off-by: M Ranga Swami Reddy <swamireddy@gmail.com>
9 years agomailmap: Richard W.M. Jones affiliation
Swami Reddy [Fri, 8 Apr 2016 09:07:16 +0000 (14:37 +0530)]
mailmap: Richard W.M. Jones affiliation

Signed-off-by: M Ranga Swami Reddy <swamireddy@gmail.com>
9 years agomailmap: Ira Cooper affiliation
Swami Reddy [Fri, 8 Apr 2016 09:01:44 +0000 (14:31 +0530)]
mailmap: Ira Cooper affiliation

Signed-off-by: M Ranga Swami Reddy <swamireddy@gmail.com>
9 years agomailmap: Star Guo affiliation
Swami Reddy [Fri, 8 Apr 2016 08:57:57 +0000 (14:27 +0530)]
mailmap: Star Guo affiliation

Signed-off-by: M Ranga Swami Reddy <swamireddy@gmail.com>
9 years agomailmap: Xiaoxi Chen affiliation
Swami Reddy [Fri, 8 Apr 2016 08:55:49 +0000 (14:25 +0530)]
mailmap: Xiaoxi Chen affiliation

Signed-off-by: M Ranga Swami Reddy <swamireddy@gmail.com>
9 years agomailmap: Jenkins name normalization
Swami Reddy [Fri, 8 Apr 2016 08:53:06 +0000 (14:23 +0530)]
mailmap: Jenkins name normalization

Signed-off-by: M Ranga Swami Reddy <swamireddy@gmail.com>
9 years agoreleases: firefly was EOL december 2015
Loic Dachary [Fri, 8 Apr 2016 07:54:12 +0000 (09:54 +0200)]
releases: firefly was EOL december 2015

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoreleases: update the v10.1.0 release link
Loic Dachary [Fri, 8 Apr 2016 07:45:55 +0000 (09:45 +0200)]
releases: update the v10.1.0 release link

And add the v10.1.1 release notes as well.

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoMerge pull request #8500 from linuxbox2/ldap-include
Dan Mick [Fri, 8 Apr 2016 00:43:18 +0000 (17:43 -0700)]
Merge pull request #8500 from linuxbox2/ldap-include

rgw_ldap: make ldap.h inclusion conditional

Reviewed-by: Dan Mick <dmick@redhat.com>
9 years agoMerge branch 'wip-fuse-log' of git://github.com/liewegas/ceph into greg-fs-testing
Greg Farnum [Fri, 8 Apr 2016 00:38:17 +0000 (17:38 -0700)]
Merge branch 'wip-fuse-log' of git://github.com/liewegas/ceph into greg-fs-testing

Enable log rotation: handle SIGHUP in ceph_fuse.cc and add it to the conf.

https://github.com/ceph/ceph/pull/8485

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
9 years agoMerge branch 'wip-layout-snafu-followup' of git://github.com/jcsp/ceph into greg...
Greg Farnum [Fri, 8 Apr 2016 00:28:00 +0000 (17:28 -0700)]
Merge branch 'wip-layout-snafu-followup' of git://github.com/jcsp/ceph into greg-fs-testing

Be more transparent about several failure modes and do more validation on replay

https://github.com/ceph/ceph/pull/8468

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
9 years agoMerge branch 'jewel-fs-pool-perm' of git://github.com/ukernel/ceph into greg-fs-testing
Greg Farnum [Fri, 8 Apr 2016 00:26:37 +0000 (17:26 -0700)]
Merge branch 'jewel-fs-pool-perm' of git://github.com/ukernel/ceph into greg-fs-testing

Extend the existing pool access checking to include specific RADOS namespacse.

https://github.com/ceph/ceph/pull/8444

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge branch 'xxg-wip-mds' of git://github.com/xiexingguo/ceph into greg-fs-testing
Greg Farnum [Fri, 8 Apr 2016 00:23:06 +0000 (17:23 -0700)]
Merge branch 'xxg-wip-mds' of git://github.com/xiexingguo/ceph into greg-fs-testing

Fix several message leaks and handle clock skew more politely.

https://github.com/ceph/ceph/pull/8408

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
9 years agoMerge branch 'renhw-wip-mds-clean_up_admin_socket' of git://github.com/renhwsky/ceph...
Greg Farnum [Fri, 8 Apr 2016 00:21:14 +0000 (17:21 -0700)]
Merge branch 'renhw-wip-mds-clean_up_admin_socket' of git://github.com/renhwsky/ceph into greg-fs-testing

Clean up some admin socket commands on shutdown.

https://github.com/ceph/ceph/pull/8483

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