Commit Graph

111166 Commits

Author SHA1 Message Date
Sebastian Wagner
a8c42f2722
Merge pull request #35022 from sebastian-philipp/cephadm-add-host-oserror
mgr/cephadm: Remove AsyncCompletion

Reviewed-by: Michael Fritch <mfritch@suse.com>
2020-05-14 08:44:13 +02:00
Kefu Chai
8e2feaac62
Merge pull request #34976 from changchengx/bufferlist_ut
test/bufferlist: fix and cleanups

Reviewed-by: Kefu Chai <kchai@redhat.com>
2020-05-14 11:34:37 +08:00
Kefu Chai
cbe39d53f1
Merge pull request #35056 from agayev/fix-do-make
do_cmake.sh: do not unnecessarily warn about debug build

Reviewed-by: Kefu Chai <kchai@redhat.com>
2020-05-14 11:24:15 +08:00
Yuri Weinstein
929a9e64bb
Merge pull request #35029 from yuriw/wip-yuriw-subsets-master
qa/tests: reduce number of jobs for rados to 309
2020-05-13 15:57:35 -07:00
Abutalib Aghayev
2f705a7850 do_cmake.sh: do not unnecessarily warn about debug build
do_cmake.sh forgets to check the arguments passed to it and ends up warning
about debug build even if a user specifies a release build.

Signed-off-by: Abutalib Aghayev <agayev@gmail.com>
2020-05-13 17:13:25 -04:00
Casey Bodley
f2a3cbf53a
Merge pull request #34969 from pritha-srivastava/wip-rgw-gc-fix
cls/rgw_gc: Fixing the iterator used to access urgent data map

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
2020-05-13 14:36:48 -04:00
Laura Paduano
ac0737555a
Merge pull request #34965 from Devp00l/wip-45433
mgr/dashboard: Always use fast angular unit tests

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
2020-05-13 16:36:48 +02:00
Nathan Cutler
a6adb000bd
Merge pull request #35041 from smithfarm/wip-tcmalloc-nit
doc: fix TCMalloc spelling

Reviewed-by: Zac Dover <zac.dover@gmail.com>
2020-05-13 15:53:10 +02:00
Laura Paduano
3252b19084
Merge pull request #33121 from tspmelo/wip-angular-9
mgr/dashboard: Update to Angular 9

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
2020-05-13 14:33:24 +02:00
Nathan Cutler
cde2bce385 doc: fix TCMalloc spelling
The google/tcmalloc page on GitHub refers to "TCMalloc", not
"tc_malloc".

Signed-off-by: Nathan Cutler <ncutler@suse.com>
2020-05-13 13:59:56 +02:00
Sebastian Wagner
47d737c517
Merge pull request #35010 from pcuzner/k8sevents-sanitise
mgr/k8sevents:sanitise kubernetes events

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
2020-05-13 12:38:05 +02:00
Lenz Grimmer
40f42476e8
Merge pull request #34972 from tspmelo/wip-fix-45445
Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
2020-05-13 11:22:17 +02:00
Sebastian Wagner
79d88ada6f
Merge pull request #33886 from sebastian-philipp/doc-mon-command-api
doc: Add a generated reference of all mon commands.

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Zac Dover <zac.dover@gmail.com>
2020-05-13 11:21:10 +02:00
Lenz Grimmer
a228afc92c
Merge pull request #35017 from tspmelo/wip-fix-fakefs
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2020-05-13 11:12:32 +02:00
Kefu Chai
b23de0c4b0
Merge pull request #34956 from tchaikov/wip-qa-tasks-cephfs-py3
qa/tasks/cephfs: remove sys.exc_clear() calls

Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2020-05-13 15:21:41 +08:00
Kefu Chai
2941bbd7bc
Merge pull request #34857 from tchaikov/wip-qa-tasks-no-filter
qa/tasks: use list comprehension for checking the length

Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2020-05-13 14:10:24 +08:00
Tiago Melo
1a6a8381a5 mgr/dashboard: Add dashboard node script
This file should be used to agregate all external scripts we need.
Multiple flags can be used in the same call.

Available flags:

--env: Generates angular environment files.

--pre: Modifies 'angular.json' to enable the build of custom locales using
       angular --localize.
       Languages can be defined using the environment variable LANGS,
       if no value is provided all languages will be build.
       Default language is always build, even if not provided.
       p.e.: 'LANGS="pt" node cd --pre', will build EN and PT.
       For backward compatibility we accept both long and short version of
       languages, p.e.: 'pt' and 'pt-BR'

--post: Restores 'angular.json' to its original.

Signed-off-by: Tiago Melo <tmelo@suse.com>
2020-05-12 23:39:43 +00:00
Tiago Melo
9e2e7eed3b mgr/dashboard: Remove ngcc warnings
Some packages are still not updated to be compatible with Angular 9
and can cause warnings.

I have whitelisted some that work well, so we don't see the warning every time.

Signed-off-by: Tiago Melo <tmelo@suse.com>
2020-05-12 23:39:43 +00:00
Tiago Melo
5b472e28eb mgr/dashboard: Update Node.js to latest LTS: v12.16.2
Signed-off-by: Tiago Melo <tmelo@suse.com>
2020-05-12 23:39:43 +00:00
Tiago Melo
4d47c1496c mgr/dashboard: Update npm dependencies
Signed-off-by: Tiago Melo <tmelo@suse.com>
2020-05-12 23:39:43 +00:00
Tiago Melo
9e69c1bfdd mgr/dashboard: Fix SCSS imports
Signed-off-by: Tiago Melo <tmelo@suse.com>
2020-05-12 23:39:43 +00:00
Tiago Melo
6050790f13 mgr/dashboard: Fix i18n configuration
Signed-off-by: Tiago Melo <tmelo@suse.com>
2020-05-12 23:39:43 +00:00
Tiago Melo
e65faa8bec mgr/dashboard: Few linting fixes
Signed-off-by: Tiago Melo <tmelo@suse.com>
2020-05-12 23:39:43 +00:00
Tiago Melo
3069600461 mgr/dashboard: Update Angular to v9
This was done with "ng update" cli command.

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

Signed-off-by: Tiago Melo <tmelo@suse.com>
2020-05-12 23:39:43 +00:00
Yuri Weinstein
116ac90ad2 qa/tests: reduce number of jobs for rados to 309
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
2020-05-12 15:40:01 -07:00
J. Eric Ivancich
898ea3e956
Merge pull request #35009 from ivancich/wip-orphan-pending-rel-notes
PendingReleaseNotes: rgw-orphan-list, deprecation, and fixes

Reviewed-by: Ali Maredia <amaredia@redhat.com>
2020-05-12 17:30:38 -04:00
Patrick Donnelly
01aea7f7e1
Merge PR #34978 into master
* refs/pull/34978/head:
	qa/tasks/cephfs/mount.py: always setup the NAT rules
	qa/tasks/cephfs/mount.py: fall back to use ip command to setup the bridge

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Rishabh Dave <ridave@redhat.com>
Reviewed-by: Ramana Raja <rraja@redhat.com>
2020-05-12 11:59:51 -07:00
Kefu Chai
3560552cbc
Merge pull request #35021 from tchaikov/wip-cephfs-shell-pep8
cephfs-shell: fix warnings reported by flake8

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Reviewed-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-05-13 00:41:25 +08:00
Sebastian Wagner
f7bf4d0c59 mgr/cephadm: Remove AsyncCompletion
Simplyfy things a lot by not using multiprocessing.pool.

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2020-05-12 16:16:39 +02:00
Kefu Chai
8a26c9055a cephfs-shell: fix warnings reported by flake8
Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-05-12 22:15:57 +08:00
Lenz Grimmer
6fd685ddf7
Merge pull request #34746 from tspmelo/wip-form-loading
Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
2020-05-12 15:39:23 +02:00
Sebastian Wagner
7540ab7ba0 mgr/cephadm: Proper error for OSErrors
Previsously, an OSError resulted in

    OSError: cannot send (already closed?)

which is not helpful.

Fixes: https://tracker.ceph.com/issues/45032
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2020-05-12 15:20:57 +02:00
Tiago Melo
fb9a236633 mgr/dashboard: Fix HomeTest setup
'setup_controllers' was being called outside of the fake fs mock,
so the tests would fail if there was no real dist folder.

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

Signed-off-by: Tiago Melo <tmelo@suse.com>
2020-05-12 10:29:02 +00:00
Sebastian Wagner
3156ed6f9b
Merge pull request #34888 from jmolmo/fix_command_parse
cephadm: Fix error parsing shell command arguments

Reviewed-by: Michael Fritch <mfritch@suse.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
2020-05-12 09:58:29 +02:00
Sebastian Wagner
dca41d97c7
Merge pull request #34945 from sebastian-philipp/cephadm-remove-async-map-resurrect
mgr/cephadm: replace async_map_completion with a simple wrapper (again)

Reviewed-by: Michael Fritch <mfritch@suse.com>
2020-05-12 09:54:25 +02:00
Sebastian Wagner
cf515323a5
Merge pull request #34970 from sebastian-philipp/bluestore-revert-sharding
Revert "os/bluestore: Enable sharding by default"

Reviewed-by: Adam Kupczyk <akupczyk@redhat.com>
2020-05-12 09:42:33 +02:00
Sebastian Wagner
08b54be437
Merge pull request #34977 from mgfritch/cephadm-prom-encoding
mgr/cephadm: ceph_default_alerts.yml can be utf-8 encoded

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
2020-05-12 09:38:00 +02:00
Changcheng Liu
681fed5e33 test/bufferlist: add space between string and time info
Signed-off-by: Changcheng Liu <changcheng.liu@aliyun.com>
2020-05-12 12:46:53 +08:00
Changcheng Liu
e2016cdd49 test/bufferlist: test move assignment operator not move constructor
"bufferlist move = std::move(bl)" exercises the "move constructor".
But the purpose of this test is to verify the functionality of
"move assignment operator".
So this PR construct "move" first, and then assign rvalue reference to it.

Signed-off-by: Changcheng Liu <changcheng.liu@aliyun.com>
2020-05-12 12:46:38 +08:00
Changcheng Liu
4a93e8ac60 test/bufferlist: correct the usage of string constructor
Signed-off-by: Changcheng Liu <changcheng.liu@aliyun.com>
2020-05-12 12:46:27 +08:00
Xiubo Li
2e6e3916a0 qa/tasks/cephfs/mount.py: always setup the NAT rules
If the last test failed just after the 'ceph-brx' bridge is created
but with setuping the NAT rules in iptables, so if we run the test
case again, it will just skip seting the 'ceph-brx' and the NAT rules.
Then deleting the NAT rules will get the errors like:

iptables: Bad rule (does a matching rule exist in that chain?).

Signed-off-by: Xiubo Li <xiubli@redhat.com>
2020-05-11 23:20:42 -04:00
Xiubo Li
f7b49f5bab qa/tasks/cephfs/mount.py: fall back to use ip command to setup the bridge
CentOS/RHEL8 have abandoned the bridge-utils package so the brctl
cmd is none avalible, and on Ubuntu 18.04 and 20.04 the nmcli is
buggy to setup the bridge. So this will fall back to use ip cmd
to setup the bridge stuff.

Fixes: https://tracker.ceph.com/issues/45459
Signed-off-by: Xiubo Li <xiubli@redhat.com>
2020-05-11 22:51:29 -04:00
Kefu Chai
dc973a7590
Merge pull request #34955 from tchaikov/wip-cbt-with-bluestore
scripts/run-cbt.sh: use bluestore for testing classic osd

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
2020-05-12 10:37:48 +08:00
Patrick Donnelly
8a0caa435e
Merge PR #34962 into master
* refs/pull/34962/head:
	vstart_runner.py: use tuple instead of set

Reviewed-by: Sidharth Anupkrishnan <sanupkri@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2020-05-11 19:35:18 -07:00
Paul Cuzner
48d1781ae2 mgr/k8sevents:sanitise kubernetes events
Kubernetes can generate events without a timestamp
or an event count. When this occurs the k8sevents 'ls'
command fails due to None type values. This patch
sanitises the event received before adding to the
internal data structures to account for these
issues.

Signed-off-by: Paul Cuzner <pcuzner@redhat.com>
2020-05-12 09:22:07 +12:00
J. Eric Ivancich
a813e08a3a PendingReleaseNotes: add missing quote character
Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
2020-05-11 15:18:08 -04:00
J. Eric Ivancich
fe253c9d5f PendingReleaseNotes: rgw-orphan-list and deprecated radosgw-admin orphans
Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
2020-05-11 15:16:36 -04:00
Sebastian Wagner
7ad11b5baf
Merge pull request #34938 from mgfritch/cephadm-systemd-stop-timeout
cephadm: extend systemd stop timeout

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
2020-05-11 16:49:02 +02:00
Lenz Grimmer
5357c219fd
Merge pull request #34905 from tspmelo/wip-mirroring
Reviewed-by: Alfonso Martínez <almartin@redhat.com>
2020-05-11 15:58:18 +02:00
Rishabh Dave
cb0bfc8fab vstart_runner.py: use tuple instead of set
Using python3 leads to an error that says
"TypeError: unhashable type: 'Raw'".

Fixes: https://tracker.ceph.com/issues/45446
Signed-off-by: Rishabh Dave <ridave@redhat.com>
2020-05-11 18:01:58 +05:30