Benjamin Bannier created MESOS-8776:
---------------------------------------
Summary: Prevent destructive modifications to resource provider
configurations
Key: MESOS-8776
URL: https://issues.apache.org/jira/browse/MESOS-8776
Project: Mesos
Issue Type: Task
Components: agent
Affects Versions: 1.6.0
Reporter: Benjamin Bannier
Resource providers on an agent are configured via the
{{--resource_provider_config_dir}} flag. The agent reads these configurations
which each currently contain a {{ResourceProviderInfo}} and uses them start a
matching resource provider.
As previous state is read from an agent path under {{resource_providers}}
derived from both {{type}} and {{name}}, see {{src/slave/paths.hpp}},
incompatible edits to at least these fields can lead to no recoverable state to
be found which would trigger creating of a new resource provider. This resource
provider would then e.g., not recover any persisted operations on the managed
resources. This can be problematic, e.g., when data volumes reserved for a
certain role (possibly containing sensitive data) would be offered without that
reservation.
We should investigate what can be done to prevent such misconfigurations.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)