Zum Hauptinhalt springen

ReviewTenantOwnership

Lists this instance's tenant databases without an ownership marker, with the marker of another OctoMesh instance, or registered by another instance on the same MongoDB server and, with --stamp, stamps the unambiguous ones. Lists only by default.

Examples​

List the tenant databases whose ownership is not unambiguous:

octo-cli -c ReviewTenantOwnership

Stamp the unambiguous unmarked databases, list the rest:

octo-cli -c ReviewTenantOwnership -s

Options​

ShortLongRequiredDescription
-s--stampnoWrite this instance's ownership marker on the unambiguous databases (no marker, registered only here). Without it the command only lists.

Notes​

Several OctoMesh instances can share one MongoDB server (test-2 main and dev instance, local octo-devstack slots). The ownership marker in each tenant database names the instance that owns it; databases from before the marker have none.

--stamp never touches a database with another instance's marker or a database another instance registers; they stay listed. A second --stamp stamps nothing new.

A double registration (RegisteredByOtherInstance) is resolved by detaching the tenant (DetachTenant) in the instance that must not have it — never by deleting it: delete drops the shared database.

Only answered on the system tenant (user tokens need AdminPanelManagement), otherwise HTTP 403. Needs an asset-repo service that has the route; an older service answers 404.