]>
git.apps.os.sepia.ceph.com Git - ceph.git/log
Yuri Weinstein [Fri, 14 May 2021 17:45:12 +0000 (10:45 -0700)]
Merge pull request #40919 from neha-ojha/wip-50405-octopus
octopus: common/options/global.yaml.in: increase default value of bluestore_cache_trim_max_skip_pinned
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Yuri Weinstein [Fri, 14 May 2021 17:44:28 +0000 (10:44 -0700)]
Merge pull request #40296 from xijiacun/octopus
octopus: rgw: Use correct bucket info when put or get large object with swift
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Yuri Weinstein [Fri, 14 May 2021 17:43:41 +0000 (10:43 -0700)]
Merge pull request #39978 from singuliere/wip-49053-octopus
octopus: common/mempool: Improve mempool shard selection
Reviewed-by: Adam Kupczyk <akupczyk@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
Sage Weil [Fri, 14 May 2021 14:17:13 +0000 (10:17 -0400)]
Merge remote-tracking branch 'origin/octopus-saved' into octopus
Jenkins Build Slave User [Thu, 13 May 2021 17:26:12 +0000 (17:26 +0000)]
15.2.12
Ernesto Puerta [Thu, 13 May 2021 15:43:56 +0000 (17:43 +0200)]
mgr/dashboard: fix cookie injection issue
Fixes: CVE-2021-3509
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
(cherry picked from commit
b39922818bc57cde1b016e9ad41908b18063b93b )
Conflicts:
src/pybind/mgr/dashboard/controllers/docs.py
- Remove allow_empty_body and _with_token method
Avan Thakkar [Fri, 7 May 2021 09:38:11 +0000 (15:08 +0530)]
mgr/dashboard: fix base-href: revert it to previous approach
Fixes: https://tracker.ceph.com/issues/50684
Signed-off-by: Avan Thakkar <athakkar@redhat.com>
(cherry picked from commit
b6f92922f5c80223fd288d98ce85405a650c0135 )
Conflicts:
src/pybind/mgr/dashboard/frontend/src/app/app.module.ts
- Adopt the changes coming from master.
(cherry picked from commit
fab19ddf55c1e3f1e61745a676785ff0309f11f2 )
Sage Weil [Thu, 13 May 2021 14:38:40 +0000 (09:38 -0500)]
Merge pull request #40737 from Daniel-Pivonka/octopus-backport-40477
octopus: cephadm: fix failure when using --apply-spec and --shh-user
Ernesto Puerta [Thu, 13 May 2021 09:37:30 +0000 (11:37 +0200)]
Merge pull request #40657 from badone/wip-octopus-fix-pytest-double-requirement
octopus: mgr/dashboard: Remove redundant pytest requirement
Reviewed-by: Waad Alkhoury <walkhour@redhat.com>
Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Fri, 16 Oct 2020 17:10:24 +0000 (01:10 +0800)]
pybind/mgr/dashboard: use setUpClass for initializeing class
instead of relying on __init__(), use setUpClass() to initialize class
for testing. it turns out in pytest > 4, __init__() is called for the
test class but the attributes of the instantiated class is in turn overriden.
so we have to use setUpClass to do this job.
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit
71979e9b46e21dc3d3cfc6f06f4a84c9b4c7ce78 )
Conflicts:
src/pybind/mgr/dashboard/tests/test_api_auditing.py:
Differences in import lines
src/pybind/mgr/dashboard/tests/test_tools.py:
Differences in import lines
Kefu Chai [Thu, 8 Oct 2020 07:13:36 +0000 (15:13 +0800)]
tools/setup-virtualenv.sh: pass --use-feature=2020-resolver to pip
as long as pip supports this option, pass it to `pip install`
to silence warnings and errors like:
ERROR: After October 2020 you may experience errors when installing or updating packages. This is because pip will change the way that it resolves dependency conflicts.
We recommend you use --use-feature=2020-resolver to test your packages with the new resolver before it becomes the default.
autopep8 1.5.4 requires pycodestyle>=2.6.0, but you'll have pycodestyle 2.5.0 which is incompatible.
pytest-cov 2.10.1 requires pytest>=4.6, but you'll have pytest 3.10.1 which is incompatible.
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit
fa9e2bfd4b3648f08ed3a88ce737d432ab97cce1 )
Kefu Chai [Thu, 1 Apr 2021 03:05:19 +0000 (11:05 +0800)]
pybind/mgr/dashboard: move pytest into requirements.txt
before this change, pytest is included by both requirements-lint.txt
and requirements-test.txt. this fails the install-deps.sh script when
collecting the python package wheels:
ERROR: Double requirement given: pytest<4 (from -r requirements-test.txt (line 2)) (already in pytest (from -r requirements-lint.txt (line 12)), name='pytest')
also, since pytest is unconditionally imported in the source, for instance,
in pybind/mgr/dashboard/tests/test_ceph_service.py
it would be more straightforward just to include it in requirements.txt.
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit
eab195566d54122f826debd8efb7f36db78fa4e1 )
Conflicts:
src/pybind/mgr/dashboard/requirements-lint.txt: Additional
package lines
src/pybind/mgr/dashboard/requirements-test.txt: No mock line
Kefu Chai [Tue, 13 Oct 2020 08:09:42 +0000 (16:09 +0800)]
pybind/mgr/dashboard: s/pytest<4/pytest/
to address following failure:
The user requested pytest<4
pytest-cov 2.10.1 depends on pytest>=4.6
when building the target of "mgr-dashboard-virtualenv"
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit
128778f25eb64cd334e062d627abdb23e0ef0e49 )
Conflicts:
src/pybind/mgr/dashboard/requirements-test.txt: No mock line
Yuri Weinstein [Wed, 12 May 2021 17:12:29 +0000 (10:12 -0700)]
Merge pull request #41228 from ceph/wip-yuriw-octopus-p2p
octopus: qa/tests: advanced octopus initial version to 15.2.10
Reviewed-by: Neha Ojha <nojha@redhat.com>
Yuri Weinstein [Wed, 12 May 2021 15:39:57 +0000 (08:39 -0700)]
qa/tests: resolved comments
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
Yuri Weinstein [Wed, 12 May 2021 15:18:46 +0000 (08:18 -0700)]
Merge pull request #40783 from smithfarm/wip-50286-octopus
octopus: mon: check mdsmap is resizeable before promoting standby-replay
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Yuri Weinstein [Wed, 12 May 2021 15:18:20 +0000 (08:18 -0700)]
Merge pull request #40779 from smithfarm/wip-50181-octopus
octopus: cephfs: client: only check pool permissions for regular files
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Yuri Weinstein [Wed, 12 May 2021 15:17:56 +0000 (08:17 -0700)]
Merge pull request #40778 from smithfarm/wip-50027-octopus
octopus: client: fire the finish_cap_snap() after buffer being flushed
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Yuri Weinstein [Wed, 12 May 2021 15:17:33 +0000 (08:17 -0700)]
Merge pull request #40777 from smithfarm/wip-49950-octopus
octopus: doc/cephfs/nfs: Add note about cephadm NFS-Ganesha daemon port
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Yuri Weinstein [Wed, 12 May 2021 15:17:03 +0000 (08:17 -0700)]
Merge pull request #40776 from smithfarm/wip-49934-octopus
octopus: test: reduce number of threads to 32 in LibCephFS.ShutdownRace
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Yuri Weinstein [Wed, 12 May 2021 15:16:36 +0000 (08:16 -0700)]
Merge pull request #40775 from smithfarm/wip-49752-octopus
octopus: doc: snap-schedule documentation
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Yuri Weinstein [Wed, 12 May 2021 15:16:09 +0000 (08:16 -0700)]
Merge pull request #40774 from smithfarm/wip-49851-octopus
octopus: mds: fix race of fetching large dirfrag
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Yuri Weinstein [Wed, 12 May 2021 15:15:43 +0000 (08:15 -0700)]
Merge pull request #40773 from smithfarm/wip-49611-octopus
octopus: qa: add sleep for blocklisting to take effect
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Yuri Weinstein [Wed, 12 May 2021 15:15:16 +0000 (08:15 -0700)]
Merge pull request #40772 from smithfarm/wip-49560-octopus
octopus: qa: delete all fs during tearDown
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Yuri Weinstein [Wed, 12 May 2021 15:14:47 +0000 (08:14 -0700)]
Merge pull request #40771 from smithfarm/wip-49518-octopus
octopus: cephfs: client: wake up the front pos waiter
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Yuri Weinstein [Wed, 12 May 2021 15:13:32 +0000 (08:13 -0700)]
Merge pull request #40770 from smithfarm/wip-49515-octopus
octopus: pybind/cephfs: DT_REG and DT_LNK values are wrong
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Yuri Weinstein [Wed, 12 May 2021 15:13:05 +0000 (08:13 -0700)]
Merge pull request #40765 from smithfarm/wip-49347-octopus
octopus: qa: for the latest kclient it will also return EIO
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Yuri Weinstein [Wed, 12 May 2021 15:12:37 +0000 (08:12 -0700)]
Merge pull request #40764 from smithfarm/wip-48878-octopus
octopus: mds: update defaults for recall configs
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Yuri Weinstein [Wed, 12 May 2021 15:12:07 +0000 (08:12 -0700)]
Merge pull request #40763 from smithfarm/wip-48836-octopus
octopus: mount.ceph: collect v2 addresses for non-legacy ms_mode options
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
Yuri Weinstein [Wed, 12 May 2021 15:11:37 +0000 (08:11 -0700)]
Merge pull request #40762 from smithfarm/wip-45853-octopus
octopus: tools/cephfs: don't bind to public_addr
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Yuri Weinstein [Wed, 12 May 2021 15:11:04 +0000 (08:11 -0700)]
Merge pull request #40268 from kotreshhr/wip-49904-octopus
octopus: mgr/volumes: Retain suid guid bits in clone
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Ernesto Puerta [Wed, 12 May 2021 11:16:44 +0000 (13:16 +0200)]
Merge pull request #41057 from rhcs-dashboard/wip-50475-octopus
octopus: mgr/dashboard: Remove username and password from request body
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
Patrick Donnelly [Tue, 11 May 2021 19:51:15 +0000 (12:51 -0700)]
Merge PR #40766 into octopus
* refs/pull/40766/head:
doc/cephfs/nfs: Add rook pod restart note, export and log block example
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Varsha Rao <varao@redhat.com>
Casey Bodley [Tue, 4 May 2021 12:32:58 +0000 (08:32 -0400)]
rgw: sanitize \r in s3 CORSConfiguration's ExposeHeader
follows up on
1524d3c0c5cb11775313ea1e2bb36a93257947f2 to escape \r as
well
Fixes: CVE-2021-3524
Reported-by: Sergey Bobrov <Sergey.Bobrov@kaspersky.com>
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit
87806f48e7a1b8891eb90711f1cedd26f1119aac )
Felix Hüttner [Thu, 6 May 2021 16:18:00 +0000 (12:18 -0400)]
rgw: RGWSwiftWebsiteHandler::is_web_dir checks empty subdir_name
checking for empty name avoids later assertion in RGWObjectCtx::set_atomic
Fixes: CVE-2021-3531
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit
7196a469b4470f3c8628489df9a41ec8b00a5610 )
Ernesto Puerta [Tue, 11 May 2021 07:47:10 +0000 (09:47 +0200)]
Merge pull request #41252 from rhcs-dashboard/wip-50722-octopus
octopus: mgr/dashboard: fix base-href: revert it to previous approach
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Avan Thakkar [Fri, 7 May 2021 09:38:11 +0000 (15:08 +0530)]
mgr/dashboard: fix base-href: revert it to previous approach
Fixes: https://tracker.ceph.com/issues/50684
Signed-off-by: Avan Thakkar <athakkar@redhat.com>
(cherry picked from commit
b6f92922f5c80223fd288d98ce85405a650c0135 )
Conflicts:
src/pybind/mgr/dashboard/frontend/src/app/app.module.ts
- Adopt the changes coming from master.
Yuri Weinstein [Fri, 7 May 2021 16:16:35 +0000 (09:16 -0700)]
qa/tests: advanced octopus initial version to 15.2.10
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
Ernesto Puerta [Thu, 6 May 2021 09:58:09 +0000 (11:58 +0200)]
Merge pull request #41124 from aaSharma14/wip-50582-octopus
octopus: mgr/dashboard: OSDs placement text is unreadable
Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Yuri Weinstein [Wed, 5 May 2021 16:26:08 +0000 (09:26 -0700)]
Merge pull request #41017 from idryomov/wip-reset-authenticate-err-octopus
octopus: mon/MonClient: reset authenticate_err in _reopen_session()
Reviewed-by: Kefu Chai <kchai@redhat.com>
Yuri Weinstein [Wed, 5 May 2021 16:25:04 +0000 (09:25 -0700)]
Merge pull request #40988 from trociny/wip-50479-octopus
octopus: os/FileStore: don't propagate split/merge error to "create"/"remove"
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
Yuri Weinstein [Wed, 5 May 2021 16:24:29 +0000 (09:24 -0700)]
Merge pull request #40838 from mgfritch/octopus-backport-39415
octopus: cephadm: Allow to use paths in all <_devices> drivegroup sections
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Yuri Weinstein [Wed, 5 May 2021 16:22:11 +0000 (09:22 -0700)]
Merge pull request #40823 from mgfritch/octopus-backport-39259
octopus: mgr/cephadm: on ssh connection error, advice chmod 0600
Reviewed-by: Adam King adking@redhat.com
Aashish Sharma [Thu, 29 Apr 2021 12:57:59 +0000 (18:27 +0530)]
mgr/dashboard:OSDs placement text is unreadable
While displaying the host pattern in the OSDs placement tab, it gets splited with semi-colons. Also adjusted the column size of Container Image ID and Placement columns.
Fixes: https://tracker.ceph.com/issues/50580
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
(cherry picked from commit
543b02436f18876a56757226c686a5c2c33c7c33 )
Conflicts:
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/services.component.ts (PlacementPipe takes i18n as input param)
Dan van der Ster [Wed, 28 Apr 2021 11:35:58 +0000 (13:35 +0200)]
Merge pull request #41061 from dvanders/50550
octopus: os/bluestore: be more verbose in _open_super_meta by default.
Igor Fedotov [Fri, 11 Oct 2019 14:34:58 +0000 (17:34 +0300)]
os/bluestore: be more verbose in _open_super_meta by default.
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
(cherry picked from commit
4087f82aea674df4c7b485bf804f3a9c98ae3741 )
Nizamudeen A [Wed, 21 Apr 2021 08:10:39 +0000 (13:40 +0530)]
mgr/dashboard: Remove username and password from request body
Fixes: https://tracker.ceph.com/issues/50451
Signed-off-by: Nizamudeen A <nia@redhat.com>
(cherry picked from commit
273a776cad8065f568f17a05804aabd14625a1f0 )
Ernesto Puerta [Tue, 27 Apr 2021 17:21:19 +0000 (19:21 +0200)]
Merge pull request #40894 from rhcs-dashboard/wip-50349-octopus
octopus: mgr/dashboard: improve telemetry opt-in reminder notification message
Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
Ernesto Puerta [Tue, 27 Apr 2021 17:18:29 +0000 (19:18 +0200)]
Merge pull request #39987 from aaSharma14/wip-49657-octopus
octopus: mgr/dashboard: test prometheus rules through promtool
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Ernesto Puerta [Tue, 27 Apr 2021 17:14:42 +0000 (19:14 +0200)]
Merge pull request #40816 from rhcs-dashboard/wip-50170-octopus
octopus: mgr/dashboard: debug nodeenv hangs
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Ernesto Puerta [Tue, 27 Apr 2021 17:11:23 +0000 (19:11 +0200)]
Merge pull request #41020 from rhcs-dashboard/wip-50416-octopus
octopus: mgr/dashboard: filesystem pool size should use stored stat
Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Ernesto Puerta [Tue, 27 Apr 2021 17:10:01 +0000 (19:10 +0200)]
Merge pull request #40433 from rhcs-dashboard/labels-badge-octopus
octopus: mgr/dashboard: Add badge to the Label column in Host List
Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Kefu Chai [Tue, 27 Apr 2021 06:12:55 +0000 (14:12 +0800)]
Merge pull request #39802 from p-se/wip-pse-cephadm-SUSE-alertmanager-octopus
octopus: `cephadm ls` broken for SUSE downstream alertmanager container
Reviewed-by: Sebastian Wagner <swagner@suse.com>
Kefu Chai [Tue, 27 Apr 2021 06:12:14 +0000 (14:12 +0800)]
Merge pull request #40364 from ideepika/wip-bug-48142-octopus
octopus: qa/suites/rados/cephadm/upgrade: change starting version by distro
Reviewed-by: Sage Weil <sage@redhat.com>
Kefu Chai [Tue, 27 Apr 2021 06:09:38 +0000 (14:09 +0800)]
Merge pull request #40589 from rhcs-dashboard/wip-50070-octopus
octopus: mgr/dashboard: Fix for alert notification message being undefined
Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Waad Alkhoury <walkhour@redhat.com>
Kefu Chai [Tue, 27 Apr 2021 06:07:55 +0000 (14:07 +0800)]
Merge pull request #40758 from smithfarm/wip-50129-octopus
octopus: monmaptool: Don't call set_port on an invalid address
Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Ernesto Puerta [Mon, 26 Apr 2021 08:06:35 +0000 (10:06 +0200)]
Merge pull request #40649 from rhcs-dashboard/wip-50204-octopus
octopus: mgr/dashboard: Revoke read-only user's access to Manager modules
Reviewed-by: Waad Alkhoury <walkhour@redhat.com>
Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Avan Thakkar [Thu, 15 Apr 2021 13:28:52 +0000 (18:58 +0530)]
mgr/dashboard: filesystem pool size should use stored stat
Fixes: https://tracker.ceph.com/issues/50195
Signed-off-by: Avan Thakkar <athakkar@redhat.com>
Replaces 'bytes_used' with 'stored' stat to see the correct results
of CephFS pool stats.
(cherry picked from commit
7110fd4e0c257d20aa56591f05d74a2851a2fe00 )
Ilya Dryomov [Thu, 22 Apr 2021 10:29:59 +0000 (12:29 +0200)]
mon/MonClient: reset authenticate_err in _reopen_session()
Otherwise, if "mon host" list has at least one unqualified IP address
without a port and both msgr1 and msgr2 are turned on, there is a race
affecting MonClient::authenticate().
For backwards compatibility reasons such an address is expanded into
two entries, each being treated as a separate monitor. For example,
"mon host = 1.2.3.4" generates the following initial monmap:
0: v1:1.2.3.4:6789/0
1: v2:1.2.3.4:3300/0
See MonMap::_add_ambiguous_addr() for details.
Then, the following can happen:
1. we connect to both endpoints and attempt to authenticate
2. authenticate() sets authenticate_err to 1 and sleeps on auth_cond
3. msgr1 authenticates first (i.e. it gets the final MAuth message
before msgr2 gets the monmap)
4. active_con is set to msgr1 connection, msgr2 connection is closed
as redundant
5. _finish_auth() sets authenticate_err to 0 and signals auth_cond,
but before either the monmap is received or authenticate() wakes
up, msgr1 connection is closed due to a network hiccup
6. ms_handle_reset() calls _reopen_session() which clears active_con
and again connects to both endpoints and attempts to authenticate
7. authenticate() wakes up, sees that there is no active_con and goes
back to sleep, but this time with authenticate_err == 0
8. msgr2 authenticates first but doesn't call _finish_auth() because
it is called only if authenticate_err == 1
9. active_con is set to msgr2 connection, msgr1 connection is closed
as redundant
10. authenticate() hangs on auth_cond until timeout defaulting to 5
minutes
The discrepancy between msgr1 and msgr2 plays a key role. For msgr1,
authentication is considered to be complete as soon as the final MAuth
message is received -- the monmap is not waited for. For msgr2,
authentication is considered to be complete only after the monmap is
received.
Avoid the race by setting authenticate_err to 1 in _reopen_session(),
so that _finish_auth() is called on/after every authentication attempt
instead of just the first one.
Fixes: https://tracker.ceph.com/issues/50477
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit
8c9de31c9806629d22c30b35769e664446090046 )
Ilya Dryomov [Thu, 22 Apr 2021 10:29:59 +0000 (12:29 +0200)]
mon/MonClient: remove reopen_session() callback mechanism
It's been unused for over 5 years, since commit
17d24292b812 ("osd:
remove old stats backoff mechanism").
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit
853c04b5a66721755830c5b46b695f6c86cb406b )
Kefu Chai [Sun, 25 Apr 2021 02:55:22 +0000 (10:55 +0800)]
Merge pull request #40491 from aaSharma14/wip-50049-octopus
octopus: mgr/dashboard: Remove username, password fields from Manager Modules/dashboard,influx
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Waad Alkhoury <walkhour@redhat.com>
Kefu Chai [Sun, 25 Apr 2021 02:54:12 +0000 (10:54 +0800)]
Merge pull request #40495 from aaSharma14/wip-50052-octopus
octopus: mgr/dashboard: Device health status is not getting listed under hosts section
Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Kefu Chai [Sun, 25 Apr 2021 02:53:01 +0000 (10:53 +0800)]
Merge pull request #40550 from idryomov/wip-remove-log-early-octopus
octopus: common: remove log_early configuration option
Reviewed-by: Sage Weil <sage@redhat.com>
Kefu Chai [Sun, 25 Apr 2021 02:52:22 +0000 (10:52 +0800)]
Merge pull request #40558 from singuliere/wip-49917-octopus
octopus: mon/OSDMonitor: drop stale failure_info after a grace period
Reviewed-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Sun, 25 Apr 2021 02:51:37 +0000 (10:51 +0800)]
Merge pull request #40699 from smithfarm/wip-50123-octopus
octopus: mon: Modifying trim logic to change paxos_service_trim_max dynamically
Reviewed-by: Aishwarya Mathuria <amathuri@redhat.com>
Kefu Chai [Sun, 25 Apr 2021 02:49:49 +0000 (10:49 +0800)]
Merge pull request #40756 from smithfarm/wip-49566-octopus
octopus: tests: ceph_test_rados_api_watch_notify: Allow for reconnect
Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Kefu Chai [Sun, 25 Apr 2021 02:49:01 +0000 (10:49 +0800)]
Merge pull request #40757 from smithfarm/wip-49816-octopus
octopus: mon/MgrMonitor: populate available_modules from promote_standby()
Reviewed-by: Sage Weil <sage@redhat.com>
Kefu Chai [Sun, 25 Apr 2021 02:48:01 +0000 (10:48 +0800)]
Merge pull request #40788 from smithfarm/wip-49732-octopus
octopus: osd: do not dump an osd multiple times
Reviewed-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Sun, 25 Apr 2021 02:47:27 +0000 (10:47 +0800)]
Merge pull request #40791 from smithfarm/wip-50120-octopus
octopus: crush/CrushLocation: do not print logging message in constructor
Reviewed-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Sun, 25 Apr 2021 02:47:08 +0000 (10:47 +0800)]
Merge pull request #40792 from smithfarm/wip-50143-octopus
octopus: qa/tasks/vstart_runner.py: start max required mgrs
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Rishabh Dave <ridave@redhat.com>
Kefu Chai [Sun, 25 Apr 2021 02:46:31 +0000 (10:46 +0800)]
Merge pull request #40793 from smithfarm/wip-50210-octopus
octopus: os/bluestore/BlueFS: do not _flush_range deleted files
Reviewed-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Sat, 24 Apr 2021 10:00:49 +0000 (18:00 +0800)]
Merge pull request #40789 from smithfarm/wip-49378-octopus
octopus: cmake: build static libs if they are internal ones
Reviewed-by: Kefu Chai <kchai@redhat.com>
Yuri Weinstein [Fri, 23 Apr 2021 20:01:42 +0000 (13:01 -0700)]
Merge pull request #40812 from yuvalif/wip-yuval-fix-48462
octopus: rgw/notification: support GetTopicAttributes API
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Yuri Weinstein [Fri, 23 Apr 2021 20:01:10 +0000 (13:01 -0700)]
Merge pull request #40755 from smithfarm/wip-50213-octopus
octopus: rgw: objectlock: improve client error messages
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Aashish Sharma [Thu, 25 Mar 2021 05:55:37 +0000 (11:25 +0530)]
mgr/dashboard:Simplify some complex calculations in test_alerts.yml
run-promtool-unittests is failing with difference in floating point values in some complex calculations. This PR intends to simplify those calculations and fix this issue.
Fixes: https://tracker.ceph.com/issues/49952
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
(cherry picked from commit
8d2f39e6c568afb6880689160212bcc93057e194 )
Kefu Chai [Mon, 22 Mar 2021 06:07:54 +0000 (14:07 +0800)]
ceph.spec,install-deps: use golang-github-prometheus for promtools
instead of installing docker for using promtools, install
golang-github-prometheus.
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit
e33e3a931db97d01318643ec686fe63fdd614082 )
Conflicts:
install-deps.sh (changed dnf to yumdnf)
Kefu Chai [Fri, 19 Mar 2021 02:32:16 +0000 (10:32 +0800)]
test: run promtool test without docker on ubuntu/focal
before this change, we use docker for running promtools offered by
a docker image, but this is not efficient, and quite a few developers
do not want to use docker for running "make check". this change was
introduced by #39246, the reason was that, in Ceph's CI process, we
are using Ubuntu/Bionic for running "make check" jobs, but prometheus
packaged by Bionic does not offer the "test rules" command. so, to
address problem, we are using "dnanexus/promtool:2.9.2" docker image
for verifying monitoring/prometheus/alerts/test_alerts.yml.
after this change, we use prometheus packaged by debian derivatives
instead of pulling a docker image.
* debian/control: add prometheus as a "make check" dependency
* install-deps.sh: partially revert
53a5816deda0874a3a37e131e9bc22d88bb2a588 , as we don't need to
pull docker or start docker service for using promtool anymore.
* cmake: check if promtool is capable of running "test rules"
command, bail out if it is not.
see also: https://tracker.ceph.com/issues/49653
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit
f381aa8bf0e175940153975fa1534ef0559ecadd )
Aashish Sharma [Wed, 3 Feb 2021 07:23:56 +0000 (12:53 +0530)]
mgr/dashboard:test prometheus rules through promtool
This PR intends to add unit testing for prometheus rules using promtool. To run the tests run 'run-promtool-unittests.sh' file.
Fixes: https://tracker.ceph.com/issues/45415
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
(cherry picked from commit
53a5816deda0874a3a37e131e9bc22d88bb2a588 )
Conflicts:
install-deps.sh (changed dnf to yumdnf)
Mykola Golub [Mon, 19 Apr 2021 07:32:01 +0000 (08:32 +0100)]
os/FileStore: don't propagate split/merge error to "create"/"remove"
Either ignore or terminate, otherwise it may confuse the
"create"/"remove" caller.
Fixes: https://tracker.ceph.com/issues/50395
Signed-off-by: Mykola Golub <mgolub@suse.com>
(cherry picked from commit
936898b8caf7b13a120ea6108df0b0dac29882c4 )
Aashish Sharma [Thu, 11 Mar 2021 06:06:22 +0000 (11:36 +0530)]
mgr/dashboard: Device health status is not getting listed under hosts section
Device health is shown as failed to retrieve data under Hosts > Device Health section. This PR intends to fix this issue.
Fixes: https://tracker.ceph.com/issues/49354
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
(cherry picked from commit
8f4574696c5272de4be6cbcbd3a8fc713d6b604e )
Aashish Sharma [Mon, 8 Mar 2021 09:44:00 +0000 (15:14 +0530)]
mgr/dashboard: Remove username, password fileds from -Cluster/Manager Modules/dashboard
Username, password fields are empty in Cluster/Manager Modules/dashboard.Since this functionality is when dashboard supported single user-password, now we need to remove these fields from here.
Fixes: https://tracker.ceph.com/issues/49645
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
(cherry picked from commit
d8fba40d982bb1ad824961aa210475bd7aa51524 )
Yuri Weinstein [Wed, 21 Apr 2021 18:38:55 +0000 (11:38 -0700)]
Merge pull request #40790 from smithfarm/wip-50081-octopus
octopus: rbd-mirror: fix UB while registering perf counters
Reviewed-by: Mykola Golub <mgolub@mirantis.com>
Nathan Cutler [Wed, 21 Apr 2021 17:39:14 +0000 (19:39 +0200)]
Merge pull request #40666 from idryomov/wip-require-ceph-common-for-ioc-octopus
octopus: packaging: require ceph-common for immutable object cache daemon
Reviewed-by: Nathan Cutler <ncutler@suse.com>
Ilya Dryomov [Wed, 21 Apr 2021 16:00:19 +0000 (18:00 +0200)]
Merge pull request #40958 from rhcs-dashboard/wip-50457-octopus
octopus: vstart.sh: disable "auth_allow_insecure_global_id_reclaim"
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Kefu Chai [Thu, 15 Apr 2021 13:07:53 +0000 (21:07 +0800)]
vstart.sh: disable "auth_allow_insecure_global_id_reclaim"
to silence the health warning of "mons are allowing insecure global_id
reclaim", which prevents the cluster from being active+clean. couple
tests are expecting a warning free cluster before they starts.
as this option is enabled by default for appeasing the old clients, but when it
comes to most of upstream testing, we can just disable it.
Fixes: https://tracker.ceph.com/issues/50374
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit
77a8376d0731c24e7bbf24523d3d7450e9f978af )
Ilya Dryomov [Tue, 20 Apr 2021 08:57:53 +0000 (10:57 +0200)]
Merge branch 'octopus-saved' into octopus
Neha Ojha [Thu, 15 Apr 2021 16:44:27 +0000 (16:44 +0000)]
common/options/global.yaml.in: increase default value of bluestore_cache_trim_max_skip_pinned
This option controls the rate of trimming of onodes and the earlier default of
64 has been seen to be too low for large clusters, leading to buildup of
onodes resulting in memory growth.
Increase the default value to 1000, since there are no known downsides to it.
Fixes: https://tracker.ceph.com/issues/50217
Signed-off-by: Neha Ojha <nojha@redhat.com>
(cherry picked from commit
26d7336d6b65f987298ede5d2c5c435191f1405c )
Conflicts:
src/common/options/global.yaml.in - file does not exist in octopus
Jenkins Build Slave User [Mon, 19 Apr 2021 13:47:30 +0000 (13:47 +0000)]
15.2.11
Waad Alkhoury [Tue, 30 Mar 2021 06:38:01 +0000 (08:38 +0200)]
mgr/dashboard: improve telemetry opt-in reminder notification message
Added activition button and linked the word telemetry to telemetry documentation
Fixes: https://tracker.ceph.com/issues/49606
(cherry picked from commit
527d912b878087672ab537b59e3addf35108a77c )
Signed-off-by: Waad Alkhoury <walkhour@redhat.com>
Ilya Dryomov [Thu, 15 Apr 2021 13:18:58 +0000 (15:18 +0200)]
auth/cephx: make KeyServer::build_session_auth_info() less confusing
The second KeyServer::build_session_auth_info() overload is used only
by the monitor, for mon <-> mon authentication. The monitor passes in
service_secret (mon secret) and secret_id (-1). The TTL is irrelevant
because there is no rotation.
However the signature doesn't make it obvious. Clarify that
service_secret and secret_id are input parameters and info is the only
output parameter.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit
6f12cd3688b753633c8ff29fb3bd64758f960b2b )
Ilya Dryomov [Thu, 15 Apr 2021 07:48:13 +0000 (09:48 +0200)]
auth/cephx: cap ticket validity by expiration of "next" key
If auth_mon_ticket_ttl is increased by several times as done in
commit
522a52e6c258 ("auth/cephx: rotate auth tickets less often"),
active clients eventually get stuck because the monitor sends out an
auth ticket with a bogus validity. The ticket is secured with the
"current" secret that is scheduled to expire according to the old TTL,
but the validity of the ticket is set to the new TTL. As a result,
the client simply doesn't attempt to renew, letting the secrets rotate
potentially more than once. When that happens, the client first hits
auth authorizer errors as it tries to renew service tickets and when
it finally gets to renewing the auth ticket, it hits the insecure
global_id reclaim wall.
Cap TTL by expiration of "next" key -- the "current" key may be
milliseconds away from expiration and still be used, legitimately.
Do it in KeyServerData alongside key rotation code and propagate the
capped TTL to the upper layer.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit
370c9b13970d47a55b1b20ef983c6f01236c9565 )
Ilya Dryomov [Thu, 15 Apr 2021 07:47:50 +0000 (09:47 +0200)]
auth/cephx: drop redundant KeyServerData::get_service_secret() overload
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit
3078af716505ae754723864786a41a6d6af0534c )
Ernesto Puerta [Tue, 6 Apr 2021 11:45:15 +0000 (13:45 +0200)]
mgr/dashboard: debug nodeenv hangs
Increase verbosity in nodeenv command for debugging purposes.
Fixes: https://tracker.ceph.com/issues/50044
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
(cherry picked from commit
2c2a397f84455147e1cc5c7b5fc1289e47bbe5ee )
Conflicts:
make-dist
src/pybind/mgr/dashboard/CMakeLists.txt
- Adopted the master branch changes.
(cherry picked from commit
11838fb544189a59cc02ff768585bfdaa7347ef6 )
Nizamudeen A [Tue, 23 Mar 2021 07:10:46 +0000 (12:40 +0530)]
mgr/dashboard: Fix for alert notification message being undefined
Prometheus alert notification message in the dashboard always comes up
as undefined. Its because we were showing the alert.summary instead of
alert.description for displaying the message. I couldn't find the
summary field in the ceph_default_alerts.yml file. So removed all the
Summary fields from the dashboard code.
Fixes: https://tracker.ceph.com/issues/49342
Signed-off-by: Nizamudeen A <nia@redhat.com>
(cherry picked from commit
2921b2e9a939e1ad52b07327fdf84885568384b9 )
Juan Miguel Olmo Martínez [Thu, 11 Feb 2021 12:19:07 +0000 (13:19 +0100)]
cephadm: Allow to use paths in all <_devices> drivegroup sections
This will allow to use specific device paths in any osd component.
Signed-off-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
(cherry picked from commit
d02683efbfcd5aa1437ebb9e73f89db38f7e7aa6 )
Sage Weil [Sun, 28 Mar 2021 22:07:57 +0000 (18:07 -0400)]
qa/standalone: default to disable insecure global id reclaim
Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit
72c4fc75ad301980baebc7789ed6391444057e5b )
Sage Weil [Thu, 25 Mar 2021 17:36:56 +0000 (13:36 -0400)]
qa/suites/upgrade/octopus-x: disable insecure global_id reclaim health warnings
These will trigger on upgrade; suppress them so that our health gates
will still work.
Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit
3e80f61efeafc186ea8130984d64c05b2707d6ba )
Conflicts:
qa/suites/rados/cephadm/upgrade/3-start-upgrade.yaml [ commit
04a3d4c927e7 ("qa/suites/rados/cephadm/upgrade: deploy a legacy
r.z-style rgw") not in octopus ]
qa/suites/upgrade/octopus-x/parallel/1-tasks.yaml [ no octopus-x
upgrade suite in octopus ]
qa/suites/upgrade/octopus-x/rgw-multisite/overrides.yaml [ ditto ]
qa/suites/upgrade/octopus-x/stress-split/1-start.yaml [ ditto ]
Sage Weil [Fri, 26 Mar 2021 22:08:46 +0000 (18:08 -0400)]
qa/tasks/ceph[adm].conf[.template]: disable insecure global_id reclaim health alerts
Turn these off everywhere for our tests so they don't interfere with our health checks.
Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit
9f6fd4fe563c9cd4cf65316921d511b677c972e4 )
Sage Weil [Fri, 26 Mar 2021 16:02:50 +0000 (12:02 -0400)]
cephadm: set auth_allow_insecure_global_id_reclaim for mon on bootstrap
If this is a fresh pacific cluster, let's assume that there won't be
legacy clients connecting. (And if there are, let's put the burden on
the user to enable them to do so insecurely.)
This is in contrast to upgrades, where our focus is on not breaking
anything.
Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit
7ca74183226b1125b29f4ea8f324ae9e38b46795 )
Conflicts:
src/cephadm/cephadm [ commit
369989ebf90c ("cephadm: split-off
config work on bootstrap") not in octopus ]
Sage Weil [Thu, 25 Mar 2021 22:07:53 +0000 (18:07 -0400)]
mon/HealthMonitor: raise AUTH_INSECURE_GLOBAL_ID_RENEWAL[_ALLOWED]
Two new alerts:
- AUTH_INSECURE_GLOBAL_ID_RENEWAL_ALLOWED if we are allowing clients to reclaim
global_ids in an insecure manner (for backwards compatibility until
clients are upgraded)
- AUTH_INSECURE_GLBOAL_ID_RENEWAL if there are currently clients connected that
do not know how to securely renew their global_id, as exposed by
auth_expose_insecure_global_id_reclaim=true. The client auth names and IPs
are listed the alert details (up to a limit, at least).
The docs recommend operators mute these alerts instead of silencing, but
we still include option that allow the alerts to be disabled entirely.
Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit
18b343b06e5dd904af425dc99e2c848e12f3b552 )
Conflicts:
src/mon/HealthMonitor.cc [ commit
e4bf716bfa07 ("mon: store
a reference as member variable") not in octopus ]