mirror of
https://github.com/ceph/ceph
synced 2024-12-26 21:43:10 +00:00
Merge pull request #45266 from tchaikov/wip-sphinx
admin/doc-requirements: bump sphinx to 4.4.0 Reviewed-by: Michael Fritch <mfritch@suse.com> Reviewed-by: Laura Flores <lflores@redhat.com>
This commit is contained in:
commit
4bc772aed3
@ -1,4 +1,4 @@
|
||||
Sphinx == 3.5.4
|
||||
Sphinx == 4.4.0
|
||||
git+https://github.com/ceph/sphinx-ditaa.git@py3#egg=sphinx-ditaa
|
||||
git+https://github.com/vlasovskikh/funcparserlib.git
|
||||
breathe >= 4.20.0,!=4.33
|
||||
@ -10,7 +10,7 @@ pcpp
|
||||
prettytable
|
||||
sphinx-autodoc-typehints
|
||||
sphinx-prompt
|
||||
sphinx_rtd_theme == 0.5.2
|
||||
sphinx_rtd_theme == 1.0.0
|
||||
Sphinx-Substitution-Extensions
|
||||
typed-ast
|
||||
sphinxcontrib-openapi
|
||||
|
@ -167,7 +167,8 @@ breathe_domain_by_extension = {'py': 'py',
|
||||
breathe_doxygen_config_options = {
|
||||
'EXPAND_ONLY_PREDEF': 'YES',
|
||||
'MACRO_EXPANSION': 'YES',
|
||||
'PREDEFINED': 'CEPH_RADOS_API= '
|
||||
'PREDEFINED': 'CEPH_RADOS_API= ',
|
||||
'WARN_IF_UNDOCUMENTED': 'NO',
|
||||
}
|
||||
|
||||
# graphviz options
|
||||
|
@ -15,7 +15,7 @@ import re
|
||||
|
||||
from collections import namedtuple, OrderedDict
|
||||
from contextlib import contextmanager
|
||||
from functools import wraps, reduce
|
||||
from functools import wraps, reduce, update_wrapper
|
||||
|
||||
from typing import TypeVar, Generic, List, Optional, Union, Tuple, Iterator, Callable, Any, \
|
||||
Sequence, Dict, cast, Mapping
|
||||
@ -565,8 +565,10 @@ class Orchestrator(object):
|
||||
:param replace: marks the OSD as being destroyed. See :ref:`orchestrator-osd-replace`
|
||||
:param force: Forces the OSD removal process without waiting for the data to be drained first.
|
||||
:param zap: Zap/Erase all devices associated with the OSDs (DESTROYS DATA)
|
||||
Note that this can only remove OSDs that were successfully
|
||||
created (i.e. got an OSD ID).
|
||||
|
||||
|
||||
.. note:: this can only remove OSDs that were successfully
|
||||
created (i.e. got an OSD ID).
|
||||
"""
|
||||
raise NotImplementedError()
|
||||
|
||||
@ -1251,13 +1253,14 @@ class InventoryFilter(object):
|
||||
When fetching inventory, use this filter to avoid unnecessarily
|
||||
scanning the whole estate.
|
||||
|
||||
Typical use: filter by host when presenting UI workflow for configuring
|
||||
a particular server.
|
||||
filter by label when not all of estate is Ceph servers,
|
||||
and we want to only learn about the Ceph servers.
|
||||
filter by label when we are interested particularly
|
||||
in e.g. OSD servers.
|
||||
Typical use:
|
||||
|
||||
filter by host when presentig UI workflow for configuring
|
||||
a particular server.
|
||||
filter by label when not all of estate is Ceph servers,
|
||||
and we want to only learn about the Ceph servers.
|
||||
filter by label when we are interested particularly
|
||||
in e.g. OSD servers.
|
||||
"""
|
||||
|
||||
def __init__(self, labels: Optional[List[str]] = None, hosts: Optional[List[str]] = None) -> None:
|
||||
@ -1424,9 +1427,10 @@ def _mk_orch_methods(cls: Any) -> Any:
|
||||
return completion
|
||||
return inner
|
||||
|
||||
for meth in Orchestrator.__dict__:
|
||||
if not meth.startswith('_') and meth not in ['is_orchestrator_module']:
|
||||
setattr(cls, meth, shim(meth))
|
||||
for name, method in Orchestrator.__dict__.items():
|
||||
if not name.startswith('_') and name not in ['is_orchestrator_module']:
|
||||
remote_call = update_wrapper(shim(name), method)
|
||||
setattr(cls, name, remote_call)
|
||||
return cls
|
||||
|
||||
|
||||
|
@ -314,28 +314,34 @@ class PlacementSpec(object):
|
||||
# type: (Optional[str]) -> PlacementSpec
|
||||
"""
|
||||
A single integer is parsed as a count:
|
||||
|
||||
>>> PlacementSpec.from_string('3')
|
||||
PlacementSpec(count=3)
|
||||
|
||||
A list of names is parsed as host specifications:
|
||||
|
||||
>>> PlacementSpec.from_string('host1 host2')
|
||||
PlacementSpec(hosts=[HostPlacementSpec(hostname='host1', network='', name=''), HostPlacemen\
|
||||
tSpec(hostname='host2', network='', name='')])
|
||||
|
||||
You can also prefix the hosts with a count as follows:
|
||||
|
||||
>>> PlacementSpec.from_string('2 host1 host2')
|
||||
PlacementSpec(count=2, hosts=[HostPlacementSpec(hostname='host1', network='', name=''), Hos\
|
||||
tPlacementSpec(hostname='host2', network='', name='')])
|
||||
|
||||
You can spefify labels using `label:<label>`
|
||||
You can specify labels using `label:<label>`
|
||||
|
||||
>>> PlacementSpec.from_string('label:mon')
|
||||
PlacementSpec(label='mon')
|
||||
|
||||
Labels als support a count:
|
||||
Labels also support a count:
|
||||
|
||||
>>> PlacementSpec.from_string('3 label:mon')
|
||||
PlacementSpec(count=3, label='mon')
|
||||
|
||||
fnmatch is also supported:
|
||||
|
||||
>>> PlacementSpec.from_string('data[1-3]')
|
||||
PlacementSpec(host_pattern='data[1-3]')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user