Below is my code and I am trying to take a snapshot from one cluster and restore it in different cluster using Elasticsearch Curator.
1: action: restore description: >- Restore all indices in the most recent snapshot with state SUCCESS. Wait for the restore to complete before continuing. Do not skip the repository filesystem access check. Use the other options to define the index/shard settings for the restore. options: repository: es_backup_qa # Leaving name blank will result in the default 'curator-%Y%m%d%H%M%S' name: # If name is blank, the most recent snapshot by age will be selected indices: ['index-00001'] rename_pattern: 'index(.+)' rename_replacement: 'restored_index$1' wait_for_completion: True max_wait: 3600 wait_interval: 10 filters: - filtertype: state state: SUCCESS exclude:```
While doing restoring - I am receiving the below error in kubernetes cron job and kubernetes pod is ending with error status: Below is the Log :
2021-07-13 21:07:22,504 INFO Preparing Action ID: 1, "restore" 2021-07-13 21:07:22,504 INFO Creating client object and testing connection 2021-07-13 21:07:22,506 INFO Instantiating client object 2021-07-13 21:07:22,507 INFO Testing client connectivity 2021-07-13 21:07:22,635 INFO Successfully created Elasticsearch client object with provided settings 2021-07-13 21:07:22,639 INFO Trying Action ID: 1, "restore": Restore all indices in the most recent snapshot with state SUCCESS. Wait for the restore to complete before continuing. Do not skip the repository filesystem access check. Use the other options to define the index/shard settings for the restore. 2021-07-13 21:07:29,854 INFO Restoring indices "['timezonelookup-00001']" from snapshot: backup-20210712230022 2021-07-13 21:07:30,009 ERROR Failed to complete action: restore. <class 'curator.exceptions.FailedExecution'>: Exception encountered. Rerun with loglevel DEBUG and/or check Elasticsearch logs for more information. Exception: NotFoundError(404, 'index_not_found_exception', 'no such index [timezonelookup-00001]')