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

rbac_upgrade not cleared on upgrade from 7.0.x to Neo

    XMLWordPrintable

Details

    • Untriaged
    • 1
    • Unknown

    Description

      I have a two node cluster running 7.0.2 and 7.1 and after rebalancing out the 7.0.2 node the rbac_upgrade flag hasn't been cleared:

      (n_1@127.0.0.1)2> cluster_compat_mode:get_compat_version().
      [7,1]
      (n_1@127.0.0.1)3> ns_config:search(ns_config:get(), rbac_upgrade).
      {value,started}
      

      Normally this would be done by calling menelaus_users:config_upgrade() e.g.

      upgrade(?VERSION_65, Config) ->
          {?VERSION_66,
           menelaus_users:config_upgrade() ++
               ns_bucket:config_upgrade_to_66(Config)};
       
      upgrade(?VERSION_66, Config) ->
          {?VERSION_70,
           menelaus_users:config_upgrade() ++
               menelaus_web_alerts_srv:config_upgrade_to_70(Config) ++
               index_settings_manager:config_upgrade_to_70(Config) ++
               query_settings_manager:config_upgrade_to_70(Config)};
       
      upgrade(?VERSION_70, _Config) ->
          {?VERSION_NEO, []}.
      

      As we no longer want ns_config upgrades in Neo I believe the flag should move to chronicle when upgrading 7.x to later releases.

      Attachments

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

        Activity

          People

            steve.watanabe Steve Watanabe
            steve.watanabe Steve Watanabe
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There is 1 open Gerrit change

                PagerDuty