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

[Save & Manage] Error thrown when trying to save default scope in travel-sample bucket

    XMLWordPrintable

Details

    • 5: Helm, backup, Marketplace
    • 1

    Description

      2.3.0-2036

      Steps:
      Deploy a 7.0.3 cluster using the example couchbase-cluster.yaml with managed=false for buckets
      Install travel-sample from admin console

      Try to save the default scope using command:

      arunkumarsenthilnathan@Arunkumars-MacBook-Pro couchbase-autonomous-operator-kubernetes_2.3.0-macos-x86_64 % bin/cao save --filename save2.yaml --cluster cb-example --path /travel-sample/_default
      environment error: no resources detected

      Attachments

        Issue Links

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

          Activity

            simon.murray Simon Murray added a comment - - edited

            What happens if you use the 7.1 only feature on a 7.1 cluster rather than 7.0?

            My bad, I got confused... The following still holds as you can run this on 6.6 and it will end badly.

            Guess I can add in some stuff to stop you in your tracks...

            simon.murray Simon Murray added a comment - - edited What happens if you use the 7.1 only feature on a 7.1 cluster rather than 7.0? My bad, I got confused... The following still holds as you can run this on 6.6 and it will end badly. Guess I can add in some stuff to stop you in your tracks...
            simon.murray Simon Murray added a comment -

            Not a bug, the default scope contains only a default collection.  Due to the way the API has been crafted, the default collection is kept alive by its parent scope.  As you are filtering out everything except collections, then there is legitimately nothing to collect.

            Changing this to a documentation task to communicate this caveat.

            simon.murray Simon Murray added a comment - Not a bug, the default scope contains only a default collection.  Due to the way the API has been crafted, the default collection is kept alive by its parent scope.  As you are filtering out everything except collections, then there is legitimately nothing to collect. Changing this to a documentation task to communicate this caveat.
            simon.murray Simon Murray added a comment -

            Further musings: if you are doing a save of a scope's collections, then you will almost certainly be using named collections, and not bothering with the default, so it's relatively low risk to allow this behaviour and not have to go back 6 months and redesign everything...

            simon.murray Simon Murray added a comment - Further musings: if you are doing a save of a scope's collections, then you will almost certainly be using named collections, and not bothering with the default, so it's relatively low risk to allow this behaviour and not have to go back 6 months and redesign everything...

            Anil Kumar fyi - with the changes made here this tool will work only with 7.0 and above

            arunkumar Arunkumar Senthilnathan added a comment - Anil Kumar fyi - with the changes made here this tool will work only with 7.0 and above

            The design brief was scopes and collections, so it doesn't seem like constraining this to 7+ is necessarily a bad thing, a) for Arun's sake and b) to force coax users to stay up to date.

            simon.murray Simon Murray added a comment - The design brief was scopes and collections, so it doesn't seem like constraining this to 7+ is necessarily a bad thing, a) for Arun's sake and b) to force coax users to stay up to date.

            Build couchbase-operator-2.3.0-239 contains couchbase-operator commit 0dc6abb with commit message:
            K8S-2605: Stop 6.6 Save/Restore

            build-team Couchbase Build Team added a comment - Build couchbase-operator-2.3.0-239 contains couchbase-operator commit 0dc6abb with commit message: K8S-2605 : Stop 6.6 Save/Restore
            simon.murray Simon Murray added a comment -

            This is actually done in K8S-2570, and that has been sat in review for 2.5 weeks now... zzzz

            simon.murray Simon Murray added a comment - This is actually done in K8S-2570 , and that has been sat in review for 2.5 weeks now... zzzz

            People

              simon.murray Simon Murray
              arunkumar Arunkumar Senthilnathan
              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