Commit Graph

86864 Commits

Author SHA1 Message Date
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
Tiago Melo
41d1f9b4b1 mgr/dashboard: Use Jest in package.json scripts
Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-05-17 18:08:51 +01: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
Tiago Melo
c0c2375a0b mgr/dashboard: Adapt unit tests to Jest
Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-05-17 17:53:38 +01:00
Tiago Melo
a94f2e157b mgr/dashboard: Add Jest Runner
Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-05-17 17:53:38 +01: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
Kefu Chai
705e4566ee mgr: fix typo in variable name and cleanups
* s/sercive/service/
* also fix the logging message. before this change, we have

send_report send_report osd,2.0x557ea1c16550 sent me an unknown health
metric:

after this change,

send_report send_report osd.2 sent me an unknown health metric: 0x01

Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-05-18 00:36:43 +08: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
Ricardo Marques
7f1749db52 mgr/dashboard: Improve table pagination style
Signed-off-by: Ricardo Marques <rimarques@suse.com>
2018-05-17 16:10:33 +01: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
Alfredo Deza
0a4cebd1dd doc/man/ceph-volume explain encryption and activate all with examples
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-05-17 09:41:51 -04:00
Alfredo Deza
d8b9a7c074 doc/ceph-volume activate is able to use --all for existing OSDs
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-05-17 09:41:51 -04:00
Alfredo Deza
72cef7acf7 doc/ceph-volume encryption is enabled with the --dmcrypt flag
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-05-17 09:41:51 -04:00
Alfredo Deza
e97d0717d3 doc/ceph-volume prepapre accepts a --dmcrypt flag
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-05-17 09:41:51 -04:00
Alfredo Deza
ac0c925c57 doc/ceph-volume activate does not need a dmcrypt flag
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-05-17 09:41:51 -04: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