]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
8 years agoMerge pull request #13154 from smithfarm/wip-18496-jewel
Nathan Cutler [Wed, 12 Apr 2017 08:43:21 +0000 (10:43 +0200)]
Merge pull request #13154 from smithfarm/wip-18496-jewel

jewel: librbd: Possible deadlock performing a synchronous API action while refresh in-progress

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #13244 from smithfarm/wip-18775-jewel
Nathan Cutler [Wed, 12 Apr 2017 08:42:54 +0000 (10:42 +0200)]
Merge pull request #13244 from smithfarm/wip-18775-jewel

jewel: rbd: qemu crash triggered by network issues

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #13809 from asheplyakov/18321-bp-jewel
Nathan Cutler [Wed, 12 Apr 2017 08:42:23 +0000 (10:42 +0200)]
Merge pull request #13809 from asheplyakov/18321-bp-jewel

jewel: librbd: remove image header lock assertions

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #13107 from smithfarm/wip-18669-jewel
Nathan Cutler [Wed, 12 Apr 2017 08:41:56 +0000 (10:41 +0200)]
Merge pull request #13107 from smithfarm/wip-18669-jewel

jewel: tests: [  FAILED  ] TestLibRBD.ImagePollIO in upgrade:client-upgrade-kraken-distro-basic-smithi

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #13585 from asheplyakov/jewel-bp-16585
Nathan Cutler [Wed, 12 Apr 2017 08:39:26 +0000 (10:39 +0200)]
Merge pull request #13585 from asheplyakov/jewel-bp-16585

jewel: msg: set close on exec flag

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #14371 from tchaikov/wip-19429-jewel
Nathan Cutler [Wed, 12 Apr 2017 01:56:22 +0000 (03:56 +0200)]
Merge pull request #14371 from tchaikov/wip-19429-jewel

jewel: tests: clone workunit using the branch specified by task

Nathan Cutler <ncutler@suse.com>

8 years agoMerge pull request #14325 from shinobu-x/wip-18619-jewel
Nathan Cutler [Wed, 12 Apr 2017 01:54:11 +0000 (03:54 +0200)]
Merge pull request #14325 from shinobu-x/wip-18619-jewel

jewel: osd: degraded and misplaced status output inaccurate

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoMerge pull request #14236 from smithfarm/wip-19392-jewel
Nathan Cutler [Wed, 12 Apr 2017 01:53:25 +0000 (03:53 +0200)]
Merge pull request #14236 from smithfarm/wip-19392-jewel

jewel: mon: remove bad rocksdb option

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoMerge pull request #14181 from mslovy/wip-19394-jewel
Nathan Cutler [Wed, 12 Apr 2017 01:52:41 +0000 (03:52 +0200)]
Merge pull request #14181 from mslovy/wip-19394-jewel

jewel: osd: bypass readonly ops when osd full

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoMerge pull request #14113 from shinobu-x/wip-19319-jewel
Nathan Cutler [Wed, 12 Apr 2017 01:49:49 +0000 (03:49 +0200)]
Merge pull request #14113 from shinobu-x/wip-19319-jewel

 jewel: cli: RadosImport::import should return an error if Rados::connect fails

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
Reviewed-by: David Zafman <dzafman@redhat.com>
8 years agoMerge pull request #14047 from asheplyakov/reindex-on-pg-split
Nathan Cutler [Wed, 12 Apr 2017 01:45:33 +0000 (03:45 +0200)]
Merge pull request #14047 from asheplyakov/reindex-on-pg-split

jewel: osd: reindex properly on pg log split

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoMerge pull request #14044 from mslovy/wip-19311-jewel
Nathan Cutler [Wed, 12 Apr 2017 01:45:15 +0000 (03:45 +0200)]
Merge pull request #14044 from mslovy/wip-19311-jewel

jewel: core: os/filestore: fix clang static check warn use-after-free

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoMerge pull request #13932 from asheplyakov/18911-bp-jewel
Nathan Cutler [Wed, 12 Apr 2017 01:44:25 +0000 (03:44 +0200)]
Merge pull request #13932 from asheplyakov/18911-bp-jewel

jewel: rbd-nbd: check /sys/block/nbdX/size to ensure kernel mapped correctly

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #13831 from jan--f/wip-19206-jewel
Nathan Cutler [Wed, 12 Apr 2017 01:42:13 +0000 (03:42 +0200)]
Merge pull request #13831 from jan--f/wip-19206-jewel

jewel: fs: Invalid error code returned by MDS is causing a kernel client WARNING

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #13827 from tchaikov/wip-19185-jewel
Nathan Cutler [Wed, 12 Apr 2017 01:41:36 +0000 (03:41 +0200)]
Merge pull request #13827 from tchaikov/wip-19185-jewel

jewel: osd: ReplicatedPG: try with pool's use-gmt setting if hitset archive not found

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoMerge pull request #13788 from shinobu-x/wip-18235-jewel
Nathan Cutler [Wed, 12 Apr 2017 01:40:09 +0000 (03:40 +0200)]
Merge pull request #13788 from shinobu-x/wip-18235-jewel

jewel: core: os/filestore/HashIndex: be loud about splits

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoMerge pull request #13786 from shinobu-x/wip-19129-jewel
Nathan Cutler [Wed, 12 Apr 2017 01:39:27 +0000 (03:39 +0200)]
Merge pull request #13786 from shinobu-x/wip-19129-jewel

jewel: build/ops: ceph-base package missing dependency for psmisc

Reviewed-by: Nathan Cutler <ncutler@suse.com>
8 years agoMerge pull request #13732 from liewegas/wip-19119-jewel
Nathan Cutler [Wed, 12 Apr 2017 01:38:34 +0000 (03:38 +0200)]
Merge pull request #13732 from liewegas/wip-19119-jewel

jewel: doc: PendingReleaseNotes: note about 19119

Reviewed-by: Nathan Cutler <ncutler@suse.com>
8 years agoMerge pull request #13541 from shinobu-x/wip-18929-jewel
Nathan Cutler [Wed, 12 Apr 2017 01:36:21 +0000 (03:36 +0200)]
Merge pull request #13541 from shinobu-x/wip-18929-jewel

 jewel: osd: restrict want_acting to up+acting on recovery completion

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
8 years agoMerge pull request #13477 from asheplyakov/jewel-bp-18951
Nathan Cutler [Wed, 12 Apr 2017 01:34:54 +0000 (03:34 +0200)]
Merge pull request #13477 from asheplyakov/jewel-bp-18951

jewel: osd: --flush-journal: sporadic segfaults on exit

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoMerge pull request #13261 from shinobu-x/wip-18587-jewel
Nathan Cutler [Wed, 12 Apr 2017 01:33:25 +0000 (03:33 +0200)]
Merge pull request #13261 from shinobu-x/wip-18587-jewel

jewel: mon: OSDMonitor: make 'osd crush move ...' work on osds

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
8 years ago10.2.7 v10.2.7
Jenkins Build Slave User [Mon, 10 Apr 2017 11:43:44 +0000 (11:43 +0000)]
10.2.7

8 years agoqa/tasks/workunit.py: use "overrides" as the default settings of workunit 14371/head
Kefu Chai [Sat, 1 Apr 2017 15:04:22 +0000 (23:04 +0800)]
qa/tasks/workunit.py: use "overrides" as the default settings of workunit

otherwise the settings in "workunit" tasks are always overridden by the
settings in template config. so we'd better follow the way of how
"install" task updates itself with the "overrides" settings: it uses the
"overrides" as the *defaults*.

Fixes: http://tracker.ceph.com/issues/19429
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 47080150a17d238f38d9da824d227393ad767aad)

8 years agotasks/workunit.py: specify the branch name when cloning a branch
Kefu Chai [Thu, 30 Mar 2017 04:37:01 +0000 (12:37 +0800)]
tasks/workunit.py: specify the branch name when cloning a branch

c1309fb failed to specify a branch when cloning using --depth=1, which
by default clones the HEAD. and we can not "git checkout" a specific
sha1 if it is not HEAD, after cloning using '--depth=1', so in this
change, we dispatch "tag", "branch", "HEAD" using three Refspec classes.

Signed-off-by: Kefu Chai <kchai@redhat.com>
Signed-off-by: Dan Mick <dan.mick@redhat.com>
(cherry picked from commit 9ca7ccf5f1739f731da8bf31260594aea3a2932d)

Conflicts:
qa/tasks/workunit.py (trivial resolution)

8 years agotasks/workunit.py: when cloning, use --depth=1
Dan Mick [Wed, 29 Mar 2017 03:08:13 +0000 (20:08 -0700)]
tasks/workunit.py: when cloning, use --depth=1

Help avoid killing git.ceph.com.  A depth 1 clone takes about
7 seconds, whereas a full one takes about 3:40 (much of it
waiting for the server to create a huge compressed pack)

Signed-off-by: Dan Mick <dan.mick@redhat.com>
(cherry picked from commit c1309fbef300a062138ac40eb5d3e5081b833072)

8 years agoPendingReleaseNotes: warning about 'osd rm ...' and #19119 13732/head
Sage Weil [Wed, 1 Mar 2017 19:18:44 +0000 (13:18 -0600)]
PendingReleaseNotes: warning about 'osd rm ...' and #19119

See http://tracker.ceph.com/issues/19119

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit be96003c464481d8e84825178d600234a0d64d22)

8 years agoosd: Calculate degraded and misplaced more accurately 14325/head
David Zafman [Wed, 18 Jan 2017 16:33:40 +0000 (08:33 -0800)]
osd: Calculate degraded and misplaced more accurately

Calculate num_object_copies based on the larger of pool size,
up set size and acting set size.

Calculate num_objects_degraded as the difference between num_object_copies
and all copies found on acting set and backfilling up set OSDs.

Calculate num_objects_misplaced as all copies on acting set OSDs not in up set
less copies that have been backfilled to up set OSDs.

Fixes: http://tracker.ceph.com/issues/18619
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit 8423bc40759cca137f61e7b755411719a84369d4)

8 years agoMerge pull request #14230 from linuxbox2/wip-jewel-expand-argv
Ken Dreyer [Fri, 31 Mar 2017 16:27:07 +0000 (10:27 -0600)]
Merge pull request #14230 from linuxbox2/wip-jewel-expand-argv

jewel: rgw_file: expand argv

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #14233 from ktdreyer/wip-19421-jewel
Ken Dreyer [Fri, 31 Mar 2017 16:17:10 +0000 (10:17 -0600)]
Merge pull request #14233 from ktdreyer/wip-19421-jewel

jewel: librbd: possible race in ExclusiveLock handle_peer_notification

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #14231 from linuxbox2/wip-jewel-fhcache
Ken Dreyer [Fri, 31 Mar 2017 16:16:48 +0000 (10:16 -0600)]
Merge pull request #14231 from linuxbox2/wip-jewel-fhcache

jewel: rgw_fh: RGWFileHandle dtor must also cond-unlink from FHCache

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #14215 from mdw-at-linuxbox/wip-jewel-rgw-openssl-fix1
Ken Dreyer [Fri, 31 Mar 2017 16:09:14 +0000 (10:09 -0600)]
Merge pull request #14215 from mdw-at-linuxbox/wip-jewel-rgw-openssl-fix1

rgw: fix openssl

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #14206 from linuxbox2/wip-gui-jewel
Ken Dreyer [Fri, 31 Mar 2017 16:07:48 +0000 (10:07 -0600)]
Merge pull request #14206 from linuxbox2/wip-gui-jewel

jewel: rgw_file: various fixes

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #14205 from linuxbox2/wip-dir-orphan-jewel
Ken Dreyer [Fri, 31 Mar 2017 16:07:03 +0000 (10:07 -0600)]
Merge pull request #14205 from linuxbox2/wip-dir-orphan-jewel

jewel:  rgw_file: wip dir orphan

 Conflicts:
src/rgw/rgw_file.cc (whitespace, trivial resolution)

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #14169 from linuxbox2/wip-18650-jewel
Ken Dreyer [Fri, 31 Mar 2017 16:05:40 +0000 (10:05 -0600)]
Merge pull request #14169 from linuxbox2/wip-18650-jewel

jewel: rgw: rgw_file: FHCache residence check should be exhaustive

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #13869 from smithfarm/wip-19161-jewel
Ken Dreyer [Fri, 31 Mar 2017 16:02:58 +0000 (10:02 -0600)]
Merge pull request #13869 from smithfarm/wip-19161-jewel

jewel: rgw: rgw_file: fix marker computation

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agorgw_file: use fh_hook::is_linked() to check residence 14169/head
Matt Benjamin [Tue, 28 Feb 2017 20:49:06 +0000 (15:49 -0500)]
rgw_file:  use fh_hook::is_linked() to check residence

Previously we assumed that !deleted handles were resident--there
is an observed case where a !deleted handle is !linked.  Since
we currently use safe_link mode, an is_linked() check is
available, and exhaustive.

Fixes: http://tracker.ceph.com/issues/19111
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit c0aa515f8d8c57ec5ee09e3b60df3cac60453c40)

8 years agomon: remove bad rocksdb option 14236/head
Sage Weil [Mon, 2 May 2016 19:29:12 +0000 (15:29 -0400)]
mon: remove bad rocksdb option

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 0ac671ece258e509f71a05253e62a9878e279840)

8 years agojewel: librbd: possible race in ExclusiveLock handle_peer_notification 14233/head
Mykola Golub [Tue, 28 Mar 2017 13:55:11 +0000 (15:55 +0200)]
jewel: librbd: possible race in ExclusiveLock handle_peer_notification

This is a cherry-pick from kraken -- the master diverged after
ManagedLock refactoring and is not affected.

Fix: http://tracker.ceph.com/issues/19368
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
(cherry picked from commit df59d6d5f7deb586cf14a6ef6984e6847db08852)

8 years agorgw_file: RGWFileHandle dtor must also cond-unlink from FHCache 14231/head
Matt Benjamin [Wed, 1 Mar 2017 01:24:12 +0000 (20:24 -0500)]
rgw_file: RGWFileHandle dtor must also cond-unlink from FHCache

Formerly masked in part by the reclaim() action, direct-delete now
substitutes for reclaim() iff its LRU lane is over its high-water
mark, and in particular, like reclaim() the destructor is certain
to see handles still interned on the FHcache when nfs-ganesha is
recycling objects from its own LRU.

Fixes: http://tracker.ceph.com/issues/19112
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit d51a3b1224ba62bb53c6c2c7751fcf7853c35a4b)

8 years agorgw_file: split last argv on ws, if provided 14230/head
Matt Benjamin [Tue, 17 Jan 2017 16:23:45 +0000 (11:23 -0500)]
rgw_file:  split last argv on ws, if provided

This is intended to allow an "extra" unparsed argument string
containing various cmdline options to be passed as the last argument
in the argv array of librgw_create(), which nfs-ganesha is
expecting to happen.

While at it, hook env_args() too.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit fbc19e4effc736c98cc1cc283e5c7b131a0fa766)

8 years agorgw_file: fix hiwat behavior
Matt Benjamin [Mon, 13 Feb 2017 01:18:26 +0000 (20:18 -0500)]
rgw_file: fix hiwat behavior

Removed logic to skip reclaim processing conditionally on hiwat,
this probably meant to be related to a lowat value, which does
not exist.

Having exercised the hiwat reclaim behavior, noticed that the
path which moves unreachable objects to LRU, could and probably
should remove them altogether when q.size exceeds hiwat.  Now
the max unreachable float is lane hiwat, for all lanes.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit b8791b2217e9ca87b2d17b51f283fa14bd68b581)
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agorgw_file: refcnt bugfixes
Matt Benjamin [Sun, 12 Feb 2017 23:20:43 +0000 (18:20 -0500)]
rgw_file: refcnt bugfixes

This change includes 3 related changes:

1. add required lock flags for FHCache updates--this is a crash
   bug under concurrent update/lookup

2. omit to inc/dec refcnt on root filehandles in 2 places--the
   root handle current is not on the lru list, so it's not
   valid to do so

3. based on observation of LRU behavior during creates/deletes,
   update (cohort) LRU unref to move objects to LRU when their
   refcount falls to SENTINEL_REFCNT--this cheaply primes the
   current reclaim() mechanism, so very significanty improves
   space use (e.g., after deletes) in the absence of scans
   (which is common due to nfs-ganesha caching)

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit beaeff059375b44188160dbde8a81dd4f4f8c6eb)
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agorgw_file: add refcount dout traces at debuglevel 17
Matt Benjamin [Sat, 11 Feb 2017 21:38:05 +0000 (16:38 -0500)]
rgw_file:  add refcount dout traces at debuglevel 17

These are helpful for checking RGWFileHandle refcnt invariants.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit 462034e17f919fb783ee33e2c9fa8089f93fd97d)
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agorgw_file: add pretty-print for RGWFileHandle
Matt Benjamin [Fri, 10 Feb 2017 22:14:16 +0000 (17:14 -0500)]
rgw_file: add pretty-print for RGWFileHandle

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit ef330f385d3407af5f470b5093145f59cc4dcc79)
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agorgw_file: fix marker computation 13869/head
Matt Benjamin [Mon, 20 Feb 2017 20:05:18 +0000 (15:05 -0500)]
rgw_file: fix marker computation

Fixes: http://tracker.ceph.com/issues/19018
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit 4454765e7dd08535c50d24205858e18dba4b454c)

8 years agorgw_file: rgw_readdir can't list multi-segment dirs
Matt Benjamin [Mon, 20 Feb 2017 01:34:31 +0000 (20:34 -0500)]
rgw_file: rgw_readdir can't list multi-segment dirs

This issue has one root cause in librgw, namely that the marker
argument to these requests was incorrectly formatted (though the
marker cache was working as intended).

Secondarily, for nfs-ganesha users, there is a compounding issue
that the RGW fsal was required by "temporary" convention to
populate the entire dirent cache for a directory on a single
readdir() invocation--the cache_inode/mdcache implementations
invariantly pass (before future 2.5 changesets, currently in
progress) a null pointer for the start cookie offset, intended
to convey this.

Fixes: http://tracker.ceph.com/issues/18991
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit 2cd60ee9712291b906123aca1704288b18a9742b)

8 years agorgw_file: allow setattr on placeholder directories
Matt Benjamin [Sun, 19 Feb 2017 23:21:06 +0000 (18:21 -0500)]
rgw_file: allow setattr on placeholder directories

When a POSIX path <bucket>/foo/ is known only as an implicit path
segment from other objects (e.g., <bucket>/foo/bar.txt), a case
that would usually arise from S3 upload of such an object, an
RGWFileHandle object representing "<bucket>/foo/" will be constructed
as needed, with no backing in RGW.

This is by design, but subsequently, if a setattr is performed on
such a handle, we must be ready to create the object inline with
storing the attributes.

Fixes: http://tracker.ceph.com/issues/18989
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit 55eec1c0a0e136736961423b7b6244d0f3693c1a)

8 years agoMerge pull request #14140 from smithfarm/wip-19341-jewel
Ken Dreyer [Tue, 28 Mar 2017 22:36:35 +0000 (16:36 -0600)]
Merge pull request #14140 from smithfarm/wip-19341-jewel

jewel: 'period update' does not remove short_zone_ids of deleted zones

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #13886 from cbodley/wip-17786
Ken Dreyer [Tue, 28 Mar 2017 22:35:16 +0000 (16:35 -0600)]
Merge pull request #13886 from cbodley/wip-17786

jewel: rgw: clear data_sync_cr if RGWDataSyncControlCR fails

Reviewed-by: Nathan Cutler <ncutler@suse.com>
8 years agoMerge pull request #13867 from smithfarm/wip-19159-jewel
Ken Dreyer [Tue, 28 Mar 2017 22:34:57 +0000 (16:34 -0600)]
Merge pull request #13867 from smithfarm/wip-19159-jewel

jewel: rgw: multisite: RGWMetaSyncShardControlCR gives up on EIO

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #13858 from smithfarm/wip-19152-jewel
Ken Dreyer [Tue, 28 Mar 2017 22:34:24 +0000 (16:34 -0600)]
Merge pull request #13858 from smithfarm/wip-19152-jewel

jewel: rgw_file:  restore (corrected) fix for dir partial match (return of FLAG_EXACT_MATCH)

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #13848 from smithfarm/wip-19150-jewel
Ken Dreyer [Tue, 28 Mar 2017 22:33:18 +0000 (16:33 -0600)]
Merge pull request #13848 from smithfarm/wip-19150-jewel

jewel: rgw_file:  avoid interning .. in FHCache table and don't ref for them

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #13844 from smithfarm/wip-19148-jewel
Ken Dreyer [Tue, 28 Mar 2017 22:29:30 +0000 (16:29 -0600)]
Merge pull request #13844 from smithfarm/wip-19148-jewel

jewel: rgw: DUMPABLE flag is cleared by setuid preventing coredumps

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #13823 from asheplyakov/19176-bp-jewel
Ken Dreyer [Tue, 28 Mar 2017 22:26:48 +0000 (16:26 -0600)]
Merge pull request #13823 from asheplyakov/19176-bp-jewel

jewel: rgw: fix swift cannot disable object versioning with empty X-Versions-Location

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #13778 from smithfarm/wip-18811-jewel
Ken Dreyer [Tue, 28 Mar 2017 22:22:23 +0000 (16:22 -0600)]
Merge pull request #13778 from smithfarm/wip-18811-jewel

jewel: librgw: RGWLibFS::setattr fails on directories

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agoMerge pull request #13717 from asheplyakov/19115-bp-jewel
Ken Dreyer [Tue, 28 Mar 2017 22:21:44 +0000 (16:21 -0600)]
Merge pull request #13717 from asheplyakov/19115-bp-jewel

jewel: rgw_file: ensure valid_s3_object_name for directories, too

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agoMerge pull request #13596 from dillaman/wip-19038-jewel
Ken Dreyer [Tue, 28 Mar 2017 22:19:03 +0000 (16:19 -0600)]
Merge pull request #13596 from dillaman/wip-19038-jewel

jewel: rbd-mirror: deleting a snapshot during sync can result in read errors

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #13583 from asheplyakov/jewel-bp-18901
Ken Dreyer [Tue, 28 Mar 2017 22:10:43 +0000 (16:10 -0600)]
Merge pull request #13583 from asheplyakov/jewel-bp-18901

jewel: rgw_file:  interned RGWFileHandle objects need parent refs

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #13503 from linuxbox2/wip-jewel-10156
Ken Dreyer [Tue, 28 Mar 2017 22:02:43 +0000 (16:02 -0600)]
Merge pull request #13503 from linuxbox2/wip-jewel-10156

jewel: rgw: make sending Content-Length in 204 and 304 controllable

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agoMerge pull request #13232 from ovh/wip-rework-recovery-priorities-jewel
Ken Dreyer [Tue, 28 Mar 2017 21:53:49 +0000 (15:53 -0600)]
Merge pull request #13232 from ovh/wip-rework-recovery-priorities-jewel

jewel: osd: Increase priority for inactive PGs backfill

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13219 from linuxbox2/jewel-rgw-multipart-upload-copy-4
Ken Dreyer [Tue, 28 Mar 2017 21:51:46 +0000 (15:51 -0600)]
Merge pull request #13219 from linuxbox2/jewel-rgw-multipart-upload-copy-4

jewel: rgw: multipart uploads copy part support

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #13108 from vumrao/wip-vumrao-jewel-18657
Ken Dreyer [Tue, 28 Mar 2017 21:51:24 +0000 (15:51 -0600)]
Merge pull request #13108 from vumrao/wip-vumrao-jewel-18657

jewel: osd: fix OSD network address in OSD heartbeat_check log message

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agorgw_file: posix style atime,ctime,mtime 14205/head
Gui Hecheng [Thu, 2 Mar 2017 09:21:57 +0000 (17:21 +0800)]
rgw_file: posix style atime,ctime,mtime

As an ganesha FSAL backend, rgw_file should properly maintain
the atime,ctime,mtime properly against operations such as:
(read,write) for file
(create,unlink,mkdir,rmdir,rename) for dir
(setattr) for file and dir

Signed-off-by: Gui Hecheng <guihecheng@cmss.chinamobile.com>
(cherry picked from commit ac25da2479b9be876cbdb820560ac46a6e2b17d7)

8 years agorgw_file: fix marker computation
Matt Benjamin [Mon, 20 Feb 2017 20:05:18 +0000 (15:05 -0500)]
rgw_file: fix marker computation

Fixes: http://tracker.ceph.com/issues/19018
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit 4454765e7dd08535c50d24205858e18dba4b454c)
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agorgw_file: rgw_readdir can't list multi-segment dirs
Matt Benjamin [Mon, 20 Feb 2017 01:34:31 +0000 (20:34 -0500)]
rgw_file: rgw_readdir can't list multi-segment dirs

This issue has one root cause in librgw, namely that the marker
argument to these requests was incorrectly formatted (though the
marker cache was working as intended).

Secondarily, for nfs-ganesha users, there is a compounding issue
that the RGW fsal was required by "temporary" convention to
populate the entire dirent cache for a directory on a single
readdir() invocation--the cache_inode/mdcache implementations
invariantly pass (before future 2.5 changesets, currently in
progress) a null pointer for the start cookie offset, intended
to convey this.

Fixes: http://tracker.ceph.com/issues/18991
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit 2cd60ee9712291b906123aca1704288b18a9742b)
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agorgw_file: allow setattr on placeholder directories
Matt Benjamin [Sun, 19 Feb 2017 23:21:06 +0000 (18:21 -0500)]
rgw_file: allow setattr on placeholder directories

When a POSIX path <bucket>/foo/ is known only as an implicit path
segment from other objects (e.g., <bucket>/foo/bar.txt), a case
that would usually arise from S3 upload of such an object, an
RGWFileHandle object representing "<bucket>/foo/" will be constructed
as needed, with no backing in RGW.

This is by design, but subsequently, if a setattr is performed on
such a handle, we must be ready to create the object inline with
storing the attributes.

Fixes: http://tracker.ceph.com/issues/18989
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit 55eec1c0a0e136736961423b7b6244d0f3693c1a)
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agorgw_file: fix reversed return value of getattr 14206/head
Gui Hecheng [Wed, 8 Mar 2017 08:23:11 +0000 (16:23 +0800)]
rgw_file: fix reversed return value of getattr

When ::getattr returns -ESTALE, rgw_getattr returns ESTALE,
which is a not expected postive.

Signed-off-by: Gui Hecheng <guihecheng@cmss.chinamobile.com>
(cherry picked from commit 39203cf872b8f4af86eb0e4a0f96dffd9cc92b41)

8 years agorgw_file: fix non-negative return code for open operation
Gui Hecheng [Mon, 20 Mar 2017 02:53:46 +0000 (10:53 +0800)]
rgw_file: fix non-negative return code for open operation

The nfs-ganesha expects a negative retcode for errors.

Signed-off-by: Gui Hecheng <guihecheng@cmss.chinamobile.com>
(cherry picked from commit b5f70ef7b066f9ff44770cc8a50ccadaa02f4691)

8 years agorgw_file: fix double unref on rgw_fh for rename
Gui Hecheng [Wed, 15 Mar 2017 07:01:05 +0000 (15:01 +0800)]
rgw_file: fix double unref on rgw_fh for rename

Skip unref after unlink to fix the problem.

Signed-off-by: Gui Hecheng <guihecheng@cmss.chinamobile.com>
(cherry picked from commit bff228734c73b536d2482e2e2fa4ad38b206ebff)

8 years agoosd: bypass readonly ops when osd full. 14181/head
Jianpeng Ma [Thu, 5 May 2016 15:07:06 +0000 (23:07 +0800)]
osd: bypass readonly ops when osd full.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
(cherry picked from commit e2a0ae8e88e6b7354b14adb503fd8ba8525bee39)
See: http://tracker.ceph.com/issues/19394

Signed-off-by: yaoning <yaoning@unitedstack.com>
8 years agorgw: multipart part copy, fix regression 13219/head
Yehuda Sadeh [Fri, 30 Sep 2016 05:20:10 +0000 (22:20 -0700)]
rgw: multipart part copy, fix regression

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit 66fbe9384703c004c01783eb664f55895d310439)

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agorgw: minor optimization
Yehuda Sadeh [Fri, 30 Sep 2016 00:44:08 +0000 (17:44 -0700)]
rgw: minor optimization

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit 4919dc9987c6376d3d4e143702c26417449524c5)

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agorgw: rgw_obj_key use adjustment in multipart copy part
Yehuda Sadeh [Fri, 30 Sep 2016 00:43:00 +0000 (17:43 -0700)]
rgw: rgw_obj_key use adjustment in multipart copy part

This fixes a case where objects start with double underscore.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit 29fece3545cc1df404a25eec46706b16f893a5df)

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agorgw: multipart copy-part handle versionId
Yehuda Sadeh [Fri, 30 Sep 2016 00:43:35 +0000 (17:43 -0700)]
rgw: multipart copy-part handle versionId

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit 53521efffb1cb92e5f5ce992d4127bf9498d7c33)

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agorgw: multipart copy part minor parsing cleanup
Yehuda Sadeh [Thu, 29 Sep 2016 21:24:13 +0000 (14:24 -0700)]
rgw: multipart copy part minor parsing cleanup

no need for range.size()

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit 6e9b824d5d4017239d58b4752ebc43bfad8f698d)

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agorgw: multipart copy, check for empty bucket, improve logging
Yehuda Sadeh [Thu, 29 Sep 2016 21:11:43 +0000 (14:11 -0700)]
rgw: multipart copy, check for empty bucket, improve logging

also reduce log level for non critical user errors.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit 2bcb3d286b230ef917d5ba96c8276a942f544689)

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agorgw: multipart copy part, chunked read
Yehuda Sadeh [Thu, 29 Sep 2016 21:07:14 +0000 (14:07 -0700)]
rgw: multipart copy part, chunked read

Don't read the entire range from source object, read it in parts.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit 4049e47a0cfc1eef6efd502590b68ba7234589d3)

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agorgw: doc: add multipart uploads copy part feature as supported
Javier M. Mellid [Tue, 26 Jul 2016 12:56:50 +0000 (14:56 +0200)]
rgw: doc: add multipart uploads copy part feature as supported

Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
(cherry picked from commit 8a7ebeee2ff3f10ceb23b7fa43e43c3c450efe22)

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agorgw: multipart uploads copy part support
Javier M. Mellid [Tue, 26 Jul 2016 12:53:44 +0000 (14:53 +0200)]
rgw: multipart uploads copy part support

Add multipart uploads copy part feature.

Fixes: http://tracker.ceph.com/issues/12790
Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
(cherry picked from commit 949480c2e9760855ed6a0501d364d5e766c8207d)

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agorgw: make sending Content-Length in 204 and 304 controllable 13503/head
Radoslaw Zarzynski [Thu, 16 Feb 2017 23:56:34 +0000 (00:56 +0100)]
rgw: make sending Content-Length in 204 and 304 controllable

This commit introduces a new configurable "rgw print prohibited
content length" to let operator decide whether RadosGW complies
to RFC 7230 (a part of the HTTP specification) or violates it
but follows the Swift's behavior.

Fixes: http://tracker.ceph.com/issues/16602
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
(cherry picked from commit d8e3e64ec97a3c222a56bb6f510e5e23d7858615)

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agorgw: clear old zone short ids on period update 14140/head
Casey Bodley [Thu, 9 Mar 2017 20:24:08 +0000 (15:24 -0500)]
rgw: clear old zone short ids on period update

the short ids of old, removed zones were being kept in the period to
guard against hash collisions with new zones

but for a hash collision to cause a wrong object to sync, that object
would have to be uploaded simultaneously to two different zones that had
the same short id

to avoid this, we just have to prevent the period from containing two
colliding zones at the same time - we don't have to remember old zone
short ids forever

Fixes: http://tracker.ceph.com/issues/15618
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 9c45633c836c966ab1f75ea2b1ad3fa0a4886600)

8 years agoMerge pull request #13146 from dzafman/wip-18502-jewel-zafman
David Zafman [Fri, 24 Mar 2017 15:13:02 +0000 (08:13 -0700)]
Merge pull request #13146 from dzafman/wip-18502-jewel-zafman

jewel: osd: Scrub improvements and other fixes

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agotools/rados: Check return value of connect 14113/head
Brad Hubbard [Tue, 21 Mar 2017 02:22:20 +0000 (12:22 +1000)]
tools/rados: Check return value of connect

Fail gracefully if Rados::connect returns an error.

Fixes: http://tracker.ceph.com/issues/19319
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
(cherry picked from commit c119091ef0844e4a1ddd790a8bfef8f06bb57d58)

8 years agoMerge pull request #14100 from smithfarm/wip-18781
Nathan Cutler [Thu, 23 Mar 2017 15:49:13 +0000 (16:49 +0100)]
Merge pull request #14100 from smithfarm/wip-18781

Manually merge PR#13143 which was mistakenly merged to jewel-next

Reviewed-by: Loic Dachary <ldachary@redhat.com>
Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
8 years agoMerge branch 'jewel-next' into jewel 14100/head
Nathan Cutler [Thu, 23 Mar 2017 08:46:53 +0000 (09:46 +0100)]
Merge branch 'jewel-next' into jewel

Branch "jewel-next" was merged to jewel on Dec 22 (5b402f8a7b), and then PR
https://github.com/ceph/ceph/pull/13143 merged to jewel-next much later (Feb
1st), and then jewel-next was never merged to jewel again before we tagged
v10.2.6.

This merge brings in a single commit, i.e. the one from
https://github.com/ceph/ceph/pull/13143

Reported-by: Ken Dreyer <kdreyer@redhat.com>
Signed-off-by: Nathan Cutler <ncutler@suse.com>
8 years agojewel: osd/PGLog: reindex properly on pg log split 14047/head
Alexey Sheplyakov [Mon, 20 Mar 2017 10:05:17 +0000 (14:05 +0400)]
jewel: osd/PGLog: reindex properly on pg log split

When PGLog::IndexedLog::split_into runs it builds the list, which means
the old indices are wrong (point to bad memory), but index() will not
rebuild them because ever since b858e86 we won't rebuild them if they
are already built. Fix that by calling unindex() before the split.

Based on 643ae42cf27f16dd6ed4e1402acc0483bb9fca74. Notice that both
the child and the parent log are re-indexed in Jewel, so the only
problem is missing unindex().

Signed-off-by: Alexey Sheplyakov <asheplyakov@mirantis.com>
8 years agoos/filestore: fix clang static check warn use-after-free 14044/head
liuchang0812 [Tue, 20 Dec 2016 05:21:40 +0000 (13:21 +0800)]
os/filestore: fix clang static check warn use-after-free

Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
(cherry picked from commit 1d359455b3dd6abb383542ba596a03f14ac54dbd)
See: http://tracker.ceph.com/issues/19311

Signed-off-by: yaoning <yaoning@unitedstack.com>
8 years agoMerge pull request #13952 from smithfarm/wip-fix-merge-error
Zack Cerza [Tue, 14 Mar 2017 15:19:28 +0000 (09:19 -0600)]
Merge pull request #13952 from smithfarm/wip-fix-merge-error

tests: fix merge error in rgw/singleton/all/radosgw-admin.yaml

8 years agorgw: hold a reference on data_sync_cr over run() 13886/head
Casey Bodley [Tue, 11 Oct 2016 19:21:42 +0000 (15:21 -0400)]
rgw: hold a reference on data_sync_cr over run()

run() will drop its reference to data_sync_cr, so we need to hold a
reference until we can reacquire the lock

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 4cf0d2a768e7402e71280ca16b47353ca2a68505)

8 years agorgw: clear data_sync_cr if RGWDataSyncControlCR fails
Casey Bodley [Tue, 11 Oct 2016 19:19:37 +0000 (15:19 -0400)]
rgw: clear data_sync_cr if RGWDataSyncControlCR fails

async notifications will still try to call wakeup() on RGWDataSyncControlCR
if it fails, leading to segfault

Fixes: http://tracker.ceph.com/issues/17569
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 5cc599b9bf2dde31de16a5b2831baf06851d69d5)

 Conflicts:
src/rgw/rgw_data_sync.cc: declaration of 'int r'

8 years agotests: fix merge error in rgw/singleton/all/radosgw-admin.yaml 13952/head
Nathan Cutler [Tue, 14 Mar 2017 00:26:23 +0000 (01:26 +0100)]
tests: fix merge error in rgw/singleton/all/radosgw-admin.yaml

Introduced by 94d5888c

Reported-by: Robin H. Johnson <robin.johnson@dreamhost.com>
Signed-off-by: Nathan Cutler <ncutler@suse.com>
8 years agorbd-nbd: check /sys/block/nbdX/size to ensure kernel mapped correctly 13932/head
Mykola Golub [Thu, 2 Feb 2017 10:11:35 +0000 (11:11 +0100)]
rbd-nbd: check /sys/block/nbdX/size to ensure kernel mapped correctly

Fixes: http://tracker.ceph.com/issues/18335
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
(cherry picked from commit 596e5ea8a5df72002672eef0a6d20572ca6f60f0)

Conflicts:
qa/workunits/rbd/rbd-nbd.sh: the original commit removes
  TOO_LARGE_IMAGE test, do the same thing
src/tools/rbd_nbd/rbd-nbd.cc: help git to add
  "include/stringify.h"

Other changes:
src/tools/rbd_nbd/rbd-nbd.cc: #include <fstream> so
  the code compiles

Signed-off-by: Alexey Sheplyakov <asheplyakov@mirantis.com>
8 years agoosd/ReplicatedPG: try with pool's use-gmt setting if hitset archive not found 13827/head
Kefu Chai [Tue, 7 Mar 2017 10:49:46 +0000 (18:49 +0800)]
osd/ReplicatedPG: try with pool's use-gmt setting if hitset archive not found

due to http://tracker.ceph.com/issues/19185, a hammer OSD could store
pg_hit_set_info_t with "use-gmt = true" even the pool setting is false.
so we use the pool setting as a fallback if the hitset archive is not
found locally and the pool.use_gmt does not match with hitset.use_gmt.

Fixes: http://tracker.ceph.com/issues/19185
Signed-off-by: Kefu Chai <kchai@redhat.com>
Conflicts:
  osd/ReplicatedPG.cc:  This cannot be cherry-picked from master
    because: hammer should upgrade to jewel first before moving to a
    higher version. so there is no necessary to include this workaround
    in releases later than jewel.

8 years agorgw: RGWMetaSyncShardControlCR retries with backoff on all error codes 13867/head
Casey Bodley [Mon, 20 Feb 2017 21:00:01 +0000 (16:00 -0500)]
rgw: RGWMetaSyncShardControlCR retries with backoff on all error codes

RGWBackoffControlCR only treats EBUSY and EAGAIN as 'temporary' error
codes, with all other errors being fatal when exit_on_error is set

to RGWMetaSyncShardControlCR, a 'fatal' error means that no further sync
is possible on that shard until the gateway restarts

this changes RGWMetaSyncShardControlCR to set exit_on_error to false, so
that it will continue to retry with backoff no matter what error code it
gets

Fixes: http://tracker.ceph.com/issues/19019
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 3e4059557fd6cad5d31014327f60832b36d04a6c)

8 years agorgw_file: return of RGWFileHandle::FLAG_EXACT_MATCH 13858/head
Matt Benjamin [Thu, 23 Feb 2017 15:21:38 +0000 (10:21 -0500)]
rgw_file:  return of RGWFileHandle::FLAG_EXACT_MATCH

Allow callers of rgw_lookup() on objects attested in an
rgw_readdir() callback the ability to bypass exact match in
RGWLibFS::stat_leaf() case 2, but restore exact match enforcement
for general lookups.

This preserves required common_prefix namespace behavior, but
prevents clients from eerily permitting things like "cd sara0" via
partial name match on "sara01."

Fixes: http://tracker.ceph.com/issues/19059
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit 70ef7d45e0abf2661bd4e23161d4e70cf5178079)

8 years agorgw_file: invalid use of RGWFileHandle::FLAG_EXACT_MATCH
Matt Benjamin [Sun, 19 Feb 2017 22:43:17 +0000 (17:43 -0500)]
rgw_file: invalid use of RGWFileHandle::FLAG_EXACT_MATCH

The change which introduced this flag also caused it to be
given as the flags argument to RGWLibFS::stat_leaf() when called
from rgw_lookup().

This was incorrect:  in particular, when a directory is known only
as a common prefix of other objects, the AWS namespace mapping
convention requires lookup("foo") to match a non-materialized
instance of "foo/" (case 2 in RGWLibFS::stat_leaf's stat loop).

Fixes: http://tracker.ceph.com/issues/18992
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit e31e9eb980f958640150e8d7f17de1b9e5478b1e)

8 years agorgw_file: rgw_lookup: don't ref for "/" or ".."
Matt Benjamin [Wed, 22 Feb 2017 19:57:59 +0000 (14:57 -0500)]
rgw_file: rgw_lookup: don't ref for "/" or ".."

These refs won't be returned by nfs-ganesha, and are sufficiently
magical that other consumers should be persuaded to understand
their specialness.

Fixes: http://tracker.ceph.com/issues/19060
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit dea8d1ee373399a21851690a9753388b659b8ede)

8 years agorgw_file: avoid stranding invalid-name bucket handles in fhcache 13848/head
Matt Benjamin [Wed, 22 Feb 2017 15:24:29 +0000 (10:24 -0500)]
rgw_file: avoid stranding invalid-name bucket handles in fhcache

To avoid a string copy in the common mkdir path, handles for
proposed buckets currently are staged in the handle table, before
being rejected.  They need to be destaged, not just marked deleted
(because deleted objects are now assumed not to be linked, as of
beaeff059375b44188160dbde8a81dd4f4f8c6eb).

This triggered an unhandled Boost assert when deleting staged
handles, as current safe_link mode requires first removing from
the FHCache.

Fixes: http://tracker.ceph.com/issues/19036
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit 6cde812c92e5bba9f85fbf8486ebe69b55952370)

8 years agorgw: set dumpable flag after setuid post ff0e521 13844/head
Brad Hubbard [Mon, 27 Feb 2017 03:06:59 +0000 (13:06 +1000)]
rgw: set dumpable flag after setuid post ff0e521

ff0e521 resolved the issue for the other daemons but not for rgw since
it calls setuid (via civetweb) after the new code sets PR_SET_DUMPABLE.
Add another prctl call before wait_shutdown.

Fixes: http://tracker.ceph.com/issues/19089
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
(cherry picked from commit bc458d39630b599e0e1ca9fe25ad7455fcffdd10)

8 years agoserver: negative error code when responding to client 13831/head
xie xingguo [Tue, 14 Jun 2016 11:32:01 +0000 (19:32 +0800)]
server: negative error code when responding to client

As the comment suggests. Also a zero or positive return code
shall indicates a success, which does not match our intention here.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
(cherry picked from commit 26931f888ce4661765cca106b3a3dc66702266df)
Signed-off-by: Jan Fajerski <jfajerski@suse.com>