Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-61469

Add ini.rpmsave files to cbcollect ini.log

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • Morpheus
    • None
    • ns_server
    • None
    • Triaged
    • 0
    • Unknown

    Description

      Currently, ini.log logs the contents of INI files but not backup files. (Also need to check whether we log contents of runtime.ini used on Windows.)

      sh -c for i in "$@"; do echo "file: $i"; cat "$i"; done – /opt/couchbase/etc/couchdb/default.ini /opt/couchbase/etc/couchdb/default.d/capi.ini /opt/couchbase/etc/couchdb/default.d/geocouch.ini /opt/couchbase/etc/couchdb/local.ini

      cbupgrade attempts to read the contents of .rpmsave and .debsave files too:
      https://github.com/couchbase/voltron/blob/4d5f652b80ba24c12e406e0e21e2b21dcf6be541/cbupgrade/cbupgrade#L310-L320

      There is also cbupgrade, which is owned by the Tools team. That is run by the RPM after doing all filesystem modifications such as the above steps. It appears that it attempts to find things like local.ini.rpmsave and copy them back to the right location if they exist.

      See CBSE-16807 and CBSE-16932.
      We should save the contents of these .rpmsave files too when available (ip.rpmsave, ip_start.rpmsave, dist_cfg.rpmsave, config.dat.rpmsave, local.ini.rpmsave).

      Attachments

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

        Activity

          People

            Abhijeeth.Nuthan Abhijeeth Nuthan
            neelima.premsankar Neelima Premsankar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty