# \[ERROR\]\[testhost\] policy \[test-data-retention\] for index \[test\_logger\_info.20221026\] failed on step \[{"phase":"hot","action":"rollover","name":"check-rollover-ready"}\]. Moving to ERROR step

**URL:** <https://discuss.elastic.co/t/error-testhost-policy-test-data-retention-for-index-test-logger-info-20221026-failed-on-step-phase-hot-action-rollover-name-check-rollover-ready-moving-to-error-step/317613>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [October 27, 2022, 12:43pm UTC](https://discuss.elastic.co/t/error-testhost-policy-test-data-retention-for-index-test-logger-info-20221026-failed-on-step-phase-hot-action-rollover-name-check-rollover-ready-moving-to-error-step/317613 "2022-10-27T12:43:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tanya\_Patel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tanya_patel/32/99289_2.png) [@Tanya\_Patel](https://discuss.elastic.co/u/Tanya_Patel)\
**Post date:** [October 27, 2022, 12:43pm UTC](https://discuss.elastic.co/t/error-testhost-policy-test-data-retention-for-index-test-logger-info-20221026-failed-on-step-phase-hot-action-rollover-name-check-rollover-ready-moving-to-error-step/317613/1 "2022-10-27T12:43:19Z")

</div>

I am getting the following error - single node/cluster setup

> [@Error](#):
>
> ava.lang.IllegalArgumentException: rollover target [test\_logger\_alias] does not point to a write index  
> at org.elasticsearch.action.admin.indices.rollover.MetadataRolloverService.validate(MetadataRolloverService.java:273) ~[elasticsearch-7.8.1.jar:7.8.1]  
> at org.elasticsearch.action.admin.indices.rollover.MetadataRolloverService.rolloverClusterState(MetadataRolloverService.java:93) ~[elasticsearch-7.8.1.jar:7.8.1]  
> at org.elasticsearch.action.admin.indices.rollover.TransportRolloverAction.masterOperation(TransportRolloverAction.java:108) ~[elasticsearch-7.8.1.jar:7.8.1]  
> at org.elasticsearch.action.admin.indices.rollover.TransportRolloverAction.masterOperation(TransportRolloverAction.java:60) ~[elasticsearch-7.8.1.jar:7.8.1]  
> at org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction.lambda$doStart$3(TransportMasterNodeAction.java:170) ~[elasticsearch-7.8.1.jar:7.8.1]  
> at org.elasticsearch.action.ActionRunnable$2.doRun(ActionRunnable.java:73) ~[elasticsearch-7.8.1.jar:7.8.1]  
> at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) [elasticsearch-7.8.1.jar:7.8.1]  
> at org.elasticsearch.common.util.concurrent.EsExecutors$DirectExecutorService.execute(EsExecutors.java:226) [elasticsearch-7.8.1.jar:7.8.1]  
> at org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction.doStart(TransportMasterNodeAction.java:170) [elasticsearch-7.8.1.jar:7.8.1]  
> at org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction.start(TransportMasterNodeAction.java:133) [elasticsearch-7.8.1.jar:7.8.1]  
> at org.elasticsearch.action.support.master.TransportMasterNodeAction.doExecute(TransportMasterNodeAction.java:110) [elasticsearch-7.8.1.jar:7.8.1]  
> at org.elasticsearch.action.support.master.TransportMasterNodeAction.doExecute(TransportMasterNodeAction.java:59) [elasticsearch-7.8.1.jar:7.8.1]  
> at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:179) [elasticsearch-7.8.1.jar:7.8.1]  
> at org.elasticsearch.action.support.ActionFilter$Simple.apply(ActionFilter.java:53) [elasticsearch-7.8.1.jar:7.8.1]  
> at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:177) [elasticsearch-7.8.1.jar:7.8.1]  
> at org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.apply(SecurityActionFilter.java:124) [x-pack-security-7.8.1.jar:7.8.1]  
> at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:177) [elasticsearch-7.8.1.jar:7.8.1]  
> at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:155) [elasticsearch-7.8.1.jar:7.8.1]  
> at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:83) [elasticsearch-7.8.1.jar:7.8.1]  
> at org.elasticsearch.client.node.NodeClient.executeLocally(NodeClient.java:83) [elasticsearch-7.8.1.jar:7.8.1]  
> at org.elasticsearch.client.node.NodeClient.doExecute(NodeClient.java:72) [elasticsearch-7.8.1.jar:7.8.1]  
> at org.elasticsearch.client.support.AbstractClient.execute(AbstractClient.java:399) [elasticsearch-7.8.1.jar:7.8.1]  
> at org.elasticsearch.xpack.core.ClientHelper.executeAsyncWithOrigin(ClientHelper.java:92) [x-pack-core-7.8.1.jar:7.8.1]  
> at org.elasticsearch.xpack.core.ClientHelper.executeWithHeadersAsync(ClientHelper.java:155) [x-pack-core-7.8.1.jar:7.8.1]  
> at org.elasticsearch.xpack.ilm.LifecyclePolicySecurityClient.doExecute(LifecyclePolicySecurityClient.java:51) [x-pack-ilm-7.8.1.jar:7.8.1]  
> at org.elasticsearch.client.support.AbstractClient.execute(AbstractClient.java:399) [elasticsearch-7.8.1.jar:7.8.1]  
> at org.elasticsearch.client.support.AbstractClient$IndicesAdmin.execute(AbstractClient.java:1234) [elasticsearch-7.8.1.jar:7.8.1]  
> at org.elasticsearch.client.support.AbstractClient$IndicesAdmin.rolloverIndex(AbstractClient.java:1736) [elasticsearch-7.8.1.jar:7.8.1]  
> at org.elasticsearch.xpack.core.ilm.WaitForRolloverReadyStep.evaluateCondition(WaitForRolloverReadyStep.java:128) [x-pack-core-7.8.1.jar:7.8.1]  
> at org.elasticsearch.xpack.ilm.IndexLifecycleRunner.runPeriodicStep(IndexLifecycleRunner.java:173) [x-pack-ilm-7.8.1.jar:7.8.1]  
> at org.elasticsearch.xpack.ilm.IndexLifecycleService.triggerPolicies(IndexLifecycleService.java:329) [x-pack-ilm-7.8.1.jar:7.8.1]  
> at org.elasticsearch.xpack.ilm.IndexLifecycleService.triggered(IndexLifecycleService.java:267) [x-pack-ilm-7.8.1.jar:7.8.1]  
> at org.elasticsearch.xpack.core.scheduler.SchedulerEngine.notifyListeners(SchedulerEngine.java:183) [x-pack-core-7.8.1.jar:7.8.1]  
> at org.elasticsearch.xpack.core.scheduler.SchedulerEngine$ActiveSchedule.run(SchedulerEngine.java:211) [x-pack-core-7.8.1.jar:7.8.1]  
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]  
> at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]  
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) [?:?]  
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) [?:?]  
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) [?:?]  
> at java.lang.Thread.run(Thread.java:832) [?:?]

ILM Policy

> [@Policy](#):
>
> {  
> "test-data-retention" : {  
> "version" : 2,  
> "modified\_date" : "2022-10-27T10:34:25.729Z",  
> "policy" : {  
> "phases" : {  
> "hot" : {  
> "min\_age" : "0ms",  
> "actions" : {  
> "rollover" : {  
> "max\_size" : "50gb",  
> "max\_age" : "15d"  
> },  
> "set\_priority" : {  
> "priority" : 100  
> }  
> }  
> },  
> "delete" : {  
> "min\_age" : "15d",  
> "actions" : {  
> "delete" : {  
> "delete\_searchable\_snapshot" : true  
> }  
> }  
> }  
> }  
> }  
> }  
> }

Template

> [@](#):
>
> {  
> "test\_template" : {  
> "order" : 0,  
> "index\_patterns" : [  
> "test\_logger\_\*"  
> ],  
> "settings" : {  
> "index" : {  
> "lifecycle" : {  
> "name" : "test-data-retention",  
> "rollover\_alias" : "test\_logger\_alias"  
> },  
> "number\_of\_shards" : "1",  
> "number\_of\_replicas" : "1"  
> }  
> },  
> "mappings" : {  
> "\_meta" : { },  
> "\_source" : { },  
> "properties" : { }  
> },  
> "aliases" : { }  
> }  
> }

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 31, 2022, 1:47am UTC](https://discuss.elastic.co/t/error-testhost-policy-test-data-retention-for-index-test-logger-info-20221026-failed-on-step-phase-hot-action-rollover-name-check-rollover-ready-moving-to-error-step/317613/2 "2022-10-31T01:47:39Z")

</div>

Welcome to our community! 😃  
It looks like you are using Elasticsearch 7.8, please upgrade as that is [EOL](https://www.elastic.co/support/eol).

> [@Error](#):
>
> rollover target [test\_logger\_alias] does not point to a write index

Did you check this?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 28, 2022, 1:48am UTC](https://discuss.elastic.co/t/error-testhost-policy-test-data-retention-for-index-test-logger-info-20221026-failed-on-step-phase-hot-action-rollover-name-check-rollover-ready-moving-to-error-step/317613/5 "2022-11-28T01:48:44Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
