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

[system test] offline upgrade should stop if detect ip and ip_start files do not contain hostname

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Won't Fix
    • Affects Version/s: 2.0.1
    • Fix Version/s: 2.0.1
    • Component/s: ns_server
    • Security Level: Public
    • Labels:
    • Environment:
      unix

      Description

      Offline upgrade from 2.0.0 to 2.0.1 using host name.
      The upgrade process failed to retain configuration from 2.0.0 cluster due to user does not update hostname in ip and ip_start files at /opt/couchbase/var/lib/couchbase/
      If couchbase server uses hostname and want to do offline upgrade (detect in couchbase-server file with -name), offline upgrade process should ask user if they update hostname in ip and ip_start files with hostname and give option yes or stop the offline upgrade.

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

        Activity

        Hide
        ketaki Ketaki Gangal added a comment -

        Hi Tony,

        Did the ip file have an entry before the upfrade?

        Also, did you setup the cluster via a. or b.?
        A. Rebalance in all nodes on empty cluster, then create bucket.
        B. Create bucket, rebalance in all nodes.

        If it is (A), the ip file does not contain the hostname/entry.

        -Ketaki

        Show
        ketaki Ketaki Gangal added a comment - Hi Tony, Did the ip file have an entry before the upfrade? Also, did you setup the cluster via a. or b.? A. Rebalance in all nodes on empty cluster, then create bucket. B. Create bucket, rebalance in all nodes. If it is (A), the ip file does not contain the hostname/entry. -Ketaki
        Hide
        thuan Thuan Nguyen added a comment -

        I set up cluster via A method. That why the offline upgrade process should check in those files and give users option to do.
        The offline upgrade now just runs through the end without any checking and ask user how to process

        Show
        thuan Thuan Nguyen added a comment - I set up cluster via A method. That why the offline upgrade process should check in those files and give users option to do. The offline upgrade now just runs through the end without any checking and ask user how to process
        Hide
        ketaki Ketaki Gangal added a comment -

        Hi Tony,

        On the next run, can you follow the instructions for Offline Upgrade 2.0 from here http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-bestpractice-cloud-ip.html

        Also, could you open another bug to address the other issue " Need a more intuitive upgrade for 2.0" or so, such that we have the issue to be dealt with later as well.

        thanks,
        Ketaki

        Show
        ketaki Ketaki Gangal added a comment - Hi Tony, On the next run, can you follow the instructions for Offline Upgrade 2.0 from here http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-bestpractice-cloud-ip.html Also, could you open another bug to address the other issue " Need a more intuitive upgrade for 2.0" or so, such that we have the issue to be dealt with later as well. thanks, Ketaki
        Hide
        bcui Bin Cui added a comment -

        You have to put hostname in the ip file for hostname reference. This is a must for upgrade before 2.0.1. And it is still the requirement for 2.0.1 upgrade. Othereswise we have no way to tell u use hostname or ip address.

        Since empty ip/ip_start file is valid case for simply using ip address, we wont treat it as abnormal case.

        Show
        bcui Bin Cui added a comment - You have to put hostname in the ip file for hostname reference. This is a must for upgrade before 2.0.1. And it is still the requirement for 2.0.1 upgrade. Othereswise we have no way to tell u use hostname or ip address. Since empty ip/ip_start file is valid case for simply using ip address, we wont treat it as abnormal case.

          People

          • Assignee:
            thuan Thuan Nguyen
            Reporter:
            thuan Thuan Nguyen
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes