Uploaded image for project: 'Couchbase Kubernetes'
  1. Couchbase Kubernetes
  2. K8S-2324

Changing mount path for logging sidecar prevents dynamic reload

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.0
    • 2.3.0
    • logging, operator, testing
    • None
    • 1

    Description

      The TestLoggingDynamicConfigReload test fails when using a custom mount path.

      This highlights that if you are using a custom path to mount your secret for configuration, the sidecar will still default to using the configuration at /fluent-bit/config/fluent-bit.conf.

      The reason is that the COUCHBASE_LOGS_CONFIG_FILE environment variable is not being set to inform the sidecar to use the new location and there is a default value provided always in the container image.

      The logs will show the environment variable mismatch:
      "COUCHBASE_LOGS_DYNAMIC_CONFIG=/test/custom","COUCHBASE_LOGS_CONFIG_FILE=/fluent-bit/config/fluent-bit.conf"

      Here we have a custom mount point but the config file overrides it.

      Until this is resolved, if you want to use a custom log configuration then do not change the mount path.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            Roo Thorp Please verify and close this issue

            arunkumar Arunkumar Senthilnathan (Inactive) added a comment - Roo Thorp Please verify and close this issue

            People

              roo.thorp Roo Thorp
              patrick.stephens Patrick Stephens (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty