]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
9 years agofilestore: fix peek_queue for OpSequencer 6048/head
Xinze Chi [Wed, 23 Sep 2015 11:26:00 +0000 (19:26 +0800)]
filestore: fix peek_queue for OpSequencer

Fixes: #13209
Signed-off-by: Xinze Chi <xinze@xsky.com>
10 years agoMerge pull request #4394 from majianpeng/tools-copyget-flags
Kefu Chai [Sun, 5 Jul 2015 17:23:01 +0000 (01:23 +0800)]
Merge pull request #4394 from majianpeng/tools-copyget-flags

add fadvise flags for rados/rbd

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #4937 from majianpeng/replicated-misc-fix
Kefu Chai [Sun, 5 Jul 2015 17:20:30 +0000 (01:20 +0800)]
Merge pull request #4937 from majianpeng/replicated-misc-fix

ReplicatedPG: small bugs and clean up

Reviewed-by: Kefu Chai <kchai@redhat.com>
10 years agoMerge pull request #5141 from XinzeChi/wip-crush-rule
Kefu Chai [Sun, 5 Jul 2015 17:18:21 +0000 (01:18 +0800)]
Merge pull request #5141 from XinzeChi/wip-crush-rule

mon/PGMonitor: bug fix pg monitor get crush rule

Reviewed-by: Kefu Chai <kchai@redhat.com>
10 years agoMerge pull request #5135 from yuyuyu101/wip-async-fix-16
Haomai Wang [Sat, 4 Jul 2015 15:18:51 +0000 (23:18 +0800)]
Merge pull request #5135 from yuyuyu101/wip-async-fix-16

AsyncConnection: Fix incorrect sign message behavior

10 years agoMerge pull request #5144 from tchaikov/wip-fix-tools-rados
Kefu Chai [Sat, 4 Jul 2015 05:51:31 +0000 (13:51 +0800)]
Merge pull request #5144 from tchaikov/wip-fix-tools-rados

tools: fix segfault tools/rados introduced by 0f7aeee

Reviewed-by: Haomai Wang <haomaiwang@gmail.com>
10 years agoobj_bencher: remove trailing space 5144/head
Kefu Chai [Sat, 4 Jul 2015 05:27:07 +0000 (13:27 +0800)]
obj_bencher: remove trailing space

Signed-off-by: Kefu Chai <kchai@redhat.com>
10 years agotools/rados: fix the segfault introduced in 0f7aeee
Kefu Chai [Sat, 4 Jul 2015 05:25:38 +0000 (13:25 +0800)]
tools/rados: fix the segfault introduced in 0f7aeee

prefix and run_name should not be initialized by a temporary string

Signed-off-by: Kefu Chai <kchai@redhat.com>
10 years agoMerge pull request #5134 from stiopaa1/ThreadAddConsts
Loic Dachary [Fri, 3 Jul 2015 15:49:20 +0000 (17:49 +0200)]
Merge pull request #5134 from stiopaa1/ThreadAddConsts

common/Thread: added const to 2 functions

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agoAsyncConnection: Fix incorrect sign message behavior 5135/head
Haomai Wang [Fri, 3 Jul 2015 06:03:11 +0000 (14:03 +0800)]
AsyncConnection: Fix incorrect sign message behavior

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
10 years agoMerge pull request #5128 from ceph/wip-fix-doc
Loic Dachary [Fri, 3 Jul 2015 13:05:02 +0000 (15:05 +0200)]
Merge pull request #5128 from ceph/wip-fix-doc

doc: fix the build

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agomon/PGMonitor: bug fix pg monitor get crush rule 5141/head
Xinze Chi [Fri, 3 Jul 2015 10:27:13 +0000 (18:27 +0800)]
mon/PGMonitor: bug fix pg monitor get crush rule

when some rules have been deleted before, the index in array of crush->rules
is not always equals to crush_ruleset of pool.

Fixes: #12210
Reported-by: Ning Yao <zay11022@gmail.com>
Signed-off-by: Xinze Chi <xmdxcxz@gmail.com>
10 years agoMerge pull request #5071 from cxwshawn/master
Kefu Chai [Fri, 3 Jul 2015 07:49:49 +0000 (15:49 +0800)]
Merge pull request #5071 from cxwshawn/master

obj_bencher: check run_name and prefix for empty string instead of NULL

Reviewed-by: Kefu Chai <kchai@redhat.com>
10 years agoobj_bencher: check run_name and prefix for empty string instead of NULL 5071/head
shawn chen [Fri, 3 Jul 2015 03:17:55 +0000 (11:17 +0800)]
obj_bencher: check run_name and prefix for empty string instead of NULL

change aio_bench and clean_up parameter const char * to const std::string & format.
In rest_bench.cc, aio_bench used run_name.c_str(), so this format will always be empty
string not NULL, so the condition statement
const std::string run_name_meta = (run_name == NULL ? BENCH_LASTRUN_METADATA : std::string(run_name));
is wrong!

test fix:
    before:
        ./rest-bench --seconds 1 -t 2 -b 100 write --api-host=radosgw.com --bucket=test_rm --access-key=FTL7TSJAGXX5KKDQHMJM  --secret=123456879
        use s3cmd ls s3://test_rm , we can a lot of objects in this bucket, objects are not cleaned up.
    after changes, do the same procedure, objects are cleaned up.

Signed-off-by: shawn chen <cxwshawn@gmail.com>
10 years agocommon/Thread: added const to 2 functions 5134/head
Michal Jarzabek [Sat, 27 Jun 2015 14:18:42 +0000 (15:18 +0100)]
common/Thread: added const to 2 functions

Changed get_thread_id and am_self to const member functions

Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
10 years agodoc: indent warning messages in add-or-rm-osds.rst 5128/head
Kefu Chai [Thu, 2 Jul 2015 12:55:36 +0000 (20:55 +0800)]
doc: indent warning messages in add-or-rm-osds.rst

otherwise they are rendered as normal text

Signed-off-by: Kefu Chai <kchai@redhat.com>
10 years agodoc: fix the link in dev/quick_guide
Kefu Chai [Thu, 2 Jul 2015 12:50:48 +0000 (20:50 +0800)]
doc: fix the link in dev/quick_guide

Signed-off-by: Kefu Chai <kchai@redhat.com>
10 years agoosd/ReplicatedPG: for writefull, offset is zero so replace offset w/ zero. 4937/head
Jianpeng Ma [Thu, 2 Jul 2015 09:05:53 +0000 (17:05 +0800)]
osd/ReplicatedPG: for writefull, offset is zero so replace offset w/ zero.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
10 years agoosd/Replicated: Using write_update_size_and_usage for WRITEFULL.
Jianpeng Ma [Thu, 2 Jul 2015 08:59:10 +0000 (16:59 +0800)]
osd/Replicated: Using write_update_size_and_usage for  WRITEFULL.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
10 years agoosd/Replicated: First calc crc then call write_update_size_and_usage.
Jianpeng Ma [Thu, 2 Jul 2015 08:50:41 +0000 (16:50 +0800)]
osd/Replicated: First calc crc then call write_update_size_and_usage.

Because write_update_size_and_usage will change oi.size which cause
don't calc new crc.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
10 years agoMerge pull request #5125 from majianpeng/print-blocked-op
Kefu Chai [Thu, 2 Jul 2015 04:44:58 +0000 (12:44 +0800)]
Merge pull request #5125 from majianpeng/print-blocked-op

mon/PGMonitor: Make blocked Op message more readable.

Reviewed-by: Kefu Chai <kchai@redhat.com>
10 years agomon/PGMonitor: Make blocked Op message more readable. 5125/head
Jianpeng Ma [Thu, 2 Jul 2015 01:59:53 +0000 (09:59 +0800)]
mon/PGMonitor: Make blocked Op message more readable.

W/O this patch:
root@dev:/var/log/ceph# ceph health detail
HEALTH_WARN 1 pgs stuck unclean; 2 requests are blocked > 32 sec; 1 osds
have slow requests; recovery 5/115 objects degraded (4.348%); recovery
1/38 unfound (2.632%); too few PGs per OSD (15 < min 30)
pg 2.1 is stuck unclean for 899.708271, current state active, last
acting [2,3,0,1]
1 ops are blocked > 1048.58 sec
1 ops are blocked > 262.144 sec
1 ops are blocked > 1048.58 sec on osd.2
1 ops are blocked > 262.144 sec on osd.2
1 osds have slow requests
recovery 5/115 objects degraded (4.348%)
recovery 1/38 unfound (2.632%)
too few PGs per OSD (15 < min 30)

W/ this patch:
ceph health detail
HEALTH_WARN 1 pgs stuck unclean; 2 requests are blocked > 32 sec; 1 osds
have slow requests; recovery 5/115 objects degraded (4.348%); recovery
1/38 unfound (2.632%); too few PGs per OSD (15 < min 30)
pg 2.1 is stuck unclean for 427.103877, current state active, last
acting [2,3,0,1]
1 ops are blocked > 524.288 sec on osd.2
1 ops are blocked > 131.072 sec on osd.2
1 osds have slow requests
recovery 5/115 objects degraded (4.348%)
recovery 1/38 unfound (2.632%)
too few PGs per OSD (15 < min 30

Later messages looks better.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
10 years agoosd/ReplicatedPG: For WRITEFULL replica object, only truncate if new
Jianpeng Ma [Fri, 12 Jun 2015 06:56:41 +0000 (14:56 +0800)]
osd/ReplicatedPG: For WRITEFULL replica object, only truncate if new
size less than old size(only truncate to new size)

If new size larger or equal old size, no need do truncate.
It can diretcly overwrite.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
10 years agoMerge pull request #4951 from SUSE/wip-432-missing-divergent
Kefu Chai [Wed, 1 Jul 2015 16:29:26 +0000 (00:29 +0800)]
Merge pull request #4951 from SUSE/wip-432-missing-divergent

osd_types.cc: replace count with iterator in add_next_event function

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #5074 from majianpeng/mds-small-max-event
Gregory Farnum [Wed, 1 Jul 2015 15:49:40 +0000 (16:49 +0100)]
Merge pull request #5074 from majianpeng/mds-small-max-event

mds: fix mds crash when mds_max_log_events smaller.

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agoMerge pull request #4166 from sponce/wip-10759
Kefu Chai [Wed, 1 Jul 2015 15:32:57 +0000 (23:32 +0800)]
Merge pull request #4166 from sponce/wip-10759

tools: rados cli --striper

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #4928 from xiaoxichen/wip-cleanup-key
Kefu Chai [Wed, 1 Jul 2015 14:41:03 +0000 (22:41 +0800)]
Merge pull request #4928 from xiaoxichen/wip-cleanup-key

os/{LevelDB,Rocks}Store: don't keep key_list in transaction

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #5113 from tchaikov/wip-11840-reject-multiple-tiering
Kefu Chai [Wed, 1 Jul 2015 12:57:47 +0000 (20:57 +0800)]
Merge pull request #5113 from tchaikov/wip-11840-reject-multiple-tiering

mon: disallow adding a tier on top of another tier

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agomon: disallow adding a tier on top of another tier 5113/head
Kefu Chai [Wed, 1 Jul 2015 10:20:02 +0000 (18:20 +0800)]
mon: disallow adding a tier on top of another tier

multiple tiering is not supported at the moment

Fixes: #11840
Signed-off-by: Kefu Chai <kchai@redhat.com>
10 years agoMerge pull request #5112 from tchaikov/wip-12120
Gregory Farnum [Wed, 1 Jul 2015 11:08:11 +0000 (12:08 +0100)]
Merge pull request #5112 from tchaikov/wip-12120

fix a couple build warnings

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agoclient: return EINVAL if iovcnt < 0 for p{read,write}v() 5112/head
Kefu Chai [Wed, 1 Jul 2015 08:43:16 +0000 (16:43 +0800)]
client: return EINVAL if iovcnt < 0 for p{read,write}v()

Signed-off-by: Kefu Chai <kchai@redhat.com>
10 years agotools: fix deprecated warning
Kefu Chai [Wed, 1 Jul 2015 08:37:36 +0000 (16:37 +0800)]
tools: fix deprecated warning

s/set_op_flags/set_op_flags2/

Fixes: #12120
Signed-off-by: Kefu Chai <kchai@redhat.com>
10 years agocrush/CrushTester: fix signed/unsigned warning
Sage Weil [Fri, 19 Jun 2015 00:49:30 +0000 (17:49 -0700)]
crush/CrushTester: fix signed/unsigned warning

Fixes: #12120
Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoclient: fix signed/unsigned warnings in preadv code
Sage Weil [Fri, 19 Jun 2015 00:45:37 +0000 (17:45 -0700)]
client: fix signed/unsigned warnings in preadv code

Fixes: #12120
Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #5107 from yuyuyu101/wip-fix-async-14
Haomai Wang [Wed, 1 Jul 2015 06:56:04 +0000 (14:56 +0800)]
Merge pull request #5107 from yuyuyu101/wip-fix-async-14

AsyncConnection: Move sign_message to write_message

10 years agoMerge pull request #5070 from ceph/wip-4161
Yan, Zheng [Wed, 1 Jul 2015 01:00:11 +0000 (09:00 +0800)]
Merge pull request #5070 from ceph/wip-4161

mds: store layout on header object

10 years agoAsyncConnection: Move sign_message to write_message 5107/head
Haomai Wang [Tue, 30 Jun 2015 16:40:37 +0000 (00:40 +0800)]
AsyncConnection: Move sign_message to write_message

sign_message require correct connection feature which may wrong when preparing
message

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
10 years agoMerge pull request #5105 from Oxygen31/master
Loic Dachary [Tue, 30 Jun 2015 15:25:09 +0000 (17:25 +0200)]
Merge pull request #5105 from Oxygen31/master

doc : missing link in "quick_guide.rst"

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agodoc : missing link in "quick_guide.rst" 5105/head
unknown [Tue, 30 Jun 2015 13:58:17 +0000 (15:58 +0200)]
doc : missing link in "quick_guide.rst"

Fixes: #12009
Signed-off-by: Germain CHIPAUX <germain.chipaux@gmail.com>
Signed-off-by: Thomas LAUMONDAIS <thomas.laumondais@gmail.com>
Signed-off-by: Pierre CHAUMONT <pierre.chaumont31@gmail.com>
Signed-off-by: Benjamin TROQUEREAU <benjamin.troquereau@gmail.com>
Signed-off-by: Benjamin SESIA <benjamin.sesia@gmail.com>
10 years agoMerge pull request #5084 from JevonQ/fix-issue-12123
Kefu Chai [Tue, 30 Jun 2015 09:22:12 +0000 (17:22 +0800)]
Merge pull request #5084 from JevonQ/fix-issue-12123

tests: fix segfault issue in preadv/pwritev tests

Reviewed-by: Kefu Chai <kchai@redhat.com>
10 years agomds: change mds_log_max_segments type from int to unsigned. 5074/head
Jianpeng Ma [Fri, 26 Jun 2015 02:01:43 +0000 (10:01 +0800)]
mds: change mds_log_max_segments type from int to unsigned.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
10 years agomds: fix mds crash when mds_max_log_events smaller.
Jianpeng Ma [Fri, 26 Jun 2015 01:51:43 +0000 (09:51 +0800)]
mds: fix mds crash when mds_max_log_events smaller.

If 'mds max log events' small, it met this bug:

mds/journal.cc: 155: FAILED assert(ls != this)
 ceph version 9.0.1-1117-gb0dc971
(b0dc97198a45791c8b9661d4be8e531e63202005)
 1: (ceph::__ceph_assert_fail(char const*, char const*, int, char
const*)+0x80) [0x16ef7bf]
 2: (LogSegment::try_to_expire(MDS*,
C_GatherBuilderBase<MDSInternalContextBase, MDSGather>&, int)+0x1925)
[0x15475e5]
 3: (MDLog::try_expire(LogSegment*, int)+0x66) [0x14c50a0]
 4: (MDLog::trim(int)+0xd67) [0x14c4511]
 5: (MDS::tick()+0x265) [0x1146e0b]
 6: (MDS::C_MDS_Tick::finish(int)+0x32) [0x11693b2]
 7: (Context::complete(int)+0x27) [0x11611a7]
 8: (MDSInternalContextBase::complete(int)+0x1a4) [0x14977fa]
 9: (SafeTimer::timer_thread()+0x37a) [0x16e28fa]
 10: (SafeTimerThread::entry()+0x1c) [0x16e3c56]
 11: (Thread::entry_wrapper()+0xa8) [0x16df0ee]
 12: (Thread::_entry_func(void*)+0x18) [0x16df03c]
 13: /lib64/libpthread.so.0() [0x30c9c07555]
 14: (clone()+0x6d) [0x30c9901f3d]

Check segments.size() > 1 can trim segment.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
10 years agotests: fix segfault issue in preadv/pwritev tests 5084/head
Jevon Qiao [Fri, 26 Jun 2015 10:04:21 +0000 (18:04 +0800)]
tests: fix segfault issue in preadv/pwritev tests

Previously copied the sample data to the iov buffers not yet allocated.
Now allocate buffers before writing data into them.

Fixes: #12123
Signed-off-by: Jevon Qiao <qiaojianfeng@unitedstack.com>
10 years agoMerge pull request #5094 from SUSE/wip-sharutils-dupe
Ken Dreyer [Mon, 29 Jun 2015 19:27:24 +0000 (13:27 -0600)]
Merge pull request #5094 from SUSE/wip-sharutils-dupe

ceph.spec.in: remove duplicate BuildRequires: sharutils

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
10 years agoMerge pull request #5082 from ceph/wip-fedora-babeltrace
branto1 [Mon, 29 Jun 2015 14:01:33 +0000 (16:01 +0200)]
Merge pull request #5082 from ceph/wip-fedora-babeltrace

ceph.spec.in: fix babeltrace handling on Fedora

Reviewed-by: Ira Cooper ira@samba.org
Reviewed-by: Boris Ranto branto@redhat.com
10 years agoMerge pull request #5098 from PierreChaumont/master
Loic Dachary [Sun, 28 Jun 2015 11:36:37 +0000 (13:36 +0200)]
Merge pull request #5098 from PierreChaumont/master

doc: homogenize Librados (Python) documentation's code samples

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agodoc: homogenize Librados (Python) documentation's code samples 5098/head
PierreChaumont [Sat, 27 Jun 2015 13:23:47 +0000 (15:23 +0200)]
doc: homogenize Librados (Python) documentation's code samples

I put in doc/rados/api/python.rst line numbers on every code samples in
order to make them look all the same.

Fixes: #12174
Signed off: Pierre Chaumont pierre.chaumont31@gmail.com

10 years agoceph.spec.in: remove duplicate BuildRequires: sharutils 5094/head
Nathan Cutler [Fri, 26 Jun 2015 18:21:59 +0000 (20:21 +0200)]
ceph.spec.in: remove duplicate BuildRequires: sharutils

Signed-off-by: Nathan Cutler <ncutler@suse.com>
10 years agoMerge pull request #4957 from SUSE/wip-python-flask
Ken Dreyer [Fri, 26 Jun 2015 18:20:32 +0000 (12:20 -0600)]
Merge pull request #4957 from SUSE/wip-python-flask

ceph.spec.in: fix python-flask dependency for SUSE

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
10 years agoceph.spec.in: fix python-flask dependency for SUSE 4957/head
Nathan Cutler [Mon, 15 Jun 2015 10:58:00 +0000 (12:58 +0200)]
ceph.spec.in: fix python-flask dependency for SUSE

In SLE and openSUSE, the package is called python-Flask with an upper-case F.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
10 years agoMerge pull request #5086 from SUSE/wip-12173
Ken Dreyer [Fri, 26 Jun 2015 17:49:55 +0000 (11:49 -0600)]
Merge pull request #5086 from SUSE/wip-12173

logrotate.conf: fixes for systemd

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
10 years agologrotate.conf: fixes for systemd 5086/head
Nathan Cutler [Fri, 26 Jun 2015 11:13:33 +0000 (13:13 +0200)]
logrotate.conf: fixes for systemd

Before this patch, the command 'logrotate -f /etc/logrotate.d/ceph'
was generating an error "Failed to reload ceph.target: Job type reload is not
applicable for unit ceph.target".

Before we issue systemctl reload, check that there is at least
one active ceph-* service. (The hyphen is significant.)

Since we use grep, make the grep package a dependency.

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

Signed-off-by: Tim Serong <tserong@suse.com>
Signed-off-by: Lars Marowsky-Bree <lmb@suse.com>
Signed-off-by: Nathan Cutler <ncutler@suse.com>
10 years agoMerge pull request #5091 from yehudasa/wip-multipart-parts-limit
Yehuda Sadeh [Fri, 26 Jun 2015 16:40:28 +0000 (09:40 -0700)]
Merge pull request #5091 from yehudasa/wip-multipart-parts-limit

rgw: Multipart Upload: Support to configure and enforce no of parts a…

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: Multipart Upload: Support to configure and enforce no of parts allowed 5091/head
Abhishek Dixit [Sun, 14 Jun 2015 17:58:16 +0000 (23:28 +0530)]
rgw: Multipart Upload: Support to configure and enforce no of parts allowed

Fixes: #12146
Config parameter added for no of parts limit in multipart upload and checked while
completing multipart upload

Signed-off-by: Abhishek Dixit <dixitabhi@gmail.com>
10 years agoMerge pull request #4970 from SUSE/wip-12034-master
Ken Dreyer [Fri, 26 Jun 2015 16:06:11 +0000 (10:06 -0600)]
Merge pull request #4970 from SUSE/wip-12034-master

ceph.spec.in: python-argparse only in Python 2.6

Reviewed-by: Alfredo Deza <adeza@redhat.com>
Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
10 years agoceph.spec.in: python-argparse only in Python 2.6 4970/head
Nathan Cutler [Tue, 16 Jun 2015 16:27:20 +0000 (18:27 +0200)]
ceph.spec.in: python-argparse only in Python 2.6

argparse is a widely-used Python module for parsing command-line arguments.
Ceph makes heavy use of Python scripts, both in the build environment and on
cluster nodes and clients.

Until Python 2.6, argparse was distributed separately from Python proper.
As of 2.7 it is part of the Python standard library.

Although the python package in a given distro may or may not Provide:
python-argparse, this cannot be relied upon.

Therefore, this commit puts appropriate conditionals around Requires:
python-argparse and BuildRequires: python-argparse. It does so for Red
Hat/CentOS and SUSE only, because the last Fedora version with Python 2.6
was Fedora 13, which is EOL.

argparse is required by both the ceph and ceph-common packages, but since ceph
requires ceph-common, the argparse Requires and BuildRequires need only appear
once, under ceph-common.

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

Signed-off-by: Nathan Cutler <ncutler@suse.com>
10 years agoMerge pull request #5035 from yuyuyu101/wip-async-fix-13
Haomai Wang [Fri, 26 Jun 2015 10:01:18 +0000 (18:01 +0800)]
Merge pull request #5035 from yuyuyu101/wip-async-fix-13

AsyncConnection: Fix out-of-sequence problem introduced by send/write separated logic

10 years agoMerge pull request #5001 from ceph/wip-11985
Yan, Zheng [Fri, 26 Jun 2015 01:18:14 +0000 (09:18 +0800)]
Merge pull request #5001 from ceph/wip-11985

#11985 Fixes to MDLog (and MDS) shutdown

10 years agoMerge pull request #5077 from SUSE/wip-spec-comment-clarify
Ken Dreyer [Thu, 25 Jun 2015 19:28:48 +0000 (13:28 -0600)]
Merge pull request #5077 from SUSE/wip-spec-comment-clarify

ceph.spec.in: clarify two important comments

10 years agoceph.spec.in: clarify two important comments 5077/head
Nathan Cutler [Thu, 25 Jun 2015 16:55:39 +0000 (18:55 +0200)]
ceph.spec.in: clarify two important comments

First, the terms "common" and "specific" are vague. Second,
"common" can easily be confused with the ceph-common subpackage.

Fix this by rephrasing to "distro-unconditional dependencies" and
"distro-conditional dependencies", respectively.

Third, move the "distro-unconditional dependencies" header so it
is above the part where these dependencies are actually defined.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
10 years agoMerge pull request #5033 from wuxingyi/fixuserquota
Yehuda Sadeh [Thu, 25 Jun 2015 17:30:43 +0000 (10:30 -0700)]
Merge pull request #5033 from wuxingyi/fixuserquota

rgw: fix empty json response when getting user quota

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoMerge pull request #4942 from SUSE/wip-11991
Ken Dreyer [Thu, 25 Jun 2015 16:47:17 +0000 (10:47 -0600)]
Merge pull request #4942 from SUSE/wip-11991

rpm: add missing Java conditionals

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
10 years agomds: fix MDLog shutdown process 5001/head
John Spray [Thu, 18 Jun 2015 10:07:46 +0000 (11:07 +0100)]
mds: fix MDLog shutdown process

We must join threads before completing ::shutdown,
because otherwise these threads might try to use
torn-down resources like the objecter.

The replay/recovery threads may be blocking on
journaler calls like wait_for_readable, so we
must signal them using Journaler::shutdown.  In
order for that to be safe, we must also protect
the assignment of ::journaler from the threads
using the mds_lock.

Fixes: #11985
Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomds: drop MDSIOContext on mds->stopping
John Spray [Thu, 18 Jun 2015 10:08:05 +0000 (11:08 +0100)]
mds: drop MDSIOContext on mds->stopping

`stopping` is true once the MDS has entered suicide().  During
this phase, any MDSIOContexts that are called (e.g. from objecter,
journaler) become no-ops.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomds: refine shutdown, add ::stopping
John Spray [Thu, 18 Jun 2015 10:07:52 +0000 (11:07 +0100)]
mds: refine shutdown, add ::stopping

Add a ::stopping flag, set at start of suicide(),
that other contexts must inspect after taking
mds_lock.

This guards against the possibility of multiple
threads entering suicide, and more generally
against the possibility of other procedures
starting while we're in the middle of shutting down.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoosdc/Journaler: add a shutdown() method
John Spray [Tue, 16 Jun 2015 13:25:33 +0000 (14:25 +0100)]
osdc/Journaler: add a shutdown() method

Because consumers may be blocked on the on_readable
condition, it is necessary for Journaler to have
an explicit shutdown method that fires the completion

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agocommon/Thread: print msg on join errors
John Spray [Wed, 17 Jun 2015 10:50:40 +0000 (11:50 +0100)]
common/Thread: print msg on join errors

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomds: add a ceph_file_layout wrapper for dencoder 5070/head
John Spray [Thu, 25 Jun 2015 08:47:46 +0000 (09:47 +0100)]
mds: add a ceph_file_layout wrapper for dencoder

So that we can decode it from tests.  This should go away
at some point when encoding of these raw-encoded structures
is modernized.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agotest/ceph-dencoder: add boilerplate
John Spray [Wed, 24 Jun 2015 23:43:42 +0000 (00:43 +0100)]
test/ceph-dencoder: add boilerplate

... mainly just for the modelines.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomds: store layout on header object
John Spray [Wed, 24 Jun 2015 22:58:36 +0000 (23:58 +0100)]
mds: store layout on header object

This is surprisingly simple because we were already redundantly
calling store_backtrace whenever the layout changed!  That was
a side effect of the way add_old_pool is handled, the backtrace
version is bumped to latest even if the "old" pool is the
current one.

The upshot is that if we accept the existing behaviour of
also unnecessarily updating the 'parent' xattr, keeping
the new 'layout' xattr update requires no new dirty flags.  This
is a twitchy enough behaviour that new tests are needed to guard
against regressions though.

Fixes: #4161
Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoMerge pull request #5058 from SUSE/wip-fix-release-notes-blooper 5083/head
Kefu Chai [Thu, 25 Jun 2015 12:54:37 +0000 (20:54 +0800)]
Merge pull request #5058 from SUSE/wip-fix-release-notes-blooper

release-notes.txt: fix version number in section heading

Reviewed-by: Kefu Chai <kchai@redhat.com>
10 years agoMerge pull request #5073 from ceph/wip-12105
John Spray [Thu, 25 Jun 2015 10:58:36 +0000 (11:58 +0100)]
Merge pull request #5073 from ceph/wip-12105

mds: update CInode::oldest_snap during migration

Reviewed-by: John Spray <john.spray@redhat.com>
10 years agomds: update CInode::oldest_snap during migration 5073/head
Yan, Zheng [Thu, 25 Jun 2015 08:32:38 +0000 (16:32 +0800)]
mds: update CInode::oldest_snap during migration

Fixes: #12105
Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agoMerge pull request #5036 from ceph/wip-dirfrag-msgs
Yan, Zheng [Thu, 25 Jun 2015 06:56:48 +0000 (14:56 +0800)]
Merge pull request #5036 from ceph/wip-dirfrag-msgs

mds: tweak dirfrag asok messages

10 years agoceph.spec.in: rm reference to EOL Fedoras (< 20) 5082/head
Ken Dreyer [Wed, 24 Jun 2015 22:37:58 +0000 (16:37 -0600)]
ceph.spec.in: rm reference to EOL Fedoras (< 20)

Fedora 19 is EOL, so there's no need to refer to Fedoras less than 20.
"%{fedora}" effectively implies "Fedora 20 and above".

Reported-by: Ira Cooper <ira@samba.org>
Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
10 years agoceph.spec.in: package rbd-replay-prep on all Fedoras
Ken Dreyer [Wed, 24 Jun 2015 22:39:30 +0000 (16:39 -0600)]
ceph.spec.in: package rbd-replay-prep on all Fedoras

This reverts the change in commit
85517d611b7bf4cb6cbffcd2c65303be0d038264. Since we BuildRequire:
libbabeltrace-devel, autoconf will see that babeltrace is available
during the build, and make will build/install the rbd-replay-prep
utility.

This change also simplifies Fedora selection logic, because Fedora 19 is
EOL, so "%{fedora}" implies "Fedora 20 and above".

Reported-by: Ira Cooper <ira@samba.org>
Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
10 years agoMerge pull request #4981 from ceph/wip-fedora-build-fixes
Ken Dreyer [Wed, 24 Jun 2015 20:04:13 +0000 (14:04 -0600)]
Merge pull request #4981 from ceph/wip-fedora-build-fixes

Fix various issues with fedora (f21+) builds

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
10 years agoMerge pull request #4898 from SUSE/wip_ceph_spec_sharutils
Ken Dreyer [Wed, 24 Jun 2015 17:26:55 +0000 (11:26 -0600)]
Merge pull request #4898 from SUSE/wip_ceph_spec_sharutils

ceph.spec.in:BuildRequires sharutils

Reviewed-by: Nathan Cutler <ncutler@suse.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
Reviewed-by: Dan Mick <dmick@redhat.com>
10 years agoceph.spec.in:BuildRequires sharutils 4898/head
Owen Synge [Mon, 8 Jun 2015 15:48:55 +0000 (17:48 +0200)]
ceph.spec.in:BuildRequires sharutils

The uudecode binary is used to build Java-related components, and
uudecode is provided by the sharutils package on all supported
RPM platforms. When building with "--without=cephfs_java",
sharutils is not needed.

Thanks to Nathan Cutler <ncutler@suse.cz> for going into the
details with me.

On OBS without this patch we get the error message:

[  170s] -----------------------------------------------------------------
[  170s] ----- building ceph.spec (user abuild)
[  170s] -----------------------------------------------------------------
[  170s] -----------------------------------------------------------------
[  170s] + exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --nosignature --define 'disturl obs://build.opensuse.org/home:osynge:ceph:wip:wip_obs_fedora/Fedora_20/c0bbbc1e62228ca956ac3d367edc4fba-master' /home/abuild/rpmbuild/SOURCES/ceph.spec
[  170s] error: Failed build dependencies:
[  170s]    sharutils is needed by ceph-1:2+git.1435043747.c1bd02c-1.1.x86_64

With this patch we can build fedora 22 and fedora 20 rpms fine.

Signed-off-by: Owen Synge <osynge@suse.com>
10 years agoMerge pull request #5042 from ceph/wip-final-kw
John Spray [Wed, 24 Jun 2015 10:25:17 +0000 (11:25 +0100)]
Merge pull request #5042 from ceph/wip-final-kw

mds/Migrator: don't use c++11 kw 'final' as var name

Reviewed-by: Kefu Chai <kchai@redhat.com>
10 years agoMerge pull request #5066 from ceph/wip-gitignore-add-ceph_perf_msgr
Kefu Chai [Wed, 24 Jun 2015 09:54:48 +0000 (17:54 +0800)]
Merge pull request #5066 from ceph/wip-gitignore-add-ceph_perf_msgr

src/.gitignore: add ceph_perf_msgr_{server,client}

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #4840 from tchaikov/wip-11833-crush-dump-tree
Kefu Chai [Wed, 24 Jun 2015 09:39:49 +0000 (17:39 +0800)]
Merge pull request #4840 from tchaikov/wip-11833-crush-dump-tree

mon: add an "osd crush dump tree" command

Reviewed-by: Min Chen <minchen@ubuntukylin.com>
Reviewed-by: Haomai Wang <haomaiwang@gmail.com>
10 years agosrc/.gitignore: add ceph_perf_msgr_{server,client} 5066/head
Kefu Chai [Wed, 24 Jun 2015 08:49:56 +0000 (16:49 +0800)]
src/.gitignore: add ceph_perf_msgr_{server,client}

Signed-off-by: Kefu Chai <kchai@redhat.com>
10 years agoFixed inclusion of ceph-helpers file in tests after it was moved to qa/workunits 4166/head
Sebastien Ponce [Wed, 24 Jun 2015 08:42:20 +0000 (10:42 +0200)]
Fixed inclusion of ceph-helpers file in tests after it was moved to qa/workunits

10 years agoMerge pull request #4965 from xinxinsh/wip-12025
Kefu Chai [Wed, 24 Jun 2015 07:53:43 +0000 (15:53 +0800)]
Merge pull request #4965 from xinxinsh/wip-12025

mon/OSDMonitor : error out if pgp_num > pg_num

Reviewed-by: Kefu Chai <kchai@redhat.com>
10 years agoMerge pull request #4923 from dachary/wip-make-check-verbosity
Kefu Chai [Wed, 24 Jun 2015 04:53:48 +0000 (12:53 +0800)]
Merge pull request #4923 from dachary/wip-make-check-verbosity

tests: display the output of failed make check runs

Reviewed-by: Kefu Chai <kchai@redhat.com>
10 years agoMerge pull request #5032 from guangyy/wip-cleanup
Kefu Chai [Wed, 24 Jun 2015 03:17:08 +0000 (11:17 +0800)]
Merge pull request #5032 from guangyy/wip-cleanup

osd: remove duplicate checks

Reviewed-by: Kefu Chai <kchai@redhat.com>
10 years agoMerge pull request #5064 from vuhuong/wip-xio
Kefu Chai [Wed, 24 Jun 2015 03:03:19 +0000 (11:03 +0800)]
Merge pull request #5064 from vuhuong/wip-xio

xio: sync works

Reviewed-by: Kefu Chai <kchai@redhat.com>
10 years agomove pgp_num, pg_num check to prepare_new_pool method 4965/head
xinxin shu [Thu, 18 Jun 2015 18:11:39 +0000 (02:11 +0800)]
move pgp_num, pg_num check to prepare_new_pool method

Signed-off-by: xinxin shu <xinxin.shu@intel.com>
10 years agoxio: fix to work with commit 626360aa 5064/head
Vu Pham [Tue, 23 Jun 2015 21:18:34 +0000 (14:18 -0700)]
xio: fix to work with commit 626360aa

Fix xio to work with commit 626360aa
"msg, ceph_osd: Support feature bits for all message type's local connection"

Signed-off-by: Vu Pham <vu@mellanox.com>
10 years agoxio: fix to work with the merge of pull request #4707
Vu Pham [Fri, 12 Jun 2015 16:50:28 +0000 (09:50 -0700)]
xio: fix to work with the merge of pull request #4707

fix xio to work with the merge of pull request
" Removed unnecessary inclusion of iostream in several files #4707"

Signed-off-by: Vu Pham <vu@mellanox.com>
10 years agoxio: sync to work with accellio v1.4
Vu Pham [Fri, 29 May 2015 17:32:22 +0000 (10:32 -0700)]
xio: sync to work with accellio v1.4

latest master's HEAD - tag v1-4

Signed-off-by: Vu Pham <vu@mellanox.com>
10 years agoMerge pull request #4747 from ceph/wip-damaged-fixes
John Spray [Tue, 23 Jun 2015 13:29:24 +0000 (14:29 +0100)]
Merge pull request #4747 from ceph/wip-damaged-fixes

MDS metadata damage handling

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agorelease-notes.txt: fix version number in section heading 5058/head
Nathan Cutler [Tue, 23 Jun 2015 12:56:35 +0000 (14:56 +0200)]
release-notes.txt: fix version number in section heading

From context it is obvious that this section is about upgrading from Giant, not
Firefly, so change the version number to match Giant.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
10 years agoMerge pull request #5054 from SUSE/wip-release-notes-syntax
Loic Dachary [Tue, 23 Jun 2015 12:31:29 +0000 (08:31 -0400)]
Merge pull request #5054 from SUSE/wip-release-notes-syntax

doc/release-notes.rst: add missing word to complete sentence

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agodoc/release-notes.rst: add missing word to complete sentence 5054/head
Nathan Cutler [Tue, 23 Jun 2015 12:23:24 +0000 (14:23 +0200)]
doc/release-notes.rst: add missing word to complete sentence

Signed-off-by: Nathan Cutler <ncutler@suse.com>
10 years agotests : Fixed radosstriper tests to introduce the needed calls to setup and teardown
Sebastien Ponce [Wed, 27 May 2015 15:15:16 +0000 (17:15 +0200)]
tests : Fixed radosstriper tests to introduce the needed calls to setup and teardown

In particular port 7112 was replaced by 7113 for the monitor as 7112 is taken by test-erasure-eio now
And calls to setup and teardown have been added around the testing shell code

10 years agotests : Fixed broken Makefiles after integration of lttng into rados.
Sebastien Ponce [Wed, 27 May 2015 08:26:18 +0000 (10:26 +0200)]
tests : Fixed broken Makefiles after integration of lttng into rados.

The symbols of lttng were exposed twice leading to error when launching executables using libradosstriper.

Signed-off-by: Sebastien Ponce <sebastien.ponce@cern.ch>
10 years agotests: fixed environment for osd-class-dir
Sebastien Ponce [Fri, 6 Feb 2015 14:14:46 +0000 (15:14 +0100)]
tests: fixed environment for osd-class-dir

osd-class-dir was not set when activating osds in the test environment leading to failures with 'operation not supported' message when trying to lock objects

Signed-off-by: Sebastien Ponce <sebastien.ponce@cern.ch>
10 years agorados: Added --striper option to the command line
Sebastien Ponce [Thu, 29 Jan 2015 03:51:37 +0000 (04:51 +0100)]
rados: Added --striper option to the command line

Fixes: #10759
the new --striper option allows to use the striping API provided by libradosstriper.

Signed-off-by: Sebastien Ponce <sebastien.ponce@cern.ch>