Commit Graph

53211 Commits

Author SHA1 Message Date
Yehuda Sadeh
d53ffbfe65 rgw: code cleanup
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-05-09 14:23:03 -07:00
Yehuda Sadeh
8ab94f39e3 Merge pull request #8772 from yehudasa/wip-15625
rgw: sync fixes

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2016-05-09 14:13:11 -07:00
Casey Bodley
9d996c567d test/rgw: enable mtime comparison in check_object_eq()
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2016-05-09 17:06:12 -04:00
Yehuda Sadeh
4a156662f8 Merge pull request #8880 from cbodley/wip-rgw-zonegroup-remove
radosgw-admin: add missing 'zonegroup remove'

Reviewed-by: Yehuda Sadeh <yehudasa@gmail.com>
2016-05-09 14:05:53 -07:00
Casey Bodley
5ba1b7b642 cmake: add missing FreelistManager sources
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2016-05-09 17:01:15 -04:00
Robin H. Johnson
7cbb63bb74 rgw/s3website: Fix x-amz-website-redirect-location support.
Support for the x-amz-website-redirect-location header was broken in the
feature merging of Jewel, as it previously depended on the error handler to
redirect, which was overkill. Simplify it to work.

Backport: jewel
Fixes: http://tracker.ceph.com/issues/15531
Signed-off-by: Robin H. Johnson <robin.johnson@dreamhost.com>
2016-05-09 12:18:09 -07:00
Casey Bodley
c431924742 Merge pull request #8166 from kmroz/wip-rgw-rest-conn-use-vector
rgw: rest and http client code to use param vectors

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2016-05-09 14:11:05 -04:00
Yuri Weinstein
0f003ffbe7 common/ShardedOpWQ: make timeout when calling WaitInterval configurabletest run http://pulpito.ceph.com/yuriw-2016-05-07_09:11:04-rados-wip-yuri-testing---basic-smithi/
common/ShardedOpWQ: make timeout when calling WaitInterval configurable

test run http://pulpito.ceph.com/yuriw-2016-05-07_09:11:04-rados-wip-yuri-testing---basic-smithi/
2016-05-09 09:10:01 -07:00
Yuri Weinstein
e4fa44cd48 Merge pull request #8810 from xiexingguo/xxg-wip-fixgotfullmap
osd: fix problematic got_full_map() logic

test run http://pulpito.ceph.com/yuriw-2016-05-07_09:11:04-rados-wip-yuri-testing---basic-smithi/
2016-05-09 09:09:26 -07:00
Yuri Weinstein
22dc9696b6 Merge pull request #8857 from liewegas/wip-15678
osd: handle boot racing with NOUP set

test run http://pulpito.ceph.com/yuriw-2016-05-07_09:11:04-rados-wip-yuri-testing---basic-smithi/
2016-05-09 09:09:13 -07:00
Yuri Weinstein
347a04b9cd Merge pull request #8881 from liewegas/wip-14952
osd: fix pg stuck messages while PGs are being created

test run http://pulpito.ceph.com/yuriw-2016-05-07_09:11:04-rados-wip-yuri-testing---basic-smithi/
2016-05-09 09:08:39 -07:00
Yuri Weinstein
5670e2749e Merge pull request #8798 from majianpeng/buffer
common/buffer: clean up alignment checks

test run http://pulpito.ceph.com/yuriw-2016-05-08_08:12:51-rados-wip-yuri-testing2---basic-smithi/
2016-05-09 09:07:19 -07:00
Yuri Weinstein
b6525a064f Merge pull request #8953 from xiexingguo/xxg-wip-prettydump
mon/PGMap: pretty output for "pg dump osds" command
2016-05-09 09:06:31 -07:00
Sage Weil
16a0c4f147 Merge pull request #8986 from stiopaa1/osd_prepublishmap_move
osd/OSD.h: move shared_ptr instead of copying it

Reviewed-by: Adam Emerson <aemerson@redhat.com
Reviewed-by: Sage Weil <sage@redhat.com>
2016-05-09 11:53:05 -04:00
Venky Shankar
685fa656e0 rbd: helpful error message on map failure
Failure to map an rbd image provides pretty much nothing to
debug (or rectify) the nature of failure. This change tries
to improve the same by providing helpful error messages (by
pointing to dmesg, etc..).

Fixes: http://tracker.ceph.com/issues/15721
Signed-off-by: Venky Shankar <vshankar@redhat.com>
2016-05-09 21:08:10 +05:30
Casey Bodley
25eced4c65 Merge pull request #8981 from ceph/wip-rgw-test-fix
test/rgw: fix bucket checkpoint

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2016-05-09 11:25:32 -04:00
Jason Dillaman
f3372a1bcf journal: incorrectly computed object offset within set
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-05-09 11:22:48 -04:00
Kefu Chai
f7331fdc3f Merge pull request #8786 from tchaikov/wip-btrfs-sudo
test: sudo to rm btrfs subvol

Reviewed-by: Erwan Velu <erwan@redhat.com>
2016-05-09 22:38:07 +08:00
Orit Wasserman
367bd0aec9 Merge pull request #8994 from theanalyst/fix/15776
rgw: log name instead of id for SystemMetaObj on failure
2016-05-09 16:36:43 +02:00
Sage Weil
c27c684b16 Merge pull request #8919 from stiopaa1/log_moveToPrivateOsdService
osd/OSD.h: change some data members to private

Reviewed-by: Sage Weil <sage@redhat.com>
2016-05-09 09:51:19 -04:00
Sage Weil
162b4fb7d0 Merge pull request #8989 from flyd1005/wip-fix-python-warnings
cleanup: python: remove warnings of 'trailing whitespace' and 'new blank line at EOF'
2016-05-09 09:50:46 -04:00
Sage Weil
bd4a3b1b3e Merge pull request #8992 from runsisi/wip-fix-dup-keygen
cls_journal: remove duplicated key generation

Reviewed-by: Sage Weil <sage@redhat.com>
2016-05-09 09:49:54 -04:00
Sage Weil
453852642a Merge pull request #8991 from emenguy/doc_test-reweight-by-utilization
doc: adding test-reweight-by-utilization documentation
2016-05-09 09:48:52 -04:00
Sage Weil
1712dd5fd8 Merge pull request #8984 from stiopaa1/osd_removeUnorderedSet
osd/OSD.h: remove unneeded include file

Reviewed-by: Sage Weil <sage@redhat.com>
2016-05-09 09:38:12 -04:00
Sage Weil
09f572064c Merge pull request #8097 from aclamk/crushtool-pool-id
crushtool: add ability of precise testing of placement group calculation.

Reviewed-by: Sage Weil <sage@redhat.com>
2016-05-09 09:15:24 -04:00
Sage Weil
810a8ca2a3 Merge pull request #8832 from stiopaa1/log_graylogmove
common/Graylog.cc: use std move to avoid copy

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-05-09 09:14:55 -04:00
Sage Weil
c88a931212 Merge pull request #8920 from XinzeChi/wip-race-shutdown
osd: fix deadlock in OSD::_committed_osd_maps

Reviewed-by: Sage Weil <sage@redhat.com>
2016-05-09 09:14:10 -04:00
Sage Weil
4d10cb86bd Merge pull request #8922 from runsisi/wip-fix-lockdep-assert
lockdep: fix assertion expression if ran out of lock ids

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-05-09 09:13:26 -04:00
Sage Weil
c68357f0cf Merge pull request #8967 from liewegas/wip-15760
osdc/Objecter: upper bound watch_check result

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-05-09 09:12:49 -04:00
Sage Weil
a28b71e3c9 Merge pull request #8357 from liewegas/wip-osd-prestart
osd: update crush_location from ceph-osd on startup

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-05-09 08:59:05 -04:00
Sage Weil
0a6d0c61d7 Merge pull request #8194 from tanghaodong25/fix_4
os/bluestore/KernelDevice.cc: small fix in buffer flush

Reviewed-by: Haomai Wang <haomai@xsky.com>
2016-05-09 08:58:33 -04:00
Sage Weil
bfa5461265 Merge pull request #8349 from Aran85/prepare_entry_cleanup
os/filestore: prepare entry cleanup

Reviewed-by: Sage Weil <sage@redhat.com>
2016-05-09 08:57:51 -04:00
Sage Weil
d2cab3a898 osd: create osd id if it does not exist
Most tools create the osd id before trying to start ceph-osd.  Notably,
teuthology does not.  We could fix that, but we would be changing behavior,
as the osd boot will happily create the osd id on the fly for us.  Other
provisioning tools might rely on that behavior.  Instead, just allocate
the id sooner in the process (if necessary).

Signed-off-by: Sage Weil <sage@redhat.com>
2016-05-09 08:55:00 -04:00
Sage Weil
cf4ec5a8aa osd: change osd_crush_initial_weight = 0 to mean weight to 0
Negative now means auto-weight, 0 means weight to 0.  Change the
default accordingly.

Signed-off-by: Sage Weil <sage@redhat.com>
2016-05-09 08:55:00 -04:00
Sage Weil
573c349245 osd: update crush_location on startup from ceph-osd
Update the crush location from ceph-osd instead of relying on
kludgey bash in ceph-osd-prestart.sh.  Among other things, this
lets us get accurate statfs information from the ObjectStore
implementation instead of relying on 'df'.

Fixes: http://tracker.ceph.com/issues/15213
Signed-off-by: Sage Weil <sage@redhat.com>
2016-05-09 08:54:44 -04:00
Sage Weil
4587a379a3 osdc/Objecter: use cct's crush_location
Keep the observer so that we refresh our copy of the multimap.

Signed-off-by: Sage Weil <sage@redhat.com>
2016-05-09 08:54:44 -04:00
Sage Weil
db6e9bedf1 global: init crush_location on daemon start
Signed-off-by: Sage Weil <sage@redhat.com>
2016-05-09 08:54:44 -04:00
Sage Weil
3d71eda4b8 common/ceph_context: add CrushLocation to cct
Signed-off-by: Sage Weil <sage@redhat.com>
2016-05-09 08:54:44 -04:00
Sage Weil
6216461915 crush/CrushLocation: add class to manage crush_location
The crush_location can come from an explicitly set config,
a hook, or a simple fabricated default (root=default host=...).

Signed-off-by: Sage Weil <sage@redhat.com>
2016-05-09 08:54:44 -04:00
Sage Weil
7a17863c73 Merge pull request #8684 from vuhuong/wip-radosaio-copyout-data-xio
librados: copy out data to users' buffer for xio

Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
2016-05-09 08:52:56 -04:00
Sage Weil
01a40155a7 Merge pull request #8759 from xiexingguo/xxg-wip-fixobjecterrace
osdc/Objecter: fix race condition for sortbitwise flag detection

Reviewed-by: Sage Weil <sage@redhat.com>
2016-05-09 08:51:30 -04:00
Sage Weil
99295cab83 Merge pull request #8826 from liewegas/wip-bluestore-bitmap-freelist
os/bluestore: bitmap-based freelist using merge operator

Reviewed-by: Allen Samuels <allen.samuels@sandisk.com>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-05-09 08:50:23 -04:00
Abhishek Lekshmanan
a3fdd26b02 rgw: drop unnecessary spacing in rgw zg init log
Dropping unneeded space when we're printing the failed reading zg info
message

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2016-05-09 14:05:06 +02:00
Abhishek Lekshmanan
aee1d643be rgw: log name instead of id for SystemMetaObj on failure
Currently if we fail to read a SystemMetaObj we try to log the
MetaObject id, however this will not be set mostly as read_id has
failed, so we end up logging an empty id, changing this to log
the object name instead

Fixes: http://tracker.ceph.com/issues/15776
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2016-05-09 11:41:19 +02:00
Etienne Menguy
6bab8cf362
adding test-reweight-by-utilization documentation
Signed-off-by: Etienne Menguy <etienne.menguy@corp.ovh.com>
2016-05-09 10:49:47 +02:00
runsisi
715e99c83e cls_journal: remove duplicated key generation
Signed-off-by: runsisi <runsisi@zte.com.cn>
2016-05-09 15:15:31 +08:00
Li Peng
9c2d785382 cleanup: python: remove warnings of 'new blank line at EOF'
When applying ceph patches, some warnings reported, e.g.
qa/workunits/mon/caps.py:367: new blank line at EOF.

Signed-off-by: Li Peng <lip@dtdream.com>
2016-05-09 11:28:42 +08:00
Li Peng
969c6d464c cleanup: python: remove warnings of 'trailing whitespace'
When applying ceph patches, some warnings reported, e.g.
doc/scripts/gen_state_diagram.py:99: trailing whitespace.

Signed-off-by: Li Peng <lip@dtdream.com>
2016-05-09 11:25:08 +08:00
Jianpeng Ma
3c1cf727d9 os/filestore/FileJournal: optimize align_bl.
Using is_aligned_size_and_memory replace is_aligned &&
is_n_aligned_size.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
2016-05-08 07:17:30 +08:00
Jianpeng Ma
7ca73f4e6e common/buffer: For bufferlist add func is_aligned_size_and_memory.
For directIO requirement, we need check bufferpt whether size aligned
and the address aligned. To do this, we should call is_aligned &&
is_n_align_sized. Every func also list all ptr of bufferlist.
To reduce one list, we add is_aligned_size_and_memroy(align_size,
align_memory) which only need list once.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
2016-05-08 07:17:26 +08:00