Details
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
For Gerrit Dashboard: MB-30210 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
109195,3 | MB-30210 Reset index path ownership on upgrade | master | voltron | Status: MERGED | +2 | +1 |