Commit Graph

52583 Commits

Author SHA1 Message Date
Jason Dillaman
1ccdcb5b6c rbd: disk usage now includes all snapshots by default
Added a new "--from-snap" optional to restrict the calculation to
specific subsets of snapshots and the HEAD revision.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-04-28 15:58:05 -04:00
Jason Dillaman
7f903baec7 Merge pull request #8813 from trociny/fix-test-librbd-aio_write
test: librbd: aio write/discard completion should always return 0 on success

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2016-04-28 13:25:28 -05:00
Mykola Golub
da80029dd6 test: librbd: aio write/discard completion should always return 0 on success
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2016-04-28 20:33:19 +03:00
Jason Dillaman
27c8608fc1 Merge pull request #8795 from runsisi/wip-fix-librbd-ut
cmake: add library cls_journal for target unittest_librbd

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2016-04-28 08:40:39 -05:00
Jason Dillaman
678a020026 Merge pull request #8796 from runsisi/wip-fix-invalidate
librbd: fix potential assertion during object map invalidation

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2016-04-28 08:38:57 -05:00
Sage Weil
f00cc5a3c6 Merge pull request #8812 from liewegas/wip-dh-systemd
debian/control: dh_systemd_start is in the dh-systemd package

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-04-28 09:14:41 -04:00
Sage Weil
89154d1e01 debian/control: dh_systemd_start is in the dh-systemd package
Fixes: http://tracker.ceph.com/issues/15573
Signed-off-by: Sage Weil <sage@redhat.com>
2016-04-28 09:13:50 -04:00
Sage Weil
1eb435fcd6 Merge pull request #8700 from tchaikov/wip-systemd-deb
debian: package systemd targets

Reviewed-by: Javier M. Mellid <jmunhoz@igalia.com>
2016-04-27 23:15:52 -04:00
runsisi
7efb29416b cmake: add library cls_journal for target unittest_librbd
otherwise if we want to generate target unittest_librbd we need to
(re)generate cls_journal manually

Signed-off-by: runsisi <runsisi@zte.com.cn>
2016-04-28 10:22:07 +08:00
Kefu Chai
f950a0a7f5 debian: install systemd target files
* enable it using dh_systemd_enable
* start the target using dh_systemd_start
* move the dh_installinit, dh_systemd_enable, dh_systemd_start calls
  down, so they can identify the service files if they care about them.

Fixes: http://tracker.ceph.com/issues/15573
Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-04-28 10:02:08 +08:00
runsisi
dd0eb719a5 librbd: fix potential assertion for object map invalidation
if update_flags fails we should not go any further, or the async request
will be removed from m_image_ctx.async_requests twice

Signed-off-by: runsisi <runsisi@zte.com.cn>
2016-04-28 09:05:33 +08:00
Sage Weil
4cdf0aa7ed Merge pull request #8792 from cbodley/wip-defer-drop-privileges
common: fix value of CINIT_FLAG_DEFER_DROP_PRIVILEGES

Reviewed-by: Sage Weil <sage@redhat.com>
2016-04-27 17:13:03 -04:00
Casey Bodley
dfb897ad57 common: fix value of CINIT_FLAG_DEFER_DROP_PRIVILEGES
0x16 (binary 10110) was overlapping two other flags

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2016-04-27 16:56:29 -04:00
Boris Ranto
27b467bad5 Merge pull request #8714 from ceph/wip-14941
rpm: implement scriptlets for the post-split daemon packages

Reviewed-by: Tim Serong <tserong@suse.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
Reviewed-by: Boris Ranto <branto@redhat.com>
2016-04-27 20:13:38 +02:00
Boris Ranto
14652f3216 rpm: Add rpm scripts for ceph-rbd-mirror
We are currently missing the systemd scripts for the new ceph-rbd-mirror
daemons. This patch introduces them.

Signed-off-by: Boris Ranto <branto@redhat.com>
2016-04-27 18:14:51 +02:00
Boris Ranto
73f4579867 rpm: Start all the targets in %post
We need to have the sub-targets active for the ceph.target to be able
to propagate its calls to the services. If the sub-target is inactive,
the main target won't propagate the stop/restart calls.

Signed-off-by: Boris Ranto <branto@redhat.com>
2016-04-27 18:00:12 +02:00
Nathan Cutler
644aba9270 rpm: implement scriptlets for the post-split daemon packages
This patch gives each of the ceph-{mds,mon,osd,radosgw} packages its own
%post, %preun, and %postun scriptlets dealing with the package's unit files.

The scriptlets of ceph-base are adapted to handle the ceph.target unit file
only.

The scriptlets of ceph-mon handle ceph-create-keys services in addition to ceph-mon.

The scriptlets of ceph-osd handle ceph-disk services in addition to ceph-osd.

Fixes: http://tracker.ceph.com/issues/14941
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Signed-off-by: Boris Ranto <branto@redhat.com>
2016-04-27 14:24:51 +02:00
Nathan Cutler
53b1a6799c systemd: enable all the ceph .target services by default
Some distros, like Fedora and openSUSE, have a policy that all services are
disabled by default.

This patch changes that default for the ceph.target and
ceph-{mds,mon,osd,radosgw}.target services.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
Signed-off-by: Boris Ranto <branto@redhat.com>
2016-04-27 14:20:29 +02:00
Tamil Muthamizhan
cafe8825ec Signed-off-by: Tamil Muthamizhan <tmuthami@redhat.com>
removed ceph-deploy folder, as its been already replaced with ceph-tests.
2016-04-26 16:13:28 -07:00
Casey Bodley
910d2d0012 Merge pull request #8746 from yehudasa/wip-15598
Fixes: http://tracker.ceph.com/issues/15598

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
2016-04-26 11:49:42 -04:00
Yehuda Sadeh
bc0dda02f9 Merge pull request #8762 from ceph/wip-15595
rgw: fix bad free in RGWCreateBucket_ObjStore_S3

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2016-04-26 08:37:42 -07:00
Casey Bodley
7251dbeed4 rgw: fix bad free in RGWCreateBucket_ObjStore_S3
get_params() will accept -ERR_LENGTH_REQUIRED from
rgw_rest_read_all_input(), in which case 'data' will not be allocated
and we attempt to free() an uninitialized pointer

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

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2016-04-26 10:58:24 -04:00
Haomai Wang
bd77cd4139 msg/async: add numevents statistics for external_eventsReviewed-by: Haomai Wang <haomai@xsky.com>
msg/async: add numevents statistics for external_events

Reviewed-by: Haomai Wang <haomai@xsky.com>
2016-04-26 22:14:31 +08:00
Haomai Wang
25c2f5a793 Merge pull request #8683 from Ved-vampir/zlib_fix
compressor: fix of error code control in zlib decompress

Reviewed-by: Haomai Wang <haomai@xsky.com>
2016-04-26 11:43:51 +08:00
Sage Weil
68a3173420 Merge pull request #8489 from SUSE/wip-15419
systemd: make Ceph daemons dependent upon time-sync.target

Reviewed-by: Tim Serong <tserong@suse.com>
Reviewed-by: James Page <james.page@ubuntu.com>
Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
2016-04-25 22:33:20 -04:00
Sage Weil
ec2044818e Merge pull request #8721 from ibravo/patch-2
doc: update quick-ceph-deploy.rst

Reviewed-by: Sage Weil <sage@redhat.com>
2016-04-25 22:21:12 -04:00
Sage Weil
e265140632 Merge pull request #8713 from HeyoQiang/master
osd/PG: remove unused variable have

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-04-25 22:20:21 -04:00
YongQiang
48d7519c88 PG:clear an unused variable: have
Signed-off-by: Yongqiang He <he.yongqiang@h3c.com>
2016-04-26 06:10:43 -04:00
Sage Weil
7b78fcee97 Merge pull request #8723 from cooboos/wrong_spell
doc: correct wrong spell 'mnay' to 'many'

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-04-25 22:18:51 -04:00
Sage Weil
4ebca36b3c Merge pull request #6764 from kylinstorage/fix-check_become_tier
mon: fix OSDMonitor::_check_become_tier

Reviewed-by: Xinze Chi <xinze@xsky.com>
2016-04-25 22:01:19 -04:00
Sage Weil
57ea13a65a Merge pull request #8103 from adamemerson/wip-sign-of-the-time-debug
common: signed coarse time

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-04-25 21:59:40 -04:00
Sage Weil
35f4e1fd9a Merge pull request #8407 from dx9/wip-os-release
common/util: add support for distro info from /etc/os-release file

Reviewed-by: Sage Weil <sage@redhat.com>
2016-04-25 21:59:06 -04:00
Sage Weil
acb6bb598a Merge pull request #8437 from jjhuo/single_delete
os/kv, os/bluestore: Enable SingleDelete with RocksDB and Bluestore

Reviewed-by: Sage Weil <sage@redhat.com>
2016-04-25 21:58:55 -04:00
Sage Weil
fef50f3e62 Merge pull request #8451 from tchaikov/wip-signal-hanlder-typo
global/signal_handler: fix typo

Reviewed-by: Sage Weil <sage@redhat.com>
2016-04-25 21:58:22 -04:00
Sage Weil
f3f2463f5c Merge pull request #8503 from yuyuyu101/wip-spdk-improve
os/bluestore/NVMEDevice: performance improvements
2016-04-25 21:58:03 -04:00
Sage Weil
8c10377be1 Merge pull request #8702 from kmroz/wip-fix-run-dir-chown
global-init: fixup chown of the run directory along with log and asok files

Reviewed-by: Sage Weil <sage@redhat.com>
2016-04-25 21:56:42 -04:00
Sage Weil
0db5e051d0 Merge pull request #8728 from liewegas/wip-notify
osd/osd_types: render notify op properly

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-04-25 21:55:54 -04:00
Jianjian Huo
0860e62b68 os/bluestore/BlueStore: cleanup overlay using single delete
Overlay entries are also only written once, eligible to use single delete.

Signed-off-by: Jianjian Huo <jianjian.huo@ssi.samsung.com>
2016-04-25 17:03:52 -07:00
Jianjian Huo
dc17107d81 os/bluestore/BlueStore: cleanup the wal entries using single delete
By use of single delete, RocksDB should be able to remove deleted wal
entries with only one compaction in theory, when wal entries land on level0.
This should reduce bluestore wal entries incurred WAF.

Signed-off-by: Jianjian Huo <jianjian.huo@ssi.samsung.com>
2016-04-25 17:03:52 -07:00
Jianjian Huo
2089cff5b5 kv/RocksDBStore: implement rm_single_delete
Use SingleDelete to delete keys which were never overwritten.

Signed-off-by: Jianjian Huo <jianjian.huo@ssi.samsung.com>
2016-04-25 17:03:07 -07:00
Jianjian Huo
9c60532eae kv/KeyValueDB: add a new interface for single delete.
This is useful for log-insert-merge tree based key value store, such as
RocksDB, to avoid more LSM compactions for already deleted key value pairs.

Signed-off-by: Jianjian Huo <jianjian.huo@ssi.samsung.com>
2016-04-25 16:35:24 -07:00
John Spray
a17c9c614f Merge pull request #8474 from xiaoxichen/wip-pycephfs-namespace
pycephfs: using namespace for data isolation

Reviewed-by: John Spray <john.spray@redhat.com>
2016-04-25 17:49:45 -05:00
Yehuda Sadeh
6f6b0c9259 rgw: fix suffix in RGWZoneParams::fix_pool_names()
Fixes: http://tracker.ceph.com/issues/15598

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-04-25 15:12:40 -07:00
Nathan Cutler
2310854745 ceph.spec.in: recommend ntp-daemon on SUSE
SUSE has settled on "ntp-daemon" as the generic package name. The "ntp" and
"chrony" etc. packages have "Provides: ntp-daemon" in their respective spec
files.

References: http://tracker.ceph.com/issues/15419
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2016-04-25 22:16:19 +02:00
Nathan Cutler
f27cda03b7 deb: make ceph-base and radosgw recommend time-daemon
References: http://tracker.ceph.com/issues/15419

Signed-off-by: Nathan Cutler <ncutler@suse.com>
2016-04-25 22:16:15 +02:00
Ali Maredia
aede4a6c4d Merge pull request #8715 from runsisi/wip-fix-cmake
cmake: use LINK_PRIVATE instead of PRIVATE for CMake version == 2.8.11

Reviewed-by: Ali Maredia <amaredia@redhat.com>
2016-04-25 13:30:45 -04:00
Sage Weil
d920da71e1 Merge pull request #8730 from ibravo/patch-3
doc: Updated ceph-deploy osd to choose underlying file system
2016-04-25 13:20:27 -04:00
Sage Weil
da53f58628 Merge pull request #8745 from ErwanAliasr1/evelu-deps
install-deps: Adding gcc for debian based systems

Reviewed-by: Sage Weil <sage@redhat.com>
2016-04-25 12:24:50 -04:00
Karol Mroz
3d051a58cc admin-socket: use chown instead of fchown
fchown() returns success, but does not change asok file
ownership. chown() does.

Signed-off-by: Karol Mroz <kmroz@suse.com>
2016-04-25 17:24:07 +02:00
Erwan Velu
bbcda5a2c2 install-deps: Adding gcc for debian based systems
When running install-deps on a minimalistic system, we reach that situation :

dpkg-checkbuilddeps --admindir=/tmp/install-deps.5526 debian/control
    sh: 1: gcc: not found
    dpkg-checkbuilddeps: warning: Couldn't determine gcc system type, falling back to default (native compilation)
    dpkg-checkbuilddeps: error: cannot open /tmp/install-deps.5526/status: No such file or directory

This means that we shall install gcc before calling dpkg-checkbuilddeps.

Signed-off-by: Erwan Velu <erwan@redhat.com>
2016-04-25 17:11:45 +02:00