This is a meta-service description that maps to multiple daemons. Remove
the old useless properties, and add in size and running counts.
Signed-off-by: Sage Weil <sage@redhat.com>
We need to either fill out the list_daemons APIs in the dashboard and test
that, or redesign and reimplement the services abstractions in the
orchestration layer. Until then, disable this test.
Signed-off-by: Sage Weil <sage@redhat.com>
* refs/pull/33249/head:
mgr/cephadm: move cutoff calc inside helper
mgr/orch: clean up service_action, remove_service
mgr/cephadm: move into DaemonCache class
mgr/cephadm: fix tests
mgr/cephadm: implete hacky 'refresh=True' path
mgr/cephadm: raise health alert when scrape fails
mgr/cephadm: persist cached daemon state
mgr/orch: serialize DaemonDescription last_refresh
mgr/cephadm: move _get_daemons() impl into list_daemons
mgr/cephadm: replace remaining _get_daemons() with daemon cache
mgr/cephadm: use daemon map for service|daemon removal
mgr/cephadm: avoid _get_daemons for service|daemon actions
mgr/cephadm: replace daemon_cache with an explicit set of dicts
mgr/cephadm: move DaemonDescription construction into helper
Reviewed-by: Sebastian Wagner <swagner@suse.com>
mgr/dashboard: RGW port autodetection does not support "Beast" RGW frontend
Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
* refs/pull/32949/head:
cephadm: separate out require files in config-json
cephadm: add alertmanager deployment feature
Reviewed-by: Patrick Seidensal <pseidensal@suse.com>
Standardize on service_name argument that looks like 'mgr', 'mds.fsname',
'mds', or some other daemon name prefix. Avoid the ambiguously-named
service_type+service_name combinations.
Signed-off-by: Sage Weil <sage@redhat.com>
- load cached state on startup
- persist state after a scrape only
- scrape everything after startup
Note that we modify our in-memory cache when we add or remove a service
and then immediately trigger a scrape, but we do not invalidate the
persisted state, since it's simpler (and presumably a good idea) to
simply re-scrape everything after a mgr restart.
Signed-off-by: Sage Weil <sage@redhat.com>
New function _get_daemons_by_type() returns immediately with a result
from the cache.
Remove the with_daemons decorator.
Push daemon list fetch into _add_new_daemon.
Signed-off-by: Sage Weil <sage@redhat.com>
- Cache DaemonDescription explicitly
- explicit timestamp for the host
- serve() scrapes inventory based on that timestamp
For the moment, persistence is broken, and --refresh is broken.
Signed-off-by: Sage Weil <sage@redhat.com>
* Improve regular expressions to support more configuration variations.
* Modify error message. It includes the config line to be parsed. This should help to debug errors much easier.
* If there are multiple (ssl_)ports/(ssl_)endpoints options, then the first found option will be returned.
Fixes: https://tracker.ceph.com/issues/39252
Signed-off-by: Volker Theile <vtheile@suse.com>