Commit Graph

52125 Commits

Author SHA1 Message Date
Samuel Just
73778f1eb9 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>
2016-04-08 14:16:04 -07:00
Samuel Just
ac750cebc2 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>
2016-04-08 14:16:04 -07:00
Samuel Just
8dc033078f 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>
2016-04-08 14:16:04 -07:00
Samuel Just
21487fd0c2 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>
2016-04-08 14:16:00 -07:00
Orit Wasserman
7a94d9767b 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>
2016-04-08 17:43:25 +02:00
youji
8770043506 ceph-disk: fix set_data_partition() when data is partition.
Signed-off-by: You Ji <youji@ebay.com>
2016-04-08 08:17:43 -07:00
Karol Mroz
a330078e29 rgw-admin: fix period delete error message
Signed-off-by: Karol Mroz <kmroz@suse.com>
2016-04-08 16:47:40 +02:00
Karol Mroz
3320f8fe31 rgw-admin: remove unused iterator
Signed-off-by: Karol Mroz <kmroz@suse.com>
2016-04-08 16:44:34 +02:00
Matt Benjamin
3ea7af87eb Merge pull request #8434 from theanalyst/rgw/typo-fix
rgw: fix a typo in error message
2016-04-08 10:39:09 -04:00
Orit Wasserman
3680c0e581 Merge pull request #8481 from weiqiaomiao/wq
rgw: the map 'headers' is assigned a wrong value
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
2016-04-08 16:19:29 +02:00
Matt Benjamin
77e0a1b753 Merge pull request #8488 from oritwas/wip-15318
rgw: fix problem deleting objects begining with double underscores
2016-04-08 09:57:44 -04:00
Jason Dillaman
b1bc14680c rbd-mirror: fixed infinite loop when disabling image mirroringReviewed-by: Jason Dillaman <dillaman@redhat.com>
librbd: fixed infinite loop when disabling image mirroring
2016-04-08 08:36:55 -04:00
Ricardo Dias
64a8a6a1b7 rbd-mirror: fixed bug that caused infinite loop when disabling image mirroring
Signed-off-by: Ricardo Dias <rdias@suse.com>
2016-04-08 11:02:42 +01:00
Loic Dachary
e2b8ce4a87 Merge pull request #8501 from dachary/wip-releases
releases: update the v10.1.0 release link

Reviewed-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
2016-04-08 11:41:08 +02:00
Swami Reddy
a651598138 mailmap: Luo Kexue name normalization
Signed-off-by: M Ranga Swami Reddy <swamireddy@gmail.com>
2016-04-08 14:57:38 +05:30
Swami Reddy
c36c5d4633 mailmap: Ning Yao affiliation
Signed-off-by: M Ranga Swami Reddy <swamireddy@gmail.com>
2016-04-08 14:51:18 +05:30
Swami Reddy
eb536bb279 mailmap: Vitja Makarov affiliation
Signed-off-by: M Ranga Swami Reddy <swamireddy@gmail.com>
2016-04-08 14:49:31 +05:30
Loic Dachary
323276e06a release-notes: v10.1.1 release notes
Signed-off-by: Loic Dachary <loic@dachary.org>
2016-04-08 11:19:13 +02:00
Loic Dachary
18d06efd80 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>
2016-04-08 11:15:03 +02:00
Swami Reddy
1be8dba4f7 mailmap: sunspot affiliation
Signed-off-by: M Ranga Swami Reddy <swamireddy@gmail.com>
2016-04-08 14:44:03 +05:30
Swami Reddy
c256a9c673 mailmap: Qinghua Jin affiliation
Signed-off-by: M Ranga Swami Reddy <swamireddy@gmail.com>
2016-04-08 14:40:01 +05:30
Swami Reddy
c312b523d8 mailmap: Richard W.M. Jones affiliation
Signed-off-by: M Ranga Swami Reddy <swamireddy@gmail.com>
2016-04-08 14:37:16 +05:30
Swami Reddy
b441722bd5 mailmap: Ira Cooper affiliation
Signed-off-by: M Ranga Swami Reddy <swamireddy@gmail.com>
2016-04-08 14:31:44 +05:30
Swami Reddy
f4f9d9162d mailmap: Star Guo affiliation
Signed-off-by: M Ranga Swami Reddy <swamireddy@gmail.com>
2016-04-08 14:27:57 +05:30
Swami Reddy
ceb2a72503 mailmap: Xiaoxi Chen affiliation
Signed-off-by: M Ranga Swami Reddy <swamireddy@gmail.com>
2016-04-08 14:25:49 +05:30
Swami Reddy
885db9512c mailmap: Jenkins name normalization
Signed-off-by: M Ranga Swami Reddy <swamireddy@gmail.com>
2016-04-08 14:23:06 +05:30
Loic Dachary
fb63721e42 releases: firefly was EOL december 2015
Signed-off-by: Loic Dachary <loic@dachary.org>
2016-04-08 09:54:12 +02:00
Loic Dachary
fc29dc2e68 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>
2016-04-08 09:45:55 +02:00
Dan Mick
872ad16e4a Merge pull request #8500 from linuxbox2/ldap-include
rgw_ldap: make ldap.h inclusion conditional

Reviewed-by: Dan Mick <dmick@redhat.com>
2016-04-07 17:43:18 -07:00
Greg Farnum
eb36957346 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>
2016-04-07 17:38:17 -07:00
Greg Farnum
59b86ca70d 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>
2016-04-07 17:28:00 -07:00
Greg Farnum
eadc0e05ed 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>
2016-04-07 17:26:37 -07:00
Greg Farnum
d1a03356a6 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>
2016-04-07 17:23:06 -07:00
Greg Farnum
441c9e0115 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>
2016-04-07 17:21:14 -07:00
Greg Farnum
d033d708ec Merge branch 'wip-fs-set-default' of git://github.com/ukernel/ceph into greg-fs-testing
Allow changing the default filesystem used by "legacy" clients.

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

Reviewed-by: John Spray <john.spray@redhat.com>
2016-04-07 17:20:17 -07:00
Greg Farnum
f6209798f8 Merge remote-tracking branch 'github/wip-fs-lockouts' into greg-fs-testing
Protect a number of unstable/experimental features behind durable flags

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

Reviewed-by: John Spray <john.spray@redhat.com>
2016-04-07 17:07:16 -07:00
Greg Farnum
c4e888f90e Merge branch 'jewel-15303' of git://github.com/ukernel/ceph into greg-fs-testing
Resolve certain issues with incorrectly skipping dentries in listing.

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

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Tested-by: John Spray <john.spray@redhat.com>
2016-04-07 17:01:06 -07:00
Sage Weil
9821b29b75 Merge pull request #8495 from athanatos/wip-14777
osd/ReplicatedPG::_rollback_to: update the OMAP flag

Reviewed-by: Sage Weil <sage@redhat.com>
2016-04-07 19:40:56 -04:00
Greg Farnum
d82c49703d doc: add a page for CephFS' experimental features describing lockout rules
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
2016-04-07 16:40:24 -07:00
Greg Farnum
6974ed4254 doc: update cephfs administration page for enable_multiple safety check
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
2016-04-07 16:40:24 -07:00
Greg Farnum
4b3802ed54 mdsmonitor: unify experimental warnings
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
2016-04-07 16:40:23 -07:00
Greg Farnum
ea1b276e7e test: update tests for new flag requirements
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
2016-04-07 16:40:23 -07:00
Greg Farnum
4bc4e74932 MDSMap: lock out multimds clusters and directory fragmentation by default
Add new flags operating the way the snapshot lockout does. Then, actually
block out the directory fragmentation in the MDS; and block out setting
max_mds > 1 in the MDSMonitor.

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
2016-04-07 16:40:23 -07:00
Greg Farnum
15d1fd48ba MDSMap: switch from booleans to flags for feature enablement logging
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
2016-04-07 16:40:23 -07:00
Greg Farnum
cda1c1a984 FSMap: add output for enabled_multiple flags
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
2016-04-07 16:40:22 -07:00
Greg Farnum
313013209b MDSMonitor: make enabling multiple FSes a lot scarier
Output a more explicit warning when the user tries to enable multiple FSes, and
mark the FSMap when the user does so anyway.

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
2016-04-07 16:40:22 -07:00
Greg Farnum
3b9371aa2f FSMap: print out compat instead of erroneously repeating enable_multiple
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
2016-04-07 16:40:22 -07:00
Greg Farnum
2429463ea5 ceph-dencoder: add FSMap
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
2016-04-07 16:40:22 -07:00
Matt Benjamin
15cabdc537 rgw_ldap: make ldap.h inclusion conditional
The feature implementation is conditional, embarassingly, the
header inclusion is not.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2016-04-07 19:39:40 -04:00
Orit Wasserman
d58e5fee64 rgw: fix problem deleting objects begining with double underscore
Fixes: http://tracker.ceph.com/issues/15318

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
2016-04-08 00:48:51 +02:00