]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/log
ceph.git
9 years agoradosgw, encryption: little fixes 11049/head
Adam Kupczyk [Wed, 5 Apr 2017 15:43:40 +0000 (17:43 +0200)]
radosgw, encryption: little fixes

Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
9 years agoradosgw, encryption: Now only once attempt to load plugin if it fails.
Adam Kupczyk [Thu, 30 Mar 2017 13:00:22 +0000 (15:00 +0200)]
radosgw, encryption: Now only once attempt to load plugin if it fails.

Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
9 years agoradosgw: added more sanitization from printing keys
Adam Kupczyk [Mon, 27 Mar 2017 17:25:24 +0000 (19:25 +0200)]
radosgw: added more sanitization from printing keys

Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
9 years agoradosgw: fixes after rebase
Adam Kupczyk [Fri, 24 Mar 2017 19:39:47 +0000 (20:39 +0100)]
radosgw: fixes after rebase

Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
9 years agoradosgw, crypto plugin: now isal_crypto_plugin initializates only if CPU supports...
Adam Kupczyk [Fri, 24 Mar 2017 18:32:58 +0000 (19:32 +0100)]
radosgw, crypto plugin: now isal_crypto_plugin initializates only if CPU supports AESNI and SSE4.1

Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
9 years agocommon, arch, intel: added recognition of AESNI features
Adam Kupczyk [Fri, 24 Mar 2017 18:31:03 +0000 (19:31 +0100)]
common, arch, intel: added recognition of AESNI features

Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
9 years agotest/rgw: updated test_rgw_crypto to use rgw_raw_obj
Casey Bodley [Fri, 10 Mar 2017 20:40:20 +0000 (15:40 -0500)]
test/rgw: updated test_rgw_crypto to use rgw_raw_obj

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: Synced with interfaces that use rgw_raw_obj.
Adam Kupczyk [Fri, 10 Mar 2017 16:32:40 +0000 (17:32 +0100)]
rgw: Synced with interfaces that use rgw_raw_obj.

Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
9 years agoGot rid of unneeded rgw::crypt_sanitize:: .
Adam Kupczyk [Fri, 10 Mar 2017 15:47:02 +0000 (16:47 +0100)]
Got rid of unneeded rgw::crypt_sanitize:: .

Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
9 years agoConverting TODO comments to warnings to make them more conspicuous.
Adam Kupczyk [Thu, 9 Mar 2017 16:21:03 +0000 (17:21 +0100)]
Converting TODO comments to warnings to make them more conspicuous.

Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
9 years agoMoved crypt_sanitize operator<< from namespace std to namespace rgw::crypt_sanitize.
Adam Kupczyk [Thu, 9 Mar 2017 15:56:49 +0000 (16:56 +0100)]
Moved crypt_sanitize operator<< from namespace std to namespace rgw::crypt_sanitize.

Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
9 years agoAdded TODOs to remember to reuse auth/Crypt.
Adam Kupczyk [Thu, 9 Mar 2017 15:47:19 +0000 (16:47 +0100)]
Added TODOs to remember to reuse auth/Crypt.

Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
9 years agoChange 'cryptoaccel'->'crypto' for searching for crypto acceleration plugin.
Adam Kupczyk [Thu, 9 Mar 2017 13:53:05 +0000 (14:53 +0100)]
Change 'cryptoaccel'->'crypto' for searching for crypto acceleration plugin.

Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
9 years agorgw: suppress logs that can leak customer key
Adam Kupczyk [Fri, 3 Mar 2017 15:08:32 +0000 (16:08 +0100)]
rgw: suppress logs that can leak customer key

Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
9 years agorgw: set default plugin_crypto_accelerator = crypto_isal
Casey Bodley [Wed, 1 Mar 2017 15:35:59 +0000 (10:35 -0500)]
rgw: set default plugin_crypto_accelerator = crypto_isal

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agotest/rgw: fix compiler warnings in test_rgw_crypto
Casey Bodley [Wed, 1 Mar 2017 15:33:44 +0000 (10:33 -0500)]
test/rgw: fix compiler warnings in test_rgw_crypto

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: don't encode length with crypto attrs
Casey Bodley [Wed, 1 Mar 2017 15:12:53 +0000 (10:12 -0500)]
rgw: don't encode length with crypto attrs

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agoFixed HEAD for encrypted objects.
Adam Kupczyk [Wed, 22 Feb 2017 10:29:34 +0000 (11:29 +0100)]
Fixed HEAD for encrypted objects.
Now transactions for encrypted objects require encryped connection.
Added option to suppress this requirement.

Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
9 years agoDeleted memory where keys were used.
Adam Kupczyk [Mon, 20 Feb 2017 10:41:21 +0000 (11:41 +0100)]
Deleted memory where keys were used.

Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
9 years agoChanged dir structure of crypto/isal
Adam Kupczyk [Mon, 13 Feb 2017 14:29:09 +0000 (15:29 +0100)]
Changed dir structure of crypto/isal

Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
9 years agoClearing up code, continued.
Adam Kupczyk [Mon, 13 Feb 2017 11:46:43 +0000 (12:46 +0100)]
Clearing up code, continued.

Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
9 years agoImproved code.
Adam Kupczyk [Thu, 9 Feb 2017 12:40:32 +0000 (13:40 +0100)]
Improved code.

Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
9 years agoFixed problem with unloading plugins on exit.
Adam Kupczyk [Mon, 23 Jan 2017 20:57:25 +0000 (21:57 +0100)]
Fixed problem with unloading plugins on exit.
Fixed shortened life span of g_ceph_context

Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
9 years agoGot rid of hardcoded aws:kms keys
Adam Kupczyk [Mon, 23 Jan 2017 20:55:53 +0000 (21:55 +0100)]
Got rid of hardcoded aws:kms keys

Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
9 years agoceph.spec: add crypto plugins
Casey Bodley [Thu, 15 Dec 2016 21:26:48 +0000 (16:26 -0500)]
ceph.spec: add crypto plugins

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agodebian: add crypto plugins to ceph-common.install
Casey Bodley [Thu, 15 Dec 2016 21:34:21 +0000 (16:34 -0500)]
debian: add crypto plugins to ceph-common.install

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: add missing dout_context to rgw_crypt.cc
Casey Bodley [Wed, 4 Jan 2017 15:13:29 +0000 (10:13 -0500)]
rgw: add missing dout_context to rgw_crypt.cc

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agoGot rid of most bare pointers => now mostly unique_ptr.
Adam Kupczyk [Fri, 5 Aug 2016 12:21:51 +0000 (14:21 +0200)]
Got rid of most bare pointers => now mostly unique_ptr.
Fixed bugs that appeared on unit tests. Added unit tests.
These are created to improve code coverage achieved using s3-tests.
Added comments and improved formatting.
Fixed improper processing when last 0-15 bytes are decoded alone.
Fixed problem with PUT with x-amz-copy-source when source object is compressed.
Fixed problem with not decrypting data on S3 copy operation
Fixed problem with syncing when object is compressed and encrypted at the same time.
Fixed retrieving original length when compression is on.

Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
9 years agoIntroduced plugins for crypto and isal implementation.
Adam Kupczyk [Fri, 29 Jul 2016 14:09:02 +0000 (16:09 +0200)]
Introduced plugins for crypto and isal implementation.
Added submodule for isa-l_crypto
Fixed problem with uninitialised var.
Enable to use crypto plugin if available.
Now isal crypto plugin compiles only on intel.

Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
9 years agoAdded ability to choose between NSS and CRYPTOPP.
Adam Kupczyk [Thu, 7 Jul 2016 14:23:52 +0000 (16:23 +0200)]
Added ability to choose between NSS and CRYPTOPP.

Replaced AES-256-CTR mode with AES-256-CBC.
Moved internals from .h to .cc

Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
9 years agoAdded aws:kms mode to get/put/post operations.
Adam Kupczyk [Fri, 10 Jun 2016 14:05:00 +0000 (16:05 +0200)]
Added aws:kms mode to get/put/post operations.

Refactored to export selection of encryption to rgw/rgw_crypt.h/cc
Added quick exit to from_base64 when string_ref is empty.
Fixed POST logic, so aws encryption can also be applied to objects created from web forms
Extended KeystoneService with barbican user configuration.
Keystone provides token, Barbican provides secret.
Added option rgw_barbican_url.

Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
9 years agoImplemented RGWGetObj_BlockDecrypt RGWPutObj_BlockEncrypt filters.
Adam Kupczyk [Thu, 7 Apr 2016 14:01:59 +0000 (16:01 +0200)]
Implemented RGWGetObj_BlockDecrypt RGWPutObj_BlockEncrypt filters.

Introduced AES_256_CTR block encryptor.
Added filters for encryptors to RGWPostObj and RGWPutObj.
Exposed cur_stripe from RGWObjManifest::obj_iterator
Moved RGWPutObjProcessor_Multipart from rgw_op.cc to rgw_rados.h.
Implemented actual AES256_CTR and AES256_ECB modes.
Refactored RGWGetObj_BlockDecrypt to process multipart manifest differently.
Initial work of server-side-encryption customer key (Amazon SSE-C).
Initial work of "auto encryption".
Add prepare_encryption method to RGWInitMultipart operation.
Changed naming of client encryption mode to SSE-C-AES256.
Eliminated AWS encryption related headers from being stored with object's metadata.
Added set_attr utility functions.
split RGW_ATTR_CRYPT_KEY => RGW_ATTR_CRYPT_KEYSEL + RGW_ATTR_CRYPT_KEYID
Added interfaces create_random_key_selector and get_actual_key_from_kms

Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
9 years agoMerge pull request #14316 from liewegas/wip-bluestore-fsck-unused
Sage Weil [Wed, 5 Apr 2017 14:22:51 +0000 (09:22 -0500)]
Merge pull request #14316 from liewegas/wip-bluestore-fsck-unused

os/bluestore: fsck: verify blob.unused field

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
9 years agoos/bluestore: use typedef for blob unused (uint16_t) 14316/head
Sage Weil [Wed, 5 Apr 2017 14:13:46 +0000 (10:13 -0400)]
os/bluestore: use typedef for blob unused (uint16_t)

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: fsck: verify blob.unused field
Sage Weil [Tue, 4 Apr 2017 17:33:04 +0000 (13:33 -0400)]
os/bluestore: fsck: verify blob.unused field

Two checks:

- verify that no logical extents reference the portion of the
  blob marked unused, and
- verify that the csum (if present) is zero for any unused
  region.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #14157 from liewegas/wip-19379
Sage Weil [Wed, 5 Apr 2017 13:56:16 +0000 (08:56 -0500)]
Merge pull request #14157 from liewegas/wip-19379

os/bluestore: fix deferred writes vs collection split race

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
9 years agoMerge pull request #14258 from liewegas/wip-bluestore-tool
Sage Weil [Wed, 5 Apr 2017 13:55:36 +0000 (08:55 -0500)]
Merge pull request #14258 from liewegas/wip-bluestore-tool

ceph-bluestore-tool: rename from bluefs-tool; improve usage

9 years agoMerge pull request #14294 from tchaikov/wip-check-last-osd-report-if-luminous
Sage Weil [Wed, 5 Apr 2017 13:55:23 +0000 (08:55 -0500)]
Merge pull request #14294 from tchaikov/wip-check-last-osd-report-if-luminous

mon/OSDMonitor: check last_osd_report only when the whole cluster is lu…

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #14303 from liewegas/wip-more-mgr-commands
Sage Weil [Wed, 5 Apr 2017 13:55:03 +0000 (08:55 -0500)]
Merge pull request #14303 from liewegas/wip-more-mgr-commands

mgr: move 'osd perf' and 'osd blocked-by' to mgr

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #14010 from zhangsw/fix-rgw-fetchremote-bug
Casey Bodley [Wed, 5 Apr 2017 13:38:41 +0000 (09:38 -0400)]
Merge pull request #14010 from zhangsw/fix-rgw-fetchremote-bug

rgw: version id doesn't work in fetch_remote_obj

Reviewed-by: Casey Bodley <cbodley@redhat.com>
9 years agoMerge pull request #13310 from ceph/wip-ceph-disk-fix
Loic Dachary [Wed, 5 Apr 2017 11:43:02 +0000 (13:43 +0200)]
Merge pull request #13310 from ceph/wip-ceph-disk-fix

ceph-disk: Add fix subcommand

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agoMerge pull request #14314 from rzarzynski/wip-rgw-bulkupload-freebsd
Orit Wasserman [Wed, 5 Apr 2017 09:06:05 +0000 (12:06 +0300)]
Merge pull request #14314 from rzarzynski/wip-rgw-bulkupload-freebsd

rgw: switch to std::array in RGWBulkUploadOp due to C++11 and FreeBSD.
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
9 years agoMerge pull request #14252 from cbodley/wip-19409
Orit Wasserman [Wed, 5 Apr 2017 09:02:58 +0000 (12:02 +0300)]
Merge pull request #14252 from cbodley/wip-19409

radosgw-admin: new 'global quota' commands update period config
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
9 years agoMerge pull request #14109 from cbodley/wip-rgw-stat-manifest
Orit Wasserman [Wed, 5 Apr 2017 09:02:10 +0000 (12:02 +0300)]
Merge pull request #14109 from cbodley/wip-rgw-stat-manifest

rgw: stat requests skip compression, manifest handling, etc
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
9 years agoMerge pull request #14281 from tchaikov/wip-19429
Kefu Chai [Wed, 5 Apr 2017 02:01:27 +0000 (10:01 +0800)]
Merge pull request #14281 from tchaikov/wip-19429

qa/tasks/workunit.py: use "overrides" as the default settings of workunit

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #14297 from Adirl/ibport
Haomai Wang [Tue, 4 Apr 2017 23:02:26 +0000 (07:02 +0800)]
Merge pull request #14297 from Adirl/ibport

msg/async/rdma: Make port number an attribute of the Connection not o…

Reviewed-by: Haomai Wang <haomai@xsky.com>
9 years agoMerge pull request #13766 from dachary/wip-18962-ceph-disk-zap
Sage Weil [Tue, 4 Apr 2017 20:40:53 +0000 (15:40 -0500)]
Merge pull request #13766 from dachary/wip-18962-ceph-disk-zap

ceph-disk: Write 10M to all partitions before zapping

Reviewed-by: Sébastien Han <seb@redhat.com>
9 years agoMerge pull request #13998 from wangzhengyong/aio_complete
Casey Bodley [Tue, 4 Apr 2017 20:31:26 +0000 (16:31 -0400)]
Merge pull request #13998 from wangzhengyong/aio_complete

rgw: fix memory leak in delete_obj_aio

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
9 years agoMerge pull request #12883 from mslovy/wip-rbd-import
Jason Dillaman [Tue, 4 Apr 2017 20:12:05 +0000 (16:12 -0400)]
Merge pull request #12883 from mslovy/wip-rbd-import

rbd: import real thin-provision image

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #14327 from cbodley/wip-12863
Casey Bodley [Tue, 4 Apr 2017 20:11:12 +0000 (16:11 -0400)]
Merge pull request #14327 from cbodley/wip-12863

rgw: switch from "timegm()" to "internal_timegm()" for better portability

Reviewed-by: Casey Bodley <cbodley@redhat.com>
9 years agoMerge pull request #14190 from idryomov/wip-respect-epoch-barrier
Sage Weil [Tue, 4 Apr 2017 20:07:29 +0000 (15:07 -0500)]
Merge pull request #14190 from idryomov/wip-respect-epoch-barrier

osdc/Objecter: respect epoch barrier in _op_submit()

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #14220 from jcsp/wip-19407
Sage Weil [Tue, 4 Apr 2017 20:06:59 +0000 (15:06 -0500)]
Merge pull request #14220 from jcsp/wip-19407

mon: update mgrmap when active goes offline

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #12437 from idealguo/remove-duplicate-flush
Casey Bodley [Tue, 4 Apr 2017 18:40:06 +0000 (14:40 -0400)]
Merge pull request #12437 from idealguo/remove-duplicate-flush

rgw: remove duplicate flush formatter

Reviewed-by: Casey Bodley <cbodley@redhat.com>
9 years agoMerge pull request #13934 from chuang-he/fix_copy_obj_data
Casey Bodley [Tue, 4 Apr 2017 18:39:28 +0000 (14:39 -0400)]
Merge pull request #13934 from chuang-he/fix_copy_obj_data

rgw: fix configurable write obj window size

Reviewed-by: Casey Bodley <cbodley@redhat.com>
9 years agoMerge pull request #11963 from zhangsw/fix-rgw-lifecycle-bug
Casey Bodley [Tue, 4 Apr 2017 18:31:11 +0000 (14:31 -0400)]
Merge pull request #11963 from zhangsw/fix-rgw-lifecycle-bug

rgw: LCWorker's worktime is not the same as config rgw_lifecycle_work_time.

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
9 years agoSwitch from "timegm()" to "internal_timegm()" 14327/head
Rishabh Kumar [Wed, 21 Dec 2016 14:11:29 +0000 (19:41 +0530)]
Switch from "timegm()" to "internal_timegm()"

Changed timegm() to internal_timegm() for better portability

Fixes: http://tracker.ceph.com/issues/12863
Signed-off-by: Rishabh Kumar <kris.kr296@gmail.com>
9 years agoMerge pull request #14042 from pritha-srivastava/wip-rgw-fix-accounting
Casey Bodley [Tue, 4 Apr 2017 18:19:27 +0000 (14:19 -0400)]
Merge pull request #14042 from pritha-srivastava/wip-rgw-fix-accounting

rgw: Added code to correctly account for bytes sent/ received during a 'PUT' operation.

Reviewed-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
9 years agoMerge pull request #14125 from zhangsw/fix-rgw-cache-normalname-bug
Casey Bodley [Tue, 4 Apr 2017 18:17:51 +0000 (14:17 -0400)]
Merge pull request #14125 from zhangsw/fix-rgw-cache-normalname-bug

rgw: add pool namespace to cache's key so that system obj can have unique key

Reviewed-by: Casey Bodley <cbodley@redhat.com>
9 years agoMerge pull request #14072 from trociny/wip-notify
Jason Dillaman [Tue, 4 Apr 2017 18:06:05 +0000 (14:06 -0400)]
Merge pull request #14072 from trociny/wip-notify

librbd: Notifier::notify API improvement

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #14160 from Liuchang0812/wip-19363-fix-lc-two-response
Casey Bodley [Tue, 4 Apr 2017 17:22:15 +0000 (13:22 -0400)]
Merge pull request #14160 from Liuchang0812/wip-19363-fix-lc-two-response

rgw/lifecycle: do not send lifecycle rules when GetLifeCycle failed

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: switch to std::array in RGWBulkUploadOp due to C++11 and FreeBSD. 14314/head
Radoslaw Zarzynski [Tue, 4 Apr 2017 09:42:37 +0000 (11:42 +0200)]
rgw: switch to std::array in RGWBulkUploadOp due to C++11 and FreeBSD.

Before this patch RGWBulkUploadOp::terminal_errors was declared as
std::initializer_list<int>. Unfortunately, a constexpr constructor
for it is available since C++14, not C++11. This was causing build
failures on FreeBSD.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
9 years agoos/bluestore: do not extend blobs with unused bitmap
Sage Weil [Tue, 4 Apr 2017 15:52:24 +0000 (11:52 -0400)]
os/bluestore: do not extend blobs with unused bitmap

If we resize the blob we need to adjust the resolution of the
unused bitmap, and that is only possible for some bit patterns.
For now just ignore blobs with unused blocks.

Add an assert in add_tail() so that we don't forget that
add_tail is (probably) where we'd would do that adjustment.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: some whitespace
Sage Weil [Tue, 4 Apr 2017 13:52:26 +0000 (09:52 -0400)]
os/bluestore: some whitespace

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: mark_used for wctx->writes
Sage Weil [Tue, 4 Apr 2017 13:52:22 +0000 (09:52 -0400)]
os/bluestore: mark_used for wctx->writes

The refactored blob reuse code needs to mark blobs used when
processing wctx->writes.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: prefix fsck errors with 'fsck error:'
Sage Weil [Tue, 4 Apr 2017 15:27:55 +0000 (11:27 -0400)]
os/bluestore: prefix fsck errors with 'fsck error:'

Greppable!

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomsg/async/rdma: Make port number an attribute of the Connection not of the Device 14297/head
Amir Vadai [Wed, 22 Mar 2017 10:41:12 +0000 (12:41 +0200)]
msg/async/rdma: Make port number an attribute of the Connection not of the Device

Since multiple connections on different ports could exist, shouldn't use
device->active_port, instead use conn->ibport.
Or in other words, now Device object doesn't have an active_port,
instead every port specific action (create_qp, get_lid, get_gid etc.)
need to specify the port number. The information about the port number
is known to the connection (RDMAConnectedSocket*) who is the caller of
those actions.

Issue: 995322
Change-Id: I482cb87c04ba99845dc44f6dd0547835fe814ebf
Signed-off-by: Amir Vadai <amir@vadai.me>
9 years agoMerge pull request #14310 from tchaikov/wip-yield-for-ppc
Kefu Chai [Tue, 4 Apr 2017 13:58:30 +0000 (21:58 +0800)]
Merge pull request #14310 from tchaikov/wip-yield-for-ppc

common/simple_spin: use __ppc_yield() on all powerpc archs

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
Tested-by: Andrew Solomon <asolomon@us.ibm.com>
9 years agoMerge pull request #14289 from tchaikov/wip-conditionalize-crc32c
Kefu Chai [Tue, 4 Apr 2017 13:57:22 +0000 (21:57 +0800)]
Merge pull request #14289 from tchaikov/wip-conditionalize-crc32c

cmake,crc32c: conditionalize crc32c on different archs

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
Tested-by: Andrew Solomon <asolomon@us.ibm.com>
9 years agoMerge pull request #14275 from ceph/evelu-cephdisk-race
Loic Dachary [Tue, 4 Apr 2017 12:17:18 +0000 (14:17 +0200)]
Merge pull request #14275 from ceph/evelu-cephdisk-race

ceph-disk: Adding retry loop in get_partition_dev()

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agoMerge pull request #14185 from DHB-liuhong/objects
Kefu Chai [Tue, 4 Apr 2017 11:10:16 +0000 (19:10 +0800)]
Merge pull request #14185 from DHB-liuhong/objects

mon/PGMap: make si units more readable in PGMap summary

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #14313 from wjin/clean_mgr
Kefu Chai [Tue, 4 Apr 2017 11:01:50 +0000 (19:01 +0800)]
Merge pull request #14313 from wjin/clean_mgr

mgr: rm nonused main function

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoceph-disk: Adding retry loop in get_partition_dev() 14275/head
Erwan Velu [Fri, 31 Mar 2017 12:54:33 +0000 (14:54 +0200)]
ceph-disk: Adding retry loop in get_partition_dev()

There is very rare cases where get_partition_dev() is called before the actual partition is available in /sys/block/<device>.

It appear that waiting a very short is usually enough to get the partition beein populated.

Analysis:
update_partition() is supposed to be enough to avoid any racing between events sent by parted/sgdisk/partprobe and
the actual creation on the /sys/block/<device>/* entrypoint.
On our CI that race occurs pretty often but trying to reproduce it locally never been possible.

This patch is almost a workaround rather than a fix to the real problem.
It offer retrying after a very short to be make a chance the device to appear.
This approach have been succesful on the CI.

Note his patch is not changing the timing when the device is perfectly created on time and just differ by a 1/5th up to 2 seconds when the bug occurs.

A typical output from the build running on a CI with that code.
command_check_call: Running command: /usr/bin/udevadm settle --timeout=600
get_dm_uuid: get_dm_uuid /dev/sda uuid path is /sys/dev/block/8:0/dm/uuid
get_partition_dev: Try 1/10 : partition 2 for /dev/sda does not in /sys/block/sda
get_partition_dev: Found partition 2 for /dev/sda after 1 tries
        get_dm_uuid: get_dm_uuid /dev/sda uuid path is /sys/dev/block/8:0/dm/uuid
get_dm_uuid: get_dm_uuid /dev/sda2 uuid path is /sys/dev/block/8:2/dm/uuid

fixes: #19428

Signed-off-by: Erwan Velu <erwan@redhat.com>
9 years agomgr: rm nonused main function 14313/head
Wei Jin [Tue, 4 Apr 2017 09:47:30 +0000 (17:47 +0800)]
mgr: rm nonused main function

Signed-off-by: Wei Jin <wjin.cn@gmail.com>
9 years agoMerge pull request #14174 from shinobu-x/wp-sk-typo-osdmonitor-20170328
Nathan Cutler [Tue, 4 Apr 2017 06:37:09 +0000 (08:37 +0200)]
Merge pull request #14174 from shinobu-x/wp-sk-typo-osdmonitor-20170328

mon/OSDMonitor: Clean up: delete extra S signature for plural

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agocrc32c,compressor: only compile functions on supported arch 14289/head
Kefu Chai [Sun, 2 Apr 2017 17:32:18 +0000 (01:32 +0800)]
crc32c,compressor: only compile functions on supported arch

so we can still compile if certain header file (<sys/auxv.h>) used
for detecting cpu capabilities on ppc is missing on x86 host machine.

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agocommon/simple_spin: use __ppc_yield() on all powerpc archs 14310/head
Kefu Chai [Tue, 4 Apr 2017 03:14:32 +0000 (11:14 +0800)]
common/simple_spin: use __ppc_yield() on all powerpc archs

__ppc_yield() is declared in sys/platform/ppc.h by glibc, for better
portability we just use the inlined assembly here. the shared resource
hints are supported by PowerPC ISA 2.06 but on older PowerPC cores, they
are no-ops. so it's fine to do this way.

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agotest: add test for rbd import,import-diff,copy with sparse-size option 12883/head
Ning Yao [Sat, 25 Mar 2017 05:54:17 +0000 (05:54 +0000)]
test: add test for rbd import,import-diff,copy with sparse-size option

Signed-off-by: Ning Yao <yaoning@unitedstack.com>
9 years agolibrbd: add sparse copy support
yaoning [Thu, 9 Feb 2017 02:42:59 +0000 (10:42 +0800)]
librbd: add sparse copy support

Fixes: fix issue #15648
http://tracker.ceph.com/issues/15648

Signed-off-by: yaoning <yaoning@unitedstack.com>
9 years agorbd: import/import-diff real thin-provision image
yaoning [Thu, 19 Jan 2017 02:45:56 +0000 (10:45 +0800)]
rbd: import/import-diff real thin-provision image

currently, import/import-diff check whether object is zero based on the whole object
therefore, holes inside object will be filled with zero

Signed-off-by: yaoning <yaoning@unitedstack.com>
9 years agorbd: add sparse size support in rbd
yaoning [Thu, 19 Jan 2017 02:43:53 +0000 (10:43 +0800)]
rbd: add sparse size support in rbd

add --sparse_size in rbd command options
add calc_sparse_extent in rbd utils

Signed-off-by: yaoning <yaoning@unitedstack.com>
9 years agoMerge pull request #12243 from rzarzynski/wip-rgw-bulkupload
Orit Wasserman [Mon, 3 Apr 2017 18:54:32 +0000 (21:54 +0300)]
Merge pull request #12243 from rzarzynski/wip-rgw-bulkupload

rgw: add support for the BulkUpload of Swift API
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
9 years agodoc/rgw: update section on global quotas 14252/head
Casey Bodley [Wed, 29 Mar 2017 20:41:39 +0000 (16:41 -0400)]
doc/rgw: update section on global quotas

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agoradosgw-admin: new 'global quota' commands update period config
Casey Bodley [Wed, 29 Mar 2017 20:11:13 +0000 (16:11 -0400)]
radosgw-admin: new 'global quota' commands update period config

Fixes: http://tracker.ceph.com/issues/19409
Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: load period config separately when there's no current period
Casey Bodley [Wed, 29 Mar 2017 18:20:47 +0000 (14:20 -0400)]
rgw: load period config separately when there's no current period

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: synchronize period config with period updates
Casey Bodley [Wed, 29 Mar 2017 18:18:38 +0000 (14:18 -0400)]
rgw: synchronize period config with period updates

read period config from local storage on RGWPeriod::update(), and write
the new config to storage on RGWPeriod::reflect()

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: allow RGWPeriodConfig to be stored separately
Casey Bodley [Wed, 29 Mar 2017 17:56:53 +0000 (13:56 -0400)]
rgw: allow RGWPeriodConfig to be stored separately

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: constify some rgw_pool args
Casey Bodley [Wed, 29 Mar 2017 19:53:56 +0000 (15:53 -0400)]
rgw: constify some rgw_pool args

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: remove unused RGWPeriod::update(RGWZoneGroupMap)
Casey Bodley [Wed, 29 Mar 2017 15:17:49 +0000 (11:17 -0400)]
rgw: remove unused RGWPeriod::update(RGWZoneGroupMap)

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agoMerge pull request #14120 from wangzhengyong/uninitialized
Yehuda Sadeh [Mon, 3 Apr 2017 18:33:23 +0000 (11:33 -0700)]
Merge pull request #14120 from wangzhengyong/uninitialized

rgw: fix uninitialized fields

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agomgr: move 'osd perf' and 'osd blocked-by' to mgr 14303/head
Sage Weil [Mon, 3 Apr 2017 16:46:32 +0000 (12:46 -0400)]
mgr: move 'osd perf' and 'osd blocked-by' to mgr

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomon: move 'osd perf' and 'osd blocked-by' to PGMap
Sage Weil [Mon, 3 Apr 2017 16:46:21 +0000 (12:46 -0400)]
mon: move 'osd perf' and 'osd blocked-by' to PGMap

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #14217 from Liuchang0812/wip-18584-pg-info-dump
Sage Weil [Mon, 3 Apr 2017 15:46:36 +0000 (10:46 -0500)]
Merge pull request #14217 from Liuchang0812/wip-18584-pg-info-dump

osd: print pg_info_t::purged_snaps as array, not string

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #14036 from batrick/mds-debug-reply
John Spray [Mon, 3 Apr 2017 15:20:19 +0000 (16:20 +0100)]
Merge pull request #14036 from batrick/mds-debug-reply

mds: bump client_reply debug to match client_req

Reviewed-by: Yan, Zheng <zyan@redhat.com>
9 years agoMerge pull request #14296 from theanalyst/fix/script/credits
Loic Dachary [Mon, 3 Apr 2017 15:03:12 +0000 (17:03 +0200)]
Merge pull request #14296 from theanalyst/fix/script/credits

script: drop the -x arg for credits script

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agoMerge pull request #13401 from liewegas/wip-kill-subop
Sage Weil [Mon, 3 Apr 2017 15:00:53 +0000 (10:00 -0500)]
Merge pull request #13401 from liewegas/wip-kill-subop

osd: kill all remaining MOSDSubOp users

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
9 years agoMerge pull request #14221 from jcsp/wip-19253-b
John Spray [Mon, 3 Apr 2017 14:31:29 +0000 (15:31 +0100)]
Merge pull request #14221 from jcsp/wip-19253-b

qa: whitelist another fullness log message

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
9 years agoMerge pull request #14279 from jimmyway/wip-fix-pg-comment
Sage Weil [Mon, 3 Apr 2017 14:27:13 +0000 (09:27 -0500)]
Merge pull request #14279 from jimmyway/wip-fix-pg-comment

osd: fix comments about pg refs and lock

Reviewed-by: Pan Liu <liupan1111@gmail.com>
9 years agoMerge pull request #14277 from atheism/fix-test-objectstore-chain_xattr
Sage Weil [Mon, 3 Apr 2017 14:26:30 +0000 (09:26 -0500)]
Merge pull request #14277 from atheism/fix-test-objectstore-chain_xattr

test: objectstore: chain_xattr: fix wrong memset usage to fill buf

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: flush osr on collection split 14157/head
Sage Weil [Mon, 27 Mar 2017 15:32:03 +0000 (11:32 -0400)]
os/bluestore: flush osr on collection split

We need to ensure that any preceding txcs have finished their deferred
writes before splitting, or else later txcs on the child sequencer will
not order/wait for deferred writes correctly before deallocated extents.

Fixes: http://tracker.ceph.com/issues/19379
Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: make deferred_aggressive atomic
Sage Weil [Sun, 26 Mar 2017 18:59:00 +0000 (14:59 -0400)]
os/bluestore: make deferred_aggressive atomic

This is written and read outside of any mutex.

Signed-off-by: Sage Weil <sage@redhat.com>