]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
10 years agoFix "was hidden" compilation warnings 5308/head
Orit Wasserman [Tue, 14 Jul 2015 12:08:26 +0000 (14:08 +0200)]
Fix "was hidden" compilation warnings

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
10 years agoMerge pull request #5326 from tweenk/docs-improvements
Sage Weil [Thu, 23 Jul 2015 14:04:52 +0000 (10:04 -0400)]
Merge pull request #5326 from tweenk/docs-improvements

Documentation for a few objects

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #5261 from SUSE/wip-drop-py-requires
Ken Dreyer [Thu, 23 Jul 2015 13:48:09 +0000 (07:48 -0600)]
Merge pull request #5261 from SUSE/wip-drop-py-requires

ceph.spec.in: drop SUSE-specific %py_requires macro

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
10 years agoMerge pull request #5263 from SUSE/wip-apache-not-required
Ken Dreyer [Thu, 23 Jul 2015 13:46:23 +0000 (07:46 -0600)]
Merge pull request #5263 from SUSE/wip-apache-not-required

ceph.spec.in: remove SUSE-specific apache2-mod_fcgid dependency

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
10 years agodocs: Document md_config_obs_t. 5326/head
Krzysztof Kosiński [Thu, 23 Jul 2015 13:20:20 +0000 (15:20 +0200)]
docs: Document md_config_obs_t.

Signed-off-by: Krzysztof Kosiński <krzysztof.kosinski@intel.com>
10 years agodocs: Document the ThreadPool and WorkQueue classes.
Krzysztof Kosiński [Thu, 23 Jul 2015 13:19:52 +0000 (15:19 +0200)]
docs: Document the ThreadPool and WorkQueue classes.

Signed-off-by: Krzysztof Kosiński <krzysztof.kosinski@intel.com>
10 years agodocs: Document the Finisher class.
Krzysztof Kosiński [Tue, 14 Jul 2015 10:38:41 +0000 (12:38 +0200)]
docs: Document the Finisher class.

Signed-off-by: Krzysztof Kosiński <krzysztof.kosinski@intel.com>
10 years agoMerge pull request #5317 from ceph/wip-quota-doc
Sage Weil [Thu, 23 Jul 2015 12:37:19 +0000 (08:37 -0400)]
Merge pull request #5317 from ceph/wip-quota-doc

doc/cephfs/quota: simple doc

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Travis Rhoden <trhoden@redhat.com>
10 years agodoc/cephfs/quota: simple doc 5317/head
Sage Weil [Thu, 23 Jul 2015 12:35:35 +0000 (08:35 -0400)]
doc/cephfs/quota: simple doc

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #5305 from ceph/wip-12417
Sage Weil [Wed, 22 Jul 2015 15:38:02 +0000 (11:38 -0400)]
Merge pull request #5305 from ceph/wip-12417

auth: check return value of keyring->get_secret

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #5300 from yuyuyu101/wip-async-fix-20
Haomai Wang [Wed, 22 Jul 2015 15:14:56 +0000 (23:14 +0800)]
Merge pull request #5300 from yuyuyu101/wip-async-fix-20

AsyncConnection: Fix local message dispatch lack of source name

10 years agoMerge pull request #5314 from dachary/wip-12419-rule-create-erasure
Kefu Chai [Wed, 22 Jul 2015 11:26:45 +0000 (19:26 +0800)]
Merge pull request #5314 from dachary/wip-12419-rule-create-erasure

tests: robust test for the pool create crush map test

Reviewed-by: Kefu Chai <kchai@redhat.com>
10 years agotests: robust test for the pool create crushmap test 5314/head
Loic Dachary [Wed, 22 Jul 2015 08:42:32 +0000 (10:42 +0200)]
tests: robust test for the pool create crushmap test

The test that goes with f1e86be589803596e86acc964ac5c5c03b4038d8 to
verify that a bugous crush ruleset will prevent the creation of a pool
trying to use it was fragile. I depends on the implementation of the
erasure code lrc plugin and turns out to not work on i386.

The test is modified to use a fake crushtool that always returns false
and validate that it prevents the creation of a pool, which demonstrate
it is used for crushmap validation prior to the pool creation.

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

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #5304 from ceph/wip-add-scrub-config-doc
Kefu Chai [Wed, 22 Jul 2015 03:52:24 +0000 (11:52 +0800)]
Merge pull request #5304 from ceph/wip-add-scrub-config-doc

doc/rados/configuration: add more scrub related config

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agodoc/rados/configuration: add more scrub related config 5304/head
Kefu Chai [Tue, 21 Jul 2015 11:50:00 +0000 (19:50 +0800)]
doc/rados/configuration: add more scrub related config

Signed-off-by: Kefu Chai <kchai@redhat.com>
10 years agoMerge pull request #5306 from dachary/wip-release-notes
Loic Dachary [Tue, 21 Jul 2015 19:02:58 +0000 (21:02 +0200)]
Merge pull request #5306 from dachary/wip-release-notes

src/script/ceph-release-notes: add --text for plain text output

Reviewed-by: Abhishek Lekshmanan <abhishek.lekshmanan@ril.com>
10 years agodoc: v0.80.10 changelog
Sage Weil [Tue, 21 Jul 2015 16:54:19 +0000 (12:54 -0400)]
doc: v0.80.10 changelog

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agosrc/script/ceph-release-notes: add --text for plain text output 5306/head
Loic Dachary [Tue, 21 Jul 2015 16:26:56 +0000 (18:26 +0200)]
src/script/ceph-release-notes: add --text for plain text output

This is a format that's easier to consume when sending a mail.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #5303 from oritwas/fix-cmake-4
Kefu Chai [Tue, 21 Jul 2015 16:02:00 +0000 (00:02 +0800)]
Merge pull request #5303 from oritwas/fix-cmake-4

cmake: add missing blkid to ceph-osd

Reviewed-by: Kefu Chai <kchai@redhat.com>
10 years agoauth: check return value of keyring->get_secret 5305/head
John Spray [Tue, 21 Jul 2015 15:09:32 +0000 (16:09 +0100)]
auth: check return value of keyring->get_secret

get_secret can fail to populate the passed CryptoKey, for
example if the entity name is not found in the keyring.  In
this case, attempts to use the CryptoKey will lead to
segfaults.

Fixes: #12417
Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoMerge pull request #5127 from tchaikov/wip-12193
David Zafman [Tue, 21 Jul 2015 15:01:17 +0000 (08:01 -0700)]
Merge pull request #5127 from tchaikov/wip-12193

tools: add osdmap commands to ceph-objectstore-tool

Reviewed-by: David Zafman <dzafman@redhat.com>
10 years agodoc/releases: v0.80.10
Sage Weil [Tue, 21 Jul 2015 14:56:57 +0000 (10:56 -0400)]
doc/releases: v0.80.10

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agodoc/release-notes: v0.80.10
Sage Weil [Tue, 21 Jul 2015 14:55:18 +0000 (10:55 -0400)]
doc/release-notes: v0.80.10

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge branch 'wip-firefly-release-notes' of git://github.com/dachary/ceph
Sage Weil [Tue, 21 Jul 2015 14:53:40 +0000 (10:53 -0400)]
Merge branch 'wip-firefly-release-notes' of git://github.com/dachary/ceph

10 years agoMerge pull request #4958 from xinxinsh/wip-clone-test
Kefu Chai [Tue, 21 Jul 2015 14:07:56 +0000 (22:07 +0800)]
Merge pull request #4958 from xinxinsh/wip-clone-test

ceph_test_objectstore: improve the StoreTest.SimpleCloneTest

Reviewed-by: Haomai Wang <haomaiwang@gmail.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
10 years agoMerge pull request #5301 from ceph/wip-12251
Kefu Chai [Tue, 21 Jul 2015 13:46:29 +0000 (21:46 +0800)]
Merge pull request #5301 from ceph/wip-12251

mon: OSDMonitor: fix hex output on 'osd reweight'

Reviewed-by: Kefu Chai <kchai@redhat.com>
10 years agocmake: add missing blkid libraries 5303/head
Orit Wasserman [Tue, 21 Jul 2015 12:31:47 +0000 (14:31 +0200)]
cmake: add missing blkid libraries

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
10 years agoMerge pull request #5302 from ssssztes/master
Kefu Chai [Tue, 21 Jul 2015 13:29:28 +0000 (21:29 +0800)]
Merge pull request #5302 from ssssztes/master

mon: fix the message in OSDMonitor::get_pools_health

Reviewed-by: Xinze Chi <xmdxcxz@gmail.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
10 years agoUpdate OSDMonitor.cc 5302/head
renhwztetecs [Tue, 21 Jul 2015 10:55:00 +0000 (18:55 +0800)]
Update OSDMonitor.cc

OSDMonitor::get_pools_health(), s/objects/bytes/

Fixes: #12402
Signed-off-by: ren.huanwen@zte.com.cn
10 years agomon: OSDMonitor: fix hex output on 'osd reweight' 5301/head
Joao Eduardo Luis [Tue, 21 Jul 2015 10:20:53 +0000 (11:20 +0100)]
mon: OSDMonitor: fix hex output on 'osd reweight'

Fixes: #12251
Signed-off-by: Joao Eduardo Luis <joao@suse.de>
10 years agoMerge pull request #5294 from ceph/wip-12354
Gregory Farnum [Tue, 21 Jul 2015 09:46:34 +0000 (10:46 +0100)]
Merge pull request #5294 from ceph/wip-12354

client: fix directory fsync

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agoAsyncConnection: Fix local message dispatch lack of source 5300/head
Haomai Wang [Tue, 21 Jul 2015 09:11:42 +0000 (17:11 +0800)]
AsyncConnection: Fix local message dispatch lack of source

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
10 years agoTestMsgr: Add message source check for local message dispatch
Haomai Wang [Tue, 21 Jul 2015 09:11:14 +0000 (17:11 +0800)]
TestMsgr: Add message source check for local message dispatch

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
10 years agoMerge pull request #5288 from hjwsm1989/pgmonitor-overflow
Kefu Chai [Tue, 21 Jul 2015 09:10:50 +0000 (17:10 +0800)]
Merge pull request #5288 from hjwsm1989/pgmonitor-overflow

mon/PGMonitor: avoid overflow when checking num_objects against the threshold

Reviewed-by: Kefu Chai <kchai@redhat.com>
10 years agoMerge pull request #5297 from ceph/wip-7647 5363/head
Orit Wasserman [Tue, 21 Jul 2015 07:02:12 +0000 (09:02 +0200)]
Merge pull request #5297 from ceph/wip-7647

rgw: avoid using slashes for generated secret keys

10 years agorgw: avoid using slashes for generated secret keys 5297/head
Yehuda Sadeh [Tue, 21 Jul 2015 03:27:33 +0000 (20:27 -0700)]
rgw: avoid using slashes for generated secret keys

Just use plain alphanumeric characterset.

Fixes: #7647
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoclient: fix directory fsync 5294/head
Yan, Zheng [Mon, 20 Jul 2015 08:46:39 +0000 (16:46 +0800)]
client: fix directory fsync

When opening a regular file, fuse assigns a 'struct Fh' pointer to
fuse_file_info::fh. but when openning a directory, fuse assigns a
'struct dir_result_t' to fuse_file_info::fh. So we need a seperate
function for fsyncdir (cast fuse_file_info::fh to a struct
dir_result_t pointer)

Fixes: #12354
Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agoMerge pull request #5291 from zhouyuan/rgw_s3_obj_version
Yehuda Sadeh [Mon, 20 Jul 2015 16:56:13 +0000 (09:56 -0700)]
Merge pull request #5291 from zhouyuan/rgw_s3_obj_version

rgw: doc: Mark S3 object version API as supported

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: doc: Mark S3 object version API as supported 5291/head
Yuan Zhou [Mon, 20 Jul 2015 07:37:09 +0000 (15:37 +0800)]
rgw: doc: Mark S3 object version API as supported

S3 object version is already in since Hammer.
Ref: http://marc.info/?l=ceph-devel&m=143715290627682

Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
10 years ago mon/PGMonitor: avoid uint64_t overflow when checking pool 'target/max' status. 5288/head
huangjun [Mon, 20 Jul 2015 02:50:20 +0000 (10:50 +0800)]
  mon/PGMonitor: avoid uint64_t overflow when checking pool 'target/max' status.
Fixes: #12401
Signed-off-by: huangjun <hjwsm1989@gmail.com>
10 years agoMerge pull request #5282 from ceph/wip-fix-test-mon_deprecated_commands
Kefu Chai [Sat, 18 Jul 2015 17:07:16 +0000 (01:07 +0800)]
Merge pull request #5282 from ceph/wip-fix-test-mon_deprecated_commands

qa/workunits: cephtool: take EOPNOTSUPP as an alias of ENOTSUP

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agoqa/workunits: cephtool: take EOPNOTSUPP as an alias of ENOTSUP 5282/head
Kefu Chai [Sat, 18 Jul 2015 16:13:26 +0000 (00:13 +0800)]
qa/workunits: cephtool: take EOPNOTSUPP as an alias of ENOTSUP

the proble breaks `test_mon_deprecated_commands` on ubuntu precise,
on the python shipped with ubuntu precise, errno.errorcode[95]
evalutes to `EOPNOTSUPP` but not `ENOTSUP`. but these two errnos
are equal in glibc.

Signed-off-by: Kefu Chai <kchai@redhat.com>
10 years agoMerge pull request #5253 from ceph/wip-12262
David Zafman [Fri, 17 Jul 2015 22:58:14 +0000 (15:58 -0700)]
Merge pull request #5253 from ceph/wip-12262

Bug  fix for rados export
Add rados purge command
Fix and add rados tool testing to make check

Reviewed-by: Loic Dachary <ldachary@redhat.com>
Reviewed-by: John Spray <john.spray@redhat.com>
10 years agoMerge pull request #5274 from zhouyuan/rgw_api_link
Sage Weil [Fri, 17 Jul 2015 21:22:52 +0000 (17:22 -0400)]
Merge pull request #5274 from zhouyuan/rgw_api_link

rgw: doc: adding S3/Swift API link

Reviewed-by: Abhishek Lekshmanan <abhishek.lekshmanan@ril.com>
10 years agoMerge pull request #5281 from joehandzik/copyright_mailmap_update
Sage Weil [Fri, 17 Jul 2015 21:18:08 +0000 (17:18 -0400)]
Merge pull request #5281 from joehandzik/copyright_mailmap_update

doc: Adding Hewlett-Packard copyright messages

10 years agoMerge pull request #5270 from dachary/wip-releases
Sage Weil [Fri, 17 Jul 2015 20:50:43 +0000 (16:50 -0400)]
Merge pull request #5270 from dachary/wip-releases

doc: add v9.0.2 to the release timeline

10 years agodoc: Adding Hewlett-Packard copyright messages to files containing more than minor... 5281/head
Joe Handzik [Fri, 17 Jul 2015 19:43:45 +0000 (14:43 -0500)]
doc: Adding Hewlett-Packard copyright messages to files containing more than minor enhancements and build scripting

Signed-off-by: Joe Handzik <joseph.t.handzik@hp.com>
10 years agotest: Make test_rados_tool.sh part of make check 5253/head
David Zafman [Wed, 15 Jul 2015 04:03:23 +0000 (21:03 -0700)]
test: Make test_rados_tool.sh part of make check

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agocommon, tools, test: Add "rados purge" feature to remove all objects from a pool
David Zafman [Tue, 14 Jul 2015 02:07:07 +0000 (19:07 -0700)]
common, tools, test: Add "rados purge" feature to remove all objects from a pool

This required creating an Object type which is a pair of strings an
object id and object namespace.  Functionally, nothing has changed
with regards to the bench and cleanup command semantics.  Those
commands still allow operation in the default or a specified namespace.

Fixes: #12262
Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoMerge pull request #5052 from ceph/wip-11815-restore-crushmap
Joao Eduardo Luis [Fri, 17 Jul 2015 15:50:25 +0000 (16:50 +0100)]
Merge pull request #5052 from ceph/wip-11815-restore-crushmap

tools: add a tool to restore crush map after a faulty one is injected

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
10 years agoMerge pull request #5246 from t-miyamae/wip-mshec-fixlogic3
Loic Dachary [Fri, 17 Jul 2015 13:49:14 +0000 (15:49 +0200)]
Merge pull request #5246 from t-miyamae/wip-mshec-fixlogic3

erasure code: shec performance optimization by SIMD instructions

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agotest: add test for {get,set}-inc-osdmap commands. 5127/head
Kefu Chai [Fri, 17 Jul 2015 06:46:16 +0000 (14:46 +0800)]
test: add test for {get,set}-inc-osdmap commands.

Signed-off-by: Kefu Chai <kchai@redhat.com>
10 years agoMerge pull request #5273 from wonzhq/rados-df
Kefu Chai [Fri, 17 Jul 2015 11:29:34 +0000 (19:29 +0800)]
Merge pull request #5273 from wonzhq/rados-df

rados.cc: fix an issue in the output of the 'rados df' command

Reviewed-by: Kefu Chai <kchai@redhat.com>
10 years agotools: ceph-monstore-update-crush: fail early if mon's running 5052/head
Joao Eduardo Luis [Mon, 13 Jul 2015 14:05:50 +0000 (15:05 +0100)]
tools: ceph-monstore-update-crush: fail early if mon's running

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
10 years agotools: ceph_monstore_tool: describe behavior of rewrite command
Joao Eduardo Luis [Mon, 13 Jul 2015 11:35:13 +0000 (12:35 +0100)]
tools: ceph_monstore_tool: describe behavior of rewrite command

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
10 years agoosd/OSDMap: fix a typo in the comment
Kefu Chai [Thu, 25 Jun 2015 07:26:19 +0000 (15:26 +0800)]
osd/OSDMap: fix a typo in the comment

Signed-off-by: Kefu Chai <kchai@redhat.com>
10 years agoosd/OSDMap: remove unused dump_json()
Kefu Chai [Thu, 25 Jun 2015 07:25:19 +0000 (15:25 +0800)]
osd/OSDMap: remove unused dump_json()

Signed-off-by: Kefu Chai <kchai@redhat.com>
10 years agopackage ceph-monstore-update-crush.sh
Kefu Chai [Tue, 23 Jun 2015 12:30:23 +0000 (20:30 +0800)]
package ceph-monstore-update-crush.sh

Fixes: #11815
Signed-off-by: Kefu Chai <kchai@redhat.com>
10 years agotest: add a test to exercise ceph-monstore-update-crush.sh
Kefu Chai [Fri, 19 Jun 2015 15:15:58 +0000 (23:15 +0800)]
test: add a test to exercise ceph-monstore-update-crush.sh

Fixes: #11815
Signed-off-by: Kefu Chai <kchai@redhat.com>
10 years agotools: add ceph-monstore-update-crush.sh
Kefu Chai [Tue, 23 Jun 2015 12:30:02 +0000 (20:30 +0800)]
tools: add ceph-monstore-update-crush.sh

Fixes: #11815
Signed-off-by: Kefu Chai <kchai@redhat.com>
10 years agoPendingReleaseNotes: add the notes about osdmaptool
Kefu Chai [Mon, 29 Jun 2015 15:44:02 +0000 (23:44 +0800)]
PendingReleaseNotes: add the notes about osdmaptool

* its '--dump-json' option is replaced by '--dump json'

Signed-off-by: Kefu Chai <kchai@redhat.com>
10 years agotool/osdmaptool: replace --dump-json with --dump
Kefu Chai [Thu, 25 Jun 2015 07:20:17 +0000 (15:20 +0800)]
tool/osdmaptool: replace --dump-json with --dump

* --dump will accept a formatter argument.

Signed-off-by: Kefu Chai <kchai@redhat.com>
10 years agotools/ceph-monstore-tools: add rewrite command
Kefu Chai [Fri, 19 Jun 2015 14:57:57 +0000 (22:57 +0800)]
tools/ceph-monstore-tools: add rewrite command

"rewrite" command will
 - add a new osdmap version to update current osdmap held by OSDMonitor
 - add a new paxos version, as a proposal it will
   * rewrite all osdmap epochs from specified epoch to  the last_committed
     one with the specified crush map.
   * add the new osdmap which is added just now
so the leader monitor can trigger a recovery process to apply the transaction
to all monitors in quorum, and hence bring them back to normal after being
injected with a faulty crushmap.

Fixes: #11815
Signed-off-by: Kefu Chai <kchai@redhat.com>
10 years agoMerge pull request #4807 from dachary/wip-11814-erasure-code-ruleset
Kefu Chai [Fri, 17 Jul 2015 10:25:42 +0000 (18:25 +0800)]
Merge pull request #4807 from dachary/wip-11814-erasure-code-ruleset

mon: validate implicit erasure code crush ruleset

Reviewed-by: Takeshi Miyamae <miyamae.takeshi@jp.fujitsu.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
10 years agorados.cc: fix an issue in the output of the 'rados df' command 5273/head
Zhiqiang Wang [Fri, 17 Jul 2015 03:28:19 +0000 (11:28 +0800)]
rados.cc: fix an issue in the output of the 'rados df' command

The output doesn't indent correctly without this fix. Right align the df
stats with their headers. Before this change some of them are 1
character off, and with a strange 'category' column.

Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
10 years agorgw: doc: adding S3/Swift API link 5274/head
Yuan Zhou [Fri, 17 Jul 2015 06:02:36 +0000 (14:02 +0800)]
rgw: doc: adding S3/Swift API link

Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
10 years agoerasure code: shec add ceph-erasure-code-corpus 5246/head
Takeshi Miyamae [Fri, 17 Jul 2015 04:42:08 +0000 (13:42 +0900)]
erasure code: shec add ceph-erasure-code-corpus

Signed-off-by: Takeshi Miyamae <miyamae.takeshi@jp.fujitsu.com>
10 years agotools/ceph-objectstore-tool: add get-inc-osdmap command
Kefu Chai [Tue, 14 Jul 2015 02:33:47 +0000 (10:33 +0800)]
tools/ceph-objectstore-tool: add get-inc-osdmap command

Signed-off-by: Kefu Chai <kchai@redhat.com>
10 years agotools/ceph-objectstore-tool: add set-inc-osdmap command
Kefu Chai [Sat, 11 Jul 2015 08:27:47 +0000 (16:27 +0800)]
tools/ceph-objectstore-tool: add set-inc-osdmap command

Signed-off-by: Kefu Chai <kchai@redhat.com>
10 years agotest: add test for {get,set}-osdmap commands
Kefu Chai [Wed, 8 Jul 2015 07:51:55 +0000 (15:51 +0800)]
test: add test for {get,set}-osdmap commands

Signed-off-by: Kefu Chai <kchai@redhat.com>
10 years agoMerge pull request #5260 from ceph/wip-12297-readdir
Yan, Zheng [Fri, 17 Jul 2015 01:14:36 +0000 (09:14 +0800)]
Merge pull request #5260 from ceph/wip-12297-readdir

DNM Client: check dir is still complete after dropping locks in _readdir_cache_cb

10 years agodoc: add v9.0.2 to the release timeline 5270/head
Loic Dachary [Thu, 16 Jul 2015 22:28:52 +0000 (00:28 +0200)]
doc: add v9.0.2 to the release timeline

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agodoc/release-notes: v9.0.2
Sage Weil [Thu, 16 Jul 2015 19:17:44 +0000 (15:17 -0400)]
doc/release-notes: v9.0.2

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #5268 from dachary/wip-ceph-port
David Zafman [Thu, 16 Jul 2015 19:17:34 +0000 (12:17 -0700)]
Merge pull request #5268 from dachary/wip-ceph-port

tests: test/cephtool-test-mon.sh uses 7202 7203 and 7204

Reviewed-by: David Zafman <dzafman@redhat.com>
10 years agotest: test_rados_tool.sh update due to new import/export semantics
David Zafman [Wed, 15 Jul 2015 00:47:24 +0000 (17:47 -0700)]
test: test_rados_tool.sh update due to new import/export semantics

Remove redundant check for rados binary
No longer use the attr command so remove check

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoMerge pull request #5266 from ceph/wip-ftbfs-cls-cephfs
Loic Dachary [Thu, 16 Jul 2015 19:02:54 +0000 (21:02 +0200)]
Merge pull request #5266 from ceph/wip-ftbfs-cls-cephfs

cls: fix the build on i386

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agotests: test/cephtool-test-mon.sh uses 7202 7203 and 7204 5268/head
Loic Dachary [Thu, 16 Jul 2015 18:32:39 +0000 (20:32 +0200)]
tests: test/cephtool-test-mon.sh uses 7202 7203 and 7204

When running 3 mons, vstart uses ports starting from CEPH_PORT=7202 and
increments to 7203 for the second mon and 7204 for the third. Add a
comment showing the port number. The method for a test to figure out
which port is free is to grep for the port and if nothing matches, use
it. The grep will match 7204 and 7203 and 7202 from the comment and
reduce the chances of someone using 7203 because it was nowhere to be
found in the sources.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge branch 'wip-10507'
Joao Eduardo Luis [Thu, 16 Jul 2015 17:40:57 +0000 (18:40 +0100)]
Merge branch 'wip-10507'

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agotools/ceph-objectstore-tool: add "get-osdmap" command
Kefu Chai [Fri, 3 Jul 2015 15:09:54 +0000 (23:09 +0800)]
tools/ceph-objectstore-tool: add "get-osdmap" command

Signed-off-by: Kefu Chai <kchai@redhat.com>
10 years agotools/ceph-objectstore-tool: add "set-osdmap" command
Kefu Chai [Thu, 2 Jul 2015 11:14:55 +0000 (19:14 +0800)]
tools/ceph-objectstore-tool: add "set-osdmap" command

Fixes: #12193
Signed-off-by: Kefu Chai <kchai@redhat.com>
10 years agomessages: MForward: get() message reference
Joao Eduardo Luis [Tue, 14 Jul 2015 15:52:35 +0000 (16:52 +0100)]
messages: MForward: get() message reference

Don't simply put() a reference if it has gone unclaimed without
get()'ing it first. This can cause nefarious consequences for those
users of MForward that do not expect this to happen.

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
10 years agomon: MonOpRequest: dump function as private
Joao Eduardo Luis [Tue, 30 Jun 2015 14:52:08 +0000 (15:52 +0100)]
mon: MonOpRequest: dump function as private

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
10 years agomon: services: assert on unexpected op request type
Joao Eduardo Luis [Fri, 26 Jun 2015 09:29:04 +0000 (10:29 +0100)]
mon: services: assert on unexpected op request type

Ensures some type safety by asserting on the request type.

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
10 years agomon: Monitor: set op request type during dispatch
Joao Eduardo Luis [Fri, 26 Jun 2015 09:28:36 +0000 (10:28 +0100)]
mon: Monitor: set op request type during dispatch

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
10 years agomon: MonOpRequest: allow setting the op type
Joao Eduardo Luis [Fri, 26 Jun 2015 09:21:49 +0000 (10:21 +0100)]
mon: MonOpRequest: allow setting the op type

When we introduced the MonOpRequest in the monitor and moved pretty much
every single function receiving messages in their arguments to take op
requests, we basically lost the type safety that was guaranteed from
Monitor::dispatch().

This patch adds an op_type field to the op request, as an easy fix for
this now lacking safety.

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
10 years agomon: Monitor: drop PaxoServiceMessage reply functions
Joao Eduardo Luis [Wed, 24 Jun 2015 23:12:33 +0000 (00:12 +0100)]
mon: Monitor: drop PaxoServiceMessage reply functions

The services are now fully using MonOpRequest and should stay that way.
Drop PaxosService-specific reply functions as we want nothing to do with
them :)

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
10 years agomon: MDSMonitor: use op-related no_reply()
Joao Eduardo Luis [Wed, 24 Jun 2015 22:49:54 +0000 (23:49 +0100)]
mon: MDSMonitor: use op-related no_reply()

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
10 years agomon: OSDMonitor: use op requests when sending out full/incrementals
Joao Eduardo Luis [Wed, 24 Jun 2015 22:48:23 +0000 (23:48 +0100)]
mon: OSDMonitor: use op requests when sending out full/incrementals

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
10 years agomon: OSDMonitor: move failure code to support op requests
Joao Eduardo Luis [Wed, 24 Jun 2015 16:54:33 +0000 (17:54 +0100)]
mon: OSDMonitor: move failure code to support op requests

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
10 years agomon: Monitor: have op-related no_reply()
Joao Eduardo Luis [Wed, 24 Jun 2015 16:54:05 +0000 (17:54 +0100)]
mon: Monitor: have op-related no_reply()

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
10 years agomon: MonOpRequest: send_reply() belongs in the Monitor class
Joao Eduardo Luis [Wed, 24 Jun 2015 16:51:56 +0000 (17:51 +0100)]
mon: MonOpRequest: send_reply() belongs in the Monitor class

Op Requests should have no business replying to messages. Besides,
given the Monitor is currently the place to do this, because it is the
one with access to all things that may be required to validate state
(e.g., quorum features), permanently moving this code to the Monitor
class also avoid having duplicate/very similar code in two distinct
places.

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
10 years agomon: Monitor: routed requests handling op requests
Joao Eduardo Luis [Wed, 24 Jun 2015 10:50:50 +0000 (11:50 +0100)]
mon: Monitor: routed requests handling op requests

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
10 years agomon: Monitor: forward_request_leader() taking ops instead
Joao Eduardo Luis [Fri, 19 Jun 2015 17:32:37 +0000 (18:32 +0100)]
mon: Monitor: forward_request_leader() taking ops instead

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
10 years agomon: Monitor: drop reply_command(MMonCommand *m,...)
Joao Eduardo Luis [Thu, 18 Jun 2015 15:39:07 +0000 (16:39 +0100)]
mon: Monitor: drop reply_command(MMonCommand *m,...)

Monitor commands are now op requests; always use ops when replying to
commands.

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
10 years agomon: use op's get_session() instead of getting from connection
Joao Eduardo Luis [Wed, 17 Jun 2015 15:07:37 +0000 (16:07 +0100)]
mon: use op's get_session() instead of getting from connection

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
10 years agomon: services: use op-based reply_command()
Joao Eduardo Luis [Wed, 17 Jun 2015 14:54:41 +0000 (15:54 +0100)]
mon: services: use op-based reply_command()

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
10 years agocls: fix the build on i386 5266/head
Kefu Chai [Thu, 16 Jul 2015 17:12:03 +0000 (01:12 +0800)]
cls: fix the build on i386

this is a leftover of 0dae022

Signed-off-by: Kefu Chai <kchai@redhat.com>
10 years agomon: Monitor: reply_command() wrapper for ops
Joao Eduardo Luis [Wed, 17 Jun 2015 14:53:12 +0000 (15:53 +0100)]
mon: Monitor: reply_command() wrapper for ops

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
10 years agomon: Paxos: mark events
Joao Eduardo Luis [Tue, 16 Jun 2015 13:32:46 +0000 (14:32 +0100)]
mon: Paxos: mark events

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
10 years agomon: Monitor: mark events
Joao Eduardo Luis [Wed, 10 Jun 2015 00:55:21 +0000 (01:55 +0100)]
mon: Monitor: mark events

Signed-off-by: Joao Eduardo Luis <joao@suse.de>