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

Unify stateful and stateless log collection

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.2.0
    • operator

    Description

      There should be support through cbopinfo to copy logs from cb pods directly.

      Currently collectinfo flag collects the logs and be stores it in pod itself. Later we can copy the logs using "kubectl cp" command.

      In field scenario, we can have many pods, which will be difficult for us to copy the logs from each pod. So it will be good if this can be done as part of our tool and get the logs as single tar-ball.

       

      ]$ ./build/bin/cbopinfo -kubeconfig ~/.kube/config -namespace ashwin -collectinfo
      Server logs accessible via: kubectl cp ashwin/test-couchbase-dt7pw-0002:/tmp/cbinfo-ashwin-test-couchbase-dt7pw-0002-20180719T173639+0530.zip .
      Server logs accessible via: kubectl cp ashwin/test-couchbase-dt7pw-0001:/tmp/cbinfo-ashwin-test-couchbase-dt7pw-0001-20180719T173639+0530.zip .
      Server logs accessible via: kubectl cp ashwin/test-couchbase-dt7pw-0000:/tmp/cbinfo-ashwin-test-couchbase-dt7pw-0000-20180719T173639+0530.zip .
      Wrote cluster information to cbopinfo-20180719T173639+0530.tar.gz
      Ashwins-MacBook-Pro:couchbase-operator]${noformat}

      Attachments

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

        Activity

          simon.murray Simon Murray added a comment -

          We decided this was a bad idea for now so you don't inadvertently fill your disk up with logs on large clusters

          simon.murray Simon Murray added a comment - We decided this was a bad idea for now so you don't inadvertently fill your disk up with logs on large clusters

          At present we have live pods, which collect and leave in situ and log volumes which are collected and downloaded.  Unify the both so you can select, and download regardless of deployment type

          simon.murray Simon Murray added a comment - At present we have live pods, which collect and leave in situ and log volumes which are collected and downloaded.  Unify the both so you can select, and download regardless of deployment type

          People

            simon.murray Simon Murray
            ashwin.govindarajulu Ashwin Govindarajulu
            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