Bug #5203
closedThere is no way to remove a Directive based on a Technique that no longer exists
Description
I tried to update my Techniques, but in the process also removed a Technique that was here before (a custom one).
Problem is, the deployement does not work anymore, and I can not remove the Directive that breaks it as there is no more a Delete button :)
Please see the attached screenshot.
Files
Updated by Matthieu CERDA over 10 years ago
For me, the error under "About this Directive" is relevant and needs to stay. However, the message at the botton is meaningless for an end user, duplicates what is "nicely" said in the upper one and should maybe be replaced by a "migrate to another version or delete" choice :)
I did not verify if the same problem happens if there is another version available for this Technique, the behavior might not be the same ?
Updated by François ARMAND over 10 years ago
- Priority changed from 2 to 4
I think I agree with the qualification.
I'm not sure where the error message should go, but clearly, we have to provide the user with a way to get out of that situation (without relying on any LDAP/cmd line wizardry).
The very first step seems to let the promise generation process runs even in that case. We could for example disable directives with broken techniques.
The second step is to allow to delete the directive. Migration would be nice but may be more difficult.
The good news it that there is a simple workaround: just revert the commit that removed the Technique, then reload Techniques library, then delete Directives based on the Technique, the delete back the Technique.
I lowered the priority to 4 because 1/ it is not a really frequent use case and 2/ the workaround is simple.
Updated by Nicolas PERRON over 10 years ago
- Target version changed from 2.10.4 to 2.10.5
Updated by Vincent MEMBRÉ over 10 years ago
- Target version changed from 2.10.5 to 2.10.6
Updated by Matthieu CERDA about 10 years ago
- Target version changed from 2.10.6 to 2.10.7
Updated by Vincent MEMBRÉ about 10 years ago
- Target version changed from 2.10.7 to 2.10.8
Updated by Vincent MEMBRÉ about 10 years ago
- Target version changed from 2.10.8 to 2.10.9
Updated by Vincent MEMBRÉ almost 10 years ago
- Target version changed from 2.10.9 to 2.10.10
Updated by Vincent MEMBRÉ almost 10 years ago
- Target version changed from 2.10.10 to 2.10.11
Updated by Vincent MEMBRÉ almost 10 years ago
- Target version changed from 2.10.11 to 2.10.12
Updated by Vincent MEMBRÉ almost 10 years ago
- Target version changed from 2.10.12 to 2.10.13
Updated by Vincent MEMBRÉ over 9 years ago
- Target version changed from 2.10.13 to 2.10.14
Updated by Vincent MEMBRÉ over 9 years ago
- Target version changed from 2.10.14 to 2.10.15
Updated by Vincent MEMBRÉ over 9 years ago
- Target version changed from 2.10.15 to 2.10.16
Updated by Vincent MEMBRÉ over 9 years ago
- Target version changed from 2.10.16 to 2.10.17
Updated by Vincent MEMBRÉ about 9 years ago
- Target version changed from 2.10.17 to 2.10.18
Updated by Vincent MEMBRÉ about 9 years ago
- Target version changed from 2.10.18 to 2.10.19
Updated by Vincent MEMBRÉ about 9 years ago
- Target version changed from 2.10.19 to 2.10.20
Updated by Vincent MEMBRÉ about 9 years ago
- Target version changed from 2.10.20 to 277
Updated by Vincent MEMBRÉ about 9 years ago
- Target version changed from 277 to 2.11.18
Updated by Vincent MEMBRÉ almost 9 years ago
- Target version changed from 2.11.18 to 2.11.19
Updated by Vincent MEMBRÉ almost 9 years ago
- Target version changed from 2.11.19 to 2.11.20
Updated by Vincent MEMBRÉ over 8 years ago
- Target version changed from 2.11.20 to 2.11.21
Updated by Vincent MEMBRÉ over 8 years ago
- Target version changed from 2.11.21 to 2.11.22
Updated by Vincent MEMBRÉ over 8 years ago
- Target version changed from 2.11.22 to 2.11.23
Updated by Vincent MEMBRÉ over 8 years ago
- Target version changed from 2.11.23 to 2.11.24
Updated by Vincent MEMBRÉ over 8 years ago
- Target version changed from 2.11.24 to 308
Updated by Vincent MEMBRÉ over 8 years ago
- Target version changed from 308 to 3.1.14
Updated by Vincent MEMBRÉ about 8 years ago
- Target version changed from 3.1.14 to 3.1.15
Updated by Vincent MEMBRÉ about 8 years ago
- Target version changed from 3.1.15 to 3.1.16
Updated by Vincent MEMBRÉ about 8 years ago
- Target version changed from 3.1.16 to 3.1.17
Updated by Vincent MEMBRÉ about 8 years ago
- Target version changed from 3.1.17 to 3.1.18
Updated by Vincent MEMBRÉ almost 8 years ago
- Target version changed from 3.1.18 to 3.1.19
Updated by François ARMAND over 7 years ago
- Severity set to Major - prevents use of part of Rudder | no simple workaround
- User visibility set to Getting started - demo | first install | level 1 Techniques
- Priority set to 45
Updated by Vincent MEMBRÉ over 7 years ago
- Target version changed from 3.1.19 to 3.1.20
Updated by Benoît PECCATTE over 7 years ago
Tested in 4.1, this bug is still there
Updated by Benoît PECCATTE over 7 years ago
when we detect this we should have a simple page that contains : "Please bring back the technique via git or click this button to remove the directive from Rudder"
Updated by Vincent MEMBRÉ over 7 years ago
- Target version changed from 3.1.20 to 3.1.21
Updated by Vincent MEMBRÉ over 7 years ago
- Target version changed from 3.1.21 to 3.1.22
Updated by Vincent MEMBRÉ over 7 years ago
- Target version changed from 3.1.22 to 3.1.23
- Priority changed from 58 to 59
Updated by Vincent MEMBRÉ over 7 years ago
- Target version changed from 3.1.23 to 3.1.24
Updated by Benoît PECCATTE about 7 years ago
- Assignee set to François ARMAND
- Priority changed from 59 to 60
Updated by François ARMAND about 7 years ago
- File 2017-10-18_18.24.04-Rudder_-_Directives_Management.png 2017-10-18_18.24.04-Rudder_-_Directives_Management.png added
- File 2017-10-18_18.52.41-Rudder_-_Directives_Management.png 2017-10-18_18.52.41-Rudder_-_Directives_Management.png added
The proposed change allows to delete a Directive when no version of the technique is availabe at all:
When at least one version of the technique is available, a migration towards it is done with that warning message:
Updated by François ARMAND about 7 years ago
- Status changed from New to In progress
Updated by François ARMAND about 7 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from François ARMAND to Vincent MEMBRÉ
- Pull Request set to https://github.com/Normation/rudder/pull/1760
Updated by François ARMAND about 7 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder|38b1ef273d59e4b0d051ed4e4d2f9441026061f0.
Updated by François ARMAND about 7 years ago
- Related to Bug #6191: Allow to migrate or delete Directive based on a missing Technique added
Updated by François ARMAND about 7 years ago
- Related to deleted (Bug #6191: Allow to migrate or delete Directive based on a missing Technique)
Updated by François ARMAND about 7 years ago
- Has duplicate Bug #6191: Allow to migrate or delete Directive based on a missing Technique added
Updated by François ARMAND about 7 years ago
- Related to Bug #11649: No way to delete stale entries from the Reference Technique library added
Updated by Vincent MEMBRÉ about 7 years ago
- Status changed from Pending release to Released