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

[RN 2.0.1] Online upgrade(2.0->2.0.1) for a node referenced with hostname causes it to be referenced by ip again

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0, 2.0.1
    • Fix Version/s: 2.0.1
    • Security Level: Public
    • Environment:
    • Flagged:
      Release Note

      Description

      Online upgrade(2.0->2.0.1) for a node referenced with hostname causes it to be referenced by ip again. Though ip file correctly shows the hostname.

      The same case works fine for offline upgrade.

      Scenario:

      • Create a 2.0 cluster of 2 nodes (both nodes referenced with hostname, couchbase-server/ip file updated with hostname)
        N1 - ec2-54-251-74-125.ap-southeast-1.compute.amazonaws.com
        N2 - ec2-54-251-92-43.ap-southeast-1.compute.amazonaws.com
      • Create 1 default bucket, load gamesim-sample bucket
      • Rebalance out N2
      • Upgrade the node N2 (rpm -U couchbase-server...) [build 2.0.1-145-rel]
      • Add node N2 back to cluster again using hostname while adding node. Rebalance.
      • Node N2 is now shown being referenced by IP address rather than hostname.

      The live cluster:
      http://ec2-54-251-74-125.ap-southeast-1.compute.amazonaws.com:8091

      Access:
      ssh -i SingaporeQAkey.pem ec2-user@ec2-54-251-74-125.ap-southeast-1.compute.amazonaws.com

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

        Activity

        Hide
        bcui Bin Cui added a comment -

        Here are two scenarios:

        1. For fresh installation that to use hostname, we need to follow steps that i described at 2/11. We need to have a separate section for 2.0.1 while keeping the old steps for older release.

        2. For upgrade installation, we should remove those manual steps described in doc for 2.0.1

        Show
        bcui Bin Cui added a comment - Here are two scenarios: 1. For fresh installation that to use hostname, we need to follow steps that i described at 2/11. We need to have a separate section for 2.0.1 while keeping the old steps for older release. 2. For upgrade installation, we should remove those manual steps described in doc for 2.0.1
        Hide
        jin Jin Lim added a comment -

        Assign it to Karen for release note.

        Karen- please let Bin or Jin know if you need further assistance from eng. end. Thanks!

        Show
        jin Jin Lim added a comment - Assign it to Karen for release note. Karen- please let Bin or Jin know if you need further assistance from eng. end. Thanks!
        Hide
        kzeller kzeller added a comment -

        Added to RN as:

        <para>
        If you perform an online upgrade from Couchbase Server 2.0 to 2.0.1, any node
        in the cluster referred to by hostname, may revert to reference based on
        IP address. To resolve this:
        </para>
        <itemizedlist><para>On Linux: create a file
        named <filename>ip_start</filename> in the directory
        <filename>/opt/couchbase/var/lib/couchbase</filename> for the node. In this new file,
        add a line provides the DNS name or IP address that you want to use to refer to the node.</para>
        </itemizedlist>

        <itemizedlist><para>On Windows: create a file
        named <filename>ip_start</filename> in the directory
        <filename>c:\program files\couchbase\server\var\lib\couchbase</filename> for the node. In this new file,
        add a line provides the DNS name or IP address that you want to use to refer to the node.</para>
        </itemizedlist>

        Show
        kzeller kzeller added a comment - Added to RN as: <para> If you perform an online upgrade from Couchbase Server 2.0 to 2.0.1, any node in the cluster referred to by hostname, may revert to reference based on IP address. To resolve this: </para> <itemizedlist><para>On Linux: create a file named <filename>ip_start</filename> in the directory <filename>/opt/couchbase/var/lib/couchbase</filename> for the node. In this new file, add a line provides the DNS name or IP address that you want to use to refer to the node.</para> </itemizedlist> <itemizedlist><para>On Windows: create a file named <filename>ip_start</filename> in the directory <filename>c:\program files\couchbase\server\var\lib\couchbase</filename> for the node. In this new file, add a line provides the DNS name or IP address that you want to use to refer to the node.</para> </itemizedlist>
        Hide
        kzeller kzeller added a comment -

        Added to RN as:

        <para>
        If you perform an online upgrade from Couchbase Server 2.0 to 2.0.1, any node
        in the cluster referred to by hostname, may revert to reference based on
        IP address. To resolve this:
        </para>
        <itemizedlist><para>On Linux: create a file
        named <filename>ip_start</filename> in the directory
        <filename>/opt/couchbase/var/lib/couchbase</filename> for the node. In this new file,
        add a line provides the DNS name or IP address that you want to use to refer to the node.</para>
        </itemizedlist>

        <itemizedlist><para>On Windows: create a file
        named <filename>ip_start</filename> in the directory
        <filename>c:\program files\couchbase\server\var\lib\couchbase</filename> for the node. In this new file,
        add a line provides the DNS name or IP address that you want to use to refer to the node.</para>
        </itemizedlist>

        Show
        kzeller kzeller added a comment - Added to RN as: <para> If you perform an online upgrade from Couchbase Server 2.0 to 2.0.1, any node in the cluster referred to by hostname, may revert to reference based on IP address. To resolve this: </para> <itemizedlist><para>On Linux: create a file named <filename>ip_start</filename> in the directory <filename>/opt/couchbase/var/lib/couchbase</filename> for the node. In this new file, add a line provides the DNS name or IP address that you want to use to refer to the node.</para> </itemizedlist> <itemizedlist><para>On Windows: create a file named <filename>ip_start</filename> in the directory <filename>c:\program files\couchbase\server\var\lib\couchbase</filename> for the node. In this new file, add a line provides the DNS name or IP address that you want to use to refer to the node.</para> </itemizedlist>
        Show
        kzeller kzeller added a comment - Also added to existing server manual content, per Bin: http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-getting-started-upgrade-1-8-2-0.html and http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-getting-started-upgrade-individual.html

          People

          • Assignee:
            kzeller kzeller
            Reporter:
            deepkaran.salooja Deepkaran Salooja
          • Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes