Uploaded image for project: 'Couchbase Kubernetes'
  1. Couchbase Kubernetes
  2. K8S-2614

[SaveAndRestore] Restore fails with environment error.

    XMLWordPrintable

Details

    • Page
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.0
    • 2.3.0
    • documentation
    • None
    • 5: Helm, backup, Marketplace
    • 1

    Description

      Steps to reproduce:

      1. Create a 2 node 7.0.3 cluster.
      2. Create custom scopes and collections.
      3. Save the data topology: 

         cao save --filename save.yaml

      1. Destroy the cluster.
      2. Re-create the cluster.
      3. Restore the data topology: 

         cao restore -f save.yaml
        

      Error:

      environment error: cluster must use bucket label selectors 

      Might just be a doc change, however going by the default save and restore command mentioned here: https://review.couchbase.org/c/couchbase-operator/+/168039/8/docs/user/modules/ROOT/pages/tools/cao.adoc hitting this.

      Attachments

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

        Activity

          As a precaution, the tool will only function if your cluster's buckets are unmanaged, there is no label selector set and there are no existing resources, or a label selector is already in use. 

          I think I missed this in the docs. In which case, should the default CB Cluster YAML contain label selectors for the bucket? 

          prateek.kumar Prateek Kumar (Inactive) added a comment - As a precaution, the tool will only function if your cluster's buckets are unmanaged, there is no label selector set and there are no existing resources, or a label selector is already in use. I think I missed this in the docs. In which case, should the default CB Cluster YAML contain label selectors for the bucket? 
          simon.murray Simon Murray added a comment -

          No, the examples fulfill another purpose, providing a very basic (minimal configuration), but functional, example you can connect an SDK to.  It's not intended to be used with save and restore.

          simon.murray Simon Murray added a comment - No, the examples fulfill another purpose, providing a very basic (minimal configuration), but functional, example you can connect an SDK to.  It's not intended to be used with save and restore.
          simon.murray Simon Murray added a comment - K8S-2570

          People

            simon.murray Simon Murray
            prateek.kumar Prateek Kumar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty