Commit Graph

36795 Commits

Author SHA1 Message Date
tmuthamizhan
28f0bb8416 Merge pull request #2882 from ceph/wip-doc-dumpling-to-firefly
doc: Added Dumpling to Firefly upgrade section.
2014-11-07 14:09:02 -08:00
John Wilkins
3e0295ffa9 doc: Added Dumpling to Firefly upgrade section.
Fixes: #7679

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-11-07 13:16:45 -08:00
Greg Farnum
abc995b6b4 qa/workunits/fs/misc: combine sudo and echo effectively
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
2014-11-06 17:59:22 -08:00
Greg Farnum
3aa7797741 qa: use sudo even more when rsyncing /usr
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
2014-11-06 17:48:01 -08:00
Loic Dachary
948b184c48 Merge pull request #2593 from cernceph/wip-reusepart
ceph-disk: set guid if reusing a journal partition

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Loic Dachary <loic-201408@dachary.org>
2014-11-06 22:02:43 +01:00
Loic Dachary
de8ae6dcab Merge pull request #2871 from branto1/wip-systemd-run-not-avail
Fix rhbz#1157938

Reviewed-by: Loic Dachary <loic-201408@dachary.org>
2014-11-06 16:44:54 +01:00
Boris Ranto
2a61735621 Fedora 19 uses systemd but there is no systemd-run available in the release (rhbz#1157938), this patch makes sure that the init scripts check for availability of systemd-run before they use it (otherwise, they fall back to the default method)
Signed-off-by: Boris Ranto <branto@redhat.com>
2014-11-06 15:38:51 +01:00
Josh Durgin
0401542797 Merge pull request #2859 from ceph/wip-9877
rgw: RGWRados::get_obj() returns wrong len if len == 0

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2014-11-06 13:18:41 +01:00
Josh Durgin
b436f0820a Merge pull request #2865 from ceph/wip-9479
rgw: send back ETag on S3 object copy

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2014-11-06 13:14:29 +01:00
Josh Durgin
1dea385b1f Merge pull request #2866 from ceph/wip-9973
rgw: remove swift user manifest (DLO) hash calculation

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2014-11-06 13:13:17 +01:00
Josh Durgin
7f5d035680 Merge pull request #2867 from ceph/wip-9918
rgw: update swift subuser perm masks when authenticating

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2014-11-06 13:09:15 +01:00
Josh Durgin
e8a2a02f0a Merge pull request #2864 from ceph/wip-9478
rgw: S3 object copy content type fix

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2014-11-06 13:05:32 +01:00
Loic Dachary
67f8b10393 Merge pull request #2868 from zhouyuan/bench_tool_isa
EC: Allow bench.sh to test ISA backend also

Reviewed-by: Loic Dachary <loic-201408@dachary.org>
2014-11-06 11:12:12 +01:00
Yuan Zhou
d13b478094 EC: Allow bench.sh to test ISA backend also
Update bench.sh/plot tool to cover ISA backend.
ISA will output a fake echinique 'cauchy_good' so the plot tool
don't need to be changed.

Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
2014-11-06 15:48:48 +08:00
Yehuda Sadeh
5d9f36f757 rgw: update swift subuser perm masks when authenticating
Fixes: #9918
Backport: firefly, giant
It seems that we weren't setting the swift perm mask correctly.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2014-11-05 14:41:47 -08:00
Yehuda Sadeh
ef6d3ad964 rgw: remove swift user manifest (DLO) hash calculation
Fixes: #9973
Backport: firefly, giant

Previously we were iterating through the parts, creating hash of the
parts etags (as S3 does for multipart uploads). However, swift just
calculates the etag for the empty manifest object.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2014-11-05 13:45:46 -08:00
Yehuda Sadeh
b1bfc3a7e0 rgw: send back ETag on S3 object copy
Fixes: #9479
Backport: firefly, giant
We didn't send the etag back correctly. Original code assumed the etag
resided in the attrs, but attrs only contained request attrs.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2014-11-05 13:30:02 -08:00
Yehuda Sadeh
31963459a0 rgw: S3 object copy content type fix
Fixes: #9478
Backport: firefly, giant
Content type for S3 object copy response should be set to
application/xml.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2014-11-05 12:35:42 -08:00
Jianpeng Ma
3103c8a4db ObjectStore: Fix a error comment.
Reviewed-by: Sage Weil <sage@redhat.com>
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
2014-11-05 05:14:38 -08:00
Jianpeng Ma
a1aa70f2f2 ObjectStore: Don't use largest_data_off to calc data_align.
If largest_data_off % CEPH_PAGE_SIZE != 0, the get_data_aligment return
a erro value. This make the FileJouranl::align_bl to memcopy much data.

Tested-by: Sage Weil <sage@redhat.com>
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
2014-11-05 05:14:14 -08:00
Jianpeng Ma
8ba504dee8 buffer: Add _memcopy_count to track total count of memcopy by rebuild/rebuild_page_aligned/c_str.
Using thie filed, we know the payload of
rebuild/rebuild_page_aligned/c_str and tune performance accroding.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
Reviewed-by: Sage Weil <sage@redhat.com>
2014-11-05 05:12:22 -08:00
Yehuda Sadeh
fe7bf06366 rgw: RGWRados::get_obj() returns wrong len if len == 0
Fixes: #9877
We only updated if len was > 0, should update it if r >= 0. This was the
culprit for issue #9877.
Backport: giant, firefly

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2014-11-04 22:05:03 -08:00
Sage Weil
e7fb00392e Merge pull request #2856 from XinzeChi/master
osd: cache pool: flush object ignoring cache min flush age when cache pool is full

Backport: giant, firefly
Reviewed-by: Sage Weil <sage@redhat.com>
2014-11-04 14:59:10 -08:00
Xinze Chi
f4ee9496ed osd: cache pool: flush object ignoring cache min flush age when cache pool is full
Signed-off-by: Xinze Chi <xmdxcxz@gmail.com>
2014-11-05 01:00:01 +00:00
John Wilkins
6da9405155 doc: Edited Key/Value store config reference.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-11-04 12:02:47 -08:00
John Wilkins
03be944cdc doc: Added Key/Value store config reference to index.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-11-04 12:02:28 -08:00
John Wilkins
25ca92d7ff Merge pull request #2854 from ceph/wip-doc-openstack-juno
doc: Update for OpenStack Juno.

New users working with Nova (Juno) noted that libvirt settings are now under a [libvirt] section, and truncate the leading libvirt_. Made subsections for Havana and Icehouse, added a new subsection for Juno.
2014-11-03 15:08:11 -08:00
John Wilkins
72fc262a09 doc: Update for OpenStack Juno.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-11-03 14:04:33 -08:00
Sage Weil
7ef72e9310 Merge pull request #2849 from ceph/wip-buffer
RFC: buffer: implement list::get_contiguous

Reviewed-by: Haomai Wang <haomaiwang@gmail.com>
2014-11-02 15:17:38 -08:00
Sage Weil
a554766338 buffer: implement list::get_contiguous
Return a pointer to a contiguous range of the bufferlist, rebuilding
into a contiguous region as needed.  For now, if we need to rebuild,
we just do the whole thing.  We can obviously optimize this later to
rebuild on the necessary region, but this is good enough for the
(presumably) common case where the needed region is already in fact
contiguous.

Signed-off-by: Sage Weil <sage@redhat.com>
2014-10-31 21:29:42 -07:00
Sage Weil
4a9ad7dc2d osd/ReplicatedPG: fix compile error
From 1fef4c3d54.

Signed-off-by: Sage Weil <sage@redhat.com>
2014-10-31 19:33:59 -07:00
Sage Weil
4d0bba8b22 Merge pull request #2816 from XinzeChi/master
Get the currently atime of the object in cache pool for eviction 

Backport: giant, firefly
Reviewed-by: Sage Weil <sage@redhat.com>
2014-10-31 17:16:30 -07:00
Sage Weil
f30fddd07b Merge pull request #2796 from ceph/wip-rwtimer
common/Timer: kill RWTimer

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2014-10-31 10:55:01 -07:00
Sage Weil
1ef9e2f71a Merge pull request #2826 from wonzhq/evict-atime-nohitset
osd: tiering: calculate object age during eviction when there is no hit set

Reviewed-by: Sage Weil <sage@redhat.com>
2014-10-31 10:50:31 -07:00
Sage Weil
08d5945522 Merge pull request #2827 from thesues/fix-hang
Fix rados_shutdown hang forever when using radosstriper

Reviewed-by: Sage Weil <sage@redhat.com>
2014-10-31 10:17:24 -07:00
Gregory Farnum
ed2ff15c94 Merge pull request #2813 from ceph/wip-9894
client: fix I_COMPLETE_ORDERED checking

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2014-10-31 08:18:12 -07:00
Dongmao Zhang
75332450e3 Fix rados_shutdown hang forever when using radosstriper
Dear list,

I have met this when I was using radosstriper C API. My program is
roughly like this:

    rados_striper_aio_write
    rados_aio_flush
    rados_aio_wait_for_safe
    rados_aio_release
    rados_striper_destroy
    rados_ioctx_destroy
    rados_shutdown /Hangs here/

In most time, this works well, But the programm occasionally
hangs forever. Output of gstack:

Thread 1 (Thread 0x7fe0afba0760 (LWP 18509)):
0 0x000000330f20822d in pthread_join () from /lib64/libpthread.so.0
1 0x000000347566cea2 in Thread::join(void**) () from
/usr/lib64/librados.so.2
2 0x00000034755ac535 in librados::RadosClient::shutdown() () from
/usr/lib64/librados.so.2
3 0x0000003475592269 in rados_shutdown () from /usr/lib64/librados.so.2
4 0x0000000000402349 in main ()

Thread 4 (Thread 0x7fe0ab14d700 (LWP 18541)):
0 0x000000330f20e264 in __lll_lock_wait () from /lib64/libpthread.so.0
1 0x000000330f209508 in _L_lock_854 () from /lib64/libpthread.so.0
2 0x000000330f2093d7 in pthread_mutex_lock () from
/lib64/libpthread.so.0
3 0x0000003475633af1 in Mutex::Lock(bool) () from
/usr/lib64/librados.so.2
4 0x00000034755abd37 in librados::RadosClient::put() () from
/usr/lib64/librados.so.2
5 0x0000003475592501 in librados::Rados::shutdown() () from
/usr/lib64/librados.so.2
6 0x00007fe0afbba9f7 in
libradosstriper::RadosStriperImpl::CompletionData::~CompletionData() ()
from /usr/lib64/libradosstriper.so.1
7 0x00007fe0afbbaad9 in
libradosstriper::RadosStriperImpl::WriteCompletionData::~WriteCompletionData()
() from /usr/lib64/libradosstriper.so.1
8 0x00007fe0afbc1d75 in RefCountedObject::put() () from
/usr/lib64/libradosstriper.so.1
9 0x00007fe0afbc224d in
libradosstriper::MultiAioCompletionImpl::safe_request(long) () from
/usr/lib64/libradosstriper.so.1
10 0x00000034755c5ce8 in librados::C_AioSafe::finish(int) () from
/usr/lib64/librados.so.2
11 0x00000034755a0e89 in Context::complete(int) () from
/usr/lib64/librados.so.2
12 0x000000347564d4c8 in Finisher::finisher_thread_entry() () from
/usr/lib64/librados.so.2
13 0x000000330f2079d1 in start_thread () from /lib64/libpthread.so.0
14 0x000000330eae886d in clone () from /lib64/libc.so.6

It is obvious that librados::Rados::shutdown is not a thread-safe
function here. It will hang forever. The culprit of this is when
CompletionData is released, it will first notify
"rados_aio_wait_for_safe" to continue, and CompletionData will call
put() to release other data. But if the main thread(Thread 1 here) runs
fast enough, rados_striper_destroy will be executed before other
thread(Thread 4 here)'s releasing refcnf. In this situation, main thread
runs Rados::shutdown() while other thread runs Rados::shutdown() in the
same time.

My suggestion is to let RadosStriperImpl::aio_flush to block until all
the CompletionData has been released. This makes sure other thread will
never call rados_shutdown.
2014-10-31 10:52:20 +08:00
Gregory Farnum
2474f0ccfa Merge pull request #2843 from dachary/wip-9752-past-intervals
osd: past_interval display bug on acting

Reviewed-by: Greg Farnum <greg@inktank.com>
2014-10-30 18:33:15 -07:00
Loic Dachary
c5f8d6eded osd: past_interval display bug on acting
The acting array was incorrectly including the primary and up_primary.

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

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
2014-10-31 00:49:21 +01:00
Josh Durgin
c489aafed0 Merge pull request #2835 from leseb/doc-rbd-juno
doc: update RBD for Juno

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2014-10-30 13:22:06 -07:00
Sage Weil
936c74fdad Merge pull request #2831 from yuyuyu101/async-kqueue
AsyncMessenger: Add kqueue support
2014-10-30 11:35:43 -07:00
Josh Durgin
632c145563 Merge pull request #2839 from ceph/wip-9944
osdc/Objecter: fix null dref when pool dne

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2014-10-30 11:31:34 -07:00
Dan Mick
0778a4f243 Merge pull request #2811 from ceph/wip-vstart
init-ceph: make ./init-ceph behave from src dir on systemd
2014-10-30 11:19:01 -07:00
Sage Weil
50c2c7589a osdc/Objecter: fix null dref when pool dne
If the base pool does not exist, we need to avoid dereferencing pi.
This simplest fix is to return with POOL_DNE early and skip all of the
checks.

Note that there is one other small semantic change in this function: if
we are using the precalc_pgid then base_oloc pool has to match.  But
the list_objects() caller does that, so we're fine.

Backport: giant
Fixes: #9944
Signed-off-by: Sage Weil <sage@redhat.com>
2014-10-30 10:56:36 -07:00
Sage Weil
0ba01583c5 Merge pull request #2837 from ceph/wip-9945
messages: fix COMPAT_VERSION on MClientSession

Reviewed-by: Sage Weil <sage@redhat.com>
2014-10-30 10:05:36 -07:00
John Spray
1eb9bcb1d3 messages: fix COMPAT_VERSION on MClientSession
This was incorrectly incremented to 2 by omission
of an explicit COMPAT_VERSION value.

Fixes: #9945

Signed-off-by: John Spray <john.spray@redhat.com>
2014-10-30 16:50:32 +00:00
Gregory Farnum
48c9f8c440 Merge pull request #2830 from ceph/wip-9800-giant
client: allow xattr caps in inject_release_failure

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2014-10-30 09:14:00 -07:00
Loic Dachary
51e189c1b0 Merge pull request #2834 from dachary/wip-warning
tests: fix signed/unsigned warning

Reviewed-by: Christophe Courtaut <christophe.courtaut@gmail.com>
2014-10-30 12:20:36 +01:00
Sébastien Han
c96fe592f2 doc: update RBD for Juno
This commit introduces some updates for the OpenStack Juno release. New
flags have been added, many trailing spaces were removed and a new
recommendation for Glance cache management has been added too.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2014-10-30 11:59:14 +01:00
Sage Weil
56ee3b4157 doc/release-notes: it's 8MB, not 32MB
Signed-off-by: Sage Weil <sage@redhat.com>
2014-10-29 22:54:26 -07:00