The Size class can now parse strings and has support for arithmetic
operations and comparisons with numbers.
Signed-off-by: Jan Fajerski <jfajerski@suse.com>
mgr/dashboard: fix visibility of pwdExpirationDate field
Reviewed-by: Volker Theile <vtheile@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
* refs/pull/31232/head:
test: test case for openfiletable MAX_ITEMS_PER_OBJ value verification
mds/OpenFileTable: match MAX_ITEMS_PER_OBJ to osd_deep_scrub_large_omap_object_key_threshold
Reviewed-by: Zheng Yan <zyan@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
* refs/pull/31817/head:
mds: send delegated_inos in openc response
mds: make take_ino just return 0 if it can't find one
mds: add infrastructure for delegating inos from the prealloc set
mds: fix dump of prealloc and used inos
mds: don't warn when inodes are not allocated out sequentially
mds: fix decoding version for EMetaBlob
mds: remove MDRequestImpl::did_ino_allocation()
mds: add a comment explaining what session_info_t is
doc: fix awkward phrasing in caching.txt
Reviewed-by: Zheng Yan <zyan@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
the output would look like
```
[ SKIPPED ] SkipTest.DoesSkip (0 ms)
```
easier for tester/developer to review the test result.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Previously, the min and max log length was the same, so we didn't adjust
our log length based on whether we were degraded. Preserve that behavior
by removing the degraded check entirely. This keeps memory usage
consistent when recovery happens.
Signed-off-by: Sage Weil <sage@redhat.com>
Set the default budget based on the current defaults: 3000 per osd, and a
rule of thumb target of 100 PGs per OSD. Set the per-PG trim target
by dividing the overall value by the number of PGs on the OSD.
Increase the max pg log length alone, so if the OSD has <100 PGs,
those PGs will get more entries. Reduce the minimum to be smaller than
the max. Use the min/max config options to bracket what is allocated to
a single PG.
Signed-off-by: Sage Weil <sage@redhat.com>
This ensures that get_random_osd_session behaves when it does
int n = by_osd.rbegin()->first + 1;
int r = rand() % n;
Fixes: https://tracker.ceph.com/issues/43552
Signed-off-by: Sage Weil <sage@redhat.com>
It may happen (the state object already removed) when handling
replayed RPC message.
Fixes: https://tracker.ceph.com/issues/43666
Signed-off-by: Mykola Golub <mgolub@suse.com>
According to the path restriction example, the filesystem name
should be cephfs_a, not cephfs. Converge on cephfs_a to avoid it
being confused with with the pool tag, which is always cephfs.
This was introduced in 160c4bfeb8 ("mon/AuthMonitor: Use new osd
auth caps for ceph fs authorize").
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Add npm-force-resolutions to help fix npm vulnerabilities.
When you need to force a package to be updated,
add it to the resolutions lists in package.json and run "npm run fix:audit".
This will update package-lock.json and all next "npm ci" will contain the
specified version of the package.
Signed-off-by: Tiago Melo <tmelo@suse.com>
The default values are handled by mgr_module.py's _get_module_option();
the or here means that we break any non-true (0, false, none) value and
override it with the default.
https://tracker.ceph.com/issues/43746
Signed-off-by: Sage Weil <sage@redhat.com>
it's stale. as we now require 3.10 after dropping the support of xenial.
and it's incomplete, we have a ton of build dependencies apart from
cmake.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Show the 'pwdExpirationDate' form field only if SSO is not enabled.
Also show a helper message if 'pwdExpirationSpan' is '0' to let
the admin know that the password will only expire once.
Fixes: https://tracker.ceph.com/issues/43523
Signed-off-by: Tatjana Dehler <tdehler@suse.com>