{"action":"opened","issue":{"url":"https://api.github.com/repos/elastic/curator/issues/1220","repository_url":"https://api.github.com/repos/elastic/curator","labels_url":"https://api.github.com/repos/elastic/curator/issues/1220/labels{/name}","comments_url":"https://api.github.com/repos/elastic/curator/issues/1220/comments","events_url":"https://api.github.com/repos/elastic/curator/issues/1220/events","html_url":"https://github.com/elastic/curator/issues/1220","id":324661754,"number":1220,"title":"Bug with Rollover when using new_index","user":{"login":"danielkasen","id":31549908,"avatar_url":"https://avatars1.githubusercontent.com/u/31549908?v=4","gravatar_id":"","url":"https://api.github.com/users/danielkasen","html_url":"https://github.com/danielkasen","followers_url":"https://api.github.com/users/danielkasen/followers","following_url":"https://api.github.com/users/danielkasen/following{/other_user}","gists_url":"https://api.github.com/users/danielkasen/gists{/gist_id}","starred_url":"https://api.github.com/users/danielkasen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielkasen/subscriptions","organizations_url":"https://api.github.com/users/danielkasen/orgs","repos_url":"https://api.github.com/users/danielkasen/repos","events_url":"https://api.github.com/users/danielkasen/events{/privacy}","received_events_url":"https://api.github.com/users/danielkasen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-19T21:27:53Z","updated_at":"2018-05-19T21:27:53Z","closed_at":null,"author_association":"NONE","body":"When I try to use the rollover index it will work the first time but then later attempts try to do a rollover even though the conditions set are false. I noticed this only happens when I use the new_index setting on curator 5.5.2 \r\n\r\n```actions:\r\n  1:\r\n    action: rollover\r\n    description: >-\r\n      Rollover the test index\r\n    options:\r\n      name: test\r\n      wait_for_active_shards: all\r\n      conditions:\r\n        max_size: 700gb\r\n      new_index: \"<test-{now/H{YYYY.MM.dd.HH}}-1>\"\r\n\r\nLog output:\r\n\r\n{\"@timestamp\": \"2018-05-19T21:24:24.411Z\", \"function\": \"run\", \"linenum\": 165, \"loglevel\": \"INFO\", \"message\": \"Trying Action ID: 1, \\\"rollover\\\": Rollover the test index\", \"name\": \"curator.cli\"}\r\n{\"@timestamp\": \"2018-05-19T21:24:24.412Z\", \"function\": \"process_action\", \"linenum\": 44, \"loglevel\": \"DEBUG\", \"message\": \"Configuration dictionary: {'action': 'rollover', 'description': 'Rollover the test index', 'options': {'name': 'test', 'conditions': {'max_size': '700gb'}, 'new_index': '<test-{now/H{YYYY.MM.dd.HH}}-1>', 'wait_for_active_shards': 'all', 'extra_settings': {}}}\", \"name\": \"curator.cli\"}\r\n{\"@timestamp\": \"2018-05-19T21:24:24.412Z\", \"function\": \"process_action\", \"linenum\": 45, \"loglevel\": \"DEBUG\", \"message\": \"kwargs: {'master_timeout': 30, 'dry_run': False}\", \"name\": \"curator.cli\"}\r\n{\"@timestamp\": \"2018-05-19T21:24:24.412Z\", \"function\": \"process_action\", \"linenum\": 50, \"loglevel\": \"DEBUG\", \"message\": \"opts: {'name': 'test', 'conditions': {'max_size': '700gb'}, 'new_index': '<test-{now/H{YYYY.MM.dd.HH}}-1>', 'wait_for_active_shards': 'all', 'extra_settings': {}}\", \"name\": \"curator.cli\"}\r\n{\"@timestamp\": \"2018-05-19T21:24:24.412Z\", \"function\": \"process_action\", \"linenum\": 62, \"loglevel\": \"DEBUG\", \"message\": \"Action kwargs: {'conditions': {'max_size': '700gb'}, 'new_index': '<test-{now/H{YYYY.MM.dd.HH}}-1>', 'extra_settings': {}, 'name': 'test', 'wait_for_active_shards': 'all'}\", \"name\": \"curator.cli\"}\r\n{\"@timestamp\": \"2018-05-19T21:24:24.412Z\", \"function\": \"__init__\", \"linenum\": 860, \"loglevel\": \"DEBUG\", \"message\": \"\\\"conditions\\\" is {'max_size': '700gb'}\", \"name\": \"curator.actions.rollover\"}\r\n{\"@timestamp\": \"2018-05-19T21:24:24.414Z\", \"function\": \"parse_date_pattern\", \"linenum\": 1338, \"loglevel\": \"INFO\", \"message\": \"\\\"<test-{now/H{YYYY.MM.dd.HH}}-1>\\\" is using Elasticsearch date math.\", \"name\": \"curator.utils\"}\r\n{\"@timestamp\": \"2018-05-19T21:24:24.415Z\", \"function\": \"parse_date_pattern\", \"linenum\": 1349, \"loglevel\": \"DEBUG\", \"message\": \"Fully rendered name: <test-{now/H{YYYY.MM.dd.HH}}-1>\", \"name\": \"curator.utils\"}\r\n{\"@timestamp\": \"2018-05-19T21:24:24.418Z\", \"function\": \"process_action\", \"linenum\": 99, \"loglevel\": \"DEBUG\", \"message\": \"Doing the action here.\", \"name\": \"curator.cli\"}\r\n{\"@timestamp\": \"2018-05-19T21:24:24.418Z\", \"function\": \"do_action\", \"linenum\": 942, \"loglevel\": \"INFO\", \"message\": \"Performing index rollover\", \"name\": \"curator.actions.rollover\"}\r\n{\"@timestamp\": \"2018-05-19T21:24:24.420Z\", \"function\": \"run\", \"linenum\": 184, \"loglevel\": \"ERROR\", \"message\": \"Failed to complete action: rollover.  <class 'curator.exceptions.FailedExecution'>: Exception encountered.  Rerun with loglevel DEBUG and/or check Elasticsearch logs for more information. Exception: TransportError(400, u'resource_already_exists_exception', u'index [test-2018.05.19.21-1/guf3-e04SZKgLoN0NVy3mg] already exists')\", \"name\": \"curator.cli\"}"}}
{"actor":{"display_login":"danielkasen"}}