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

Stop using static_config file to configure IPv4 / IPv6 modes.

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.5.0, 5.5.1, 5.5.2
    • 6.5.0, 5.5.3, 6.0.1
    • ns_server
    • None
    • Untriaged
    • No

    Description

      Currently, we use the static_config file to configure the networking mode. But this has a problem of losing the configuration during an upgrade. The current idea is to store this config information in a file under /opt/couchbase/var/lib/couchbase/config directory and provide a REST API to toggle between the modes.

      This API needs to be called on every node in the cluster to switch the mode. The API will fail if the cluster is initialized and has nodes that are configured using raw IP addresses. The reason for this is that if a node is configured with a raw IP address, then the cluster config will have keys that contain the raw IP address and this makes the transition impossible.

       

      Attachments

        Issue Links

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

          Activity

            ajit.yagaty Ajit Yagaty [X] (Inactive) created issue -
            dfinlay Dave Finlay made changes -
            Field Original Value New Value
            Link This issue blocks MB-31456 [ MB-31456 ]
            ajit.yagaty Ajit Yagaty [X] (Inactive) made changes -
            Description Currently, we use the static_config file to configure the networking mode. But this has a problem of losing the configuration during an upgrade. The current idea is to store this config information in a file under /opt/couchbase/var/lib/couchbase/config directory and provide a REST API to toggle between the modes.

            This API needs to be called on every node in the cluster to switch the mode. The API will fail if the cluster is initialized and has nodes that configured using raw IP addresses. The reason for this is that if a node is configured with a raw IP address, then the cluster config will have keys that contain the raw IP address and this makes the transition impossible.

             
            Currently, we use the static_config file to configure the networking mode. But this has a problem of losing the configuration during an upgrade. The current idea is to store this config information in a file under /opt/couchbase/var/lib/couchbase/config directory and provide a REST API to toggle between the modes.

            This API needs to be called on every node in the cluster to switch the mode. The API will fail if the cluster is initialized and has nodes that are configured using raw IP addresses. The reason for this is that if a node is configured with a raw IP address, then the cluster config will have keys that contain the raw IP address and this makes the transition impossible.

             
            wayne Wayne Siu made changes -
            Affects Version/s 5.5.2 [ 15412 ]
            Affects Version/s 5.5.1 [ 15159 ]
            Affects Version/s 5.5.0 [ 14610 ]

            Build couchbase-server-5.5.3-4020 contains ns_server commit 519eb98 with commit message:
            MB-31803: Remove ipv6 config from static_config...

            build-team Couchbase Build Team added a comment - Build couchbase-server-5.5.3-4020 contains ns_server commit 519eb98 with commit message: MB-31803 : Remove ipv6 config from static_config...

            Build couchbase-server-5.5.3-4020 contains ns_server commit 76d44a1 with commit message:
            MB-31803: Use CB_DATA_DIR in couchbase-server init...

            build-team Couchbase Build Team added a comment - Build couchbase-server-5.5.3-4020 contains ns_server commit 76d44a1 with commit message: MB-31803 : Use CB_DATA_DIR in couchbase-server init...

            Build couchbase-server-5.5.3-4020 contains ns_server commit f4f7afa with commit message:
            MB-31803: Helper function to return configured...

            build-team Couchbase Build Team added a comment - Build couchbase-server-5.5.3-4020 contains ns_server commit f4f7afa with commit message: MB-31803 : Helper function to return configured...

            Build couchbase-server-5.5.3-4020 contains ns_server commit feeba89 with commit message:
            MB-31803: New API to configure networking mode.

            build-team Couchbase Build Team added a comment - Build couchbase-server-5.5.3-4020 contains ns_server commit feeba89 with commit message: MB-31803 : New API to configure networking mode.

            Build couchbase-server-5.5.3-4020 contains voltron commit 47700f1 with commit message:
            MB-31803: Handle new config file called dist_cfg.

            build-team Couchbase Build Team added a comment - Build couchbase-server-5.5.3-4020 contains voltron commit 47700f1 with commit message: MB-31803 : Handle new config file called dist_cfg.

            Build couchbase-server-5.5.3-4021 contains voltron commit bfbac1b with commit message:
            MB-31803: Create empty dist_cfg for packaging purposes

            build-team Couchbase Build Team added a comment - Build couchbase-server-5.5.3-4021 contains voltron commit bfbac1b with commit message: MB-31803 : Create empty dist_cfg for packaging purposes
            ceej Chris Hillery made changes -
            Remote Link This issue links to "Page (Couchbase, Inc. Wiki)" [ 17324 ]
            ajit.yagaty Ajit Yagaty [X] (Inactive) made changes -
            Link This issue blocks MB-31466 [ MB-31466 ]

            Build couchbase-server-6.5.0-1580 contains ns_server commit e06a960 with commit message:
            MB-31803: Merge remote-tracking branch alice.

            build-team Couchbase Build Team added a comment - Build couchbase-server-6.5.0-1580 contains ns_server commit e06a960 with commit message: MB-31803 : Merge remote-tracking branch alice.

            Build couchbase-server-6.5.0-1580 contains ns_server commit e06a960 with commit message:
            MB-31803: Merge remote-tracking branch alice.

            build-team Couchbase Build Team added a comment - Build couchbase-server-6.5.0-1580 contains ns_server commit e06a960 with commit message: MB-31803 : Merge remote-tracking branch alice.

            Build couchbase-server-6.5.0-1580 contains ns_server commit e06a960 with commit message:
            MB-31803: Merge remote-tracking branch alice.

            build-team Couchbase Build Team added a comment - Build couchbase-server-6.5.0-1580 contains ns_server commit e06a960 with commit message: MB-31803 : Merge remote-tracking branch alice.

            Build couchbase-server-6.5.0-1580 contains ns_server commit e06a960 with commit message:
            MB-31803: Merge remote-tracking branch alice.

            build-team Couchbase Build Team added a comment - Build couchbase-server-6.5.0-1580 contains ns_server commit e06a960 with commit message: MB-31803 : Merge remote-tracking branch alice.

            Build couchbase-server-6.5.0-1580 contains ns_server commit e06a960 with commit message:
            MB-31803: Merge remote-tracking branch alice.

            build-team Couchbase Build Team added a comment - Build couchbase-server-6.5.0-1580 contains ns_server commit e06a960 with commit message: MB-31803 : Merge remote-tracking branch alice.

            Build couchbase-server-6.5.0-1580 contains ns_server commit e06a960 with commit message:
            MB-31803: Merge remote-tracking branch alice.

            build-team Couchbase Build Team added a comment - Build couchbase-server-6.5.0-1580 contains ns_server commit e06a960 with commit message: MB-31803 : Merge remote-tracking branch alice.

            Build couchbase-server-6.5.0-1580 contains ns_server commit f8cd4dd with commit message:
            MB-31803: Merge remote-tracking branch 'vulcan'.

            build-team Couchbase Build Team added a comment - Build couchbase-server-6.5.0-1580 contains ns_server commit f8cd4dd with commit message: MB-31803 : Merge remote-tracking branch 'vulcan'.

            Build couchbase-server-6.5.0-1580 contains ns_server commit f8cd4dd with commit message:
            MB-31803: Merge remote-tracking branch 'vulcan'.

            build-team Couchbase Build Team added a comment - Build couchbase-server-6.5.0-1580 contains ns_server commit f8cd4dd with commit message: MB-31803 : Merge remote-tracking branch 'vulcan'.

            Build couchbase-server-6.5.0-1580 contains ns_server commit f8cd4dd with commit message:
            MB-31803: Merge remote-tracking branch 'vulcan'.

            build-team Couchbase Build Team added a comment - Build couchbase-server-6.5.0-1580 contains ns_server commit f8cd4dd with commit message: MB-31803 : Merge remote-tracking branch 'vulcan'.

            Build couchbase-server-6.5.0-1580 contains ns_server commit f8cd4dd with commit message:
            MB-31803: Merge remote-tracking branch 'vulcan'.

            build-team Couchbase Build Team added a comment - Build couchbase-server-6.5.0-1580 contains ns_server commit f8cd4dd with commit message: MB-31803 : Merge remote-tracking branch 'vulcan'.

            Build couchbase-server-6.5.0-1580 contains ns_server commit f8cd4dd with commit message:
            MB-31803: Merge remote-tracking branch 'vulcan'.

            build-team Couchbase Build Team added a comment - Build couchbase-server-6.5.0-1580 contains ns_server commit f8cd4dd with commit message: MB-31803 : Merge remote-tracking branch 'vulcan'.

            Build couchbase-server-6.5.0-1580 contains ns_server commit 519eb98 with commit message:
            MB-31803: Remove ipv6 config from static_config...

            build-team Couchbase Build Team added a comment - Build couchbase-server-6.5.0-1580 contains ns_server commit 519eb98 with commit message: MB-31803 : Remove ipv6 config from static_config...

            Build couchbase-server-6.5.0-1580 contains ns_server commit 76d44a1 with commit message:
            MB-31803: Use CB_DATA_DIR in couchbase-server init...

            build-team Couchbase Build Team added a comment - Build couchbase-server-6.5.0-1580 contains ns_server commit 76d44a1 with commit message: MB-31803 : Use CB_DATA_DIR in couchbase-server init...

            Build couchbase-server-6.5.0-1580 contains ns_server commit f4f7afa with commit message:
            MB-31803: Helper function to return configured...

            build-team Couchbase Build Team added a comment - Build couchbase-server-6.5.0-1580 contains ns_server commit f4f7afa with commit message: MB-31803 : Helper function to return configured...

            Build couchbase-server-6.5.0-1580 contains ns_server commit feeba89 with commit message:
            MB-31803: New API to configure networking mode.

            build-team Couchbase Build Team added a comment - Build couchbase-server-6.5.0-1580 contains ns_server commit feeba89 with commit message: MB-31803 : New API to configure networking mode.

            Build couchbase-server-6.5.0-1580 contains voltron commit 09c157c with commit message:
            MB-31803: Merge remote-tracking branch 'alice'.

            build-team Couchbase Build Team added a comment - Build couchbase-server-6.5.0-1580 contains voltron commit 09c157c with commit message: MB-31803 : Merge remote-tracking branch 'alice'.

            Build couchbase-server-6.5.0-1580 contains voltron commit 09c157c with commit message:
            MB-31803: Merge remote-tracking branch 'alice'.

            build-team Couchbase Build Team added a comment - Build couchbase-server-6.5.0-1580 contains voltron commit 09c157c with commit message: MB-31803 : Merge remote-tracking branch 'alice'.

            Build couchbase-server-6.5.0-1580 contains voltron commit 09c157c with commit message:
            MB-31803: Merge remote-tracking branch 'alice'.

            build-team Couchbase Build Team added a comment - Build couchbase-server-6.5.0-1580 contains voltron commit 09c157c with commit message: MB-31803 : Merge remote-tracking branch 'alice'.

            Build couchbase-server-6.5.0-1580 contains voltron commit 09c157c with commit message:
            MB-31803: Merge remote-tracking branch 'alice'.

            build-team Couchbase Build Team added a comment - Build couchbase-server-6.5.0-1580 contains voltron commit 09c157c with commit message: MB-31803 : Merge remote-tracking branch 'alice'.

            Build couchbase-server-6.5.0-1580 contains voltron commit 330c6ae with commit message:
            MB-31803: Merge remote-tracking branch 'vulcan'.

            build-team Couchbase Build Team added a comment - Build couchbase-server-6.5.0-1580 contains voltron commit 330c6ae with commit message: MB-31803 : Merge remote-tracking branch 'vulcan'.

            Build couchbase-server-6.5.0-1580 contains voltron commit 330c6ae with commit message:
            MB-31803: Merge remote-tracking branch 'vulcan'.

            build-team Couchbase Build Team added a comment - Build couchbase-server-6.5.0-1580 contains voltron commit 330c6ae with commit message: MB-31803 : Merge remote-tracking branch 'vulcan'.

            Build couchbase-server-6.5.0-1580 contains voltron commit 330c6ae with commit message:
            MB-31803: Merge remote-tracking branch 'vulcan'.

            build-team Couchbase Build Team added a comment - Build couchbase-server-6.5.0-1580 contains voltron commit 330c6ae with commit message: MB-31803 : Merge remote-tracking branch 'vulcan'.

            Build couchbase-server-6.5.0-1580 contains voltron commit bfbac1b with commit message:
            MB-31803: Create empty dist_cfg for packaging purposes

            build-team Couchbase Build Team added a comment - Build couchbase-server-6.5.0-1580 contains voltron commit bfbac1b with commit message: MB-31803 : Create empty dist_cfg for packaging purposes

            Build couchbase-server-6.5.0-1580 contains voltron commit 47700f1 with commit message:
            MB-31803: Handle new config file called dist_cfg.

            build-team Couchbase Build Team added a comment - Build couchbase-server-6.5.0-1580 contains voltron commit 47700f1 with commit message: MB-31803 : Handle new config file called dist_cfg.

            Build couchbase-server-6.0.1-1958 contains ns_server commit f8cd4dd with commit message:
            MB-31803: Merge remote-tracking branch 'vulcan'.

            build-team Couchbase Build Team added a comment - Build couchbase-server-6.0.1-1958 contains ns_server commit f8cd4dd with commit message: MB-31803 : Merge remote-tracking branch 'vulcan'.

            Build couchbase-server-6.0.1-1958 contains ns_server commit f8cd4dd with commit message:
            MB-31803: Merge remote-tracking branch 'vulcan'.

            build-team Couchbase Build Team added a comment - Build couchbase-server-6.0.1-1958 contains ns_server commit f8cd4dd with commit message: MB-31803 : Merge remote-tracking branch 'vulcan'.

            Build couchbase-server-6.0.1-1958 contains ns_server commit f8cd4dd with commit message:
            MB-31803: Merge remote-tracking branch 'vulcan'.

            build-team Couchbase Build Team added a comment - Build couchbase-server-6.0.1-1958 contains ns_server commit f8cd4dd with commit message: MB-31803 : Merge remote-tracking branch 'vulcan'.

            Build couchbase-server-6.0.1-1958 contains ns_server commit f8cd4dd with commit message:
            MB-31803: Merge remote-tracking branch 'vulcan'.

            build-team Couchbase Build Team added a comment - Build couchbase-server-6.0.1-1958 contains ns_server commit f8cd4dd with commit message: MB-31803 : Merge remote-tracking branch 'vulcan'.

            Build couchbase-server-6.0.1-1958 contains ns_server commit f8cd4dd with commit message:
            MB-31803: Merge remote-tracking branch 'vulcan'.

            build-team Couchbase Build Team added a comment - Build couchbase-server-6.0.1-1958 contains ns_server commit f8cd4dd with commit message: MB-31803 : Merge remote-tracking branch 'vulcan'.

            Build couchbase-server-6.0.1-1958 contains ns_server commit 519eb98 with commit message:
            MB-31803: Remove ipv6 config from static_config...

            build-team Couchbase Build Team added a comment - Build couchbase-server-6.0.1-1958 contains ns_server commit 519eb98 with commit message: MB-31803 : Remove ipv6 config from static_config...

            Build couchbase-server-6.0.1-1958 contains ns_server commit 76d44a1 with commit message:
            MB-31803: Use CB_DATA_DIR in couchbase-server init...

            build-team Couchbase Build Team added a comment - Build couchbase-server-6.0.1-1958 contains ns_server commit 76d44a1 with commit message: MB-31803 : Use CB_DATA_DIR in couchbase-server init...

            Build couchbase-server-6.0.1-1958 contains ns_server commit f4f7afa with commit message:
            MB-31803: Helper function to return configured...

            build-team Couchbase Build Team added a comment - Build couchbase-server-6.0.1-1958 contains ns_server commit f4f7afa with commit message: MB-31803 : Helper function to return configured...

            Build couchbase-server-6.0.1-1958 contains ns_server commit feeba89 with commit message:
            MB-31803: New API to configure networking mode.

            build-team Couchbase Build Team added a comment - Build couchbase-server-6.0.1-1958 contains ns_server commit feeba89 with commit message: MB-31803 : New API to configure networking mode.

            Build couchbase-server-6.0.1-1958 contains voltron commit 330c6ae with commit message:
            MB-31803: Merge remote-tracking branch 'vulcan'.

            build-team Couchbase Build Team added a comment - Build couchbase-server-6.0.1-1958 contains voltron commit 330c6ae with commit message: MB-31803 : Merge remote-tracking branch 'vulcan'.

            Build couchbase-server-6.0.1-1958 contains voltron commit 330c6ae with commit message:
            MB-31803: Merge remote-tracking branch 'vulcan'.

            build-team Couchbase Build Team added a comment - Build couchbase-server-6.0.1-1958 contains voltron commit 330c6ae with commit message: MB-31803 : Merge remote-tracking branch 'vulcan'.

            Build couchbase-server-6.0.1-1958 contains voltron commit 330c6ae with commit message:
            MB-31803: Merge remote-tracking branch 'vulcan'.

            build-team Couchbase Build Team added a comment - Build couchbase-server-6.0.1-1958 contains voltron commit 330c6ae with commit message: MB-31803 : Merge remote-tracking branch 'vulcan'.

            Build couchbase-server-6.0.1-1958 contains voltron commit bfbac1b with commit message:
            MB-31803: Create empty dist_cfg for packaging purposes

            build-team Couchbase Build Team added a comment - Build couchbase-server-6.0.1-1958 contains voltron commit bfbac1b with commit message: MB-31803 : Create empty dist_cfg for packaging purposes

            Build couchbase-server-6.0.1-1958 contains voltron commit 47700f1 with commit message:
            MB-31803: Handle new config file called dist_cfg.

            build-team Couchbase Build Team added a comment - Build couchbase-server-6.0.1-1958 contains voltron commit 47700f1 with commit message: MB-31803 : Handle new config file called dist_cfg.
            ajit.yagaty Ajit Yagaty [X] (Inactive) made changes -
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Resolved [ 5 ]
            ajit.yagaty Ajit Yagaty [X] (Inactive) made changes -
            Actual End 2018-11-07 16:19 (issue has been resolved)
            tanzeem.ahmed Tanzeem Ahmed (Inactive) made changes -
            VERIFICATION STEPS Verified on 5.5.3/6.0.1/6.5.0 builds on CentOS
            Also, verified by upgrading from 5.5.0/5.5.1/5.5.2 to 5.5.3 on CentOS
            Tony has verified for Windows
            Assignee Ajit Yagaty [ ajit.yagaty ] Tanzeem Ahmed [ tanzeem.ahmed ]
            Status Resolved [ 5 ] Closed [ 6 ]
            wayne Wayne Siu made changes -
            Link This issue relates to MB-31598 [ MB-31598 ]
            richard.smedley Richard Smedley made changes -
            Link This issue relates to DOC-4689 [ DOC-4689 ]
            richard.smedley Richard Smedley made changes -
            Link This issue relates to DOC-4674 [ DOC-4674 ]
            malarky Chris Malarky made changes -
            Resolution Fixed [ 1 ]
            Status Closed [ 6 ] Reopened [ 4 ]
            malarky Chris Malarky made changes -
            Summary Stop using static_config file to configure IPv4/IPv6 modes. Stop using static_config file to configure IPv4 / IPv6 modes.
            malarky Chris Malarky made changes -
            Resolution Fixed [ 1 ]
            Status Reopened [ 4 ] Closed [ 6 ]
            phil.stott Phil Stott (Inactive) made changes -
            Link This issue causes CBSE-6854 [ CBSE-6854 ]
            eric.schneider Eric Schneider (Inactive) made changes -
            Link This issue relates to DOC-5945 [ DOC-5945 ]

            People

              tanzeem.ahmed Tanzeem Ahmed (Inactive)
              ajit.yagaty Ajit Yagaty [X] (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                PagerDuty