Skip to content

get_storage_cluster() returns None after post_boot_config #487

@kthare10

Description

@kthare10

Description

After slice.submit() with storage=True, calling node.get_storage_cluster() returns None even though CephFS was successfully configured on the node.

Root Cause

In post_boot_config(), the "Saving fablib data" step (self.submit()) runs before the CephFS configuration section. When _set_storage_cluster() is called to record the discovered cluster name, it only updates the in-memory fablib_data. This value is never persisted back to the orchestrator.

When the user subsequently calls fablib.get_slice(name=...), a fresh slice object is fetched from the server, and storage_cluster is missing from fablib_data.

Steps to Reproduce

slice1 = fablib.new_slice(name="test", storage=True)
node1 = slice1.add_node(name="node1", site="MAX", cores=4, ram=8, disk=50)
slice1.submit()

# Re-fetch the slice (as notebooks typically do in the next cell)
slice1 = fablib.get_slice(name="test")
node1 = slice1.get_node("node1")
print(node1.get_storage_cluster())  # Returns None

Fix

PR #486 — adds a second submit() + update() after CephFS setup completes to persist the storage metadata.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions