Uploaded image for project: 'Policy Framework'
  1. Policy Framework
  2. POLICY-4268

Logging directory mismatch for policy OOM components

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Kohn Release
    • Kohn Release
    • None
    • None
    • Policy 2022-06-30->2022-07-13

      An error occurs in deployment of OOM charts because the specification of the log directory in the Dockerfiles for the policy/acm components and the one specified in the logback.xml in OOM for those components are different. This should be correctly in the logback.xml files in OOM for the policy components. See error below:

      Logging system failed to initialize using configuration from '/opt/app/policy/clamp/etc/logback.xml'
      java.lang.IllegalStateException: Logback configuration error detected: 
      ERROR in ch.qos.logback.core.rolling.RollingFileAppender[ErrorOut] - Failed to create parent directories for [/var/log/onap/policy/pf-participant/error.log]
      ERROR in ch.qos.logback.core.rolling.RollingFileAppender[ErrorOut] - openFile(/var/log/onap/policy/pf-participant/error.log,true) call failed. java.io.FileNotFoundException: /var/log/onap/policy/pf-participant/error.log (No such file or directory) 

      Slack comment link: https://onapproject.slack.com/archives/C01CXFJJZH6/p1655969242482589?thread_ts=1653465810.292329&cid=C01CXFJJZH6

            rameshiyer27 Ramesh Murugan Iyer
            saul.gill Saul Gill
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: