Commit Graph

133420 Commits

Author SHA1 Message Date
Kefu Chai
6cdec0cdfe cmake: enforce gcc-10 for win32 port
we only have GCC-10 targeting MinGW at the time of writing, and it
is good enough for compiling the Winows port.

so let's relax the requirement to enable the windows build.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2022-08-15 15:24:15 +08:00
Kefu Chai
3f4ccb1582
Merge pull request #47402 from NitzanMordhai/wip-nitzan-crimson-rbd-cls-watcher-list
crimson/osd: Port rgw watcher list

Reviewed-by: Samuel Just <sjust@redhat.com>
2022-08-15 15:12:54 +08:00
Yingxin
adc4e8ace5
Merge pull request #47552 from myoungwon/wip-fix-seastore-trm-test
test/crimson/seastore: unittest-transaction-manager fixes

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
2022-08-15 11:41:26 +08:00
Yingxin Cheng
e9cbed2c4d crimson/os/seastore/transaction_manager: don't return invalid extent in get_extents_if_live()
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2022-08-15 11:34:51 +08:00
Yingxin Cheng
9d0305d1e2 crimson/os/seastore/async_cleaner: cleanup and add logs to gc trim
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2022-08-15 11:34:51 +08:00
Yingxin Cheng
ec2c48343a crimson/os/seastore: document how get_extents_if_live deals with extents split
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2022-08-15 11:34:51 +08:00
Yingxin Cheng
a8deede8bc crimson/os/seastore/transaction_manager: cleanups to get_extents_if_live
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2022-08-15 11:34:51 +08:00
Yingxin Cheng
f1c1a5fc1c crimson/os/seastore/async_cleaner: cleanup, introduce do_gc_reclaim()
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2022-08-15 11:34:51 +08:00
Yingxin Cheng
b84c4bc453 crimson/os/seastore/async_cleaner: move retrieve_backref_extents_in_range to weak transaction
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2022-08-15 11:34:51 +08:00
Yingxin Cheng
4ed5b25667 crimson/os/seastore/async_cleaner: cleanup gc_reclaim_space()
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2022-08-15 11:34:51 +08:00
Yingxin Cheng
d041427a6c crimson/os/seastore/async_cleaner: use weak transaction to get backref mappings
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2022-08-15 11:34:51 +08:00
zdover23
ff09049cdd
Merge pull request #47580 from zdover23/wip-doc-2022-08-14-rados-operations-operating-prompt-update
doc/rados/operations: add prompts to operating.rst

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
2022-08-15 10:15:23 +10:00
Ilya Dryomov
b34ecdc838
Merge pull request #47570 from idryomov/wip-57107
rbd: find_action() should sort actions first

Reviewed-by: Mykola Golub <mgolub@suse.com>
2022-08-14 12:22:41 +02:00
Ronen Friedman
d779902ed3
Merge pull request #46891 from ronen-fr/wip-rf-redo-noscrub
osd/scrub: modify scrub behaviour under no-scrub

Reviewed-by: Aishwarya Mathuria <amathuri@redhat.com>
2022-08-14 12:09:35 +03:00
Zac Dover
69d62c05ef doc/rados/operations: add prompts to operating.rst
This commit adds ".. prompt:: bash $"-style prompts to operating.rst.
This brings this file up to the standard established in 2020 when
Kefu added support for the ".. prompt::" directive.

This commit is a part of an initiative to modernize the presentation
of all BASH commands in the RADOS documentation.

The progress of this project can be tracked here:
https://tracker.ceph.com/issues/57108

Signed-off-by: Zac Dover <zac.dover@gmail.com>
2022-08-14 09:14:56 +10:00
Ilya Dryomov
0d4786e0af
Merge pull request #44436 from nh2/patch-2
doc/man/rbd: Mention changed `bluestore_min_alloc_size`

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
2022-08-12 17:57:59 +02:00
Niklas Hambüchen
254025343b doc/man/rbd: Mention changed bluestore_min_alloc_size
This change was done in: https://github.com/ceph/ceph/pull/34588

Signed-off-by: Niklas Hambüchen <mail@nh2.me>
2022-08-12 17:00:23 +02:00
Kefu Chai
15f612fdbc
Merge pull request #47272 from dheart-joe/master
test/osd/TestPGLog: Fix confusing description between log and olog.

Reviewed-by: Samuel Just <sjust@redhat.com>
2022-08-12 22:18:24 +08:00
Kefu Chai
6c94665dae
Merge pull request #46318 from rzarzynski/wip-mon-fix-mgrmap-rc
mon: fix a race between `mgr fail` and MgrMonitor::prepare_beacon()

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
2022-08-12 22:17:06 +08:00
Kefu Chai
4cc3df9b6f
Merge pull request #44836 from NitzanMordhai/wip-nitzan-osd-status-format-json
pybind/mgr: fix "osd status" command output with format json

Reviewed-by: Kotresh HR <khiremat@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Jos Collin <jcollin@redhat.com>
2022-08-12 21:59:27 +08:00
Ilya Dryomov
4ddcb7ff92 PendingReleaseNotes: add rbd compare-and-write notes
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2022-08-12 13:57:54 +02:00
Jonas Pfefferle
af96e6dae3 librbd: make C++ cmp&write semantics equal to C API
The compare and write C++ API (both sync and async) does not check
compare bufferlist length and executes compare ops of bufferlist length
size, even if (write) "len" is smaller than bufferlist length.
This patch changes this behavior by always issuing compares and
writes of "len" size to match the C API. The bufferlist length
can be greater than "len" for both compare and write but only
"len" bytes are compared and written. If the bufferlist length
is smaller than "len" the call will fail.

Signed-off-by: Jonas Pfefferle <pepperjo@japf.ch>
2022-08-12 13:57:54 +02:00
Jonas Pfefferle
d80cff0dd6 librbd: remove cmp&write sector size restriction
This patch removes the compare and write max sector size len
restriction. We can allow up to stripe unit size accesses if
the access is aligned properly.
To allow larger size compare and write requests in the
journal we split the buffers like we do for writes now.

Signed-off-by: Jonas Pfefferle <pepperjo@japf.ch>
2022-08-12 13:57:54 +02:00
Jonas Pfefferle
3eb7ac6aeb librbd: new cmp&write C API tests
Test correct mismatch offset is returned.
Test no data is written when compare fails.
Test correct data is written when compare succeeds.

Signed-off-by: Jonas Pfefferle <pepperjo@japf.ch>
2022-08-12 13:57:54 +02:00
Kefu Chai
10a993e881
Merge pull request #47568 from tchaikov/wip-dashboard-more-itertools
mgr/dashboard: bump up more-itertools

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
2022-08-12 18:06:57 +08:00
Venky Shankar
c4d6729fb8
Merge pull request #44710 from joscollin/wip-F40633-dump-recent-extraordinary-events
mds: dump recent log events for extraordinary events

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Milind Changire <mchangir@redhat.com>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2022-08-12 15:00:49 +05:30
Venky Shankar
22f42d8ad9
Merge pull request #47067 from phlogistonjohn/jjm-cephfs-clone-config-1
mgr/volumes: prevent intermittent ParsingError failure in "clone cancel"

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Ramana Raja <rraja@redhat.com>
Reviewed-by: Kotresh HR <khiremat@redhat.com>
Reviewed-by: Nikhilkumar Shelke <nshelke@redhat.com>
2022-08-12 14:42:12 +05:30
Ilya Dryomov
1483e2a202 rbd: remove incorrect use of std::includes()
- std::includes() requires sorted ranges but command specs aren't
  sorted
- std::includes() purpose is to check whether the second range is
  a subsequence of the first range but here the size of the second
  range is always equal to the size of the first range, which means
  that, had the ranges been sorted, std::includes() would have checked
  straight equality

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2022-08-12 11:10:45 +02:00
Ilya Dryomov
e0b428a87a rbd: find_action() should sort actions first
The order in which objects with static storage duration in
different TUs are initialized is undefined.  If the compiler
chooses to initialize Shell::Action objects in action/Trash.cc
before Shell::Action objects in action/TrashPurgeSchedule.cc,
all "rbd trash purge schedule ..." commands get shadowed by
"rbd trash purge" command:

$ rbd trash purge schedule list
rbd: too many arguments

The confusing error arises because "rbd trash purge" takes a single
positional argument.  "schedule" gets interpreted as <pool-spec> and
"list" generates an error.

Fixes: https://tracker.ceph.com/issues/57107
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2022-08-12 11:10:45 +02:00
Venky Shankar
5cd9e3b75f
Merge pull request #46750 from Mer1997/wip-56116
mds: replacing bootstrap session only if handle client session message

Reviewed-by: Venky Shankar <vshankar@redhat.com>
2022-08-12 14:39:37 +05:30
Kefu Chai
26f5678d4f mgr/dashboard: bump up more-itertools
before this change, more-itertools tries to import Sequence from
collections, this leads us to failures like:

```
Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 187, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "/usr/lib/python3.10/runpy.py", line 110, in _get_module_details
    __import__(pkg_name)
  File
"/home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr/dashboard/__init__.py",
line 9, in <module>
    import cherrypy
  File
"/home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr/dashboard/.tox/openapi-check/lib/python3.10/site-packages/cherrypy/__init__.py",
line 76, in <module>
    from . import _cprequest, _cpserver, _cptree, _cplogging, _cpconfig
  File
"/home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr/dashboard/.tox/openapi-check/lib/python3.10/site-packages/cherrypy/_cprequest.py",
line 11, in <module>
    from cherrypy import _cpreqbody
  File
"/home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr/dashboard/.tox/openapi-check/lib/python3.10/site-packages/cherrypy/_cpreqbody.py",
line 135, in <module>
    import cheroot.server
  File
"/home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr/dashboard/.tox/openapi-check/lib/python3.10/site-packages/cheroot/server.py",
line 96, in <module>
    from .workers import threadpool
  File
"/home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr/dashboard/.tox/openapi-check/lib/python3.10/site-packages/cheroot/workers/threadpool.py",
line 20, in <module>
    from jaraco.functools import pass_none
  File
"/home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr/dashboard/.tox/openapi-check/lib/python3.10/site-packages/jaraco/functools.py",
line 8, in <module>
    import more_itertools
  File
"/home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr/dashboard/.tox/openapi-check/lib/python3.10/site-packages/more_itertools/__init__.py",
line 1, in <module>
    from more_itertools.more import *  # noqa
  File
"/home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr/dashboard/.tox/openapi-check/lib/python3.10/site-packages/more_itertools/more.py",
line 3, in <module>
    from collections import Counter, defaultdict, deque, Sequence
ImportError: cannot import name 'Sequence' from 'collections'
(/usr/lib/python3.10/collections/__init__.py)
ERROR: InvocationError for command
/home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr/dashboard/.tox/openapi-check/bin/python3
-m dashboard.controllers.docs
/home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr/dashboard/.tox/openapi-check/tmp/openapi.yaml
(exited with code 1)
```
after this change, more-itertools is pin'ed at the latest stable
at the time of writing, which includes the fixes including
30a861bc5a
.

please note, more-itertools dropped python3.3 support. but neither
do us support this python version, so we should be safe.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2022-08-12 13:12:44 +08:00
胡玮文
bf75a9ea08 mon/MDSMonitor: remove redundant state change check
There are two sets of checks to state change in prepare_beacon.
Since the last commit, many of these checks are covered by
`MDSMap::state_transition_valid`. So merging these checks.

This fixes the bug that standby-replay is evicted unexpectedly.
This bug is introduced in
794d13c9ff (mon/MDSMonitor: reject illegal want_states from MDS)
but only reveal itself after
20509bb6c8 (MDSMonitor: handle damaged from standby-replay)

Fixes: https://tracker.ceph.com/issues/53811
Signed-off-by: 胡玮文 <huww98@outlook.com>
2022-08-12 09:30:37 +08:00
胡玮文
0601552b91 mds/FSMap: stricter state_transition_valid
Reject any unknown transitions.

MDSRank::state initialize to standy and assert no update is missed.

Signed-off-by: 胡玮文 <huww98@outlook.com>
2022-08-12 09:30:37 +08:00
胡玮文
969061e8d5 doc: complete MDS state diagram
Add missing rejoin -> stopped.
MDS can transit from replay-standy to damaged Since 20509bb6c8.

Signed-off-by: 胡玮文 <huww98@outlook.com>
2022-08-12 09:30:37 +08:00
胡玮文
b4cc22a57f mds: remove reference to mds-state-diagram.svg
We no longer generate that file since c783ae10aa

Signed-off-by: 胡玮文 <huww98@outlook.com>
2022-08-12 09:30:36 +08:00
myoungwon oh
3873ac965a test/seastore: add write seqeunce to avoid racing
In the middle of test_random_write_concurrrent(), there is a chance
that consume(laddr A), regarding transaction 1, in try_submit_transaction
can be called after transaction 2's consume(laddr A) is invoked (note that
seastore handles both transaction 1 and 2 in order, and each other's laddr
are the same).

To avoid this, this commit adds a write seqeunce to prevent overwriting
old checksum associated with laddr---old checksum will not be updated
after write sequence comparison.

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
2022-08-12 10:21:50 +09:00
myoungwon oh
5538178619 seastore: prevent re-entering do_gc_cycle() when run_until_halt is called
Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2022-08-12 10:21:37 +09:00
Kefu Chai
cc63d6ee73
Merge pull request #46523 from alvistack/pg_autoscaler-module.py
pybind/mgr: maximum recursion depth exceeded in comparison

Reviewed-by: Kefu Chai <tchaikov@gmail.com>
2022-08-12 09:14:57 +08:00
Adam King
fae04dc7ec mgr/cephadm: mock CephadmHttpServer run in unit tests
While tests were still passing, since this server class
was added the units tests are taking significantly longer to
run and I'm seeing messages like

Failed to run cephadm http server: Expected 4 octets in "<MagicMock name='mock.get().__getitem__()' id='139931011514704'>"

The run time given by "time tox -e py3" without this commit on
my local machine was

real	2m45.749s
user	16m13.273s
sys	0m11.041s

and with this commit (and the server run function therefore mocked)

real	0m36.164s
user	0m26.932s
sys	0m2.367s

so it seems to run about 4x faster with the server run function
mocked and the tests pass in both cases

Issue introduced by: a0fe3ffdaa

Signed-off-by: Adam King <adking@redhat.com>
2022-08-11 14:30:04 -04:00
Casey Bodley
51e09d1c8a build: temporarily disable WITH_RADOSGW_MOTR in make check
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2022-08-11 13:50:42 -04:00
Adam King
5cabdbdaa9 mgr/cephadm: unit test for draining with explicit placements
Signed-off-by: Adam King <adking@redhat.com>
2022-08-11 13:49:44 -04:00
Adam King
7e8c07a3dd mgr/cephadm: fix handling of draining hosts with explicit placement specs
Basically, if you have a placement that explicitly defines the hosts
to place on, and then add _no_schedule label to one of the hosts (which
should cause all daemons to be removed from the host) cpehadm will simply
fail to apply the spec, saying the host with the _no_schedule label is "Unknown".
This is due to the fact that we remove hosts with the _no_schedule label from
the pool of hosts the scheduler has to work with entirely. If we also provide
the scheduler with a list of currently draining hosts, it can handle this
better and the daemon can be drained off the host as expected.

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

Signed-off-by: Adam King <adking@redhat.com>
2022-08-11 13:49:44 -04:00
Guillaume Abrioux
bed306c42f cephadm: fix incorrect warning
when running `ceph orch osd rm` with `--zap`, it throws a warning
whereas it shouldn't

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
2022-08-11 16:51:56 +02:00
Guillaume Abrioux
54fb7fd762 ceph-volume: fix 'ceph_device' field in inventory
`ceph-volume inventory` should display a boolean value for the field
'ceph_device'.

current result:

```
[root@6bda9ce84c4d /]# ceph-volume inventory /dev/vda

====== Device report /dev/vda ======

     path                      /dev/vda
     ceph device               None

```

expected result:

```
[root@6bda9ce84c4d /]# ceph-volume inventory /dev/sda

====== Device report /dev/sda ======

     path                      /dev/sda
     ceph device               True

[root@6bda9ce84c4d /]# ceph-volume inventory /dev/vda

====== Device report /dev/vda ======

     path                      /dev/vda
     ceph device               False

```

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

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
2022-08-11 16:41:04 +02:00
Guillaume Abrioux
f0cea6f24b cephadm: filter out non-ceph devices in _zap_osds()
`cephadm rm-cluster` tries to zap the device of the root fs.

```
fatal: [ceph-node4]: FAILED! => changed=true
  cmd:
  - cephadm
  - rm-cluster
  - --force
  - --zap-osds
  - --fsid
  - 4217f198-b8b7-11eb-941d-5254004b7a69
  delta: '0:00:28.784423'
  end: '2022-08-11 10:15:53.676985'
  msg: non-zero return code
  rc: 1
  start: '2022-08-11 10:15:24.892562'
  stderr: |-
    Traceback (most recent call last):
      File "/sbin/cephadm", line 9780, in <module>
        main()
      File "/sbin/cephadm", line 9768, in main
        r = ctx.func(ctx)
      File "/sbin/cephadm", line 7222, in command_rm_cluster
        _zap_osds(ctx)
      File "/sbin/cephadm", line 2152, in _infer_image
        return func(ctx)
      File "/sbin/cephadm", line 7162, in _zap_osds
        _zap(ctx, i.get('path'))
      File "/sbin/cephadm", line 7138, in _zap
        out, err, code = call_throws(ctx, c.run_cmd())
      File "/sbin/cephadm", line 1829, in call_throws
        raise RuntimeError('Failed command: %s' % ' '.join(command))
    RuntimeError: Failed command: /bin/podman run --rm --ipc=host --stop-signal=SIGTERM --net=host --entrypoint /usr/sbin/ceph-volume --privileged --group-add=disk --init -e CONTAINER_IMAGE=quay.ceph.io/ceph-ci/ceph@sha256:f50052ef84fe9a241e0f90d3d7a321394ab01b6792a5d802b6afe35bf52d35b9 -e NODE_NAME=ceph-node4 -e CEPH_USE_RANDOM_NONCE=1 -e CEPH_VOLUME_SKIP_RESTORECON=yes -e CEPH_VOLUME_DEBUG=1 -e CEPH_VOLUME_SKIP_RESTORECON=yes -e CEPH_VOLUME_DEBUG=1 -e CEPH_VOLUME_SKIP_RESTORECON=yes -e CEPH_VOLUME_DEBUG=1 -e CEPH_VOLUME_SKIP_RESTORECON=yes -e CEPH_VOLUME_DEBUG=1 -e CEPH_VOLUME_SKIP_RESTORECON=yes -e CEPH_VOLUME_DEBUG=1 -v /dev:/dev -v /run/udev:/run/udev -v /sys:/sys -v /run/lvm:/run/lvm -v /run/lock/lvm:/run/lock/lvm quay.ceph.io/ceph-ci/ceph@sha256:f50052ef84fe9a241e0f90d3d7a321394ab01b6792a5d802b6afe35bf52d35b9 lvm zap --destroy /dev/vda
  stderr_lines: <omitted>
  stdout: |-
    Using ceph image with id '9d87f3df8246' and tag '<none>' created on 2022-08-10 21:43:03 +0000 UTC
    quay.ceph.io/ceph-ci/ceph@sha256:f50052ef84fe9a241e0f90d3d7a321394ab01b6792a5d802b6afe35bf52d35b9
    Zapping /dev/sda...
    Zapping /dev/sdb...
    Zapping /dev/sdc...
    Zapping /dev/vda...
    Non-zero exit code 1 from /bin/podman run --rm --ipc=host --stop-signal=SIGTERM --net=host --entrypoint /usr/sbin/ceph-volume --privileged --group-add=disk --init -e CONTAINER_IMAGE=quay.ceph.io/ceph-ci/ceph@sha256:f50052ef84fe9a241e0f90d3d7a321394ab01b6792a5d802b6afe35bf52d35b9 -e NODE_NAME=ceph-node4 -e CEPH_USE_RANDOM_NONCE=1 -e CEPH_VOLUME_SKIP_RESTORECON=yes -e CEPH_VOLUME_DEBUG=1 -e CEPH_VOLUME_SKIP_RESTORECON=yes -e CEPH_VOLUME_DEBUG=1 -e CEPH_VOLUME_SKIP_RESTORECON=yes -e CEPH_VOLUME_DEBUG=1 -e CEPH_VOLUME_SKIP_RESTORECON=yes -e CEPH_VOLUME_DEBUG=1 -e CEPH_VOLUME_SKIP_RESTORECON=yes -e CEPH_VOLUME_DEBUG=1 -v /dev:/dev -v /run/udev:/run/udev -v /sys:/sys -v /run/lvm:/run/lvm -v /run/lock/lvm:/run/lock/lvm quay.ceph.io/ceph-ci/ceph@sha256:f50052ef84fe9a241e0f90d3d7a321394ab01b6792a5d802b6afe35bf52d35b9 lvm zap --destroy /dev/vda
    /bin/podman: stderr Traceback (most recent call last):
    /bin/podman: stderr   File "/usr/sbin/ceph-volume", line 11, in <module>
    /bin/podman: stderr     load_entry_point('ceph-volume==1.0.0', 'console_scripts', 'ceph-volume')()
    /bin/podman: stderr   File "/usr/lib/python3.6/site-packages/ceph_volume/main.py", line 41, in __init__
    /bin/podman: stderr     self.main(self.argv)
    /bin/podman: stderr   File "/usr/lib/python3.6/site-packages/ceph_volume/decorators.py", line 59, in newfunc
    /bin/podman: stderr     return f(*a, **kw)
    /bin/podman: stderr   File "/usr/lib/python3.6/site-packages/ceph_volume/main.py", line 153, in main
    /bin/podman: stderr     terminal.dispatch(self.mapper, subcommand_args)
    /bin/podman: stderr   File "/usr/lib/python3.6/site-packages/ceph_volume/terminal.py", line 194, in dispatch
    /bin/podman: stderr     instance.main()
    /bin/podman: stderr   File "/usr/lib/python3.6/site-packages/ceph_volume/devices/lvm/main.py", line 46, in main
    /bin/podman: stderr     terminal.dispatch(self.mapper, self.argv)
    /bin/podman: stderr   File "/usr/lib/python3.6/site-packages/ceph_volume/terminal.py", line 194, in dispatch
    /bin/podman: stderr     instance.main()
    /bin/podman: stderr   File "/usr/lib/python3.6/site-packages/ceph_volume/devices/lvm/zap.py", line 401, in main
    /bin/podman: stderr     self.args = parser.parse_args(self.argv)
    /bin/podman: stderr   File "/usr/lib64/python3.6/argparse.py", line 1734, in parse_args
    /bin/podman: stderr     args, argv = self.parse_known_args(args, namespace)
    /bin/podman: stderr   File "/usr/lib64/python3.6/argparse.py", line 1766, in parse_known_args
    /bin/podman: stderr     namespace, args = self._parse_known_args(args, namespace)
    /bin/podman: stderr   File "/usr/lib64/python3.6/argparse.py", line 1975, in _parse_known_args
    /bin/podman: stderr     stop_index = consume_positionals(start_index)
    /bin/podman: stderr   File "/usr/lib64/python3.6/argparse.py", line 1931, in consume_positionals
    /bin/podman: stderr     take_action(action, args)
    /bin/podman: stderr   File "/usr/lib64/python3.6/argparse.py", line 1824, in take_action
    /bin/podman: stderr     argument_values = self._get_values(action, argument_strings)
    /bin/podman: stderr   File "/usr/lib64/python3.6/argparse.py", line 2279, in _get_values
    /bin/podman: stderr     value = [self._get_value(action, v) for v in arg_strings]
    /bin/podman: stderr   File "/usr/lib64/python3.6/argparse.py", line 2279, in <listcomp>
    /bin/podman: stderr     value = [self._get_value(action, v) for v in arg_strings]
    /bin/podman: stderr   File "/usr/lib64/python3.6/argparse.py", line 2294, in _get_value
    /bin/podman: stderr     result = type_func(arg_string)
    /bin/podman: stderr   File "/usr/lib/python3.6/site-packages/ceph_volume/util/arg_validators.py", line 57, in __call__
    /bin/podman: stderr     return self._format_device(self._is_valid_device())
    /bin/podman: stderr   File "/usr/lib/python3.6/site-packages/ceph_volume/util/arg_validators.py", line 60, in _is_valid_device
    /bin/podman: stderr     super()._is_valid_device()
    /bin/podman: stderr   File "/usr/lib/python3.6/site-packages/ceph_volume/util/arg_validators.py", line 48, in _is_valid_device
    /bin/podman: stderr     raise RuntimeError("Device {} has partitions.".format(self.dev_path))
    /bin/podman: stderr RuntimeError: Device /dev/vda has partitions.
  stdout_lines: <omitted>
```

In this case, the python trace thrown by ceph-volume is expected given
that `/dev/vda` is the device used for the root fs.

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

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
2022-08-11 16:33:03 +02:00
Adam King
5ab5ff46d6
Merge pull request #47366 from adk3798/quoted-networks
cephadm: support quotes around public/cluster network in config passed to bootstrap

Reviewed-by: Francesco Pantano <fpantano@redhat.com>
Reviewed-by: John Mulligan <jmulligan@redhat.com>
2022-08-11 08:46:12 -04:00
Adam King
af2fb9d6e7
Merge pull request #47346 from rhcs-dashboard/remove-grafana-loki-dependency
mgr/dashboard: add flag to automatically deploy loki/promtail service at bootstrap

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
2022-08-11 08:44:38 -04:00
Radoslaw Zarzynski
07a82c5b23 crimson/osd: inform in logs that TMAP is not supported
Simpler this way than to investigate for `EOPNOTSUPP`.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2022-08-11 12:10:16 +00:00
Radoslaw Zarzynski
82393aaabe crimson/net: add debug on SocketMessenger's destruction
The `logic_name` will hopefully help if the assertion in the dtor
fails (which actually started happing).

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2022-08-11 12:10:00 +00:00
Luis Domingues
1b9a6a0f58
mgr/cephadm: loop over all vips when trying to find ingress' interface
Signed-off-by: Luis Domingues <domingues.luis@protonmail.ch>
2022-08-11 11:01:23 +01:00