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

on multi node cluster , upgrading a node from 1.6.5.4 to 1.7 will reset its config and bucket data if node's IP has changed since 1.6.5.4 installation

    Details

      Description

      steps to reproduce :
      install 1.6.5.4 on ip(a)
      install 1.6.5.4 on ip(b)

      join ip(a) and ip(b) and rebalance

      then change ip(a) to ip(X)
      perform an in-place upgrade ( shut down each node and upgrade )

      after upgrade process ip(b) will come back up but ip(X) says that the cluster in not initialized as if the data is lost and bucket did not exist in this machine

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

        Activity

        Hide
        farshid Farshid Ghods (Inactive) added a comment -

        root@farshid-ubuntu-1:/tmp# dpkg -i membase-server-community_x86_1.7.0.deb
        (Reading database ... 69626 files and directories currently installed.)
        Preparing to replace membase-server 1.6.5.4 (using membase-server-community_x86_1.7.0.deb) ...

        • Stopped Membase server
          Upgrading previous membase ... (1.6.5.4)
          Stopping previous membase ... (1.6.5.4)
        • Stopped Membase server
          Saving previous membase config.dat ...
          Cleaning symlinks ...
          Unpacking replacement membase-server ...
          dpkg: warning: unable to delete old directory '/var/opt/membase/1.6.5.4/data': Directory not empty
          dpkg: warning: unable to delete old directory '/var/opt/membase/1.6.5.4/mnesia': Directory not empty
          dpkg: warning: unable to delete old directory '/var/opt/membase/1.6.5.4/tmp': Directory not empty
          dpkg: warning: unable to delete old directory '/var/opt/membase/1.6.5.4/logs': Directory not empty
          dpkg: warning: unable to delete old directory '/var/opt/membase/1.6.5.4': Directory not empty
          dpkg: warning: unable to delete old directory '/var/opt/membase': Directory not empty
          dpkg: warning: unable to delete old directory '/var/opt': Directory not empty
          dpkg: warning: unable to delete old directory '/etc/opt/membase/1.6.5.4/ns_1': Directory not empty
          dpkg: warning: unable to delete old directory '/etc/opt/membase/1.6.5.4': Directory not empty
          dpkg: warning: unable to delete old directory '/etc/opt/membase': Directory not empty
          dpkg: warning: unable to delete old directory '/etc/opt': Directory not empty
          Setting up membase-server (1.7.0) ...
          Upgrading from 1.6.5.4 ...
          /opt/membase/bin/mbupgrade -c /etc/opt/membase/1.6.5.4 -a yes
          Automatic mode: running without interactive questions or confirmations.
          Upgrading your Membase Server to 1.7.0.
          The upgrade process might take awhile.
          Analysing...
          Target node: ns_1@172.16.75.135

        Membase should not be running.
        Please use: /etc/init.d/membase-server stop

        Database dir: /var/opt/membase/1.6.5.4/data/ns_1

        Buckets to upgrade: default

        Checking disk space available for buckets in directory:
        /var/opt/membase/1.6.5.4/data/ns_1
        Free disk bucket space wanted: 1022197760.0
        Free disk bucket space available: 4332507136
        Free disk space factor: 2.0
        Ok.

        Analysis complete.

        Copying /etc/opt/membase/1.6.5.4/ns_1/config.dat.debsave
        cp /etc/opt/membase/1.6.5.4/ns_1/config.dat.debsave /opt/membase/var/lib/membase/config/config.dat
        Copying /etc/opt/membase/1.6.5.4/ip
        cp /etc/opt/membase/1.6.5.4/ip /opt/membase/var/lib/membase/ip
        Ensuring bucket data directories.
        Ensuring bucket data directory: /var/opt/membase/1.6.5.4/data/ns_1/default-data
        mkdir -p /var/opt/membase/1.6.5.4/data/ns_1/default-data
        Ensuring dbdir owner/group: /var/opt/membase/1.6.5.4/data/ns_1
        chown -R membase:membase /var/opt/membase/1.6.5.4/data/ns_1
        Upgrading buckets.
        Upgrading bucket: default
        /opt/membase/bin/mbdbupgrade /var/opt/membase/1.6.5.4/data/ns_1/default /var/opt/membase/1.6.5.4/data/ns_1/default-data
        mbdbupgrade pid: 1284
        Source version from "/var/opt/membase/1.6.5.4/data/ns_1/default" is 2
        /opt/membase/lib/python/mbdbconvert -src-pattern=%d/%b%i.mb --src-strategy=multiMTVBDB /var/opt/membase/1.6.5.4/data/ns_1/default /var/opt/membase/1.6.5.4/data/ns_1/default-data/default --report-every=2000 --init-file=/opt/membase/lib/python/../../etc/membase/init.sql
        src = multiMTVBDB@/var/opt/membase/1.6.5.4/data/ns_1/default
        dest = multiMTVBDB@/var/opt/membase/1.6.5.4/data/ns_1/default-data/default
        Each . represents 2000 items moved.
        .....................
        Moved 219660 items.
        Elapsed time=45 seconds.
        mbdbupgrade err: 0
        Ensuring bucket owner/group: /var/opt/membase/1.6.5.4/data/ns_1/default-data
        chown -R membase:membase /var/opt/membase/1.6.5.4/data/ns_1/default-data

        Done.

        • Started Membase server

        You have successfully installed Membase Server.
        Please browse to http://farshid-ubuntu-1:8091/ to configure your server.
        Please refer to http://couchbase.com for additional resources.

        Please note that you have to update your firewall configuration to
        allow connections to the following ports: 11211, 11210, 4369, 8091
        and from 21100 to 21299.

        By using this software you agree to the End User License Agreement.
        See /opt/membase/LICENSE.txt.

        Processing triggers for ureadahead ...
        ureadahead will be reprofiled on next reboot

        Show
        farshid Farshid Ghods (Inactive) added a comment - root@farshid-ubuntu-1:/tmp# dpkg -i membase-server-community_x86_1.7.0.deb (Reading database ... 69626 files and directories currently installed.) Preparing to replace membase-server 1.6.5.4 (using membase-server-community_x86_1.7.0.deb) ... Stopped Membase server Upgrading previous membase ... (1.6.5.4) Stopping previous membase ... (1.6.5.4) Stopped Membase server Saving previous membase config.dat ... Cleaning symlinks ... Unpacking replacement membase-server ... dpkg: warning: unable to delete old directory '/var/opt/membase/1.6.5.4/data': Directory not empty dpkg: warning: unable to delete old directory '/var/opt/membase/1.6.5.4/mnesia': Directory not empty dpkg: warning: unable to delete old directory '/var/opt/membase/1.6.5.4/tmp': Directory not empty dpkg: warning: unable to delete old directory '/var/opt/membase/1.6.5.4/logs': Directory not empty dpkg: warning: unable to delete old directory '/var/opt/membase/1.6.5.4': Directory not empty dpkg: warning: unable to delete old directory '/var/opt/membase': Directory not empty dpkg: warning: unable to delete old directory '/var/opt': Directory not empty dpkg: warning: unable to delete old directory '/etc/opt/membase/1.6.5.4/ns_1': Directory not empty dpkg: warning: unable to delete old directory '/etc/opt/membase/1.6.5.4': Directory not empty dpkg: warning: unable to delete old directory '/etc/opt/membase': Directory not empty dpkg: warning: unable to delete old directory '/etc/opt': Directory not empty Setting up membase-server (1.7.0) ... Upgrading from 1.6.5.4 ... /opt/membase/bin/mbupgrade -c /etc/opt/membase/1.6.5.4 -a yes Automatic mode: running without interactive questions or confirmations. Upgrading your Membase Server to 1.7.0. The upgrade process might take awhile. Analysing... Target node: ns_1@172.16.75.135 Membase should not be running. Please use: /etc/init.d/membase-server stop Database dir: /var/opt/membase/1.6.5.4/data/ns_1 Buckets to upgrade: default Checking disk space available for buckets in directory: /var/opt/membase/1.6.5.4/data/ns_1 Free disk bucket space wanted: 1022197760.0 Free disk bucket space available: 4332507136 Free disk space factor: 2.0 Ok. Analysis complete. Copying /etc/opt/membase/1.6.5.4/ns_1/config.dat.debsave cp /etc/opt/membase/1.6.5.4/ns_1/config.dat.debsave /opt/membase/var/lib/membase/config/config.dat Copying /etc/opt/membase/1.6.5.4/ip cp /etc/opt/membase/1.6.5.4/ip /opt/membase/var/lib/membase/ip Ensuring bucket data directories. Ensuring bucket data directory: /var/opt/membase/1.6.5.4/data/ns_1/default-data mkdir -p /var/opt/membase/1.6.5.4/data/ns_1/default-data Ensuring dbdir owner/group: /var/opt/membase/1.6.5.4/data/ns_1 chown -R membase:membase /var/opt/membase/1.6.5.4/data/ns_1 Upgrading buckets. Upgrading bucket: default /opt/membase/bin/mbdbupgrade /var/opt/membase/1.6.5.4/data/ns_1/default /var/opt/membase/1.6.5.4/data/ns_1/default-data mbdbupgrade pid: 1284 Source version from "/var/opt/membase/1.6.5.4/data/ns_1/default" is 2 /opt/membase/lib/python/mbdbconvert - src-pattern=%d/%b %i.mb --src-strategy=multiMTVBDB /var/opt/membase/1.6.5.4/data/ns_1/default /var/opt/membase/1.6.5.4/data/ns_1/default-data/default --report-every=2000 --init-file=/opt/membase/lib/python/../../etc/membase/init.sql src = multiMTVBDB@/var/opt/membase/1.6.5.4/data/ns_1/default dest = multiMTVBDB@/var/opt/membase/1.6.5.4/data/ns_1/default-data/default Each . represents 2000 items moved. ..................... Moved 219660 items. Elapsed time=45 seconds. mbdbupgrade err: 0 Ensuring bucket owner/group: /var/opt/membase/1.6.5.4/data/ns_1/default-data chown -R membase:membase /var/opt/membase/1.6.5.4/data/ns_1/default-data Done. Started Membase server You have successfully installed Membase Server. Please browse to http://farshid-ubuntu-1:8091/ to configure your server. Please refer to http://couchbase.com for additional resources. Please note that you have to update your firewall configuration to allow connections to the following ports: 11211, 11210, 4369, 8091 and from 21100 to 21299. By using this software you agree to the End User License Agreement. See /opt/membase/LICENSE.txt. Processing triggers for ureadahead ... ureadahead will be reprofiled on next reboot
        Hide
        steve Steve Yen added a comment -

        either this was fixed, or if it wasn't it's probably won't fix at this point

        Show
        steve Steve Yen added a comment - either this was fixed, or if it wasn't it's probably won't fix at this point

          People

          • Assignee:
            steve Steve Yen
            Reporter:
            farshid Farshid Ghods (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes