Commit Graph

41401 Commits

Author SHA1 Message Date
Loic Dachary
b73a236c57 Merge pull request #4037 from osynge/wip-fix-disk-zap-sgdisk-invocation
Fix "disk zap" sgdisk invocation

Reviewed-by: Loic Dachary <ldachary@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
2015-04-30 11:46:29 +02:00
Owen Synge
fdd7f8d83a Fix "disk zap" sgdisk invocation
Fixes #11143

If the metadata on the disk is truly invalid, sgdisk would fail to zero
it in one go, because --mbrtogpt apparently tried to operate on the
metadata it read before executing --zap-all.

Splitting this up into two separate invocations to first zap everything
and then clear it properly fixes this issue.

Based on patch by Lars Marowsky-Bree <lmb@suse.com> in ceph-deploy.
Created by Vincent Untz <vuntz@suse.com>

Signed-off-by: Owen Synge <osynge@suse.com>
Signed-off-by: Thorsten Behrens <tbehrens@suse.com>
2015-04-30 11:11:42 +02:00
Loic Dachary
ae65bb454e Merge pull request #4513 from SUSE/wip-suse-run-make-check
run-make-check.sh: fix a copule of SUSE oddities

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-04-30 10:24:11 +02:00
Tim Serong
e71e8654ee run-make-check.sh: stricter check for yum/apt-get/zypper
Believe it or not, it's possible (although not necessarily likely) to
have both yum and zypper installed on openSUSE.  In this case the
previous implementation using `which` would return a string containing
both commands, which doesn't work.

Signed-off-by: Tim Serong <tserong@suse.com>
2015-04-30 17:51:20 +10:00
Tim Serong
05534b8b93 run-make-check.sh: use /sbin/modprobe
Rationale: In some cases (e.g.: by default on openSUSE), `sudo` won't
add /sbin to $PATH.

Signed-off-by: Tim Serong <tserong@suse.com>
2015-04-30 17:51:20 +10:00
Haomai Wang
ae6247af80 AsyncConnection: Fix connection doesn't exchange in_seq problem
1. osd.a connect to osd.b and osd.b try to connect a
2. osd.b got WAIT then osd.b accpet connection from osd.a
2. osd.b inject error cause each side connection try to reconnect, connect_seq++
3. osd.a try to reconnect
4. osd.b connect to osd.a and cause the new accept connection try to replace
5. osd.b's is_reset_from_peer=true
6. inject error to osd.b
7. osd.b connect to osd.a
8. successfully and is_reset_from_peer still is true
9. long time passed
10. error happen and osd.a connect to osd.b
11. because is_reset_from_peer is true, they don't exchange in_seq

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
2015-04-30 11:44:16 +08:00
Kefu Chai
c8ac388bd8 Merge pull request #4509 from wonzhq/miss-arg
librbd: missing an argument when calling invoke_async_request

Reviewed-by: Kefu Chai <kchai@redhat.com>
2015-04-30 11:33:46 +08:00
Haomai Wang
4cd07f26fb AsyncConnection: Ornament log output
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
2015-04-30 11:24:48 +08:00
Zhiqiang Wang
3f39894569 librbd: missing an argument when calling invoke_async_request
This prevents the master branch from compiling.

Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
2015-04-30 10:47:06 +08:00
Tim Serong
70292658d5 packaging: move SuSEfirewall2 templates out of src
Better to have static config like this that needs to be installed in
/etc in a separate subdirectory of the project.

Signed-off-by: Tim Serong <tserong@suse.com>
2015-04-30 12:04:14 +10:00
Josh Durgin
94a7d11e4a Merge pull request #4186 from ceph/wip-7787
librbd: add fast diff feature

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-04-29 16:42:03 -07:00
David Zafman
affba9620b Merge pull request #4381 from ceph/wip-system-retcode
ceph-fuse: check return value on system() invocation

Reviewed-by: David Zafman <dzafman@redhat.com>
2015-04-29 16:15:39 -07:00
Gregory Farnum
adda0f39ea Merge pull request #4457 from ceph/wip-client-osd-caps
client: check OSD caps before read/write

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2015-04-29 16:12:20 -07:00
Greg Farnum
55414ae294 ceph-fuse: check return value on system() invocation
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
2015-04-29 15:45:42 -07:00
Yehuda Sadeh
fa0d59692d Merge pull request #4495 from rzarzynski/wip-11501
rgw: fix broken account listing of Swift API.

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-04-29 09:14:48 -07:00
Sage Weil
25c9f9a4b2 Merge pull request #4487 from ceph/wip-11464
Revert "osd: For object op, first check object whether unfound."

Reviewed-by: Samuel Just <sjust@redhat.com>
2015-04-29 08:03:26 -07:00
Radoslaw Zarzynski
4757bf900b rgw: fix broken account listing of Swift API.
Fixes: #11501
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2015-04-29 16:38:20 +02:00
Ilya Dryomov
3fb26bc08b use get_linux_version() instead ad-hoc uname().release parsing
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2015-04-29 13:45:52 +03:00
Kefu Chai
e24509b696 Merge pull request #4445 from tchaikov/wip-doxygen-comments-in-throttle
doc: doxygen comments in throttle

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-04-29 14:35:44 +08:00
Haomai Wang
9948e1ead9 Merge pull request #4488 from ceph/wip-async-fix-6
Event: Delete driver after cleanup
2015-04-29 11:36:47 +08:00
Tim Serong
77685f5b78 packaging: add SuSEfirewall2 service files
This adds SuSEfirewall2 service files for Ceph MON, OSD and MDS, for use
on SLES and openSUSE.  The MON template opens port 6789 and the OSD/MDS
template opens the range 6800-7300 as per
http://ceph.com/docs/master/rados/configuration/network-config-ref/

Signed-off-by: Tim Serong <tserong@suse.com>
2015-04-29 13:21:54 +10:00
Haomai Wang
ab511307bb Event: Delete driver after cleanup
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
2015-04-29 10:54:01 +08:00
Henry Chang
caa9f0e461 rgw: fix ListParts response
The response XML element name should be 'ListPartsResult'.

Fixes: #11494

Signed-off-by: Henry Chang <henry@bigtera.com>
2015-04-29 10:37:53 +08:00
Sage Weil
04b00029e1 qa/workunits/post-file: pick a dir that's readable by world
Signed-off-by: Sage Weil <sage@redhat.com>
2015-04-28 17:40:29 -07:00
Sage Weil
999dcc890b Revert "osd: For object op, first check object whether unfound."
This reverts commit b16b080332.

It is normal for objects to be unfound for brief periods of time
after peering--we do not want to EIO in that case.

Fixes: #11464
Signed-off-by: Sage Weil <sage@redhat.com>
2015-04-28 15:19:37 -07:00
Sage Weil
c18cc4e0bb Merge pull request #4483 from xinxinsh/wip-keyvalue-perfcounter
add perf counter for keyvalue db

Reviewed-by: Sage Weil <sage@redhat.com>
2015-04-28 12:48:03 -07:00
Jason Dillaman
8e20240e41 librbd: TaskFinisher should finish all queued tasks
The destructor wasn't waiting for all Finisher tasks
to complete before stopping the thread.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-04-28 11:00:40 -04:00
Jason Dillaman
ea5107c3fe librbd: librados completions are not properly released
Changes associated with rebuilding the object map can result
in the leaking of librados AioCompletions.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-04-28 11:00:40 -04:00
Jason Dillaman
ed5472a10e tests: fix valgrind errors with librbd unit test
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-04-28 11:00:40 -04:00
Jason Dillaman
6ab1bb5614 tests: librbd should release global data before exit
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-04-28 11:00:39 -04:00
Jason Dillaman
54c88255b7 librados_test_stub: cleanup singleton memory allocation
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-04-28 11:00:39 -04:00
Kefu Chai
04a0534ed8 Merge pull request #4480 from wonzhq/indent
osd/ReplicatedPG: fix an indent in find_object_context

Reviewed-by: Kefu Chai <kchai@redhat.com>
2015-04-28 20:02:24 +08:00
John Spray
eb275f2b29 Merge pull request #4474 from ceph/wip-11482
mds: remove caps from revoking list when caps are voluntarily released

Reviewed-by: John Spray <john.spray@redhat.com>
2015-04-28 11:34:17 +02:00
Zhiqiang Wang
a84337b35b osd/ReplicatedPG: fix an indent in find_object_context
Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
2015-04-28 16:45:04 +08:00
Loic Dachary
f93df4394e doc: add giant v0.87.2 to the release timeline
Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-04-28 10:22:04 +02:00
Yan, Zheng
86788c4ea4 mds: remove caps from revoking list when caps are voluntarily released
Fixes: #11482
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2015-04-28 15:50:44 +08:00
xinxin shu
6e50f645c4 add perf counter for rocksdb to evaluate latency of get and transaction commit
Signed-off-by: xinxin shu <xinxin.shu@intel.com>
2015-04-28 14:44:11 +08:00
xinxin shu
d2fb5bd740 add perf counter for leveldb to evaluate latency of get&commit
Signed-off-by: xinxin shu <xinxin.shu@intel.com>
2015-04-28 09:25:35 +08:00
Josh Durgin
7fc37d8ec1 Merge pull request #4454 from ceph/wip-11447
rgw: use correct oid when creating gc chains

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-04-27 15:46:08 -07:00
Josh Durgin
2ffb030099 Merge pull request #4472 from ceph/wip-11478-next
librbd: update ref count when queueing AioCompletion

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-04-27 14:07:45 -07:00
Josh Durgin
93bc83197a Merge pull request #4471 from ceph/wip-11477
rbd: correct issues with cli integration tests

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-04-27 12:51:12 -07:00
Josh Durgin
cbf4bf4e15 Merge pull request #4470 from ceph/wip-11475
librbd: correct issues discovered by Python unit tests

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-04-27 12:45:18 -07:00
Josh Durgin
54b6ac338e Merge pull request #4469 from ceph/wip-11380-next
cls_rbd: get_features needs to support legacy negative tests

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-04-27 12:42:49 -07:00
Sage Weil
fd11e32993 doc/release-notes: v0.87.2
Signed-off-by: Sage Weil <sage@redhat.com>
2015-04-27 11:45:43 -07:00
Hervé Rousseau
24f477417f Swift: Set Content-Length when requesting/checking Keystone tokens
Running Keystone with WSGIChunkedRequest=On is not supported.

We have to make sure that we set the Content-Length header when getting
an admin token and checking revoked tokens, otherwise Keystone returns
a HTTP 411 error.

Same applies when checking revoked tickets.

Fixes: #11473
Backport: Hammer, Firefly
Signed-off-by: Hervé Rousseau <hroussea@cern.ch>
2015-04-27 18:18:26 +02:00
Yan, Zheng
3c4028ec21 client: check OSD caps before read/write
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2015-04-27 17:16:10 +08:00
Jason Dillaman
387a09eeea tests: AioCompletion incorrectly freed
The AioCompletion should be released instead of directly
deleted.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-04-27 03:43:10 -04:00
Jason Dillaman
fd7723a1e6 librbd: update ref count when queueing AioCompletion
If the client releases the AioCompletion while librbd is waiting
to acquire the exclusive lock, the memory associated with the
completion will be freed too early.

Fixes: #11478
Backport: hammer
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-04-27 03:42:24 -04:00
Jason Dillaman
0e499f306c tests: rbd cli integration test should explicitly select image format
RBD format 2 is now the default image format, so tests involving the old
format should explicitly request the old format.

Fixes: #11477
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-04-27 02:00:53 -04:00
Jason Dillaman
6d2490749f librbd: do not attempt to retrieve metadata for old format images
An unnecessary error message is being logged due to a failure to retrieve
metadata for old-format images -- which don't support metadata.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-04-27 02:00:21 -04:00