Radoslaw Zarzynski
ff56a6b7e1
tests/crypto: print compile warning when NSS is unavailable.
...
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2018-05-18 10:49:08 -04:00
Radoslaw Zarzynski
2535d11713
tests/crypto: add tests for the no-bl encrypt/decrypt, part 2.
...
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2018-05-18 10:49:08 -04:00
Radoslaw Zarzynski
e70ef0fb48
tests/crypto: add tests for the no-bl encrypt/decrypt.
...
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2018-05-18 10:49:08 -04:00
Radoslaw Zarzynski
24e0532f81
auth: use OpenSSL for CryptoAESKeyHandler's no-bl encrypt/decrypt.
...
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2018-05-18 10:49:07 -04:00
Radoslaw Zarzynski
b5acef206c
auth: extend CryptoKey with no-bl encrypt/decrypt.
...
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2018-05-18 10:49:07 -04:00
Radoslaw Zarzynski
4860bb70e1
auth: CryptoAESKeyHandler switches from NSS to OpenSSL.
...
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2018-05-18 10:48:32 -04:00
Kefu Chai
7635485d34
auth: the outbuf of AES should be multiple of block size
...
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 3cfcd02af6
)
2018-05-18 10:48:32 -04:00
Kefu Chai
7f6751bb55
auth: cache the PK11Context for CryptoAESKeyHandler
...
in the flame graph, 0.50% of total time is used by
CephxSessionHandler::check_message_signature(), in which 0.27% is used
by PK11_CreateContextBySymKey(). so we should cache the PK11Context.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
(cherry picked from commit f8c2036f7663be54030e13f1f9c1511cb40070f6)
2018-05-18 10:48:32 -04:00
Jason Dillaman
7abafb89f6
cls/rbd: prevent creating image with internal feature bits enabled
...
Fixes: http://tracker.ceph.com/issues/24165
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-05-18 10:25:46 -04:00
Jason Dillaman
00c289293a
test/librbd: fsx should use the default image features
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-05-18 10:25:46 -04:00
Jason Dillaman
20ff4fdaea
librbd: prevent creation of images with internal feature bits
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-05-18 10:25:44 -04:00
Sage Weil
6d6cf388b2
osd/PrimaryLogPG: fix try_flush_mark_clean write contention case
...
Release ctx *after* we dereference it to queue up the other flush waiters.
This was a dumb mistake in the recent fix from 41609ba1b2
Fixes: http://tracker.ceph.com/issues/24174
Signed-off-by: Sage Weil <sage@redhat.com>
2018-05-18 09:24:48 -05:00
Jason Dillaman
f64fd0a70d
rbd-mirror: mask off implicitly enabled feature bits for new images
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-05-18 09:45:32 -04:00
Jason Dillaman
3d00818056
rbd-mirror: re-use image create option logic for clones
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-05-18 09:45:32 -04:00
Jason Dillaman
bd982ed078
Merge pull request #22078 from tchaikov/wip-cls-rbd-fix-FTBFS
...
cls/rbd: fix build
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-05-18 07:22:13 -04:00
Kefu Chai
9b1dc55f7d
cls/rbd: fix build
...
3cbe0ced
was merged after d03ff14
, so update accordingly.
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-05-18 18:16:32 +08:00
Mykola Golub
42dac1669f
Merge pull request #21915 from dillaman/wip-rbd-mirror-policy
...
rbd-mirror: optionally support active/active replication
Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Mykola Golub <mgolub@suse.com>
2018-05-18 10:32:49 +03:00
Josh Durgin
4516870a52
Merge pull request #21651 from ceph/wip-da-dmclock-submodule
...
move dmclock subtree into submodule
Reviewed-by: Eric Ivancich <ivancich@redhat.com>
2018-05-17 13:57:39 -07:00
Kefu Chai
2a724a2ff3
Merge pull request #22015 from tchaikov/wip-denc
...
buffer,denc: use ptr::const_iterator for decode
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-05-18 00:56:08 +08:00
Sage Weil
ca9ce0f6e5
Merge pull request #22059 from LenzGr/mgr-dashboard-documentation
...
doc: Updated dashboard documentation (features, SSL config)
Reviewed-by: Wido den Hollander <wido@42on.com>
Reviewed-by: Alfredo Deza <adeza@redhat.com>
2018-05-17 11:40:20 -05:00
Sage Weil
c6a747d1d8
qa/workunits/rbd/import_export: update unit formatting
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-05-17 11:14:39 -05:00
Sage Weil
ddd3095bc0
qa/workunits/rbd/cli_generic: update unit formatting
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-05-17 11:14:39 -05:00
Sage Weil
35ae9acc32
test/cli-integration/rbd: update unit formatting
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-05-17 11:14:39 -05:00
Sage Weil
9cbd283bc6
include/types: space between number and units
...
not
client: 504B/s rd, 10.6MiB/s wr, 0op/s rd, 30op/s wr
but
client: 504 B/s rd, 10.6 MiB/s wr, 0 op/s rd, 30 op/s wr
This was changed as part of d3cecebacd
.
Signed-off-by: Sage Weil <sage@redhat.com>
2018-05-17 11:14:39 -05:00
Sage Weil
42bdb066bb
mon/PGMap: fix PGMapDigest decode
...
The compat path wasn't clearing the map before filling in new entries.
Signed-off-by: Sage Weil <sage@redhat.com>
2018-05-17 10:51:46 -05:00
Lenz Grimmer
789e9858b2
Merge pull request #22061 from tspmelo/wip-npmrc
...
mgr/dashboard: Disable package-lock.json creation
Reviewed-by: Ricardo Marques <rimarques@suse.com>
2018-05-17 17:44:59 +02:00
Lenz Grimmer
32e0660556
doc: Updated dashboard documentation (features, SSL config)
...
Updated Ceph manager dashboard documentation: added SSL to the
feature overview, added new section about configuring SSL certificates.
Rearranged installation instructions for setting host name and port.
Signed-off-by: Lenz Grimmer <lgrimmer@suse.com>
2018-05-17 17:34:36 +02:00
Lenz Grimmer
9a943b982f
Merge pull request #22058 from ricardoasmarques/wip-ng-serve-remote-access
...
mgr/dashboard: ng serve bind to 0.0.0.0
Reviewed-by: Tiago Melo <tmelo@suse.com>
2018-05-17 16:50:23 +02:00
Tiago Melo
fe365bf715
mgr/dashboard: Disable package-lock.json creation
...
Since we are not keeping track of this file, it is better to not generate it.
Otherwise we might face some package version conflicts,
which break the dashboard build.
Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-05-17 14:33:27 +01:00
Sage Weil
4706f1d42b
Merge pull request #22057 from tchaikov/qa-valgrind-without-random-distro
...
qa/suites/rados/verify: remove random-distro$
Reviewed-by: Sage Weil <sage@redhat.com>
2018-05-17 07:00:08 -05:00
Alfredo Deza
64b3b25d14
ceph-volume util.prepare remove undocumented comments
...
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-05-17 07:23:12 -04:00
Alfredo Deza
985949d1f3
common/options add description of osd objectstore backends
...
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-05-17 07:23:12 -04:00
Kefu Chai
c237d0befb
qa/suites/rados/verify: remove random-distro$
...
the distro specified by random-distro$ will be overwrited by the one
specfied by valgrind.yaml. and teuthology-suite will give
KeyError: '16.04 not a centos version or codename'
when scheduling a suite involving the facets above. also, i think it's
of not much value to run valgrind/lockdep with different distros.
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-05-17 19:11:14 +08:00
Ricardo Marques
251e2515b5
mgr/dashboard: ng serve bind to 0.0.0.0
...
This will allow access to ng serve from remote machines
Signed-off-by: Ricardo Marques <rimarques@suse.com>
2018-05-17 11:07:52 +01:00
Rishabh Dave
e276fdaaa8
client: increase verbosity level for log messages in helper methods
...
Fixes: http://tracker.ceph.com/issues/21014
Signed-off-by: Rishabh Dave <ridave@redhat.com>
2018-05-17 15:25:38 +05:30
Lenz Grimmer
7d93c1fbdf
Merge pull request #21981 from tspmelo/fix-momentjs
...
mgr/dashboard: Fix moment.js deprecation warning
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2018-05-17 11:11:33 +02:00
Kefu Chai
03614c99db
Merge pull request #22046 from tchaikov/wip-23653
...
cmake: do not check for aligned_alloc() anymore
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-05-17 14:03:47 +08:00
Kefu Chai
f146c6c514
core: use const_iterator for decode
...
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-05-17 13:56:49 +08:00
Kefu Chai
94e4928f17
mds: use const_iterator for decode
...
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-05-17 13:56:49 +08:00
Kefu Chai
7a8e740f00
rgw: use const_iterator for decode
...
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-05-17 13:56:49 +08:00
Kefu Chai
d03ff14d81
rbd: use const_iterator for decode
...
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-05-17 13:56:49 +08:00
Kefu Chai
e1a621193f
denc: use ptr::const_iterator for decode
...
as ptr::iterator is able to write to the underlying buffer.
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-05-17 13:56:49 +08:00
Kefu Chai
12f76357ac
buffer: add cbegin() methods
...
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-05-17 13:56:49 +08:00
Kefu Chai
4d646ef579
cmake: do not check for aligned_alloc() anymore
...
this reverts 16f0a67d
Fixes: http://tracker.ceph.com/issues/23653
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-05-17 10:33:04 +08:00
Patrick Donnelly
3949b6f751
client: cleanup Cap init
...
Use reference for inode so it's write-once and must be valid.
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-05-16 16:59:05 -07:00
Sage Weil
a8288c4b6e
ceph_test_rados_api_misc: fix LibRadosMiscPool.PoolCreationRace
...
This test is trying to reproduce a case where we don't have a session
for the given OSD, drop our big lock to open one, and when we retake the
osdmap has changed. Previously that was an easy situation to reproduce
by creating an ioctx for a pool that didn't exist (yet) and then creating
it. The missing pool would send us into the path that rechecks for an
updated osdmap and trigger the race condition.
However, as of 7037cf8f77
we no longer create
ioctxs for pools that don't exist. And there isn't an easy way that I can
think of to trigger the missing osd session that races with an osdmap
update. So, use the debug option that injects the delay to drop us into
the same path. This is a bit artificial in that we do actually have an
osdmap session, but the block handles that case (since the old no pool
case worked that way), so we cover the same code.
This fix ignores the fact that we still have all this "pool doesn't exist"
handling code in Objecter that deals with teh fact that you could create
an ioctx for a missing pool...that is no longer possible. Cleanup for
another day!
Fixes: http://tracker.ceph.com/issues/24150
Signed-off-by: Sage Weil <sage@redhat.com>
2018-05-16 16:56:33 -05:00
Dan Mick
0bf9a5a2a7
Merge pull request #22028 from tchaikov/wip-wheelhouse
...
install-deps: nuke wheelhouse if it's stale
2018-05-16 14:32:36 -07:00
Sage Weil
6bfb9c866f
Merge pull request #21751 from shangfufei/wip-async-needless-code
...
msg/async: the ceph_abort is needless in handle_connect_msg
Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-05-16 16:07:17 -05:00
Sage Weil
a48999094d
Merge pull request #21854 from ifed01/wip-ifed-bluestore-alloc-cleanup
...
os/bluestore: allocator pruning
Reviewed-by: Sage Weil <sage@redhat.com>
2018-05-16 16:06:49 -05:00
Sage Weil
e713b4de4f
Merge pull request #21926 from dragonylffly/wip-fix-throttle-configurations
...
os/filestore: fix throttle configurations
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
2018-05-16 16:06:19 -05:00