icingaweb2-module-director icon indicating copy to clipboard operation
icingaweb2-module-director copied to clipboard

undo current changes aka revert changes

Open OG2K opened this issue 5 years ago • 5 comments

Dears,

this issue is a feature request to the following discussion in community: https://community.icinga.com/t/how-to-restore-former-object-for-many-changes-aka-revert-changes/3082/3

I am restoring previous working deployment, but objects are marked as modified. And there is a need to roll back changes.

When two or more sysadmins making a changes, and one decide to remove changes / (or temporary exclude from deployment), it can remove change from current deployment.

Expected Behavior

Command director to roll-back all or selected changes from activity log and deploy new (restored) configuration.

Current Behavior

  • The only solution I see, is to click 36 times, and [restore former object], which will create new change (36 and put it on the top of the list). Also there is no possibility to [multi-select], [restore former object].
  • If I would need to restore configuration which is week old, I should probably click thousands times. :(

Possible Solution

  1. in /icingaweb2/director/config/activities add possibility to multiselect and [revert changes]
  2. in /icingaweb2/director/config/activities, add [revert all current changes]
  3. /icingaweb2/director/config/deployments#!/icingaweb2/director/deployment?id=913 > config tab > add [re-deploy and clear changes]

Icinga Web 2 Version 2.7.3 Git commit 06cabfe8ba28cf545a42c92f25484383191a4e51 PHP Version 7.1.30 Git commit date 2019-10-18 Copyright © 2013-2020 The Icinga Project

icinga2 --version icinga2 - The Icinga 2 network monitoring daemon (version: 2.11.2-1)

System information: Platform: Red Hat Enterprise Linux Server Platform version: 7.7 (Maipo) Kernel: Linux Kernel version: 3.10.0-1062.12.1.el7.x86_64 Architecture: x86_64

Build information: Compiler: GNU 4.8.5 Build host: runner-LTrJQZ9N-project-322-concurrent-0

Webserver, PHP versions: httpd -v Server version: Apache/2.4.6 (Red Hat Enterprise Linux) Server built: Jun 9 2019 13:01:04

Annotation 2020-03-02 120051 - cancel pending changes Annotation 2020-03-02 120220 - restore all former objects Annotation 2020-03-02 121547 - restore config

OG2K avatar Mar 02 '20 09:03 OG2K