Commit Graph

116736 Commits

Author SHA1 Message Date
Ernesto Puerta
9f9e52a321
Merge pull request #37993 from votdev/issue_48051_ngx_pipe_function
mgr/dashboard: Use pipe instead of calling function within template

Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
2020-11-12 14:06:15 +01:00
Matt Benjamin
eb484de915
Merge pull request #37770 from pritha-srivastava/wip-sts-47871
rgw/sts: fix for validating path in role arn in assume role api.
2020-11-12 07:58:27 -05:00
Volker Theile
946b14c580 mgr/dashboard: Use pipe instead of calling function within template
This PR introduces the 'ngx-pipe-function' package to call functions in templates.

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

Signed-off-by: Volker Theile <vtheile@suse.com>
2020-11-12 12:02:32 +01:00
Ernesto Puerta
a79d89521a
Merge pull request #37918 from dungdm93/avoiding-relative-paths
mgr/dashboards: avoiding relative paths '../../..'

Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: nizamial09 <nia@redhat.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2020-11-12 11:42:45 +01:00
Kefu Chai
4dc60e9ece
Merge pull request #37922 from mgfritch/project-kubic
cephadm: install podman from the Kubic project

Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2020-11-12 10:40:24 +08:00
Kefu Chai
a9b94c5d89
Merge pull request #38018 from tchaikov/wip-cmake-python
COPYING: note cmake/modules/FindPython* license and copyright

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2020-11-12 09:54:54 +08:00
Kefu Chai
167d8f5d90
Merge pull request #38028 from tchaikov/wip-crimson-maybe-unused
crimson/os: mark unused variable [[maybe_unused]]

Reviewed-by: Samuel Just <sjust@redhat.com>
2020-11-12 09:53:47 +08:00
Kefu Chai
dfe9fce746
Merge pull request #35865 from tchaikov/wip-crimson-recovery-qa
qa/suites: add crimson-rados suite

Reviewed-by: Samuel Just <sjust@redhat.com>
2020-11-12 09:52:33 +08:00
David Zafman
3931b21ae8
Merge pull request #36759 from dzafman/wip-46264
mon: check for mismatched daemon versions

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
2020-11-11 17:09:28 -08:00
David Zafman
870bde04a5 test: Changes based on code review comments
Signed-off-by: David Zafman <dzafman@redhat.com>
2020-11-11 15:31:26 -08:00
David Zafman
9e469f5b31 doc: Apply suggestions from code review
Co-authored-by: Neha Ojha <nehaojha88@gmail.com>
Co-authored-by: Josh Durgin <jdurgin@redhat.com>

Signed-off-by: David Zafman <dzafman@redhat.com>
2020-11-11 15:31:26 -08:00
David Zafman
93373746f5 osd test: Delay reporting until mon_warn_older_version_delay has passed
Move release notes description to 16.0.0 and update
Update documentation

Signed-off-by: David Zafman <dzafman@redhat.com>
2020-11-11 15:10:11 -08:00
David Zafman
5f8ad34f4f osd: Temporary fix for alienstore which doesn't support asok commands yet
Signed-off-by: David Zafman <dzafman@redhat.com>
2020-11-11 15:10:11 -08:00
David Zafman
18101c324a doc: Document health check DAEMON_OLD_VERSION
Signed-off-by: David Zafman <dzafman@redhat.com>
2020-11-11 15:10:11 -08:00
David Zafman
8b435668b0 Update Release notes
Signed-off-by: David Zafman <dzafman@redhat.com>
2020-11-11 15:10:11 -08:00
David Zafman
9d988c3dbc test: Simple test case for version health warning
Signed-off-by: David Zafman <dzafman@redhat.com>
2020-11-11 15:10:11 -08:00
David Zafman
e5b1ae5554 test: Use a config variable debug_version_for_testing
Signed-off-by: David Zafman <dzafman@redhat.com>
2020-11-11 15:10:11 -08:00
David Zafman
c2a3a2270d mon: Add mds version collector
Signed-off-by: David Zafman <dzafman@redhat.com>
2020-11-11 15:10:11 -08:00
David Zafman
bda3eaea56 mon: Add mgr version collector
Signed-off-by: David Zafman <dzafman@redhat.com>
2020-11-11 15:10:11 -08:00
David Zafman
4b8b26d640 mon: Add osd version collector
Signed-off-by: David Zafman <dzafman@redhat.com>
2020-11-11 15:10:11 -08:00
Tyler
5e463b84dc mon: Verify version consistency across daemons
Add a function called check_daemon_versions()
Made minor changes based on pull request comments
Changed the way versions are checked along with some other minor modifications
Made minor modification to the error message
Modifications to include the hostname in the error message

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

Signed-off-by: Tyler <tyler_sheehan@student.uml.edu>

Remove time since health errors aren't preserved if not set every time
Rename health error to DAEMON_OLD_VERSION
Reoganize code so that we can get versions from other daemon types
Change to map of version (key), a list of daemons (value)
Get actual daemon names from get_versions() requests
Fix message output based on how many daemons and how many versions
Add a config to be able to turn off this features
Give HEALTH_ERR if more than one older version exists
Fix minor indentation problem with health detail

Signed-off-by: David Zafman <dzafman@redhat.com>
2020-11-11 15:10:11 -08:00
Patrick Donnelly
d2769ff180
Merge PR #37978 into master
* refs/pull/37978/head:
	qa: fix broken links in multimds suite

Reviewed-by: Jeff Layton <jlayton@redhat.com>
2020-11-11 11:07:27 -08:00
Michael Fritch
769c20a457
Merge pull request #37235 from adk3798/4mon
mgr/cephadm: only deploy 3 mons by default when there are 4 hosts

Reviewed-by: Joshua Schmid <jschmid@suse.de>
Reviewed-by: Juan Miguel Olmo <jolmomar@redhat.com>
Reviewed-by: Michael Fritch <mfritch@suse.com>
2020-11-11 09:09:30 -07:00
Kefu Chai
5f1ed9a780 crimson/os: mark unused variable [[maybe_unused]]
silences the warning when building with -DNDEBUG:

segment_cleaner.h:399:10: warning: unused variable ‘ret’ [-Wunused-variable]
  399 |     auto ret = space_tracker->allocate(
      |          ^~~

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-11-11 23:23:20 +08:00
Jason Dillaman
016486890e
Merge pull request #37916 from orozery/librbd-crypto-wait-for-copyup
librbd: wait for copyup in unaligned crypto write

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2020-11-11 09:53:29 -05:00
Kefu Chai
1d5a329357
Merge pull request #38017 from YanfeiXu/yann-dev
cmake: add support for python3.9

Reviewed-by: Kefu Chai <kchai@redhat.com>
2020-11-11 19:57:08 +08:00
Kefu Chai
1130bf32cf COPYING: note cmake/modules/FindPython* license and copyright
these files were copied from CMake project for better python3 support

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-11-11 16:12:04 +08:00
Kefu Chai
966a4e01e4
Merge pull request #38021 from tchaikov/wip-mgr-liburl3
pybind/mgr: add urllib3==1.25.11 to mgr/requirements.txt

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
2020-11-11 16:05:12 +08:00
Kefu Chai
697f8c6001 pybind/mgr: add urllib3==1.25.11 to mgr/requirements.txt
in hope to address the failure of

ERROR: Cannot install -r requirements.txt (line 3) and kubernetes because these package versions have conflicting dependencies.

The conflict is caused by:
    kubernetes 12.0.0 depends on urllib3>=1.24.2
    requests 2.24.0 depends on urllib3!=1.25.0, !=1.25.1, <1.26 and >=1.21.1

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-11-11 13:12:09 +08:00
Yanfei Xu
8f0a3fa1ff cmake: add support for python3.9
add support for python3.9.

Signed-off-by: Yanfei Xu <yanfei.xu@windriver.com>
2020-11-11 10:43:37 +08:00
David Zafman
9929588ce3
Merge pull request #37775 from dzafman/wip-upgrade-mimic-fix
test: Remove mimic-x* upgrade testing in master

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Yuri Weinstein <yweinste@redhat.com>
2020-11-10 16:27:43 -08:00
Kefu Chai
f7d6935f9d
Merge pull request #38006 from xxhdx1985126/wip-crimson-recovery-bug-fix2
crimson/osd: make load_obc_for_recovery pop up all errors

Reviewed-by: Kefu Chai <kchai@redhat.com>
2020-11-10 19:17:39 +08:00
Đặng Minh Dũng
85402d6543
mgr/dashboard: add tslint rule to prevent import with more than 1 parent e.g '../../foobar'
Signed-off-by: Đặng Minh Dũng <dungdm93@live.com>
2020-11-10 18:12:05 +07:00
Đặng Minh Dũng
bdf866e436
mgr/dashboard: npm run fix
Signed-off-by: Đặng Minh Dũng <dungdm93@live.com>
2020-11-10 18:12:05 +07:00
Đặng Minh Dũng
26ae757097
mgr/dashboard: reconfig tslint import match rule for local module
Signed-off-by: Đặng Minh Dũng <dungdm93@live.com>
2020-11-10 18:12:05 +07:00
Đặng Minh Dũng
4ad1cc01dc
mgr/dashboard: refactor imports
Signed-off-by: Đặng Minh Dũng <dungdm93@live.com>
2020-11-10 18:12:05 +07:00
Đặng Minh Dũng
e3c8392bdb
mgr/dashboard: move "tsconfig.app.json" to <root> folder
Signed-off-by: Đặng Minh Dũng <dungdm93@live.com>
2020-11-10 18:12:05 +07:00
Đặng Minh Dũng
211ae10315
mgr/dasbhoard: add shortcut
Signed-off-by: Đặng Minh Dũng <dungdm93@live.com>
2020-11-10 18:12:05 +07:00
Xuehan Xu
534108c5f4 crimson/osd: make load_obc_for_recovery pop up all errors
Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
2020-11-10 18:33:01 +08:00
Kefu Chai
d48c6c4ab9
Merge pull request #37943 from xxhdx1985126/wip-crimson-recovery-bug-fix
crimson: recovery bug fix

Reviewed-by: Kefu Chai <kchai@redhat.com>
2020-11-10 18:07:16 +08:00
Kefu Chai
33da4a5a05
Merge pull request #37997 from rhcs-dashboard/48155-fix-api-test-full-health
mgr/dashboard: fix API test: test_full_health

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
2020-11-10 17:53:50 +08:00
Alfonso Martínez
6add853fe4 mgr/dashboard: fix API test: test_full_health
Fixes: https://tracker.ceph.com/issues/48155
Signed-off-by: Alfonso Martínez <almartin@redhat.com>
2020-11-10 09:29:45 +01:00
Jan Fajerski
e9713a085a Merge PR #37942 into master
* refs/pull/37942/head:
	ceph-volume: fix lvm help test
	ceph-volume: add a unit tests to lvm batch
	ceph-volume: fix lvm batch auto with full SSDs

Reviewed-by: Guillaume Abrioux <gabrioux@redhat.com>
Reviewed-by: Jan Fajerski <jfajerski@suse.com>
Reviewed-by: Rishabh Dave <ridave@redhat.com>
2020-11-10 08:30:55 +01:00
Xuehan Xu
1510eb0fdd crimson/osd: make non-first push ops' version to be the version of the recovering object
An object may take more than one push op to recover, those later push ops also need to
set their version accordingly

Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
2020-11-10 15:20:48 +08:00
Xuehan Xu
cf07974c89 crimson/osd: make PglogBasedRecovery op take recovering objs triggered elsewhere into account
PGRecovery::start_recovery_ops() should wait for all inflight recovery ops, whether they are
started by BackgroundRecovery or not, otherwise there may be circumstances in which BackgroundRecovery
keep recursively invoking its do_recovery when start_recovery_ops returns recovery done while there are
still missing objects.

Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
2020-11-10 15:18:01 +08:00
David Zafman
ada78607e6
Merge pull request #37941 from dzafman/wip-48077
Allowing scrub configs begin_day/end_day to include 7 and begin_hour/end_hour to include 24 is confusing

Reviewed-by: Neha Ojha <nojha@redhat.com>
2020-11-09 15:12:34 -08:00
Josh Durgin
e90f0fb70f
Merge pull request #37539 from zdover23/wip-doc-ceph-df-2020-oct
doc/rados: ceph df output update

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2020-11-09 15:09:45 -08:00
David Zafman
d7abac3ea9 test: unittest_osdscrub: Remove invalid hour test and add day of week testing
Signed-off-by: David Zafman <dzafman@redhat.com>
2020-11-09 22:47:00 +00:00
David Zafman
d3cc647583 osd: Eliminate day of weeek 7 and hour 24
Add test case for permitted hours to make sure scrub doesn't start
Remove permitted hours in extended sleep test

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

Signed-off-by: David Zafman <dzafman@redhat.com>
2020-11-09 22:47:00 +00:00
Zac Dover
f17b48f72e doc/rados: ceph df output update
This commit updates the "ceph df" output
so that it is current as of October 2020.
-Add correctly formatted `ceph df` output.
-Add explanation of "DIRTY" column.
-(DATA) remains to be defined (1 instance)
-(OMAP) remains to be defined (1 instance)
-USED remains to be defined (1 instance)
-Update prompts in "Checking OSD Status"

Fixes: https://tracker.ceph.com/issues/47523
Signed-off-by: Zac Dover <zac.dover@gmail.com>
2020-11-10 08:01:02 +10:00