User story #3195
closedWhen upgrading Rudder from 2.4 to 2.5~beta1, the logback.xml files is not updated
Description
On a system that was updated from Rudder 2.4 to 2.5~beta1, the logback.xml were not upgraded
(on orch-1 I have /opt/rudder/etc/logback.xml /opt/rudder/etc/logback.xml.dpkg-old, on orch-3 I have logback.xml and logback.xml.rpmnew )
So all my expected logs are not there
Is it the expected behaviour ?
(the guy who did the upgrade doesn't remember being asked a question)
Updated by Nicolas CHARLES almost 12 years ago
The following entries are missing in te upgraded Rudder, hence need a migration script
<property name="REPORT_DIR" value="/var/log/rudder/compliance" /> <!-- A file log appender for exploitation logs about failure reports. --> <appender name="REPORTLOG" class="ch.qos.logback.core.FileAppender"> <file>${REPORT_DIR}/non-compliant-reports.log</file> <append>true</append> <encoder> <pattern>%msg%n</pattern> </encoder> </appender> <!-- Here come non compliant reports logger --> <logger name="non-compliant-reports" level="info" additivity="false"> <appender-ref ref="REPORTLOG" /> <!-- <appender-ref ref="REPORTSYSLOG" /> --> <!-- comment the following appender if you don't want to have logs about non compliant reports in both stdout and reportlog --> <appender-ref ref="STDOUT" /> </logger>
Updated by Nicolas CHARLES almost 12 years ago
- Tracker changed from Question to 6
Updated by Nicolas CHARLES almost 12 years ago
As stated in https://github.com/Normation/rudder-packages/pull/7 , the following path needs to be created
/var/log/rudder/compliance
Updated by Vincent MEMBRÉ almost 12 years ago
Logback will create the directory if the appender is properly set ( so if the upgrade is done, then logback will be able to create the directory).
The only condition for logback is to have the right to create directory in /var/log/rudder
Updated by Vincent MEMBRÉ almost 12 years ago
- Status changed from New to Pending technical review
Pull request here : https://github.com/Normation/rudder-packages/pull/14
Updated by Matthieu CERDA almost 12 years ago
- Assignee changed from Jonathan CLARKE to Matthieu CERDA
- % Done changed from 0 to 100
Grabbin' this.
The pull request looks okay, I approve.
Updated by Vincent MEMBRÉ almost 12 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset commit:31a881b9a5a99920d2784fc986961ee32f0367aa.
Updated by Matthieu CERDA almost 12 years ago
Applied in changeset commit:cf38b2f83f116623491d9527a2598ae4dae02c80.
Updated by Nicolas PERRON almost 12 years ago
- Project changed from Rudder to 34
- Category deleted (
11)
Updated by François ARMAND over 11 years ago
- Status changed from Pending release to Released
Updated by Benoît PECCATTE over 9 years ago
- Project changed from 34 to Rudder
- Category set to Packaging
Updated by Benoît PECCATTE over 9 years ago
- Tracker changed from 6 to User story