Project

General

Profile

Actions

Bug #2747

closed

After a migration from 2.3.8 to 2.4.0~beta3, some distributes policies are not commited

Added by Nicolas PERRON almost 12 years ago. Updated over 11 years ago.

Status:
Released
Priority:
1
Assignee:
Nicolas PERRON
Category:
System techniques
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

It seems that rudde-rupgrade doesn't take into account some distribute policies. After a migration, some of them are not commited and errors are displayed in the /var/log/rudder/webapp/XXXX_XX_XX.stderrout.log:

root@squeezedev:/var/rudder/configuration-repository# git status
# On branch master
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#    techniques/system/distributePolicy/1.0/aliveCheck.st
#    techniques/system/distributePolicy/1.0/initCheck.st
#    techniques/system/distributePolicy/1.0/integrityCheck.st
#    techniques/system/distributePolicy/1.0/logrotate.st
#    techniques/system/distributePolicy/1.0/logrotateCheck.st
#    techniques/system/distributePolicy/1.0/networkCheck.st
#    techniques/system/distributePolicy/1.0/passwordCheck.st
#    techniques/system/distributePolicy/1.0/postgresCheck.st
nothing added to commit but untracked files present (use "git add" to track)

[2012-08-01 03:37:20] ERROR com.normation.cfclerk.services.impl.GitTechniqueReader - Template with id distributePolicy/1.0/initCheck was not found
[2012-08-01 03:37:21] ERROR com.normation.rudder.services.policies.RudderCf3PromisesFileWriterServiceImpl - Writing promises error : 
java.lang.RuntimeException: Error when trying to open template 'distributePolicy/1.0/initCheck.st'. Check that the file exists and is correctly commited in Git, or that the metadata for the technique are corrects.
    at com.normation.cfclerk.services.impl.Cf3PromisesFileWriterServiceImpl$$anonfun$writePromisesFiles$1$$anonfun$apply$7.apply(Cf3PromisesFileWriterServiceImpl.scala:151) ~[cfclerk-2.4.0-SNAPSHOT.jar:na]
[2012-08-01 03:37:21] ERROR com.normation.rudder.batch.AsyncDeploymentAgent - Deployment error for process '1' at 2012/08/01 03:37:21: Exception caught during deployment process: Error when trying to open template 'distributePolicy/1.0/initCheck.st'. Check that the file exists and is correctly commited in Git, or that the metadata for the technique are corrects.
java.lang.RuntimeException: Error when trying to open template 'distributePolicy/1.0/initCheck.st'. Check that the file exists and is correctly commited in Git, or that the metadata for the technique are corrects.
    at com.normation.cfclerk.services.impl.Cf3PromisesFileWriterServiceImpl$$anonfun$writePromisesFiles$1$$anonfun$apply$7.apply(Cf3PromisesFileWriterServiceImpl.scala:151) ~[cfclerk-2.4.0-SNAPSHOT.jar:na]
Actions

Also available in: Atom PDF