-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Watcher attempts to use ILM when ILM is disabled #41042
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
Pinging @elastic/es-core-features |
dakrone
added a commit
to dakrone/elasticsearch
that referenced
this issue
Apr 10, 2019
Prior to this we used the settings from cluster state to see whether ILM was enabled of disabled, however, these settings don't accurately reflect the `xpack.ilm.enabled` setting in `elasticsearch.yml`. This commit changes to using the `Environment` settings, which correctly reflect the ILM enabled setting. Resolves elastic#41042
dakrone
added a commit
that referenced
this issue
Apr 12, 2019
…#41087) * Use environment settings instead of state settings for Watcher config Prior to this we used the settings from cluster state to see whether ILM was enabled of disabled, however, these settings don't accurately reflect the `xpack.ilm.enabled` setting in `elasticsearch.yml`. This commit changes to using the `Environment` settings, which correctly reflect the ILM enabled setting. Resolves #41042 * Rename settings object to nodeSettings * Use correct template list in WatcherRestIT * Use correct template list in other tests
dakrone
added a commit
to dakrone/elasticsearch
that referenced
this issue
Apr 12, 2019
…elastic#41087) * Use environment settings instead of state settings for Watcher config Prior to this we used the settings from cluster state to see whether ILM was enabled of disabled, however, these settings don't accurately reflect the `xpack.ilm.enabled` setting in `elasticsearch.yml`. This commit changes to using the `Environment` settings, which correctly reflect the ILM enabled setting. Resolves elastic#41042 * Rename settings object to nodeSettings * Use correct template list in WatcherRestIT * Use correct template list in other tests
dakrone
added a commit
to dakrone/elasticsearch
that referenced
this issue
Apr 12, 2019
…elastic#41087) * Use environment settings instead of state settings for Watcher config Prior to this we used the settings from cluster state to see whether ILM was enabled of disabled, however, these settings don't accurately reflect the `xpack.ilm.enabled` setting in `elasticsearch.yml`. This commit changes to using the `Environment` settings, which correctly reflect the ILM enabled setting. Resolves elastic#41042 * Rename settings object to nodeSettings * Use correct template list in WatcherRestIT * Use correct template list in other tests
This was referenced Apr 12, 2019
dakrone
added a commit
that referenced
this issue
Apr 12, 2019
…config (#41157) Backport of (#41087) * Use environment settings instead of state settings for Watcher config Prior to this we used the settings from cluster state to see whether ILM was enabled of disabled, however, these settings don't accurately reflect the `xpack.ilm.enabled` setting in `elasticsearch.yml`. This commit changes to using the `Environment` settings, which correctly reflect the ILM enabled setting. Resolves #41042
dakrone
added a commit
that referenced
this issue
Apr 12, 2019
…config (#41158) Backport of (#41087) * Use environment settings instead of state settings for Watcher config Prior to this we used the settings from cluster state to see whether ILM was enabled of disabled, however, these settings don't accurately reflect the `xpack.ilm.enabled` setting in `elasticsearch.yml`. This commit changes to using the `Environment` settings, which correctly reflect the ILM enabled setting. Resolves #41042
gurkankaymak
pushed a commit
to gurkankaymak/elasticsearch
that referenced
this issue
May 27, 2019
…elastic#41087) * Use environment settings instead of state settings for Watcher config Prior to this we used the settings from cluster state to see whether ILM was enabled of disabled, however, these settings don't accurately reflect the `xpack.ilm.enabled` setting in `elasticsearch.yml`. This commit changes to using the `Environment` settings, which correctly reflect the ILM enabled setting. Resolves elastic#41042 * Rename settings object to nodeSettings * Use correct template list in WatcherRestIT * Use correct template list in other tests
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Found in 7.0.0 (BC2), I think this impacts 6.7 as well.
To reproduce
Start a node with a trial license and
xpack.ilm.enabled: false
.During startup, this message will appear in the logs:
Additionally, the index template will contain
index.lfiecycle.name
:The watch history index is created and records history just fine, although it too has
index.lifecycle.name
set (even though ILM is disabled):Root cause
I believe this is caused by the same root cause as #40803 - we check this setting via the cluster state:
elasticsearch/x-pack/plugin/watcher/src/main/java/org/elasticsearch/xpack/watcher/support/WatcherIndexTemplateRegistry.java
Line 156 in 9c6231f
But since
xpack.ilm.enabled
can only be set viaelasticsearch.yml
, reading it from the cluster state will always result in the default value - it must be read from theSettings
object created fromelasticsearch.yml
at startup.The text was updated successfully, but these errors were encountered: