Project storage
- Version
- since 2.x, describes 2.52.14
- Feature flag
project_storage- For
- Workspace user, Platform operator
Project storage gives every project persistent space on the deployment's Ceph cluster in two shapes: one shared filesystem (a "share") that compute nodes and instances mount, so everyone in the project works against the same files, and block volumes that attach to a single virtual machine as extra disks. Users create, grow, attach and delete them from the project's Storage tab within the storage quota of the project and the workspace; operators register the cluster, watch its health and capacity, and see every volume across workspaces.
What it does
- Creates one shared filesystem per project as a CephFS subvolume sized to the requested number of GB. The share is named after the project id. Compute nodes mount the whole group of shares once, at deployment; an instance mounts a single share with the command shown in the Mount information panel.
- Creates block volumes as RBD images, named by the user within the project, and attaches each one to one virtual machine at a time on Proxmox VE or OpenStack. Bare metal instances cannot attach block volumes; they use the shared filesystem.
- Resizes grow only. A smaller size is refused (
storage_shrink_not_allowed); the same size is accepted and changes nothing. - Deletes a share only after the user retypes its name, and refuses to delete a block volume while it is attached.
- Counts every share and block volume against the
storage_gbquota dimension of the project, the workspace, the account and the capacity pool, and additionally refuses a create or grow that the cluster has no free bytes for. - Shows operators the registered cluster endpoint with its probed health, the cluster's total and used capacity per pool, and a cross-workspace list of all volumes with their status.
- Hides every workspace route and the console's capacity and volume sections behind the
project_storagefeature flag. Endpoint registration and health checks stay reachable with the flag off, so an operator can finish bring-up before anything becomes visible to users.
Where it is
| Surface | Path |
|---|---|
| Web app | A project, then the Storage tab: Storage quota, Shared filesystem (with the Mount information panel) and Block volumes cards |
| Operator console | Platform, then Storage: Endpoints, Cluster capacity, Project volumes |
| API (workspace) | GET /api/v1/workspaces/{workspace_id}/projects/{project_id}/storage; POST, PATCH, DELETE .../storage/share; GET .../storage/share/mount-info; POST .../storage/volumes; PATCH, DELETE .../storage/volumes/{id}; POST .../storage/volumes/{id}/attach; POST .../storage/volumes/{id}/detach |
| API (operators) | GET, POST /admin/storage/endpoints; PATCH, DELETE /admin/storage/endpoints/{id}; POST /admin/storage/endpoints/{id}/health; GET /admin/storage/capacity; GET /admin/storage/volumes |
| CLI | cerebro storage ls --project <id>, cerebro storage quota --project <id> (read-only; see CLI) |
Reading the Storage tab requires the ViewProjects permission; creating, resizing, attaching, detaching and deleting require ManageProjects. The operator console pages require the admin_feature_flags staff permission.
How to use it
Create and mount the shared filesystem (workspace user)
- Open the project and its Storage tab. The Storage quota card shows the GB used by the project and by the workspace against their limits; "no limit set" means that level is unconstrained.
- In Shared filesystem, enter a size in GB and press Create shared filesystem. The form proposes 100 GB and accepts any whole number from 1 GB upwards. The share is created within the request and appears as
AVAILABLE; if the cluster refused it, it stays visible asERRORwith the message in the status tooltip and can be deleted. - Open Mount information. It shows the mount Source, the Filesystem type (
ceph), the mount Options and a copy-and-paste command that creates a mount point under/mnt/named after the share and mounts it. Run it on the instance that should see the share. - The command carries the client name but never the cluster key: your operators distribute the key file to the machines that mount shares, and they also mount the whole group of shares on the scheduler's compute nodes, where a job reaches the project's share at
/projects/<project id>by the deployment convention. If the panel shows a literal<mon-host>placeholder instead of addresses, the deployment has not configured the monitor list yet; ask your operators.
Create, attach and detach a block volume (workspace user)
- In Block volumes, press Create volume, give it a name (up to 255 characters, unique within the project) and a size in GB. The form proposes 50 GB and accepts any whole number from 1 GB upwards.
- Press Attach on an
AVAILABLEvolume and choose an instance. Only virtual machines on Proxmox VE or OpenStack are listed; bare metal instances are not attachable. The request is accepted with202and continues in the background: the row showsATTACHING, thenATTACHEDwith the instance name in Attached to once the platform confirms. Format and mount the new disk inside the guest yourself. - To detach, unmount the disk inside the guest first, then press Detach. The data on the volume survives a detach; only the attachment is removed.
- Resize is available on an
AVAILABLEvolume and only to a larger size. Grow the filesystem inside the guest afterwards. - Delete is refused while the volume is attached or in transition. The dialog warns that the data cannot be recovered.
Resize or delete the shared filesystem (workspace user)
- Resize opens a dialog whose minimum is the current size plus 1 GB.
- Delete asks you to type the share's name, which is the project id, before the Delete share button is enabled. The share and everything on it are removed; a mismatch is refused (
confirm_name_mismatch).
Register the storage cluster (operator)
- In the operator console open Platform, then Storage, and press Register endpoint. Enter a name, the cluster manager's API URL and the Auth secret reference: the name under which the dashboard credential is configured on the API hosts, never the credential itself. The credential is read when the API process starts and must be in
username:passwordform. - Press Activate. Exactly one endpoint is active per deployment; activating one deactivates the previous one in the same step. There is no "deactivate" action: to retire the active endpoint, activate its replacement first. An active endpoint cannot be deleted (
storage_endpoint_active). - Press Probe health. The status must read Healthy; Unreachable means the API could not be reached with the configured credential, and the flag should not be switched on in that state. The probe response also carries the cluster's own health summary.
- Make sure the workspaces have quota frames: a storage create or grow in a workspace without a frame fails with
quota_frame_missing. The frame machinery, the default template and thestorage_gbdimension are described on Quotas and capacity. - Switch
project_storageon under Platform, then Feature flags. The Cluster capacity and Project volumes sections appear in the console and the Storage tab appears on every project. The bring-up order for the cluster itself (filesystem, subvolume group, RBD pool, client identity, compute-node mounts, hypervisor storage configuration) is on Deployment and integration. - Use Project volumes to see every volume in every workspace, filtered by workspace id, project id or kind. Rows left in
errorby a failed delete stay in this list; it is the reconciliation tool for them, there is no background retry.
On-demand and on-prem
- On-demand (web): switched on. We run the storage cluster; you see the Storage tab on the project page.
- Licensed on-prem: your operators run the Ceph cluster, register it in the operator console, mount the shares on the compute nodes, configure the hypervisors' access to the block pool and distribute the client key. The capability is switched on with the
project_storageflag after the endpoint is registered, activated and probed healthy; see Deployment and integration for the order and Configuration for the flag.
Numbers
Sizes and lifecycle
| What | Value | Where it is set |
|---|---|---|
| Smallest share or volume | 1 GB, whole numbers only (invalid_size_gb otherwise) | platform |
| Size proposed by the create forms | 100 GB for a share, 50 GB for a block volume; steps of 10 GB in the web form | web app |
| Resize | grow only; the dialog's minimum is the current size plus 1 GB; the same size is a no-op | platform |
| Shares per project | 1 (share_exists on a second) | platform |
| Attachments per block volume | 1 (volume_attached on a second) | platform |
| Block volume name | 1 to 255 characters, unique within the project; the backend image name is derived by lowercasing it and collapsing anything but letters and digits to hyphens, so two names that reduce to the same image name collide (volume_name_taken) | platform |
| Create, resize, delete | complete within the request | platform |
| Attach, detach | accepted with 202, completed in the background | platform |
| Cluster capacity check | a create or grow is refused with storage_endpoint_capacity when the requested GB (times 1024³ bytes) exceed the cluster's free bytes | platform |
| Quota accounting | a create counts its whole size, a grow counts the delta; usage sums every volume row in any status, so a volume in error or deleting occupies quota until its row is gone | platform |
Refresh and background jobs
| What | Value |
|---|---|
| Storage tab refresh | every 30 s; every 10 s while any volume is creating, resizing, deleting, attaching or detaching; paused while the browser tab is hidden |
| Unconfirmed attach or detach | after 3 refreshes without server confirmation the tab drops its optimistic state and shows a warning |
| Endpoint health probe | every 5 minutes, also while the flag is off; Probe health runs it at once |
| Stale-state sweep | every 5 minutes: a volume creating, resizing or deleting for more than 15 minutes is set to error with the message interrupted: <status> exceeded 15m, after which it can be deleted or the resize retried |
| Proxmox VE attach | the disk is added on the lowest free SCSI slot (never slot 0); a write that collides with a concurrent configuration change is retried up to 3 times, then the attach fails cleanly and can be re-issued |
Attach semantics per platform
| Platform | Attach | Detach |
|---|---|---|
| Proxmox VE (virtual machines) | A disk referencing the existing RBD image is added to the VM's configuration on a free SCSI slot. The write is guarded by the hypervisor's configuration digest, so two attaches to the same VM land on distinct slots. | The disk entry is removed after verifying it still holds this volume; the image is kept. |
| OpenStack (virtual machines) | The block storage volume is resolved by name, the name being the backend image name, and attached through the compute volume-attachment API. The image must first have been adopted into the deployment's block storage service by an operator, a manual step after each volume create in 2.48.6; an unadopted image fails the attach cleanly (cinder_volume_not_found). | Through the same API; the image survives. |
| Foreman (bare metal) | Not attachable (unsupported_platform). Bare metal uses the shared filesystem; the mount key is distributed by the operators at post-install. | n/a |
Volume statuses
| Status | Meaning |
|---|---|
creating | row created and quota counted, backend create in flight |
available | the backend object exists; resize, attach and delete are possible |
attached | a block volume attached to an instance, confirmed by the platform |
resizing | grow in flight |
deleting | backend delete in flight |
error | the last operation failed; the message is in the status tooltip; the volume can always be deleted |
Reason codes
| Code | HTTP | Meaning |
|---|---|---|
feature_disabled | 404 | the project_storage flag is off |
storage_endpoint_unavailable | 404 or 400 | no endpoint is active, or its credential cannot be read |
storage_endpoint_capacity | 409 | the cluster lacks free bytes for the request |
storage_endpoint_active | 409 | an operator tried to delete the active endpoint |
share_exists | 409 | the project already has a share |
volume_name_taken | 409 | a block volume with that name exists in the project |
volume_busy | 409 | the volume is mid-operation, or not available for an attach |
volume_attached | 409 | delete or second attach of an attached volume |
volume_not_found | 404 | unknown volume, or a volume of another project |
instance_not_found | 404 | the instance is not in this workspace or is terminated |
unsupported_platform | 400 | attach to a bare metal instance |
storage_shrink_not_allowed | 400 | the new size is smaller than the current one |
confirm_name_mismatch | 400 | the typed name does not match the share's name |
invalid_size_gb, invalid_volume_name | 400 | non-positive size, empty name |
quota_exceeded_storage_project, ..._workspace, ..._account, ..._pool_capacity | 400 | the storage quota at that level is reached |
quota_frame_missing | 400 | the workspace has no quota frame |
Limits and known behaviour
- No snapshots and no backups. The platform takes none; a deleted share or volume cannot be recovered.
- No multi-attach: a block volume is attached to one instance at a time, and a share is mounted rather than attached.
- Bare metal instances cannot attach block volumes in 2.48.6; they use the shared filesystem.
- One client identity per deployment for the shares: tenant isolation is enforced by the platform (a workspace can only request the mount information of its own projects' shares), not by per-project keys. Shares carry a single platform user id and rely on the scheduler's job isolation. Per-project keys and user ids are documented follow-ups.
- The platform renders the mount information; it does not mount a share on an instance for you and does not manage the compute-node mounts at runtime. If a share is visible in the tab but missing on a compute node, the node's group mount is down.
- On OpenStack, every block volume must be adopted into the block storage service by an operator before its first attach.
- Shares and block volumes are only created explicitly; nothing is created on first use.
- Deleting a workspace deletes its shares and block volumes on the cluster, best-effort and regardless of the flag. A volume whose backend delete failed is kept in
errorand stays in the operator console's Project volumes list for manual clean-up. - Switching
project_storageoff makes every workspace route and the console's capacity and volumes sections answer404 feature_disabled. Nothing is deleted, unmounted or detached: compute-node mounts and attached disks keep working, and the health probe and the stale-state sweep keep running. Switching it back on resumes where it left off. - The credential of the storage endpoint is read when the API process starts; after a rotation the process must be restarted (see Operations).
- The Cluster capacity card reads the cluster when the page opens and when Refresh is pressed; it does not refresh on its own.
- Volumes in
errorordeletingstill count against the quota until their row is gone. - When the model catalogue is switched on, the Storage tab also lists the models mounted on or copied to the project; copied models live in a
models/directory on the project share and count against the storage quota. See Model catalogue. - Planned: per-project client keys and user ids; a storage back end other than Ceph behind the same connector interface; automated adoption of block volumes on OpenStack; object storage buckets per project. None of these exist in 2.48.6.
Related pages
- Capabilities by delivery model
- Quotas and capacity: the
storage_gbdimension, frames and the default template - Jobs and scheduling: the compute nodes that mount the shares
- Model catalogue: models placed on the project share
- Deployment and integration: cluster bring-up order
- Operations: credential rotation, troubleshooting
- CLI:
cerebro storage