mgr/dashboard: Disable RBD clone action when conditions are not met
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Revert "rpm: on SUSE, podman is required for cephadm to work" and "spec: Podman (temporarily) requires apparmor-abstractions on suse"
Reviewed-by: Michael Fritch <mfritch@suse.com>
Implement node_[un]resolve_vals to transform values to/from block relative
representations when copying out of/in to newly created blocks. This can
happen when splitting a node which has had entries added during the
same transaction, or itself was created during the transaction.
Signed-off-by: Samuel Just <sjust@redhat.com>
Weak transactions won't keep references in memory as we traverse
the tree, update each recursive call to ensure lifecycle of
this.
Signed-off-by: Samuel Just <sjust@redhat.com>
current_journal_segment_seq was misleading -- it's actually the value
for the next one. Fix naming and update get_journal_seq.
Signed-off-by: Samuel Just <sjust@redhat.com>
We'll need to do at least two forms of scan:
- deltas for replay
- extents for gc
Most of the mechanics are common, however, so this patch
hoists the common machinery into scan_segemnt.
Signed-off-by: Samuel Just <sjust@redhat.com>
Adds support for space accounting to SegmentCleaner and wires into
Journal, Cache, and tests.
SegmentCleaner has two tracking implementations, SpaceTrackerSimple
and SpaceTrackerDetailed. SpaceTrackerSimple simply keeps a count
of live bytes and is intended to be the normal implementation.
SpaceTrackerDetailed maintains a bitmap and is simply useful
for debugging unit tests. It may be removed in the future.
Signed-off-by: Samuel Just <sjust@redhat.com>
Combined the functionality with the newer 'set_image_extents' call
to simplify the call-site logic for IO reads.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
With the incorporation of the ImageDispatcher, there is no longer a
need for the ImageCache (and related) classes which were added as
a temporary workaround to incorporate the PWL cache.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
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>
to silence lint warning like:
services/tcmu_service.py:64:39: E126 continuation line over-indented for hanging indent':'./services/tcmu_service.py:64:39: E126 continuation line over-indented for hanging indent'}
2: 1 E126 continuation line over-indented for hanging indent
Signed-off-by: Kefu Chai <kchai@redhat.com>
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>
to address the failure of
The conflict is caused by:
flake8 3.7.8 depends on pycodestyle<2.6.0 and >=2.5.0
autopep8 1.5.4 depends on pycodestyle>=2.6.0
when building the "mgr-dashboard-venv" target
Signed-off-by: Kefu Chai <kchai@redhat.com>
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>
The MDS Autoscaler provides automation to maintain a required count of
MDSs in the system.
The MDS count in the system can be afected by:
* max_mds config option
* standby_count_wanted config option
* death of an active MDS Rank
Fixes: https://tracker.ceph.com/issues/46884
Signed-off-by: Milind Changire <mchangir@redhat.com>