Description
2.3.0-236
Steps:
Deploy a 7.0.3 cluster using the example couchbase-cluster.yaml with managed=false for buckets
Install travel-sample from admin console
Save the collections under inventory scope using bin/cao save
Drop the inventory scope and all collections under it from admin console
Recreate the inventory scope from admin console
Restore the collections in inventory scope using the saved file
Data topology solution:
|
|
/
|
└── travel-sample (bucket) retain
|
├── _default (scope) retain
|
├── inventory (scope) retain
|
│ ├── airline (collection) create
|
│ ├── airport (collection) create
|
│ ├── hotel (collection) create
|
│ ├── landmark (collection) create
|
│ └── route (collection) create
|
├── tenant_agent_00 (scope) retain
|
│ ├── bookings (collection) retain
|
│ └── users (collection) retain
|
├── tenant_agent_01 (scope) retain
|
│ ├── bookings (collection) retain
|
│ └── users (collection) retain
|
├── tenant_agent_02 (scope) retain
|
│ ├── bookings (collection) retain
|
│ └── users (collection) retain
|
├── tenant_agent_03 (scope) retain
|
│ ├── bookings (collection) retain
|
│ └── users (collection) retain
|
└── tenant_agent_04 (scope) retain
|
├── bookings (collection) retain
|
└── users (collection) retain
|
|
WARNING! resources marked as delete may result in data loss.
|
|
OK to proceed? (y/N) y
|
couchbasebuckets/bucket-22fc0f22-b82f-4746-9bb1-235a3dd9c248 created
|
couchbasescopes/scope-9a12a4e0-71cf-436f-96d6-9cfe39a766db created
|
couchbasescopes/scope-1ffd4287-1dcd-48ff-8066-5fbf1ed7d2a7 created
|
couchbasescopes/scope-d32bda92-016b-4053-95a7-3e0919b3d942 created
|
couchbasescopes/scope-7e83468e-0b74-466a-a7e5-8b512a4b9a62 created
|
couchbasescopes/scope-79009701-386a-4fe3-a74b-1e4ae58022e9 created
|
couchbasescopes/scope-9b702268-4dad-41f5-a3c4-583ee0e6d720 created
|
couchbasecollectiongroups/collectiongroup-a16d18d2-c6c6-49c1-bae6-8471a0fce392 created
|
couchbasecollectiongroups/collectiongroup-82b1a65e-33f7-48d0-8bb9-e8581338eba1 created
|
couchbasecollectiongroups/collectiongroup-fbb5f7ae-d1a1-49d9-b7c1-2615ad2c7771 created
|
couchbasecollectiongroups/collectiongroup-e725feb0-39e7-461a-b1d7-0c9fc625dabe created
|
couchbasecollectiongroups/collectiongroup-4d3c5a39-aa4c-485d-a096-cd6a907b45df created
|
couchbasecollectiongroups/collectiongroup-035621ce-2db6-4ebe-9153-edb5199cf41c created
|
couchbasecluster/cb-example updated
|
Note that only the collections under inventory scope are marked as create and everything else is marked as retained - but once the user says yes, the output message printed says everything is created
Understand that this is because the tool is creating the objects for the operator to manage the buckets, scopes and collections moving forward but the user might think everything is recreated - at the end, it will be good to differentiate what is retained and created there too