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

[Cluster Clone/Node Remap] Config_remap script errors out when executed without the --regenerate-bucket-uuids flag

    XMLWordPrintable

Details

    • Untriaged
    • Linux x86_64
    • 0
    • No

    Description

      Since the current issue with regenerating bucket UUIDs results in the loss of indexes, I was trying out the same tests with an alternative script (config_remap) which allows us to carry out the remapping script without regenerating bucket UUIDs.
      When I tried executing the command without the --regenerate-bucket-uuids flag

      /opt/couchbase/bin/escript /opt/couchbase/bin/escript-wrapper --initargs-path /opt/couchbase/var/lib/couchbase/initargs -- /opt/couchbase/bin/config_remap --initargs-path /opt/couchbase/var/lib/couchbase/initargs --output-path /output_dir --remap ns_1@172.23.122.154 ns_1@172.23.122.154 --remap ns_1@172.23.122.155 ns_1@172.23.122.155 --regenerate-cookie --regenerate-cluster-uuid 

      I came across the following error,

      escript: exception error: bad key: regenerate_bucket_uuids
        in function  map_get/2
           called as map_get(regenerate_bucket_uuids,
                             #{error_logger_mf_dir =>
                                   "/opt/couchbase/var/lib/couchbase/logs",
                               go_secrets_pid => <0.100.0>,
                               initargs_path =>
                                   "/opt/couchbase/var/lib/couchbase/initargs",
                               log_level => info,
                               node_map =>
                                   #{"ns_1@172.23.122.154" => "ns_1@172.23.122.154",
                                     "ns_1@172.23.122.155" => "ns_1@172.23.122.155"},
                               output_path => "/output_dir",
                               path_config_bindir => "/opt/couchbase/bin",
                               path_config_datadir =>
                                   "/opt/couchbase/var/lib/couchbase",
                               regenerate_bucket_uuid => false,
                               regenerate_cluster_uuid => true,
                               regenerate_cookie => true})
           *** argument 1: not present in map
        in call from config_remap:setup/1 (src/config_remap.erl, line 622)
        in call from config_remap:main/1 (src/config_remap.erl, line 631)
        in call from escript:run/2 (escript.erl, line 750)
        in call from escript:start/1 (escript.erl, line 277)
        in call from init:start_em/1 
        in call from init:do_boot/3  

       

      Attachments

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

        Activity

          People

            vibhav.sp Vibhav S P
            vibhav.sp Vibhav S P
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty