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

Logging volume permissions for watchers

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a Bug
    • Major
    • 2.3.0
    • None
    • logging
    • None
    • 1

    Description

      Ensure the changes to support run as non-root do not cause permission issues for the watcher. Currently with docker compose stack using 1.0.2:

      ```

      logging | {"level":"info","ts":1621613212.3479924,"logger":"couchbase-watcher","caller":"common/common.go:89","msg":"No environment variable so defaulting","environmentVariable":"COUCHBASE_K8S_CONFIG_DIR","defaultValue":"/etc/podinfo"}
      logging | {"level":"info","ts":1621613212.3480866,"logger":"couchbase-watcher","caller":"common/common.go:83","msg":"Loaded environment files"}
      logging | {"level":"info","ts":1621613212.3481092,"logger":"couchbase-watcher","caller":"cmd/main.go:25","msg":"Starting up Couchbase log processor","ignoreExisting":true,"environment":["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin","HOSTNAME=ce59a7726fa5","COUCHBASE_LOGS=/opt/couchbase/var/lib/couchbase/logs","SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt","COUCHBASE_LOGS_BINARY=/fluent-bit/bin/fluent-bit","COUCHBASE_LOGS_REBALANCE_TEMPDIR=/tmp/rebalance-logs","COUCHBASE_LOGS_DYNAMIC_CONFIG=/fluent-bit/config","COUCHBASE_LOGS_CONFIG_FILE=/fluent-bit/config/fluent-bit.conf","HOME="]}
      logging | {"level":"info","ts":1621613212.348138,"logger":"couchbase-watcher","caller":"couchbase/config.go:42","msg":"Using configuration","config":{}}
      logging | {"level":"error","ts":1621613212.3483584,"logger":"couchbase-watcher","caller":"cmd/main.go:47","msg":"Unable to create watchers","error":"unable to add \"/opt/couchbase/var/lib/couchbase/logs/rebalance\" to couchbase watcher: permission denied: unable to add couchbase watcher","config":{},"stacktrace":"main.main\n\t/home/couchbase/jenkins/workspace/couchbase-k8s-microservice-build/couchbase-fluent-bit/cmd/main.go:47\nruntime.main\n\t/home/couchbase/jenkins/workspace/couchbase-k8s-microservice-build/golangYqnMV/go1.16.3/src/runtime/proc.go:225"}

      ```

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty