Skip to content

refactor(observability): add MicrocephCephFSCheck as pre-check for emedded observability - #991

Open
himax16 wants to merge 1 commit into
canonical:mainfrom
himax16:fix/lp2171635-maas-cephfs-obs
Open

himax16 wants to merge 1 commit into
canonical:mainfrom
himax16:fix/lp2171635-maas-cephfs-obs

Conversation

@himax16

@himax16 himax16 commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

A MAAS deployment does not provision the MicroCeph filesystem (CephFS) automatically, causing the ceph fs ls command returns no filesystem. The embedded observability needs this filesystem for its database storage causing the Prometheus application stays blocked.

Partial-Bug: #2171635
Assisted-By: omp (deepseek-v4-pro-0813)

Links

Jira card: OPEN-4891

@Raven-182 Raven-182 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We already set COS workload-storage to csi-rawfile-default. Could you clarify why we are requiring CephFS and how the storage error was traced back to missing CephFS?

@himax16

himax16 commented Oct 21, 2026

Copy link
Copy Markdown
Member Author

We already set COS workload-storage to csi-rawfile-default. Could you clarify why we are requiring CephFS and how the storage error was traced back to missing CephFS?

Right now the Prometheus/Loki charm declares explicit storage requirement, meaning it will use CephFS. This was done because we want resizable storage, especially for embedded observability.

Alternatively, we can have this toggleable.

Comment thread sunbeam-python/sunbeam/core/checks.py Resolved
Comment thread sunbeam-python/sunbeam/core/checks.py Resolved
…bedded observability

A MAAS deployment does not provision the MicroCeph filesystem (CephFS) automatically, causing the `ceph fs ls` command returns no filesystem. The embedded observability needs this filesystem for its database storage causing the Prometheus application stays blocked.

Partial-Bug: #2171635
Assisted-By: omp (deepseek-v4-pro-0813)
Signed-off-by: Himawan Winarto <himawan.winarto@canonical.com>
@himax16
himax16 force-pushed the fix/lp2171635-maas-cephfs-obs branch from 2f3150d to 2397263 Compare October 22, 2026 18:01
@Raven-182

Copy link
Copy Markdown

Thanks @himax16 , I may be totally missing it but could you point me to where the larger storage request causes CephFS to be selected?

@himax16

himax16 commented Oct 22, 2026

Copy link
Copy Markdown
Member Author

Thanks @himax16 , I may be totally missing it but could you point me to where the larger storage request causes CephFS to be selected?

So the actual mechanism is:

40G request for Prometheus -> no K8S node with capacity because PV was never created -> Juju never assign provider-id or can't finalize (storage.go:478-495 is the ValidateFilesystemParams missing-provider-id branch and the finalize error is the adjacent CreateFilesystems -> getPersistentVolume path) -> Terraform assertStorageReady sees Pool=""/Size=0 on that label only -> Retries -> Apply timeout silently.

Thinking again about it, it seems a bit rudimentary to just check if CephFS is provisioned, as there is a path where the local storage will be enough and the Prometheus database will be provisioned successfully. I would say the better check will be Rawfile capacity check, but this means calling df per-noode free disk.

Looking for comments from the others, cc: @ahmad-can, @hemanthnakkina, @gboutry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants