Commit Graph

92293 Commits

Author SHA1 Message Date
Alfredo Deza
eaf8e40980
Merge pull request #25098 from ceph/rm-27062
ceph-volume: reject devices that have existing GPT headers

Reviewed-by: Alfredo Deza <adeza@redhat.com>
2018-11-14 13:31:18 -05:00
Casey Bodley
1e8273ffb0 rgw: log http status with op prefix if available
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2018-11-14 13:30:23 -05:00
Andrew Schoen
74f25e5b81
Merge pull request #25093 from alfredodeza/wip-bz1644828
ceph-volume: remove LVs when using zap --destroy

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
2018-11-14 11:00:34 -06:00
Kefu Chai
0a517ec0ac os/tests: silence -Wsign-compare warning
silence warning like

In file included from
/home/jenkins-build/build/workspace/ceph-pull-requests-arm64/src/test/objectstore/store_test.cc:25:0:
/home/jenkins-build/build/workspace/ceph-pull-requests-arm64/src/googletest/googletest/include/gtest/gtest.h:
In instantiation of 'testing::AssertionResult
testing::internal::CmpHelperEQ(const char*, const char*, const T1&,
const T2&) [with T1 = int; T2 = long unsigned int]':

Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-11-15 00:59:02 +08:00
Andrew Schoen
0cb95ace88 ceph-volume: update tests after removing the LVPath arg validator
Signed-off-by: Andrew Schoen <aschoen@redhat.com>

Resolves: rm#27062
2018-11-14 10:36:30 -06:00
Andrew Schoen
fdf7f3c575 ceph-volume: return lvs as vg/lv from ValidDevice if as_string is True
All code in prepare and activate expect lvs to be in that format.
Eventually we can refactor all that to use the Device class as well.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>

Resolves: rm#27062
2018-11-14 10:36:30 -06:00
Andrew Schoen
cc0317efac ceph-volume: adds lv_name property to Device class
Signed-off-by: Andrew Schoen <aschoen@redhat.com>

Resolves: rm#27062
2018-11-14 10:36:30 -06:00
Andrew Schoen
d6a5a7606c ceph-volume: combine the LVPath arg validator with ValidDevice
This combines the two arg validators and makes both batch and
prepare/active both use ValidDevice.

This will also allow us to use lvs with a full path, like
/dev/vg/lv instead of always enforcing vg/lv.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>

Resolves: rm#27062
2018-11-14 10:36:29 -06:00
Andrew Schoen
568a0ce5be ceph-volume: adds has_gpt_headers property to Device class
Signed-off-by: Andrew Schoen <aschoen@redhat.com>

Resolves: rm#27062
2018-11-14 10:36:29 -06:00
Andrew Schoen
3d86d2dda9 ceph-volume: add PTTYPE to blkid parser
Signed-off-by: Andrew Schoen <aschoen@redhat.com>

Resolves: rm#27062
2018-11-14 10:36:29 -06:00
Jos Collin
6ea924df4b
Merge pull request #25094 from CharlotteRose/wip-fix-boxes
doc: Fixed the paragraph and boxes

Reviewed-by: Alfredo Deza <adeza@redhat.com>
Reviewed-by: Jos Collin <jcollin@redhat.com>
2018-11-14 21:53:28 +05:30
Lenz Grimmer
4e5559f26c
Merge pull request #24789 from Ranjitha-G/dashboard-test-erasure
mgr/dashboard: Add unit test case for controller/erasure_code_profile.py

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Patrick Nawracay <pnawracay@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2018-11-14 16:46:34 +01:00
Scoots Hamilton
eec2310e9d doc: Fixed the paragraph and boxes.
Signed-off-by: Scoots Hamilton <scoots@redhat.com>
2018-11-14 10:27:48 -05:00
Sebastian Krah
f2e2e18847 mgr/dashboard: Add language selector
Add the language selector to the navigation.

Signed-off-by: Sebastian Krah <skrah@suse.com>
Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-11-14 15:18:31 +00:00
Sebastian Krah
fa0cf9bf5f mgr/dashboard: Add i18n providers
Prepare the dashboard to support i18n

Add ngx-translate polyfill to extract translations from the typescript files.
Add a npm script to extract marked strings to a translation template.

Signed-off-by: Sebastian Krah <skrah@suse.com>
Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-11-14 15:18:31 +00:00
Lenz Grimmer
acde3a4d4c
Merge pull request #24788 from Ranjitha-G/dashboard-hacking-doc
mgr/dashboard: Fix some setup steps in HACKING.rst

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
2018-11-14 13:44:19 +01:00
mooncake
67a44af1a5 doc: Fix some typos
Signed-off-by: mooncake <xcoder@tenxcloud.com>
2018-11-14 19:49:13 +08:00
Josh Durgin
bc2c80f437
Merge pull request #25080 from smithfarm/wip-37089
tests: make ceph-admin-commands.sh log what it does

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2018-11-14 15:47:52 +05:30
Jason Dillaman
b14751c18e
Merge pull request #25083 from iridescent-rsy/fix-typo
rbd: fix some typos

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-11-14 12:02:58 +05:30
Shiyang Ruan
1857217e8a rbd_mirror: fix a typo.
Signed-off-by: Shiyang Ruan <ruansy.fnst@cn.fujitsu.com>
2018-11-14 11:42:11 +08:00
Shiyang Ruan
424d3d8b8a rbd_mirror: restore the header annotation.
Signed-off-by: Shiyang Ruan <ruansy.fnst@cn.fujitsu.com>
2018-11-14 11:42:11 +08:00
Shiyang Ruan
9a6f2608db rbd: fix typos.
Signed-off-by: Shiyang Ruan <ruansy.fnst@cn.fujitsu.com>
2018-11-14 11:23:56 +08:00
Neha Ojha
970184cc57 doc/releases/mimic.rst: make note of 13.2.2 upgrade bug
Signed-off-by: Neha Ojha <nojha@redhat.com>
2018-11-13 15:29:42 -08:00
Alfredo Deza
27d0a915d4 ceph-volume tests update tests to handle new SystemExit exceptions in main
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-11-13 17:07:01 -05:00
Alfredo Deza
9527cffbe3 ceph-volume tests.api verify that Volume object can be removed
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-11-13 17:07:01 -05:00
Alfredo Deza
e7daa71604 ceph-volume api.lvm allow passing a Volume object to remove_lv
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-11-13 17:07:01 -05:00
Alfredo Deza
4656bf0e33 ceph-volume tests.functional.lvm test full removal of LVs
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-11-13 17:07:00 -05:00
Alfredo Deza
f695d1716e ceph-volume main raise sys.exit to prevent garbage in help
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-11-13 17:06:56 -05:00
Alfredo Deza
677cbbb059 ceph-volume lvm.zap remove vgs|lvs when --destroy is used
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-11-13 17:06:48 -05:00
Patrick Donnelly
0aa5566c81
Merge PR #24490 into master
* refs/pull/24490/head:
	mds: flush dirty dirfrags that weren't logged when deactivating mds
	mds: use MDlog::trim_all() to trim log when deactivating mds
	mds: don't cap log when there are replicated objects

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2018-11-13 13:03:02 -08:00
Mark Nelson
9e2d1a52ab doc/rados: Add bluestore memory autotuning docs.
Signed-off-by: Mark Nelson <mnelson@redhat.com>
2018-11-13 13:19:24 -06:00
Nathan Cutler
0185abfeb4 tests: make ceph-admin-commands.sh log what it does
Fixes: http://tracker.ceph.com/issues/37089
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2018-11-13 19:46:24 +01:00
Casey Bodley
d444c6dc9f
Merge pull request #25057 from joke-lee/wip-ceph-dencoder-support
ceph-dencoder: add RGWRealm and RGWPeriod  support.

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2018-11-13 08:56:26 -05:00
Kefu Chai
e0e977f4a0
Merge pull request #25071 from tchaikov/wip-install-dep-for-python-saml
install-deps.sh: install libtool-ltdl-devel for building python-saml

Reviewed-by: Ricardo Marques <rimarques@suse.com>
2018-11-13 18:17:54 +08:00
yuliyang
17378991c0 osd: add --dump-journal option in ceph-osd help info
Signed-off-by: yuliyang <yuliyang@cmss.chinamobile.com>
2018-11-13 17:38:46 +08:00
Kefu Chai
c8a89df744 install-deps.sh: install libtool-ltdl-devel for building python-saml
python-saml depends on dm.xmlsec.binding. which links against ltdl. so
without libtool-ltdl-devel, we will have

/opt/rh/devtoolset-7/root/usr/libexec/gcc/aarch64-redhat-linux/7/ld:
cannot find -lltdl

Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-11-13 15:28:45 +08:00
Dongsheng Yang
c13d8835fc Throttle: complete all m_blockers when we set average or max to 0
When we change the average or max to 0, we need to complete all m_blockers
first.

Fixes: http://tracker.ceph.com/issues/36715
Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
2018-11-13 01:45:43 -05:00
runsisi
3899bee9f5 librbd: fix missing unblock_writes if shrink is not allowed
Fixes: http://tracker.ceph.com/issues/36778

Signed-off-by: runsisi <luo.runbing@zte.com.cn>
2018-11-13 12:13:08 +08:00
yuliyang
6fb5e7b243 ceph-dencoder: add RGWRealm support.
Signed-off-by: yuliyang <yuliyang@cmss.chinamobile.com>
2018-11-13 08:24:24 +08:00
Kefu Chai
c89e0715cb
Merge pull request #25037 from tchaikov/wip-qa-upgrade
qa: add librados3 to exclude_packages for ugprade tests

Reviewed-by: Yuri Weinstein <yweinste@redhat.com>
2018-11-13 06:38:21 +08:00
Alfredo Deza
debfa76540
Merge pull request #25063 from alfredodeza/wip-rm36768
ceph-volume: patch Device when testing 

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
2018-11-12 14:59:14 -05:00
Alfredo Deza
82d96f8764 ceph-volume tests patch Device() by splitting parametrized method
This was causing failures on systems where there is no LVM or where the
device names don't match. Patching is always recommended to avoid
conflicts with the system testing

Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-11-12 14:04:23 -05:00
Alfredo Deza
7ee7a59910 ceph-volume tests inventory should patch before using .get_devices()
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-11-12 14:04:23 -05:00
Kefu Chai
b4aa2af446
Merge pull request #25039 from tchaikov/wip-install-setuptools
install-deps: install setuptools before upgrading virtualenv

Reviewed-by: Alfredo Deza <adeza@redhat.com>
2018-11-12 20:05:29 +08:00
alfonsomthd
4047f091e7 mgr/dashboard: add pytest plugin: faulthandler
- Plugin for pytest that automatically enables the faulthandler module during tests.
- Very useful when you run tests and face segmentation faults.

Signed-off-by: Alfonso Martínez <almartin@redhat.com>
2018-11-12 11:51:02 +01:00
Sage Weil
aadb68cc84 Merge PR #25051 into master
* refs/pull/25051/head:
	doc/governance: reference the new Ceph Foundation

Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
2018-11-12 02:50:23 -06:00
Sage Weil
d578d4af1b doc/governance: reference the new Ceph Foundation
Signed-off-by: Sage Weil <sage@redhat.com>
2018-11-12 01:32:45 -06:00
Jerry Lee
b09aefc2d6 ceph-mgr: hold lock while accessing the request list and submitting request
The request creation can fire up the notify event early and it can cause
a race condition where the actual request was not yet added to the
self.requests list which makes the submit_request() function waits
forever without accepting new requests.

https://marc.info/?l=ceph-devel&m=154104291714160&w=2

Fixes: https://tracker.ceph.com/issues/36764

Signed-off-by: Jerry Lee <leisurelysw24@gmail.com>
2018-11-12 14:27:53 +08:00
Kefu Chai
95386752ab install-deps: install setuptools before upgrading virtualenv
this should address the failures when running install-deps.sh, like

Downloading/unpacking virtualenv
  Running setup.py egg_info for package virtualenv
    /usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown
distribution option: 'python_requires'
      warnings.warn(msg)
    error in virtualenv setup command: 'extras_require' must be a
dictionary whose values are strings or lists of strings containing valid
project/version requirement specifiers.
    Complete output from command python setup.py egg_info:
    /usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown
distribution option: 'python_requires'

  warnings.warn(msg)

error in virtualenv setup command: 'extras_require' must be a dictionary
whose values are strings or lists of strings containing valid
project/version requirement specifiers.

this only happens on very old virtualenv shipped with RHEL7.4

Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-11-10 13:47:13 -08:00
Sage Weil
3b4970053c Merge PR #25033 into master
* refs/pull/25033/head:
	doc/governance: update CLT membership

Reviewed-by: Sebastian Wagner <swagner@suse.com>
2018-11-10 14:07:11 -06:00