Commit Graph

92187 Commits

Author SHA1 Message Date
Nathan Cutler
7d4916618c build/ops: rpm: stop install-deps.sh clobbering spec file Python build setting
Fedora 29 still ships a Python 2 binary, but some of Ceph's build
dependencies are only available in py3 versions there. In other
words, from F29 on, it is no longer possible to do a py2 Ceph build
on Fedora, even if a python2 binary exists on the system.

If that were not enough, the Python 2 that ships with Fedora 29 is
linked against a non-compatible version of OpenSSL.

Before this commit, install-deps.sh was overriding the spec file's
Python build setting based on the presence or absence of a python2
binary. As the bug cited below indicates, this was not a good idea.

It's better for the spec file to be explicit about which OS versions
are py2 and which are py3, and just stick to that.

Fixes: http://tracker.ceph.com/issues/37301
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2018-11-20 15:00:48 +01:00
Lenz Grimmer
ac743f2a91
Merge pull request #24851 from rhcs-dashboard/grafana-roles
mgr/dashboard: Show/Hide Grafana tabs according to user role

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2018-11-20 10:21:04 +01:00
Abhishek L
0c7d5cbf46
Merge pull request #24762 from tspmelo/wip-credits
credits.sh: Ignore package-lock.json and .xlf files

Reviewed-By: Lenz Grimmer <lgrimmer@suse.com>
Reviewed-By: Nathan Cutler <ncutler@suse.com>
Reviewed-By: Abhishek Lekshmanan <abhishek@suse.com>
2018-11-20 09:40:59 +01:00
Kefu Chai
004d918ae0
Merge pull request #25169 from tchaikov/wip-install-libboost-bionic
install-deps.sh: fix gcc detection and install pre-built libboost on bionic

Tested-by: Changcheng Liu <changcheng.liu@intel.com>
Reviewed-by: Changcheng Liu <changcheng.liu@intel.com>
2018-11-20 15:54:34 +08:00
Kefu Chai
98d7741579 install-deps.sh: install prebuilt libboost dependencies for bionic also
* extract boost install function into a helper, so we don't need to
  repeat it when adding support for new distros.
* install ceph-libboost-* for bionic build also. we check for the
  existence in run-make-check.sh, so there is no need to update
  the build script elsewhere.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-11-20 13:09:53 +08:00
Changcheng Liu
ab7344e617 install-deps.sh: correct gcc version info as major.minor.patch
On ubuntu 18.04, "gcc -dumpversion" output "7", it result in
that below check will return false:
    dpkg --compare-versions 7 ge 7.0
Then, this script will install other gcc.

Actully, the full gcc version "gcc -dumpfullversion" output is
"7.3.0", than below check will turn true:
    dpkg --compare-version 7.3.0 ge 7.0
So, there's no need to install other gcc.

In case of hitting error on ubuntu16.04, use below parameter:
   gcc -dumpfullversion -dumpversion

Signed-off-by: Changcheng Liu <changcheng.liu@intel.com>
2018-11-20 12:31:42 +08:00
Sage Weil
38e95b2d8a Merge PR #24874 into master
* refs/pull/24874/head:
	os/filestore: collect partition/device metadata from journal
	os/filestore: include journal in get_devices result

Reviewed-by: Rick Chen <rick.chen@prophetstor.com>
Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
2018-11-19 17:31:19 -06:00
Sage Weil
e2c1eb8fbc Merge PR #25140 into master
* refs/pull/25140/head:
	mon: by default, do NOT warn about misplaced objects
	mon: add mon_warn_on_misplaced option

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: João Eduardo Luís <joao@suse.de>
2018-11-19 17:29:57 -06:00
Sage Weil
4ebf2b2bea Merge PR #25147 into master
* refs/pull/25147/head:
	mgr/devicehealth: implement config_notify hook
	mgr: call config_notify method when mgr's config has changed
	mon/MonClient: add callback for (any) config change
	common/config: fix debug output for config callbacks changes

Reviewed-by: Tim Serong <tserong@suse.com>
2018-11-19 17:29:41 -06:00
Patrick Donnelly
a8937d987c
Merge PR #25158 into master
* refs/pull/25158/head:
	[doc] Fix typo in luminious release notes

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2018-11-19 14:17:14 -08:00
Sage Weil
ba49aacee2 Merge PR #25111 into master
* refs/pull/25111/head:
	test: Add test for requested scrub priority
	osd: Prioritize user specified scrubs

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2018-11-19 13:15:21 -06:00
Yuri Weinstein
02df8f3008
Merge pull request #23819 from dongbula/nf-add-bucket-option-in-usage
rgw: add bucket as option when show/trim usage

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2018-11-19 08:49:06 -08:00
Yuri Weinstein
3a77ff454d
Merge pull request #23318 from theanalyst/wip-curl-errstring
rgw: http client: print curl error messages during curl failures

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2018-11-19 08:47:27 -08:00
Neha Ojha
7ac345044e
Merge pull request #25069 from markhpc/wip-memory-autotune-doc
doc/rados: Add bluestore memory autotuning docs.

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
2018-11-19 22:16:43 +05:30
Yuri Weinstein
d06f455bfd
Merge pull request #24492 from theanalyst/wip-rgw-es-attr-fixes
rgw: ES sync: be more restrictive on object system attrs

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2018-11-19 08:44:50 -08:00
Yuri Weinstein
a2083445f8
Merge pull request #24730 from pritha-srivastava/wip-rgw-role-fixes
rgw: Minor fixes to radosgw-admin commands for a role.

Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
2018-11-19 08:44:10 -08:00
Yuri Weinstein
dde9ce1824
Merge pull request #24846 from taoCH/wip-fix-librgw-quota-check
rgw_file: not check max_objects when creating file

Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
2018-11-19 08:43:10 -08:00
Maxime
ddadf083ee [doc] Fix typo in luminious release notes
Signed-off-by: Maxime <maxime@root314.com>
2018-11-19 16:36:04 +01:00
Jason Dillaman
dfbda9c322
Merge pull request #24935 from leseb/rbd-mirror-on-reboot
systemd: enable ceph-rbd-mirror.target

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-11-19 20:52:52 +05:30
Sebastian Wagner
b6a58491ee
Merge pull request #24863 from jtlayton/wip-orchestrator
mgr/orchestrator: Add support for "ceph orchestrator service ls"

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Reviewed-by: Tim Serong <tserong@suse.com>
2018-11-19 14:55:30 +01:00
Lenz Grimmer
cb4e28a140
Merge pull request #24932 from tspmelo/wip-nodejs-update
mgr/dashboard: Update Node.js to current LTS

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
2018-11-19 13:16:28 +01:00
Nathan Cutler
dddf8ded32
Merge pull request #24779 from smithfarm/wip-luminous-release-notes
doc: Luminous v12.2.9 release notes

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Yuri Weinstein <yweinste@redhat.com>
2018-11-19 12:50:57 +01:00
Lenz Grimmer
469b6278e8
Merge pull request #25136 from Devp00l/wip-easy-e2e-dev
mgr/dashboard: npm run e2e:dev

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
2018-11-19 11:48:35 +01:00
Kefu Chai
c6bf6226a1
Merge pull request #25139 from tchaikov/wip-xmlsec
test/dashboard: fix segfault when importing dm.xmlsec.binding

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Patrick Nawracay <pnawracay@suse.com>
2018-11-19 16:54:20 +08:00
Kanika Murarka
a84bed27b5 mgr/dashboard: Show/Hide Grafana tabs according to user role
Fixes: http://tracker.ceph.com/issues/36655
Signed-off-by: Kanika Murarka <kmurarka@redhat.com>
2018-11-19 13:43:52 +05:30
Mykola Golub
165886a9ac
Merge pull request #25096 from dillaman/wip-rbd-mirror-peers
librbd: move mirror peer attribute handling from CLI to API

Reviewed-by: Mykola Golub <mgolub@suse.com>
2018-11-19 09:59:03 +02:00
Sage Weil
2d5b4f917c Merge PR #20665 into master
* refs/pull/20665/head:
	mgr/balancer: add crush_compat_metrics param

Reviewed-by: Sage Weil <sage@redhat.com>
2018-11-18 07:04:40 -06:00
Sage Weil
72cc6f3140 mgr/devicehealth: implement config_notify hook
Signed-off-by: Sage Weil <sage@redhat.com>
2018-11-17 07:15:36 -06:00
Sage Weil
f27a5dc615 mgr: call config_notify method when mgr's config has changed
This provides a hook for the module to refresh any config values it has
cached in module-local variables.

Signed-off-by: Sage Weil <sage@redhat.com>
2018-11-17 07:15:19 -06:00
Sage Weil
14d26adf75 mon/MonClient: add callback for (any) config change
This is a coarse "there was some config update".  It's fired whether or
not it values are observed.

Signed-off-by: Sage Weil <sage@redhat.com>
2018-11-17 06:50:17 -06:00
Casey Bodley
38ac1c4aa9
Merge pull request #25135 from cbodley/wip-test-log-garble
test: fix libc++ crash in Log.GarbleRecovery

Reviewed-by: Adam Kupczyk <akucpzyk@redhat.com>
2018-11-16 14:23:39 -05:00
Kefu Chai
af90a5fe61 test/dashboard: fix segfault when importing dm.xmlsec.binding
python-saml depends on dm.xmlsec.binding which is a python binding of
xmlsec C library. but without -DXMLSEC_NO_SIZE_T the compiled
dm.xmlsec.binding segfaults when `import dm.xmlsec.binding`. see
https://github.com/onelogin/python-saml/issues/30 and
https://github.com/4teamwork/ftw.saml2auth/issues/3 .

in long term, we might want to switch to python-saml, see
http://tracker.ceph.com/issues/37081

Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-11-17 01:25:50 +08:00
Sage Weil
ab9b8e04fe mon: by default, do NOT warn about misplaced objects
Misplaced objects are not something that puts the health or safety of
data in jeopardy.  Don't warn about it by default.

Since this is a change in behavior, add a release note.

Signed-off-by: Sage Weil <sage@redhat.com>
2018-11-16 11:03:37 -06:00
Sage Weil
d4a65456ce mon: add mon_warn_on_misplaced option
Control whether we issue HEALTH_WARN due to misplaced objects.

Signed-off-by: Sage Weil <sage@redhat.com>
2018-11-16 11:00:52 -06:00
Yuri Weinstein
ac5b4f6d78
Merge pull request #22613 from zhangsw/fix-rgw-copyobj-tailtag
rgw: Copying object data should generate new tail tag for the new object.

Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
2018-11-16 08:06:51 -08:00
Yuri Weinstein
f9df042c97
Merge pull request #23652 from theanalyst/rgw/awsv4/presign-slashes
rgw: s3: awsv4 drop special handling for x-amz-credential

Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
2018-11-16 08:06:23 -08:00
Yuri Weinstein
7fddd94dc7
Merge pull request #25003 from ivancich/wip-update-reshard-params
rgw: reshard improvements

Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
2018-11-16 08:03:35 -08:00
Yuri Weinstein
a6e10a44bd
Merge pull request #25102 from cbodley/wip-rgw-log-http-status
rgw: log http status with op prefix if available

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2018-11-16 08:03:09 -08:00
Stephan Müller
01bb4cb1a0 mgr/dashboard: npm run e2e:dev
The new command introduced will make developing e2e tests faster, as
Protractor will attach to the running development server that was
previously started running 'npm start'.

Fixes: https://tracker.ceph.com/issues/37291
Signed-off-by: Stephan Müller <smueller@suse.com>
2018-11-16 16:55:20 +01:00
Casey Bodley
6dacc42c39 test: fix libc++ crash in Log.GarbleRecovery
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2018-11-16 10:36:12 -05:00
Alfredo Deza
fad9694f3a
Merge pull request #25007 from jan--f/c-v-dont-duplicated-rejected-reasons
ceph-volume: rename Device property valid to available

Reviewed-by: Alfredo Deza <adeza@redhat.com>
2018-11-16 10:28:16 -05:00
Tiago Melo
2867aa03a2 credits.sh: Ignore package-lock.json and .xlf files
package-lock.json: This file is modified automatically by npm any time we update
a frontend package, and can amount to large number of line changes.
For example, updating around 10 packages can result in 3k lines changed
in package-lock.json.

.xlf: They are used for the I18M of the dashboard and are automatically created
by Angular/transifex. Curretly each has around 5k lines and those lines should
not be credited to the commiter.

Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-11-16 15:11:06 +00:00
Casey Bodley
5d6298b75a
Merge pull request #25002 from yehudasa/wip-rgw-svc-5
rgw: fix uninitialized access

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2018-11-16 09:57:04 -05:00
Kefu Chai
578616a389
Merge pull request #24967 from bi-shun/fix-brotli
compressor: Fix build of Brotli Compressor

Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-11-16 22:32:08 +08:00
Lenz Grimmer
e942c96c2d
Merge pull request #24803 from tspmelo/wip-i18n
mgr/dashboard: Add i18n support

Reviewed-by: Laura Paduano <lpaduano@suse.com>
2018-11-16 15:26:32 +01:00
Sage Weil
d69e8d8de8 Merge PR #14092 into master
* refs/pull/14092/head:
	mgr/DaemonServer: fix session leak
	mon/MonClient: ignore new mon commands while stopping
	mgr/DeviceState: fix DeviceState initial refcount
	qa/suites: valgrind ceph-mgr too

Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-11-16 07:11:44 -06:00
Sage Weil
9989dddca3 Merge PR #25052 into master
* refs/pull/25052/head:
	mgr: lock pg_map too for osd_pool_stats and notify_osdmap
	mgr/DaemonServer: use with_osdmap_and_pgmap instead of nested calls
	mgr/ClusterState: add with_osdmap_and_pgmap

Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-11-16 07:11:15 -06:00
BI SHUN KE
e0b33fcd85 compressor: modify brotli compression plugin.
* add "common/ceph_context.h" header file to CompressionPluginBrotli.cc
* set the brotli v1.0.7 stable version for compressor plugin use.

Signed-off-by: BI SHUN KE <aionshun@livemail.tw>
2018-11-16 21:01:40 +08:00
Alfredo Deza
9c832fdb37
Merge pull request #25092 from jan--f/c-v-inventory-doc
doc: add ceph-volume inventory sections

Reviewed-by: Alfredo Deza <adeza@redhat.com>
2018-11-16 07:52:57 -05:00
Jason Dillaman
6c3640c477 rbd: switch to use new mirror peer attribute API methods
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-11-16 17:49:05 +05:30