]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
3 years agoqa: fix teuthology master branch ref 46503/head
Ernesto Puerta [Thu, 2 Jun 2022 10:27:02 +0000 (12:27 +0200)]
qa: fix teuthology master branch ref

Fixes: https://tracker.ceph.com/issues/55826
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
(cherry picked from commit e91773df68c286266a2855e69bf542b4c73379d9)

3 years agoMerge pull request #46491 from ceph/quincy-nobranch
David Galloway [Wed, 1 Jun 2022 20:19:49 +0000 (16:19 -0400)]
Merge pull request #46491 from ceph/quincy-nobranch

quincy: qa: remove .teuthology_branch file

3 years agoqa: remove .teuthology_branch file 46491/head
Jeff Layton [Wed, 1 Jun 2022 18:26:33 +0000 (14:26 -0400)]
qa: remove .teuthology_branch file

This was originally added to help support the py2 -> py3 conversion.
That's long since complete so we should be able to just remove this file
now.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
(cherry picked from commit 81430de9b70be16a439bf2445f3345b83035a861)

3 years agoMerge pull request #46446 from rhcs-dashboard/wip-54585-quincy
Ernesto Puerta [Wed, 1 Jun 2022 16:43:21 +0000 (18:43 +0200)]
Merge pull request #46446 from rhcs-dashboard/wip-54585-quincy

quincy: mgr/dashboard: fix columns in host table  with NaN Undefined

Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: nSedrickm <NOT@FOUND>
3 years agoMerge pull request #46455 from rhcs-dashboard/wip-55589-quincy
Ernesto Puerta [Wed, 1 Jun 2022 16:35:28 +0000 (18:35 +0200)]
Merge pull request #46455 from rhcs-dashboard/wip-55589-quincy

quincy: mgr/dashboard: WDC multipath bug fixes

Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
3 years agoMerge pull request #46447 from ceph/fix-triage-quincy
Ernesto Puerta [Tue, 31 May 2022 17:51:56 +0000 (19:51 +0200)]
Merge pull request #46447 from ceph/fix-triage-quincy

quincy: .github: continue on error and reorder milestone step

Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
3 years agoMerge pull request #46203 from rhcs-dashboard/wip-55569-quincy
Ernesto Puerta [Tue, 31 May 2022 17:15:29 +0000 (19:15 +0200)]
Merge pull request #46203 from rhcs-dashboard/wip-55569-quincy

quincy: mgr/dashboard: fix ssl cert validation for ingress service creation

Reviewed-by: Sarthak Gupta <sarthak.dev.0702@gmail.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
3 years agoMerge pull request #45879 from dparmar18/backport_mdsdocs_quincy
Yuri Weinstein [Tue, 31 May 2022 16:37:37 +0000 (09:37 -0700)]
Merge pull request #45879 from dparmar18/backport_mdsdocs_quincy

quincy: doc/cephfs/add-remove-mds: added cephadm note, refined "Adding an MDS"

Reviewed-by: Kotresh HR <khiremat@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Rishabh Dave <ridave@redhat.com>
3 years agoMerge pull request #46300 from dparmar18/quincy_put_get_backport
Yuri Weinstein [Tue, 31 May 2022 14:55:08 +0000 (07:55 -0700)]
Merge pull request #46300 from dparmar18/quincy_put_get_backport

quincy: cephfs-shell: fix put and get cmd

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #46181 from lxbsz/wip-55342
Yuri Weinstein [Tue, 31 May 2022 14:54:34 +0000 (07:54 -0700)]
Merge pull request #46181 from lxbsz/wip-55342

quincy: mds: reset heartbeat when fetching or committing entries

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #46178 from lxbsz/wip-55345
Yuri Weinstein [Tue, 31 May 2022 14:51:30 +0000 (07:51 -0700)]
Merge pull request #46178 from lxbsz/wip-55345

Quincy: client: stop forwarding the request when exceeding 256 times

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Kotresh HR <khiremat@redhat.com>
3 years agomgr/dashboard: show daemon count instead of services in host page 46455/head
Nizamudeen A [Mon, 9 May 2022 08:43:19 +0000 (14:13 +0530)]
mgr/dashboard: show daemon count instead of services in host page

Fixes: https://tracker.ceph.com/issues/47218
Signed-off-by: Nizamudeen A <nia@redhat.com>
(cherry picked from commit ee78b47612b5eb5ee6834e9e61ea8c6194b2c1c7)

3 years agomgr/dashboard: smart data for devices with scsi protocol
Nizamudeen A [Sun, 8 May 2022 14:27:34 +0000 (19:57 +0530)]
mgr/dashboard: smart data for devices with scsi protocol

In the dashboard, we've been showing smart data for hdd devices with ata
protocol only. Otherwise we show a No Smart Data found error which is
clearly misleading since Smart Data is returned even in the api call.

So this PR is trying to show the smart data for hdd devices
that uses scsi protocol too.

Fixes: https://tracker.ceph.com/issues/55574
Signed-off-by: Nizamudeen A <nia@redhat.com>
(cherry picked from commit 4fab663983ec34bb9bafa3f8104f2b7a70b58877)

3 years agomgr/dashboard: fix smart data error
Nizamudeen A [Fri, 6 May 2022 15:19:18 +0000 (20:49 +0530)]
mgr/dashboard: fix smart data error

the error in the log was this

```
"/usr/share/ceph/mgr/dashboard/services/ceph_service.py", line 253, in _get_smart_data_by_device
May 06 07:38:39 occldlr750-1.occl208.lab conmon[2142938]:     svc_type, svc_id = daemon.split('.')
May 06 07:38:39 occldlr750-1.occl208.lab conmon[2142938]: ValueError: too many values to unpack (expected 2)
```

on the cluster, the output of `ceph device ls-by-host` looks like this

```
ceph: root@occldlr750-1 /]# ceph device ls-by-host occldlr750-1.occl208.lab
DEVICE                        DEV   DAEMONS                       EXPECTED FAILURE
DELLBOSS_VD_cbd004c975390010  sda   mon.occldlr750-1.occl208.lab
WDC_WUH721818AL5204_3FGZR3JT  sdda  osd.20
WDC_WUH721818AL5204_3FH4315T  sdbf  osd.94
WDC_WUH721818AL5204_3FHP58TT  sdec  osd.30
WDC_WUH721818AL5204_3FHSK8HT  sdu   osd.78
WDC_WUH721818AL5204_3FHVTS9T  sdfi  osd.47
WDC_WUH721818AL5204_3FHWJE8T  sdv   osd.23
WDC_WUH721818AL5204_3FHXHETT  sdcl  osd.11
WDC_WUH721818AL5204_3FHXKP1T  sdcj  osd.10
```

the first device is mon and its name is mon.occldlr750-1.occl208.lab.

In our dashboard code, when fetching the smart data we have a line like
this

`svc_type, svc_id = daemon.split('.')`

so for the mon the output of `daemon.split('.') will be ['mon', 'occldlr750-1', 'occl208', 'lab']. The svc_id gets split into three because of the split. I am changing that and giving the criteria as splitting only on the first occurence of the dot and the considering everything that comes after the dot as the svc_id of the device.

Fixes: https://tracker.ceph.com/issues/55571
Signed-off-by: Nizamudeen A <nia@redhat.com>
(cherry picked from commit f38e3e96b8c32f6fb7370406b975cd88431858d8)

3 years agomgr/dashboard: devices with same UID causes multiselection
Nizamudeen A [Thu, 5 May 2022 17:43:38 +0000 (23:13 +0530)]
mgr/dashboard: devices with same UID causes multiselection

In the Physical Disks page, the uids for multiple devices are coming in
as same and that causes the selection to go berserk and select multiple
rows with same UID. The uid is generated in the frontend service call
itself. I just added some more parameters to it inorder to make it more
unique.

The second issue is the number of selected number getting multiplied
exponentially. Its because each time the table is updated or refreshed,
we push the row with the number of selected items we had before and that
causes the number of selection to multiply.

Fixes: https://tracker.ceph.com/issues/55523
Signed-off-by: Nizamudeen A <nia@redhat.com>
(cherry picked from commit 9fe18a62529037c0586edd032411f863f81b8f27)

3 years ago.github/pr-triage: reorder milestone step 46447/head
Ernesto Puerta [Mon, 18 Apr 2022 16:50:52 +0000 (18:50 +0200)]
.github/pr-triage: reorder milestone step

In `master` the milestone step exits and causes remaining tasks not to be run. I previously tried with the `continue-on-error` flag, but it didn't work, so let's try putting that steps at the end.

Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
(cherry picked from commit d8c0229b90cc20e89f7037a72af8b5d41b6b0861)

3 years ago.github: continue on error
Ernesto Puerta [Thu, 17 Mar 2022 19:53:31 +0000 (20:53 +0100)]
.github: continue on error

Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
(cherry picked from commit b6791ee09a49398cdef39faae5f2e72f43061d64)

3 years agomgr/dashboard: fix columns in host table with NaN Undefined 46446/head
Avan Thakkar [Mon, 31 Jan 2022 13:53:10 +0000 (19:23 +0530)]
mgr/dashboard: fix columns in host table  with NaN Undefined

Fixes: https://tracker.ceph.com/issues/54068
Signed-off-by: Avan Thakkar <athakkar@redhat.com>
(cherry picked from commit 41ca50c81c26107cac50823a7803c0d018933734)

3 years agoMerge pull request #45724 from rhcs-dashboard/wip-54996-quincy
Ernesto Puerta [Tue, 31 May 2022 12:40:31 +0000 (14:40 +0200)]
Merge pull request #45724 from rhcs-dashboard/wip-54996-quincy

quincy: mgr/dashboard: Table columns hiding fix

Reviewed-by: Sarthak Gupta <sarthak.dev.0702@gmail.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: kalaspuffar <NOT@FOUND>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
3 years agoMerge pull request #46342 from rhcs-dashboard/wip-55717-quincy
Ernesto Puerta [Tue, 31 May 2022 12:39:47 +0000 (14:39 +0200)]
Merge pull request #46342 from rhcs-dashboard/wip-55717-quincy

quincy: mgr/dashboard: customizable log-in page text/banner

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
3 years agoMerge pull request #46323 from rhcs-dashboard/wip-55691-quincy
Ernesto Puerta [Tue, 31 May 2022 12:39:02 +0000 (14:39 +0200)]
Merge pull request #46323 from rhcs-dashboard/wip-55691-quincy

quincy: mgr/dashboard: unselect rows in datatables

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
3 years agoMerge pull request #45722 from rhcs-dashboard/wip-55105-quincy
Ernesto Puerta [Tue, 31 May 2022 11:21:01 +0000 (13:21 +0200)]
Merge pull request #45722 from rhcs-dashboard/wip-55105-quincy

quincy: mgr/dashboard: extend daemon actions to host details

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
3 years agomgr/dashboard: fix linting errors and add test 45722/head
Aashish Sharma [Fri, 8 Apr 2022 05:19:04 +0000 (10:49 +0530)]
mgr/dashboard: fix linting errors and add test

Fixes: https://tracker.ceph.com/issues/55218
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
(cherry picked from commit b496f5837803a915daac98b0fad56eac3174db85)

Conflicts:
   src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/service-daemon-list/service-daemon-list.component.html

 - ignore the change

3 years agoMerge pull request #46377 from tchaikov/quincy-pr-46355
Yuri Weinstein [Fri, 27 May 2022 17:05:50 +0000 (10:05 -0700)]
Merge pull request #46377 from tchaikov/quincy-pr-46355

quincy: ceph.spec.in: disable annobin plugin if compile with gcc-toolset

Reviewed-by: Laura Flores <lflores@redhat.com>
3 years agoMerge pull request #46409 from adk3798/quincy-deb-fix
Yuri Weinstein [Fri, 27 May 2022 15:51:33 +0000 (08:51 -0700)]
Merge pull request #46409 from adk3798/quincy-deb-fix

quincy: debian: include the new object_format.py file

Reviewed-by: Laura Flores <lflores@redhat.com>
3 years agoMerge pull request #46374 from vumrao/wip-vumrao-55742
Yuri Weinstein [Fri, 27 May 2022 15:49:39 +0000 (08:49 -0700)]
Merge pull request #46374 from vumrao/wip-vumrao-55742

quincy: mon/LogMonitor: reopen log files on SIGHUP

Reviewed-by: Laura Flores <lflores@redhat.com>
3 years agoMerge pull request #45697 from tserong/wip-55098-quincy
Yuri Weinstein [Fri, 27 May 2022 15:48:50 +0000 (08:48 -0700)]
Merge pull request #45697 from tserong/wip-55098-quincy

quincy: ceph.spec.in: remove build directory at end of %install

Reviewed-by: Kefu Chai <kchai@redhat.com>
3 years agoMerge pull request #46278 from votdev/wip-55643-quincy
Ernesto Puerta [Fri, 27 May 2022 10:53:56 +0000 (12:53 +0200)]
Merge pull request #46278 from votdev/wip-55643-quincy

quincy: mgr/dashboard: Creating and editing Prometheus AlertManager silences is buggy

Reviewed-by: Sarthak Gupta <sarthak.dev.0702@gmail.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
3 years agoMerge pull request #46380 from rhcs-dashboard/wip-55739-quincy
Ernesto Puerta [Fri, 27 May 2022 10:43:27 +0000 (12:43 +0200)]
Merge pull request #46380 from rhcs-dashboard/wip-55739-quincy

quincy: mgr/dashboard: form field validation icons overlap with other icons

Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
3 years agodebian: include the new object_format.py file 46409/head
John Mulligan [Thu, 26 May 2022 14:56:44 +0000 (10:56 -0400)]
debian: include the new object_format.py file

This was missed when adding object_format.py to the RPM packaging.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit b66ec8159557163a5c5a20918d1ec399a53f0604)

3 years agoMerge pull request #46184 from vshankar/tr-55428
Yuri Weinstein [Thu, 26 May 2022 15:37:37 +0000 (08:37 -0700)]
Merge pull request #46184 from vshankar/tr-55428

quincy: mds: include encoded stray inode when sending dentry unlink message to replicas

Reviewed-by: Kotresh HR <khiremat@redhat.com>
3 years agoMerge pull request #46140 from kotreshhr/wip-55336-quincy
Yuri Weinstein [Thu, 26 May 2022 15:36:43 +0000 (08:36 -0700)]
Merge pull request #46140 from kotreshhr/wip-55336-quincy

quincy: mgr/volumes: Fix idempotent subvolume rm

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Nikhilkumar Shelke <nshelke@redhat.com>
3 years agoMerge pull request #46384 from ljflores/wip-55744-quincy
Laura Flores [Wed, 25 May 2022 15:10:27 +0000 (10:10 -0500)]
Merge pull request #46384 from ljflores/wip-55744-quincy

quincy: qa/suites/rados/thrash-erasure-code-big/thrashers: add `osd max backfills` setting to mapgap and pggrow

3 years agoMerge pull request #46381 from zdover23/wip-doc-backport-quincy-release-notes-to...
zdover23 [Tue, 24 May 2022 20:14:49 +0000 (06:14 +1000)]
Merge pull request #46381 from zdover23/wip-doc-backport-quincy-release-notes-to-quincy-branch-2022-05-24

Quincy: Wip doc backport quincy release notes to quincy branch 2022 05 24

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
3 years agoqa/suites/rados/thrash-erasure-code-big/thrashers: add `osd max backfills` setting... 46384/head
Laura Flores [Mon, 16 May 2022 22:59:42 +0000 (17:59 -0500)]
qa/suites/rados/thrash-erasure-code-big/thrashers: add `osd max backfills` setting to mapgap and pggrow

All `rados/thrash-erasure-code-big` tests that die due to the “wait_for_recovery” timeout have one thing in common: They contain either `thrashers/pggrow` or `thrashers/mapgap`.

The difference between pggrow and mapgap vs. all other non-offending thrashers (default, careful, fastread, and morepggrow) is that they lack an override setting for `osd max backfills`. `osd max backfills` is the max number of backfill operations allowed to/from an OSD. The higher the number, the quicker the recovery. By default, this value is 1. On all of the non-offending thrashers (default, careful, fastread, and morepggrow), the default 1 value gets overridden in their .yaml files with a value > 1. This is not the case for pggrow and mapgap, however, as they lack an `osd max backfills` override setting.

The mclock op scheduler is known to override `osd max backfills` with a high value, but all of the thrash-erasure-code-big thrashers have their op queue set to “debug_random”, which chooses randomly between op queues (the debug_random op queue is set to override the default mclock_scheduler in qa/config/rados.yaml). So, coupled with the “debug_random” op queue, the low `osd max backfill` setting is causing some tests to time out in recovery.

WITHOUT `osd max backfills`, as they are now, “mapgap” and “pggrow” tests die due to timed-out recovery about 17/100 times, as seen here with a pggrow test: http://pulpito.front.sepia.ceph.com/lflores-2022-05-18_14:24:29-rados:thrash-erasure-code-big-master-distro-default-smithi/

WITH `osd max backfills` specified, as I have suggested in this PR, 99/100 tests passed, with one test failing for a different reason:
http://pulpito.front.sepia.ceph.com/lflores-2022-05-17_22:40:27-rados:thrash-erasure-code-big-master-distro-default-smithi/

I also scheduled 145 tests WITH `osd max backfills` that are a mix of pggrow and mapgap thrashers. 144/145 tests passed, with one test failing for a different reason. http://pulpito.front.sepia.ceph.com/lflores-2022-05-17_15:27:54-rados:thrash-erasure-code-big-master-distro-default-smithi/

Fixes: https://tracker.ceph.com/issues/51076
Signed-off-by: Laura Flores <lflores@redhat.com>
(cherry picked from commit 40062676c2ceed49b9fa147127ffa83ba6118e2a)

3 years agoMerge pull request #46254 from tserong/wip-55615-quincy
Yuri Weinstein [Tue, 24 May 2022 15:06:14 +0000 (08:06 -0700)]
Merge pull request #46254 from tserong/wip-55615-quincy

quincy: test: No direct use of nose

Reviewed-by: Casey Bodley <cbodley@redhat.com>
3 years agoMerge pull request #46251 from rzarzynski/wip-45529-quincy
Yuri Weinstein [Tue, 24 May 2022 15:05:36 +0000 (08:05 -0700)]
Merge pull request #46251 from rzarzynski/wip-45529-quincy

quincy: osd/PGLog.cc: Trim duplicates by number of entries

Reviewed-by: Neha Ojha <nojha@redhat.com>
3 years agoMerge pull request #46234 from vumrao/wip-vumrao-54277
Yuri Weinstein [Tue, 24 May 2022 15:04:47 +0000 (08:04 -0700)]
Merge pull request #46234 from vumrao/wip-vumrao-54277

quincy: rgw: remove rgw_rados_pool_pg_num_min and its use on pool creation use the cluster defaults for pg_num_min

Reviewed-by: Neha Ojha <nojha@redhat.com>
3 years agodoc/releases/quincy.rst: mention log_to_journald 46381/head
Neha Ojha [Wed, 20 Apr 2022 00:45:49 +0000 (00:45 +0000)]
doc/releases/quincy.rst: mention log_to_journald

Details about https://tracker.ceph.com/issues/55383

Signed-off-by: Neha Ojha <nojha@redhat.com>
3 years agodoc: Typo and indentation fix
David Galloway [Wed, 20 Apr 2022 00:20:44 +0000 (20:20 -0400)]
doc: Typo and indentation fix

Signed-off-by: David Galloway <dgallowa@redhat.com>
3 years agodoc: No changelog for first release
David Galloway [Tue, 19 Apr 2022 18:32:39 +0000 (14:32 -0400)]
doc: No changelog for first release

The diff between origin/pacific..origin/quincy is definitely not what we want listed.  There is no Changelog for the first major release.

Signed-off-by: David Galloway <dgallowa@redhat.com>
3 years agodoc/releases: additional clarification, release date
Neha Ojha [Tue, 19 Apr 2022 16:59:06 +0000 (16:59 +0000)]
doc/releases: additional clarification, release date

- address review comments
- emphasize LevelDB removal
- update release date

Signed-off-by: Neha Ojha <nojha@redhat.com>
3 years agodoc/releases/releases.yml: update release date
Josh Durgin [Thu, 14 Apr 2022 06:51:26 +0000 (02:51 -0400)]
doc/releases/releases.yml: update release date

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
3 years agodoc/releases/quincy: add new cephadm features
Josh Durgin [Thu, 14 Apr 2022 06:50:33 +0000 (02:50 -0400)]
doc/releases/quincy: add new cephadm features

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
3 years agodoc/releases/quincy: link to quincy versions of the docs
Josh Durgin [Thu, 14 Apr 2022 06:43:23 +0000 (02:43 -0400)]
doc/releases/quincy: link to quincy versions of the docs

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
3 years agodoc/releases/quincy: add rbd release notes
Josh Durgin [Thu, 14 Apr 2022 06:42:46 +0000 (02:42 -0400)]
doc/releases/quincy: add rbd release notes

[ idryomov: mention notrim option, minor nits ]

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
3 years agodoc/releases/quincy.rst: add more rados notes
Neha Ojha [Tue, 12 Apr 2022 18:55:44 +0000 (18:55 +0000)]
doc/releases/quincy.rst: add more rados notes

and reorder

Signed-off-by: Neha Ojha <nojha@redhat.com>
3 years agodoc/releases/quincy.rst: condense pg_autoscaler notes
Neha Ojha [Tue, 12 Apr 2022 18:33:02 +0000 (18:33 +0000)]
doc/releases/quincy.rst: condense pg_autoscaler notes

remove scale-down mode and talk about the bulk flag

Signed-off-by: Neha Ojha <nojha@redhat.com>
3 years agodoc/dashboard: Dashboard quincy release notes
Ernesto Puerta [Fri, 8 Apr 2022 16:00:09 +0000 (18:00 +0200)]
doc/dashboard: Dashboard quincy release notes

Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
3 years agodoc/releases/quincy: Update 'mclock_scheduler' release note.
Sridhar Seshasayee [Thu, 7 Apr 2022 17:44:29 +0000 (23:14 +0530)]
doc/releases/quincy: Update 'mclock_scheduler' release note.

Signed-off-by: Sridhar Seshasayee <sseshasa@redhat.com>
3 years agodoc/releases/quincy: remove old release notes
Josh Durgin [Tue, 29 Mar 2022 00:26:34 +0000 (20:26 -0400)]
doc/releases/quincy: remove old release notes

libcephsqlite was part of pacific and mentioned in 16.2.0 release notes.
The bluestore bug was never present in quincy, so no need to mention it here.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
3 years agodoc/releases/quincy: link to quincy versions of the docs
Josh Durgin [Tue, 29 Mar 2022 00:24:16 +0000 (20:24 -0400)]
doc/releases/quincy: link to quincy versions of the docs

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
3 years agodoc/releases/quincy: update upgrade procedure
Josh Durgin [Tue, 29 Mar 2022 00:16:58 +0000 (20:16 -0400)]
doc/releases/quincy: update upgrade procedure

Include cephadm/manual upgrade procedures like pacific.
Update release names, and remove obsolete steps.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
3 years agodoc/releases: v17.2.0 will be the first release
Josh Durgin [Mon, 28 Mar 2022 23:41:54 +0000 (19:41 -0400)]
doc/releases: v17.2.0 will be the first release

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
3 years agodoc/releases: put release notes in proper places
Zac Dover [Mon, 28 Mar 2022 15:24:31 +0000 (01:24 +1000)]
doc/releases: put release notes in proper places

This PR moves release notes into their proper places
on the Quincy release notes page.

This PR supersedes (and includes) the work done in
PR#45610.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
3 years agodoc/releases: update telemetry commands
Yaarit Hatuka [Wed, 23 Mar 2022 17:08:59 +0000 (13:08 -0400)]
doc/releases: update telemetry commands

Telemetry is already an 'always-on' module, thus no need to enable it.
In Quincy, when telemetry is off, we use preview / preview-all to get a
sample report, and show / show-all to see what actually is being
reported.

Signed-off-by: Yaarit Hatuka <yaarit@redhat.com>
3 years agodoc: Add initial Quincy docs
David Galloway [Tue, 15 Feb 2022 21:41:59 +0000 (16:41 -0500)]
doc: Add initial Quincy docs

The changelog is the difference between origin/pacific..origin/quincy.

There are a number of `## TODO` comments that component devs will need to review and add input.

Signed-off-by: David Galloway <dgallowa@redhat.com>
3 years agomgr/dashboard: form field validation icons overlap with other icons 46380/head
Sarthak0702 [Wed, 11 May 2022 18:57:47 +0000 (00:27 +0530)]
mgr/dashboard: form field validation icons overlap with other icons

Signed-off-by: Sarthak0702 <sarthak.dev.0702@gmail.com>
(cherry picked from commit 0bd2d023026af737b1894f74a545f039a6ec2428)

3 years agoceph.spec.in: disable annobin plugin if compile with gcc-toolset 46377/head
Kefu Chai [Fri, 20 May 2022 06:25:10 +0000 (14:25 +0800)]
ceph.spec.in: disable annobin plugin if compile with gcc-toolset

we are seeing FTBFS failures when compiling the packages with seastar
enabled, like:

Package gcc-toolset-9-annobin-9.08-4.el8.x86_64 is already installed.
...
Package redhat-rpm-config-130-1.el8.noarch is already installed.
...
CFLAGS=-O2 -g -pipe -Wall -Werror=format-security  -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
...
-- The CXX compiler identification is GNU 9.2.1
....
    Building CXX object CMakeFiles/cmTC_386fb.dir/testCXXCompiler.cxx.o
    /opt/rh/gcc-toolset-9/root/usr/bin/c++   -O2 -g -pipe -Wall -Werror=format-security  -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection  -o CMakeFiles/cmTC_386fb.dir/testCXXCompiler.cxx.o -c /home/jenkins-build/build/workspace/ceph-dev-new-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos8/DIST/centos8/MACHINE_SIZE/gigantic/release/17.2.0-209-g3e01cd41/rpm/el8/BUILD/ceph-17.2.0-209-g3e01cd41/x86_64-redhat-linux-gnu/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
    cc1plus: fatal error: inaccessible plugin file /opt/rh/gcc-toolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/plugin/gcc-annobin.so expanded from short plugin name gcc-annobin: No such file or directory

the root cause is that redhat-rpm-config expects gcc-annobin:

$ cat /usr/lib/rpm/redhat/redhat-annobin-cc1 *cc1_options: + %{!-fno-use-annobin:%{!iplugindir*:%:find-plugindir()} -fplugin=gcc-annobin}

while this plugin is not installed by gcc-toolset-9-annobin, which installs annobin.so though:

$ rpm -ql gcc-toolset-9-annobin| grep annobin.so /opt/rh/gcc-toolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/plugin/annobin.so /opt/rh/gcc-toolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/plugin/annobin.so.0 /opt/rh/gcc-toolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/plugin/annobin.so.0.0.0

but gcc-toolset-8-annobin provides this file. upgrading to
gcc-toolset-11 does not help. see https://centos.pkgs.org/8-stream/centos-appstream-x86_64/gcc-toolset-11-annobin-plugin-gcc-10.23-1.el8.x86_64.rpm.html
so, the intermediate solution would be to disable the plugin, if
we want to use gcc-toolset to build rpm packages.

in this change, _annotated_build is undefined to prevent the compiler
from adding extra information to the binary. in general this change
shuold be safe, without these information, it'd be hard to tell if
the binary is hardened or what ABI version it expects. see
also https://fedoraproject.org/wiki/Changes/Annobin

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
(cherry picked from commit 5a78fe176419e097c61e6596dafc39477d652280)

3 years agoMerge pull request #46353 from mgfritch/backport-46218-quincy
Adam King [Mon, 23 May 2022 22:52:47 +0000 (18:52 -0400)]
Merge pull request #46353 from mgfritch/backport-46218-quincy

quincy: cephadm: prometheus: The generatorURL in alerts is only using hostname

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
3 years agoMerge pull request #46360 from adk3798/quincy-batch-may1
Adam King [Mon, 23 May 2022 22:51:46 +0000 (18:51 -0400)]
Merge pull request #46360 from adk3798/quincy-batch-may1

quincy: Cephadm Batch Backport May

Reviewed-by: Michael Fritch <mfritch@suse.com>
3 years agoMerge pull request #46246 from ljflores/wip-55624-quincy
Laura Flores [Mon, 23 May 2022 21:36:48 +0000 (16:36 -0500)]
Merge pull request #46246 from ljflores/wip-55624-quincy

quincy: ceph.in: clarify the usage of `--format` in the ceph command

3 years agomon/LogMonitor: reopen log files on SIGHUP 46374/head
胡玮文 [Tue, 3 May 2022 09:35:48 +0000 (17:35 +0800)]
mon/LogMonitor: reopen log files on SIGHUP

Fixes: https://tracker.ceph.com/issues/55383
Signed-off-by: 胡玮文 <huww98@outlook.com>
(cherry picked from commit ee80f9fe766fe765d79051ff59a1bcc94fc1f9e7)

3 years agoMerge pull request #45846 from dvanders/wip-55251-quincy
Yuri Weinstein [Mon, 23 May 2022 15:50:53 +0000 (08:50 -0700)]
Merge pull request #45846 from dvanders/wip-55251-quincy

quincy: rgw_reshard: drop olh entries with empty name

Reviewed-by: Casey Bodley <cbodley@redhat.com>
3 years ago.github: ensure object_format.py is labeled the same as mgr_util.py 46360/head
John Mulligan [Tue, 10 May 2022 14:31:34 +0000 (10:31 -0400)]
.github: ensure object_format.py is labeled the same as mgr_util.py

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 4904b02f9f042aa83ea4fd60ee112d2e06a487a5)

3 years agopybind/mgr: include object_format.py in CMakeLists.txt for build
John Mulligan [Tue, 10 May 2022 14:30:32 +0000 (10:30 -0400)]
pybind/mgr: include object_format.py in CMakeLists.txt for build

Because ceph uses CMake for building python packages too.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 1ecbffbea5d6af96be4b360cd30332779e793efc)

3 years agopybind/mgr: add short guide to the object_format.py docstring
John Mulligan [Wed, 13 Apr 2022 14:47:53 +0000 (10:47 -0400)]
pybind/mgr: add short guide to the object_format.py docstring

Add a short-ish guide to the use of the object_format module's Responder
and other types.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit d6c31681cf086546a803990e58785b9285fc2587)

3 years agopybind/mgr: add test cases for ErrorResponse exception type
John Mulligan [Mon, 11 Apr 2022 19:33:01 +0000 (15:33 -0400)]
pybind/mgr: add test cases for ErrorResponse exception type

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 55ee8a31631ac04629ffa2905d9a8ace9593599a)

3 years agopybind/mgr: add a wrapper exception for use with Responder
John Mulligan [Mon, 11 Apr 2022 19:32:42 +0000 (15:32 -0400)]
pybind/mgr: add a wrapper exception for use with Responder

In order to best get a "real" exception converted to something
that can be cleanly sent to the mgr response, this new exception
type can be invoked directly, or with the wrap method to automatically
pull as many properties as possibly from the original exception.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 777814d59429bc28eeee0b13201b60b672226753)

3 years agopybind/mgr: add tests to verify Responder decorator behavior
John Mulligan [Mon, 11 Apr 2022 19:16:48 +0000 (15:16 -0400)]
pybind/mgr: add tests to verify Responder decorator behavior

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 1800f30f04fcb24b3c02afb7122d7e1993c05cb3)

3 years agopybind/mgr: add format arg to Responder's extra args
John Mulligan [Mon, 11 Apr 2022 19:16:34 +0000 (15:16 -0400)]
pybind/mgr: add format arg to Responder's extra args

To ensure that the Responder can make use of a user provided `--format=`
parameter even if the programmer doesn't explicitly add one to the
args of an endpoint function we set the `extra_args` attribute on
our wrapper function so that CLICommand can later extract it.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit efee0d7ebc5d990338eb6d256fe23717bafe128d)

3 years agopybind/mgr: enhance CLICommand to fetch extra args from wrapped funcs
John Mulligan [Mon, 11 Apr 2022 19:03:12 +0000 (15:03 -0400)]
pybind/mgr: enhance CLICommand to fetch extra args from wrapped funcs

Previously, the CLICommand decorator "assumed" that the decorator was
applied directly to a mgr module api endpoint function. Now that we plan
on adding the Responder decorator into the mix we need a way of
properly fetching the arguments of the endpoint function. In addition,
the decorator itself needs to provide extra arguments to the mgr
(in cases where the endpoint function doesn't explicitly ask for it).
Thus we add a helper function to find the endpoint function when
wrapped as well as extract extra arguments when "walking" the stack
of __wrapped__ functions.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 2b22297f5664a2c778f6591dd1e1f3822fc5a3c1)

3 years agopybind/mgr: change to private _load_func_metadata classmethod
John Mulligan [Mon, 11 Apr 2022 18:46:37 +0000 (14:46 -0400)]
pybind/mgr: change to private _load_func_metadata classmethod

The load_func_metadata had exactly one use in the codebase, the
store_func_metadata method. It was also a staticmethod that referred to
a property of it's class.

This change makes the function "private" by renaming it to
_load_func_metadata, removing it from the public "surface area" of the
type. It changes it to a classmethod so that it would work correctly
if used from a subclass of CLICommand.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 8c7876146bb7d579cd000049611ae999a8bc1963)

3 years agopybind/mgr: add test cases for Responder type
John Mulligan [Mon, 11 Apr 2022 18:38:52 +0000 (14:38 -0400)]
pybind/mgr: add test cases for Responder type

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 76492408dcf18197162bf9220300c2f70701528b)

3 years agopybind/mgr: add a Responder decorator type
John Mulligan [Sat, 9 Apr 2022 19:19:37 +0000 (15:19 -0400)]
pybind/mgr: add a Responder decorator type

The Responder is the decorator that future endpoint functions in the mgr can
use to automatically handle conversions of returned types to serilaized
data (JSON, YAML, etc) as well as automatically convert exceptions into
error responses.

The Responder makes use of format and return-value adapter types,
previously added to the module, to convert a returned value into a mgr
response. This change adds some exception types to return error
responses to the clients.

Simple customizations can be done by passing an alternate format adapter
type when the Responder is being constructed. Additional customization
can be done by subclassing the Responder.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 6e234b190841204d076e1b622db543674d0c4b57)

3 years agopybind/mgr: add CommonFormatter type and valid_formats method
John Mulligan [Sat, 9 Apr 2022 19:13:41 +0000 (15:13 -0400)]
pybind/mgr: add CommonFormatter type and valid_formats method

A type that has a valid_formats method, and thus meets the
CommonFormatter protocol, supports distinguishing between formats
that are known but unsupported for a given API vs. unknown (possibly a typo).

To make working with the format names easier this also makes the Format
enum inherit from str.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 77573637cd78e50d1336680a23fd1044d626f855)

3 years agopybind/mgr: add a test case for the ReturnValueAdapter
John Mulligan [Sat, 9 Apr 2022 18:47:01 +0000 (14:47 -0400)]
pybind/mgr: add a test case for the ReturnValueAdapter

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 29d8be428c7aa0125ab5c6636cd4b8712e60f71b)

3 years agopybind/mgr: add a ReturnValueAdapter type to object_format.py
John Mulligan [Sat, 9 Apr 2022 18:46:50 +0000 (14:46 -0400)]
pybind/mgr: add a ReturnValueAdapter type to object_format.py

The ReturnValueAdapter type fulfills a similar role to the
ObjectFormatAdapter but instead of serializing data for the
body of a mgr response, extracts an return value (error code)
to reply with.

Most of the time it is totally unnecessary to provide an explicit
return value because if you have are returning a valid object (as
opposed to raising an exception) the return value will be zero
(success). However, in the off chance an type need to directly
communicate a return value for the mgr response it can provide
the `mgr_return_value` method and the adapater will discover
and use it.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 27787a9905d4d2e1062f7f4977377530d7aa8c23)

3 years agopybind/mgr: add test cases for ObjectFormatAdapter
John Mulligan [Sat, 9 Apr 2022 18:29:50 +0000 (14:29 -0400)]
pybind/mgr: add test cases for ObjectFormatAdapter

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit f2e10b7f504a6aa63a72422320d38d2b6334295b)

3 years agopybind/mgr: add ObjectFormatAdapter type to object_format.py
John Mulligan [Sat, 9 Apr 2022 18:29:25 +0000 (14:29 -0400)]
pybind/mgr: add ObjectFormatAdapter type to object_format.py

The ObjectFormatAdapter fills the role for bridging between types
that can return a simplified representation of themselves and
actually formatting objects as JSON and YAML.

Note that we do not want generally want types that serialize themselves
to JSON/YAML strings. That approach makes it harder to standardize on
the final output formatting (indentation, multiple yaml docs, etc).
Additionally, we do not want the types to need to specialize between
JSON and YAML. So, by default, we try to use a method `to_simplified`
which is not specific to any serialization format.  However, for
backwards compatibility with types that already have methods *that
return dicts/lists/etc* under the names `to_json` or `to_yaml` we
support using the `compatible` flag to enable the use of those methods.
If the adaptor fails to find a conversion method on the object,
serialization of the object itself is attempted - this way return values
of simple lists, dicts, etc also works.

An earlier version of this patch tried to share the JSON/YAML
serialization logic found in src/pybind/mgr/orchestrator/module.py.
However, this approach was deemed too complicated and we also preferred
to use yaml safe dumping whenever possible.  This does lead to a level
of code duplication. Dealing with this duplication is a task left for
the future.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 5a3f2ae916146a13290695e141c789722dbd9ad9)

3 years agopybind/mgr: reformat quoting in format enum
John Mulligan [Fri, 8 Apr 2022 15:15:55 +0000 (11:15 -0400)]
pybind/mgr: reformat quoting in format enum

Whenever possible I use 'black' to reformat the python code.
It's strict and its formatting is superset of what ceph's
formatting tools require. This change updates the code that was
moved into this file so that future uses of 'black' don't
reformat this section too.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 05b76159b6a262b6bbdab3c0b41a80a85bf705e0)

3 years agopybind/mgr: start a new object_format.py for general formatting
John Mulligan [Mon, 14 Mar 2022 15:29:50 +0000 (11:29 -0400)]
pybind/mgr: start a new object_format.py for general formatting

Currently, there's some auto-formatting logic in the orchestrator
module and a lot of ad-hoc formatting scattered around the mgr modules.
This new module aims to bring some of that together in a central
location.
Start by moving the Format enum from the orchestrator.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 006c33895f4b7559219821bcfafbe82e789e9e41)

3 years agodoc/cephadm: staggered upgrade docs
Adam King [Tue, 19 Apr 2022 17:20:45 +0000 (13:20 -0400)]
doc/cephadm: staggered upgrade docs

Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 6a68def64eb720ef0eeace7c0d19c48cb1f6e5bb)

3 years agomgr/cephadm: unit test for staggered upgrade param validation
Adam King [Wed, 13 Apr 2022 04:36:02 +0000 (00:36 -0400)]
mgr/cephadm: unit test for staggered upgrade param validation

Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 0a46fcb423133e662254ec1aad3704bcaf5e101b)

3 years agoqa/suites/orch/cephadm: staggered upgrade test
Adam King [Tue, 12 Apr 2022 16:39:26 +0000 (12:39 -0400)]
qa/suites/orch/cephadm: staggered upgrade test

Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 791e1d20b363c5960e11263312293383e2748a9d)

3 years agomgr/cephadm: autopep8 changes
Adam King [Tue, 5 Apr 2022 21:38:20 +0000 (17:38 -0400)]
mgr/cephadm: autopep8 changes

Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 62a06c464770c0253a6aebd94f8040dd58614c77)

3 years agomgr/cephadm: make use of new upgrade control parameters
Adam King [Fri, 1 Apr 2022 13:41:01 +0000 (09:41 -0400)]
mgr/cephadm: make use of new upgrade control parameters

Fixes: https://tracker.ceph.com/issues/54135
Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit c1f3497b43bff6f7640161807dce01dc089ce405)

3 years agomgr/cephadm: make UpgradeState from_json a bit safer
Adam King [Fri, 1 Apr 2022 12:20:28 +0000 (08:20 -0400)]
mgr/cephadm: make UpgradeState from_json a bit safer

This way, for downgrades to whatever versions
this lands in onward, having added new parameters to
UpgradeState shouldn't break anything. Can't do much
about downgrades to older versions from this one
but this should help in the future.

Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit aeaa0b5fd87068a31bfa61dd088c49affce42419)

3 years agomgr/cephadm: add new args and validation for staggered upgrade
Adam King [Wed, 30 Mar 2022 13:49:56 +0000 (09:49 -0400)]
mgr/cephadm: add new args and validation for staggered upgrade

Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit e6b0fe0e4859f83ca69d14d89f9e47f0ea74e770)

3 years agomgr/cephadm: split _do_upgrade into sub functions
Adam King [Mon, 28 Mar 2022 16:10:15 +0000 (12:10 -0400)]
mgr/cephadm: split _do_upgrade into sub functions

This function was around 500 lines and difficult to work
with. Splitting it into sub functions should hopefully make
it a bit easier to understand and make changes to.

Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 7b83c51fe63ae006b15dcf509c08a722f104788e)

3 years agomgr, mgr/prometheus: Fix regression with prometheus metrics
Prashant D [Thu, 17 Mar 2022 14:29:40 +0000 (14:29 +0000)]
mgr, mgr/prometheus: Fix regression with prometheus metrics

The ceph dameons on host are inheriting ceph version from the host.
This introduces a wrong interpretation in prometheus metrics as well
as in dump_server. Each ceph daemon should represent it's own
ceph version based on the ceph binary is use for that daemon.

Consider a situation where partial upgrade is done on host, some daemons
which are restarted should have ceph version tag as upgraded version
and rest should have older ceph version but presently all inherites
host version. In containerized environment, all daemons are
using ceph version of last daemon registered as a service on the host.

Fixes: https://tracker.ceph.com/issues/54611
Signed-off-by: Prashant D <pdhange@redhat.com>
(cherry picked from commit aeca2e41ef560cf51c1ad935cfb6470e782aa8d5)

3 years agomgr/cephadm: Adding prometheus service discovery endpoints
Redouane Kachach [Tue, 15 Mar 2022 16:02:41 +0000 (17:02 +0100)]
mgr/cephadm: Adding prometheus service discovery endpoints

Signed-off-by: Redouane Kachach <rkachach@redhat.com>
Fixes: https://tracker.ceph.com/issues/54309
(cherry picked from commit 0e0135a1b640dc06e9c2295f3fe172b0914bae2c)

3 years agomgr/cephadm: adding support to copy ceph conf to per fsid config location
Redouane Kachach [Tue, 17 May 2022 09:40:15 +0000 (11:40 +0200)]
mgr/cephadm: adding support to copy ceph conf to per fsid config location
Fixes: https://tracker.ceph.com/issues/55685
Signed-off-by: Redouane Kachach <rkachach@redhat.com>
(cherry picked from commit c5e4aa6085dab3a8ce6087efa0fc1caf904ba4ae)

3 years agomgr/cephadm: fix unit.stop for ceph daemons
Redouane Kachach [Mon, 25 Apr 2022 15:43:57 +0000 (17:43 +0200)]
mgr/cephadm: fix unit.stop for ceph daemons
Fixes: https://tracker.ceph.com/issues/55466
Signed-off-by: Redouane Kachach <rkachach@redhat.com>
(cherry picked from commit be9b7819d7bde47c4fa5e7919a8d2973e222c055)

3 years agomgr/cephadm: Adding an early ssh connectivity check during bootsrap
Redouane Kachach [Fri, 29 Apr 2022 06:26:27 +0000 (08:26 +0200)]
mgr/cephadm: Adding an early ssh connectivity check during bootsrap
Fixes: https://tracker.ceph.com/issues/55493
Fixes: https://tracker.ceph.com/issues/51665
Signed-off-by: Redouane Kachach <rkachach@redhat.com>
(cherry picked from commit dda803b38d7125673af4c61e7ad53def29408991)

3 years agomgr/cephadm: unit test for re-adding host and receiving loopback address
Adam King [Tue, 30 Nov 2021 13:45:47 +0000 (08:45 -0500)]
mgr/cephadm: unit test for re-adding host and receiving loopback address

Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit abfbbd383cadfa3e2862d939444e0e9218b3cb3b)

3 years agomgr/cephadm: re-use old ip when re-adding hosts if necessary
Adam King [Thu, 18 Nov 2021 20:22:39 +0000 (15:22 -0500)]
mgr/cephadm: re-use old ip when re-adding hosts if necessary

When a host is re-added without an explicit ip we can default to the old
ip we had stored for the host rather than either keeping the loopback
address or throwing an exception. We only want to actually error when
the only options left are error or use a resolved loopback address

Fixes: https://tracker.ceph.com/issues/53438
Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 7e8d8317bef1b35cddd99950e503f57710002e80)

3 years agomgr/cephadm: stripping out / from the end of the url
Redouane Kachach [Tue, 17 May 2022 15:26:39 +0000 (17:26 +0200)]
mgr/cephadm: stripping out / from the end of the url
Fixes: https://tracker.ceph.com/issues/55638
Signed-off-by: Redouane Kachach <rkachach@redhat.com>
(cherry picked from commit 17032f6be22e9efc3e199d7e35091025bfaae965)

3 years agomgr/cephadm: force fail over when we want to remove active mgr
Adam King [Tue, 17 May 2022 00:44:11 +0000 (20:44 -0400)]
mgr/cephadm: force fail over when we want to remove active mgr

Fixes: https://tracker.ceph.com/issues/55679
Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 63d13df4eb469fb6f5d85ee06184e7df670aa193)

3 years agomgr/cephadm: do not use sudo for root user
Redouane Kachach [Tue, 17 May 2022 10:32:50 +0000 (12:32 +0200)]
mgr/cephadm: do not use sudo for root user
Fixes: https://tracker.ceph.com/issues/55641
Signed-off-by: Redouane Kachach <rkachach@redhat.com>
(cherry picked from commit 7cfcc7ef089cb3458040b9b592a7d0bafbf4c2c2)