-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
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 NoneFix
PR #486 — adds a second submit() + update() after CephFS setup completes to persist the storage metadata.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels