Well..
I delete old backups
curl -XGET 'kvm487:9200/_snapshot/excelle_backup/_all?pretty=true'
{
"snapshots" : [ ]
}
But if I use Curator
# curator_cli --host kvm487 --port 9200 show_snapshots --repository excelle_backup
Traceback (most recent call last):
File "/usr/local/bin/curator_cli", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python3.5/dist-packages/curator/curator_cli.py", line 8, in main
cli(obj={})
File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/curator/cli_singletons/show.py", line 83, in show_snapshots
action.get_list_object()
File "/usr/local/lib/python3.5/dist-packages/curator/cli_singletons/object_class.py", line 147, in get_list_object
self.list_object = SnapshotList(self.client, repository=self.repository)
File "/usr/local/lib/python3.5/dist-packages/curator/snapshotlist.py", line 39, in __init__
self.__get_snapshots()
File "/usr/local/lib/python3.5/dist-packages/curator/snapshotlist.py", line 81, in __get_snapshots
self.empty_list_check()
File "/usr/local/lib/python3.5/dist-packages/curator/snapshotlist.py", line 97, in empty_list_check
raise exceptions.NoSnapshots('snapshot_list object is empty.')
curator.exceptions.NoSnapshots: snapshot_list object is empty.
And now try run command and fail
# curator_cli --host kvm487 --port 9200 snapshot --repository excelle_backup --filter_list '[{"filtertype":"age", "source":"name", "direction":"older", "unit":"days", "unit_count":30, "timestring":"%Y.%m.%d"}]'
2018-08-24 18:14:15,192 ERROR Singleton action failed due to empty index list
So, problem is no index name.
What is problem?