Commit Graph

69268 Commits

Author SHA1 Message Date
Kefu Chai
a3b8e0aa0a ceph-dencoder: s/WITH_LIBAIO/HAVE_LIBAIO/
* s/WITH_LIBAIO/HAVE_LIBAIO/: as HAVE_LIBAIO is used to detect if libaio
  is installed and is exposed in the acconfig.h.
* do not test bluestore_blob_t with ceph-dencoder, as it repurposes the
  "feature" parameter for struct_v.

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-02-23 14:54:16 +08:00
Jie Wang
2badfbac98 BitMapAllocator: rm unused variable
Signed-off-by: Jie Wang <jie.wang@kylin-cloud.com>
2017-02-23 06:09:12 +00:00
Kefu Chai
a7c1d3b9d8 os/bluestore: fix bluestore_blob_t::generate_test_instances()
add extends before marking unused ranges, otherwise add_unused()
asserts if (offset + len < blob_len)
this method is supposed to be used by ceph-dencoder, but
bluestore_blob_t's codec is quite different. we are not testing its
encoding in ceph-dencoder at this moment.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-02-23 12:17:46 +08:00
Venky Shankar
22d28d6e9e test: add STRIPINGV2 feature to RBD test cases
Signed-off-by: Venky Shankar <vshankar@redhat.com>
2017-02-23 09:27:49 +05:30
Venky Shankar
c0f5805806 test / librbd: support STRIPINGV2 unit tests
Signed-off-by: Venky Shankar <vshankar@redhat.com>
2017-02-23 09:27:49 +05:30
Venky Shankar
7dba5311b1 librbd: acquire exclusive-lock during copy on read
Fixes: http://tracker.ceph.com/issues/18888
Signed-off-by: Venky Shankar <vshankar@redhat.com>
2017-02-23 09:27:48 +05:30
Dongsheng Yang
1077dbcd52 unittest: add unittest for RemoveRequest
Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
2017-02-23 11:11:00 +08:00
Dongsheng Yang
0e3c02f535 unittest: fixup the mock method of open
Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
2017-02-23 11:11:00 +08:00
Dongsheng Yang
b4fc1a871b unittest: add mock method of try_acquire_lock
Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
2017-02-23 11:11:00 +08:00
Dongsheng Yang
c8d5a29783 librbd: cleanup: remove the unused function ObjectMap::remove()
Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
2017-02-23 11:11:00 +08:00
Dongsheng Yang
82f8d822da rbd: add a aio_remove() in objectMap
Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
2017-02-23 11:11:00 +08:00
Dongsheng Yang
1ee1415c67 librbd: use create/destroy methods in RemoveRequest
Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
2017-02-23 11:11:00 +08:00
Dongsheng Yang
3c6acdb78a unittest: add a unittest for removing non-exist image.
Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
2017-02-23 11:10:59 +08:00
Dongsheng Yang
064b23df85 qa: rbd: rename the copy.sh to generic.sh
The copy.sh is not only testing the rbd copy, but also
others such as rbd ls, rbd remove. Then rename it to generic.sh

Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
2017-02-23 11:10:59 +08:00
Dongsheng Yang
4447340e8d qa: add a test for rbd rm NOT_EXIST
Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
2017-02-23 11:10:59 +08:00
Venky Shankar
dccb3c0045 librbd: use async image removal state machine
Signed-off-by: Venky Shankar <vshankar@redhat.com>
2017-02-23 11:10:59 +08:00
Dongsheng Yang
10a012f1de librbd: asynchronous image removal state machine
Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
Signed-off-by: Venky Shankar <vshankar@redhat.com>
2017-02-23 11:10:54 +08:00
Loic Dachary
c733d48580 Merge pull request #13589 from dachary/wip-crush-doc
doc: crush: API documentation fixes

Reviewed-by: Sage Weil <sage@redhat.com>
2017-02-23 00:36:36 +01:00
Sage Weil
e00ef43ad0 mon/OSDMonitor: make mapping job behave if mon_osd_prime_pg_temp = false
Make this robust to changes online too, so that we clean up a mapping
job that was started, but only use it or start a new one if the
option is true.

Fixes: http://tracker.ceph.com/issues/19020
Signed-off-by: Sage Weil <sage@redhat.com>
2017-02-22 18:05:43 -05:00
Matt Benjamin
98b28d675d Merge pull request #13590 from linuxbox2/wip-badbuck
rgw_file: avoid stranding invalid-name bucket handles in fhcache
2017-02-22 16:35:19 -05:00
Patrick Donnelly
16e22a7e00
mds: automate MDS object count tracking
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2017-02-22 16:08:48 -05:00
Casey Bodley
abb6eec3a6 Merge pull request #13324 from dongbula/make-sync-thread-name-clear
rgw: make sync thread name clear

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2017-02-22 13:52:23 -05:00
Jason Dillaman
e0143b4952 Merge pull request #13361 from ddiss/rbdmap_unmap_from_file
rbdmap: consider /etc/ceph/rbdmap when unmapping images

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-02-22 12:53:55 -05:00
Casey Bodley
99060b2e56 Merge pull request #13387 from Jing-Scott/clean-up-rgw-list-redundant-code
rgw: clean up the redundant assignment in last_entry_in_listing

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2017-02-22 11:47:33 -05:00
Casey Bodley
e7d7b8d035 Merge pull request #13460 from theanalyst/fix/rgw-rest-user-fixme
wip: rgw: rest_admin/user avoid double checking input args

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2017-02-22 11:45:42 -05:00
Casey Bodley
e5e981c796 Merge pull request #13461 from theanalyst/doc/rgw-system-user
doc: rgw: make a note abt system users vs normal users

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2017-02-22 11:44:39 -05:00
Casey Bodley
ac79e29be4 Merge pull request #13576 from jronak/doc
rgw:Fixes typo in rgw_admin.cc

Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
2017-02-22 11:24:22 -05:00
Casey Bodley
a78c0f3eff Merge pull request #13578 from Liuchang0812/wip-fix-typo-in-rgw
rgw: fix typo in comment

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2017-02-22 11:22:16 -05:00
Matt Benjamin
6cde812c92 rgw_file: avoid stranding invalid-name bucket handles in fhcache
To avoid a string copy in the common mkdir path, handles for
proposed buckets currently are staged in the handle table, before
being rejected.  They need to be destaged, not just marked deleted
(because deleted objects are now assumed not to be linked, as of
beaeff0593).

This triggered an unhandled Boost assert when deleting staged
handles, as current safe_link mode requires first removing from
the FHCache.

Fixes: http://tracker.ceph.com/issues/19036

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2017-02-22 10:43:48 -05:00
Joao Eduardo Luis
545bc83568 mon: drop weird/failed mon features debug cli
Signed-off-by: Joao Eduardo Luis <joao@suse.de>
2017-02-22 14:25:50 +00:00
John Spray
64eae76fbe Merge pull request #12897 from renhwztetecs/renhw-wip-client-cleanup
client: priority to verify the correctness of the "flag" 

Reviewed-by: John Spray <john.spray@redhat.com>
2017-02-22 10:08:14 +00:00
John Spray
de5249436c Merge pull request #13359 from jcsp/wip-logrotate-sshexception
qa: handle SSHException in logrotate

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-02-22 10:05:07 +00:00
John Spray
c068fa879f Merge pull request #13429 from ukernel/wip-18941
test/libcephfs: avoid buffer overflow when testing ceph_getdents()

Reviewed-by: John Spray <john.spray@redhat.com>
2017-02-22 10:04:22 +00:00
John Spray
758b6c3f04 mon: move fs reset into command handler
Signed-off-by: John Spray <john.spray@redhat.com>
2017-02-22 09:51:48 +00:00
John Spray
5fd66839bb mon: fix stale iterator during fs rm
We were failing out any standbys in the map for
the removed filesystem, while looping over the
mds_info -- this could have crashed.

Signed-off-by: John Spray <john.spray@redhat.com>
2017-02-22 09:51:48 +00:00
John Spray
d0884ab5e7 mon: split "fs rm" into command handler
Signed-off-by: John Spray <john.spray@redhat.com.
2017-02-22 09:51:48 +00:00
John Spray
2d1671cca7 mon: move "fs set-default" into handler class
Signed-off-by: John Spray <john.spray@redhat.com>
2017-02-22 09:51:47 +00:00
John Spray
c075fbe391 mon: move MDSMonitor command handlers into own file
Signed-off-by: John Spray <john.spray@redhat.com>
2017-02-22 09:51:47 +00:00
John Spray
e68dd1f141 mon/MDSMonitor: remove duplicated check_pool
...by refactoring fs new into a FilesystemCommandHandler.  This
is some cruft left from the MDSMap->FSMap change.

Signed-off-by: John Spray <john.spray@redhat.com>
2017-02-22 09:51:47 +00:00
John Spray
fa55ed5ab2 Merge pull request #13455 from ukernel/wip-18953
mds: ignore fs full check for CEPH_MDS_OP_SETFILELOCK

Reviewed-by: John Spray <john.spray@redhat.com>
2017-02-22 09:50:56 +00:00
John Spray
4fb5286af0 Merge pull request #13465 from jcsp/wip-mds-voidfn
mds: replace C_VoidFn in MDSDaemon with lambdas

Reviewed-by: Sage Weil <sage@redhat.com>
2017-02-22 09:49:17 +00:00
John Spray
0d817a2ae0 Merge pull request #13471 from batrick/fs-new-eexist
mon: detect existing fs and duplicate name earlier

Reviewed-by: John Spray <john.spray@redhat.com>
2017-02-22 09:48:36 +00:00
Abhishek L
7ae1981855 Merge pull request #13572 from theanalyst/doc/changelog/v0.94.10
doc: add changelog for v0.94.10

Reviewed-by: Sage Weil <sweil@redhat.com>
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
2017-02-22 10:27:54 +01:00
Abhishek L
aa59cbd427 Merge pull request #13152 from smithfarm/wip-hammer-release-notes
doc: hammer 0.94.10 release notes

Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
2017-02-22 10:25:24 +01:00
Loic Dachary
51f4e3bd93 Merge pull request #13573 from dachary/wip-17821-revert
ceph-disk: dmcrypt activate must use the same cluster as prepare

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-02-22 09:15:22 +01:00
Ronak Jain
58837ef6ce rgw: Fixes typo in rgw_admin.cc
Issue: http://tracker.ceph.com/issues/19026
Signed-off-by: Ronak Jain <ronakjain@outlook.in>
2017-02-22 13:29:32 +05:30
liuchang0812
f0061f4b0b rgw: fix typo in comment
Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
2017-02-22 15:20:59 +08:00
Loic Dachary
7f66672b67 ceph-disk: dmcrypt activate must use the same cluster as prepare
When dmcrypt is used, the fsid cannot be retrieved from the data
partition because it is encrypted. Store the fsid in the lockbox to
enable dmcrypt activation using the same logic as regular activation.

The fsid is used to retrive the cluster name that was used during
prepare, reason why activation does not and must not have a --cluster
argument.

Fixes: http://tracker.ceph.com/issues/17821

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2017-02-22 01:49:12 +01:00
Jason Dillaman
b4f36d5dc3 rbd-mirror: retry object copy after -ENOENT error
Fixes: http://tracker.ceph.com/issues/18990
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-02-21 18:42:54 -05:00
Jason Dillaman
9a91efc304 rbd-mirror: object copy should always reference valid snapshots
If a remote snapshot is deleted while an image sync is in-progress,
associate the read request against the most recent, valid remote
snapshot for a given snapshot object clone.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-02-21 18:42:54 -05:00