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

Ownership for index directory not properly reset during upgrade

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 6.5.0
    • 5.5.0, 5.5.1, 6.0.0
    • tools
    • None
    • Triaged
    • 2
    • Unknown
    • Build Team 2018 Sprint 26, Build Team 2019 Sprint 2, Build Team 2019 Sprint 3, Build Team 2019 Sprint 4, Build Team 2019 Sprint 5, Build Team 2019 Sprint 6

    Description

      During testing related to MB-27798, I discovered that we do reset the ownership for a custom-defined data directory upon upgrade, but do not reset the ownership for a custom-defined index directory (and likely not for custom-defined analytics directories when they are present):

      From the output of the rpm -U:

      Copying /opt/couchbase/var/lib/couchbase/config/config.dat
          cp /opt/couchbase/var/lib/couchbase/config/config.dat /opt/couchbase/bin/install/../../var/lib/couchbase/config/config.dat
      Copying /opt/couchbase/var/lib/couchbase/ip_start
          cp /opt/couchbase/var/lib/couchbase/ip_start /opt/couchbase/bin/install/../../var/lib/couchbase/ip
      Copying /opt/couchbase/bin/install/../../etc/couchdb/local.ini.rpmsave
          cp /opt/couchbase/bin/install/../../etc/couchdb/local.ini.rpmsave /opt/couchbase/bin/install/../../etc/couchdb/local.ini
      Ensuring bucket data directories.
      Ensuring bucket data directory: /couchbase/data/travel-sample
          mkdir -p /couchbase/data/travel-sample
      Ensuring dbdir owner/group: /couchbase/data
          chown -R couchbase:couchbase /couchbase/data
      Ensuring dbdir owner/group: /opt/couchbase/var/lib/couchbase/data
          chown -R couchbase:couchbase /opt/couchbase/var/lib/couchbase/data

      There is a request to not reset these ownerships at all, but we should at least be consistent if we are going to reset them.

      Attachments

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

        Activity

          People

            pvarley Patrick Varley (Inactive)
            perry Perry Krug
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty