Project

General

Profile

Actions

Bug #3039

closed

This is not possible to edit an Services management Directive after a migration from 2.4.0~beta4 to 2 4.0~rc1

Added by Nicolas PERRON over 11 years ago. Updated over 10 years ago.

Status:
Released
Priority:
1
Assignee:
Nicolas PERRON
Category:
Web - Config management
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

As #3038, the upgrade of Rudder on a SLES 11 SP1 from 2.4.0~beta4 to 2.4.0~rc1 lead to an error when trying to edit a Directive based on Services Management Technique with these conditions:
  • There are several Directives from Services Management
  • All of these Directives are at version 1.1 (the last version from 2.4.0~beta4)
  • Before to update manually the Techniques from packages of Rudder 2.4.0~beta4 to 2.4.0~rc1, fix the metadata.xml of Enforce A File Content by replacing tag <POLICY> by <TECHNIQUE> (#3027)
After a complete upgrade of Rudder and Techniques (commit new Techniques and restart Rudder or reload techniques on the WebUI):
  • Using Rules with Directives based on Services Management Technique will work
  • Trying to edit a Directive based on Services Management Technique will lead to:
    • A message in the WebUI "The server cannot be contacted at this time"
    • A message in the webapp logs:
      "[...] Java.NoSuchElementException: [...] Key not found: 1.2 [...]" 
      

The only way to be able to edit Directives is to remove the version 1.2 from the Techniques:

cd /var/rudder/configuration-repository/techniques/systemSettings/process/servicesManagement
git rm -r 1.2/
git commit -m "Remove 'Services Management' v1.2 Technique temporarily" 


Related issues 2 (0 open2 closed)

Related to Rudder - Bug #3198: Sometimes, accepting a new version of a Policy Template fails in Rudder 2.3RejectedNicolas CHARLES2013-01-15Actions
Has duplicate Rudder - Bug #3038: This is not possible to edit an Enforce a File Content Directive after a migration from 2.4.0~beta4 to 2 4.0~rc1 (with a fix about v3.1 which contains a wrong metada.xml)Rejected2012-11-27Actions
Actions

Also available in: Atom PDF