Commit Graph

41035 Commits

Author SHA1 Message Date
Yehuda Sadeh
6ee4f64973 rgw: fail if parts not specified on complete-multipart-upload
Fixes: #11435

A complete multipart upload should not succeed if parts were not
specified. Also, adjust return codes.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2015-04-20 14:47:16 -07:00
Jason Dillaman
890d6ee032 Merge pull request #4406 from ceph/wip-11433
librbd: always initialize perf counters

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2015-04-20 16:47:20 -04:00
Josh Durgin
66edf625b4 librbd: always initialize perf counters
If ImageCtx::init() fails, perf counters are still used when closing
the image. To prevent uninitialized use, it's easiest to always
initialize them before anything that can fail in ImageCtx::init().

This was moved in 6055df3985, but it's
not necessary to delay perf counter initialization for any extra
configuration.

Fixes: #11433
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
2015-04-20 11:34:31 -07:00
Gregory Farnum
c1de23ff45 Merge pull request #4302 from ceph/wip-11339
client: drop inode when rmdir request finishes

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2015-04-20 11:12:38 -07:00
Gregory Farnum
392e824736 Merge pull request #4282 from ceph/wip-3645
mds: rename snapshot support

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com
2015-04-20 11:10:21 -07:00
Josh Durgin
1e912b79f5 Merge pull request #4405 from ceph/wip-11380
cls_rbd: get_features needs to support legacy negative tests

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-04-20 10:23:54 -07:00
Josh Durgin
7147708483 Merge pull request #4402 from ceph/wip-rbd-unmap-by-spec
rbd unmap <image-name>

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-04-20 10:19:27 -07:00
Jason Dillaman
66493b7e83 cls_rbd: get_features needs to support legacy negative tests
During Ceph upgrade testing, older Ceph test suites assume that
get_features will return -ENOENT if provided a missing snapshot.
Support these negative tests until the older releases are no
longer supported.

Fixes: #11380
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-04-20 12:40:33 -04:00
Yehuda Sadeh
7efea25c6c Merge pull request #3991 from rzarzynski/wip-11087
rgw: multiple fixes for copying Swift objects

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-04-20 09:38:20 -07:00
Yehuda Sadeh
eb787a403b Merge pull request #3863 from rzarzynski/wip-10971
rgw: multiple fixes for Content-Length header generation in Swift API

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-04-20 09:21:24 -07:00
Radoslaw Zarzynski
7dd54fa362 rgw: make rgw_read_user_buckets() backward compatible.
Fixes: #10683
Backport: hammer
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2015-04-20 15:04:57 +02:00
Radoslaw Zarzynski
f7b92f9988 rgw: rectify support for GET on Swift's account with limit == 0.
Fixes: #10683
Backport: hammer
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2015-04-20 15:04:53 +02:00
Loic Dachary
b142c92344 Merge pull request #4400 from ceph/update-organization-1
Update Haomai's organization

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-04-20 10:13:03 +02:00
Kefu Chai
9403df27f6 Merge pull request #3847 from trociny/wip-test_with_crushtool.master
mon: ceph osd setcrushmap: test_with_crushtool improvements

Reviewed-by: Kefu Chai <kchai@redhat.com>
2015-04-20 16:04:25 +08:00
Gregory Farnum
a84ae7b14e Merge pull request #4343 from ceph/wip-11356
client: fix uninline data funtion

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2015-04-19 17:53:52 -07:00
Gregory Farnum
0f2de92db3 Merge pull request #4223 from ceph/wip-11254
mds: make sure lock state not stay in XLOCK/XLOCKDONE indefinitely

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2015-04-19 17:53:00 -07:00
Gregory Farnum
0b94bf547d Merge pull request #4218 from ceph/wip-11048
mds: persist completed_requests reliably

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2015-04-19 17:52:09 -07:00
Gregory Farnum
b25e9e130b Merge pull request #4204 from ceph/wip-10368-mk3
mds: separate MDLog::safe_pos from journaler

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2015-04-19 17:51:12 -07:00
Mykola Golub
cc5f144a51 mon: osd df: fix average_util calculation
average_util should be calculated from the same set of nodes that
dump_item considers when calculating the stddev.

While here, remove unnecessary check for kb > 0:
get_bucket_utilization returns false if kb <= 0.

Also, update get_bucket_utilization accordingly to the preferred
convention to use pointers and not references for output arguments.

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2015-04-19 20:18:24 +03:00
Haomai Wang
0374f32b1f Update Haomai's organization
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
2015-04-20 00:48:42 +08:00
Ilya Dryomov
e4ebe10894 test/cli-integration/rbd: add unmap test
Add a test to exercise rbd unmap.  This was inspired by and is mostly
for rbd unmap <image-name> (aka spec), but rbd unmap <device> is tested
as well.  Any significant change to krbd.cc or corresponding rbd cli
should be tested in the following three configurations at least:

- kernel < 3.14
- kernel >= 3.14, rbd.single_major=N
- kernel >= 3.14, rbd.single_major=Y

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2015-04-19 14:45:37 +03:00
Ilya Dryomov
b1d3f918fb rbd: allow unmapping by spec
Make use of krbd_unmap_by_spec() and allow unmapping by <image-name>
(i.e. pool/image@snap spec) with a bunch of careful adjustments to the
fragile command args/options parsing process to make --pool, --image
and --snap options work as expected for rbd unmap <image-name> case.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2015-04-19 14:45:37 +03:00
Ilya Dryomov
087ed06340 krbd: add krbd_unmap_by_spec()
Make unmapping by (pool, image, snap) spec possible.  For specs mapped
multiple times unmap one device per krbd_unmap_by_spec() call.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2015-04-19 14:41:53 +03:00
Ilya Dryomov
a1363c41f2 krbd: rename should_match_minor() to have_minor_attr()
Rename and clarify why simply checking kernel version doesn't work.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2015-04-19 14:41:53 +03:00
Yan, Zheng
7df2cf243b client: drop inode when rmdir request finishes
Current client code relies on cap message to trim unlinked inode
from cache. This method is too sensitive to message ordering. If
client receives the cap message while directory inode still contains
dentries that are referenced by unsafe requests, the inode can't
get trimmed.

The fix is, when rmdir/rename request finishes, try trimming the
unlinked inode again.

Fixes: #11339
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2015-04-19 11:01:08 +08:00
Josh Durgin
69e3ec8a6b Merge pull request #4380 from ceph/wip-nodebug-build
tests: separate check_PROGRAMS from TESTS

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-04-17 21:52:21 -07:00
Jason Dillaman
933332be6f tests: separate check_PROGRAMS from TESTS
Not all programs that should be built during 'make check' should
be executed as tests.  A new variable, check_TESTPROGRAMS, was
introduced to specify which programs should be executed as a test
during a 'make check'.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-04-17 20:08:59 -04:00
Sage Weil
4a1de06128 Merge pull request #4311 from yuyuyu101/wip-async-fix-4
Wip async fix 4

Reviewed-by: Sage Weil <sage@redhat.com>
2015-04-17 10:58:53 -07:00
Sage Weil
e948a3c659 Merge pull request #4358 from gerhardqux/gerhardqux-nokey-exit-1
ceph-authtool: exit(1) when printing a non-existing key

Reviewed-by: Sage Weil <sage@redhat.com>
2015-04-16 10:14:23 -07:00
Samuel Just
27aac3d070 Merge pull request #4012 from majianpeng/cache-tier-fadvise
Cache tier fadvise

Reviewed-by: Sage Weil <sage@redhat.com>
2015-04-16 09:58:55 -07:00
Samuel Just
1ee0a7101b Merge pull request #3606 from wonzhq/hitset-insert
osd: avoid inserting an op into hit set multiple times

Reviewed-by: Sage Weil <sage@redhat.com>
2015-04-16 09:58:17 -07:00
Loic Dachary
643a4e93dd Merge pull request #4378 from dachary/wip-11359-tier-tests-disable
tests: comment out unstable tiering tests
2015-04-16 18:50:23 +02:00
Loic Dachary
0a442eeb14 tests: comment out unstable tiering tests
So that make check does not randomly fails.

http://tracker.ceph.com/issues/11359 Refs: #11359

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-04-16 18:02:23 +02:00
Alfredo Deza
d70bca0875 Merge pull request #4377 from liewegas/wip-git.ceph.com
use git.ceph.com

Reviewed-by: Alfredo Deza <adeza@redhat.com>
2015-04-16 11:33:55 -04:00
Sage Weil
34c467ba06 use git://git.ceph.com
Signed-off-by: Sage Weil <sage@redhat.com>
2015-04-16 08:29:41 -07:00
Gerhard Muntingh
16a3fbd56b ceph-authtool: exit(1) when printing a non-existing key
When printing a non-existing key, ceph-authtool exits with a success
value:

[root@ip-172-31-3-178 ~]# ceph-authtool /etc/ceph/ceph.mon.keyring -p -n
client.doesntexist ; echo $?
entity client.doesntexist not found
0

Expected result: 1

Signed-off-by: Gerhard Muntingh <gerhard@qux.nl>
2015-04-16 16:42:13 +02:00
Loic Dachary
e6e4142e99 Merge pull request #4373 from dachary/wip-releases
releases: table of estimated end of life

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
2015-04-16 11:03:36 +02:00
Loic Dachary
dc4388029d releases: table of estimated end of life
Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-04-16 10:59:06 +02:00
Kefu Chai
409cd51692 Merge pull request #4339 from ceph/wip-da-SCA-20150317
Various SCA and Coverity fixes

Reviewed-by: Kefu Chai <kchai@redhat.com>
2015-04-16 14:46:26 +08:00
Loic Dachary
414b613255 Merge pull request #4367 from ceph/wip-ceph-disk-default-cluster
ceph-disk: set '--cluster=ceph' in 'prepare' subcommand

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-04-16 08:41:27 +02:00
Xiaoxi Chen
932d59d084 os/LevelDBStore:fix bug when compact_on_mount
Initialize the performance counter(l_rocksdb_compact)
before use it in compact().

Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
2015-04-16 13:43:23 +08:00
Xiaoxi Chen
36db6d2dc4 os/RocksDBStore: fix bug when compact_on_mount
Initialize the performance counter(l_rocksdb_compact)
before use it in compact().

Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
2015-04-16 13:39:57 +08:00
Yehuda Sadeh
518931be58 Merge pull request #4366 from BCLibCoop/bclibcoop/rgw-hostnames
rgw: Document & improve region hostnames

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-04-15 09:20:24 -07:00
Danny Al-Gaaf
3b60f5f69d TestPGLog.cc: fix -Wsign-compare
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2015-04-15 12:34:51 +02:00
Danny Al-Gaaf
b1dd699adb TestErasureCodeShec.cc: fix -Wsign-compare
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2015-04-15 12:34:50 +02:00
Danny Al-Gaaf
c77ee1339d test_async_driver.cc: fix UNINIT
Fix for:

CID 1254380 (#1 of 1): Uninitialized scalar variable (UNINIT)
 uninit_use_in_call: Using uninitialized value sa. Field
 sa.sin_zero is uninitialized when calling connect

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2015-04-15 12:34:50 +02:00
Danny Al-Gaaf
655c12ac50 psim.cc: change initialzation of VLAs
Use memset to fill integer VLAs.

Fix for:

CID 1219649 (#1 of 1): Uninitialized scalar variable (UNINIT)
 uninit_use: Using uninitialized value primary_count[primary]

CID 1219648 (#1 of 1): Uninitialized scalar variable (UNINIT)
 uninit_use: Using uninitialized value first_count[osds[0UL]]

CID 1219647 (#1 of 1): Uninitialized scalar variable (UNINIT)
 uninit_use: Using uninitialized value count[osds[i]]

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2015-04-15 12:34:50 +02:00
Danny Al-Gaaf
c3b2e872d3 systest_runnable.h: mark copy ctor as explicit
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2015-04-15 12:34:50 +02:00
Danny Al-Gaaf
d508510d70 common/Thread.h: mark copy/move ctor as explicit
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2015-04-15 12:34:50 +02:00
Danny Al-Gaaf
dfe9f1d06b cls_rbd.cc: reduce scope of local variable
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2015-04-15 12:34:50 +02:00