elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.65k stars 8.23k forks source link

[Snapshot/Restore UI] Do not show next snapshot timestamp if SLM is stopped #132062

Open ycombinator opened 2 years ago

ycombinator commented 2 years ago

Kibana/ES version: 8.1.3

Describe the bug: In the Snapshot and Restore UI, a timestamp is shown for when the next snapshot will be taken even if SLM is stopped. This can be misleading.

Steps to reproduce:

  1. Visit the Snapshot and Restore UI in Kibana, Policies tab.
  2. Create an SLM policy.
  3. Back on the policy listing page, verify that the policy has a valid timestamp for when the next snapshot will be taken.
  4. Stop SLM.
  5. Refresh the policy listing page.
  6. Observe that there is still a next snapshot timestamp (even though SLM is stopped and a next snapshot will not be taken until SLM is restarted).

Expected behavior: Next snapshot does not show a timestamp. Even better would be some way to get an explanation as to why that is - because SLM is stopped.

Perhaps it makes sense for the underlying Get Snapshot Lifecycle Policy Elasticsearch API to return next_execution_millis as null when SLM is stopped?

Screenshots (if relevant):

Screen Shot 2022-05-11 at 11 45 59 Screen Shot 2022-05-11 at 11 46 19
elasticmachine commented 2 years ago

Pinging @elastic/platform-deployment-management (Team:Deployment Management)

elasticmachine commented 2 months ago

Pinging @elastic/kibana-management (Team:Kibana Management)