Longhorn Node Disk Space Not Updating on UI After Expansion
This document (000021868) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Enterprise Storage - Longhorn
Situation
After expanding the disk space on a Kubernetes node, Longhorn fails to recognize and update the new disk capacity. The node.longhorn.io
object for the affected node does not reflect the expanded size, even though the disk expansion was successful at the operating system level.
Upon reviewing the longhorn-manager
pod logs, the following recurring error is observed:
2025-05-24T10:27:50.565235147+02:00 time="2025-05-24T08:27:50Z" level=error msg="Dropping Longhorn node out of the queue" func=controller.handleReconcileErrorLogging file="utils.go:79" LonghornNode=longhorn-system/node01 controller=longhorn-node error="failed to sync node for longhorn-system/node01: no node name provided to check node down or deleted" node=node01
This error indicates that the node.spec.name
field is missing from the respective node.longhorn.io
object, preventing the Longhorn node controller from properly syncing the node's status, including disk information.
Resolution
To resolve this issue, you must manually add the node.spec.name
field to the affected node.longhorn.io
object.
- Identify the Longhorn Node Object(s): First, list all
node.longhorn.io
objects in thelonghorn-system
namespace to identify the affected node(s).
Example Output:kubectl get node.longhorn.io -n longhorn-system
NAME READY ALLOWSCHEDULING SCHEDULABLE AGE node01 True true True 46m node02 True true True 46m node03 True true True 46m
- Backup the Affected Node Object (Optional but Recommended): Before making any changes, it's good practice to take a YAML backup of the specific
node.longhorn.io
object you intend to modify. Replace <NAME> with the actual name of your Longhorn node (e.g.,node01
).kubectl get node.longhorn.io <NAME> -n longhorn-system -o yaml > <NAME>_longhorn_node_backup.yaml
- Edit the Longhorn Node Object: Edit the
node.longhorn.io
resource for the problematic node. Replace <NAME> with the actual name of your Longhorn node.kubectl edit node.longhorn.io <NAME> -n longhorn-system
-
Add
node.spec.na
me
: Locate thespec
section within the YAML. Add or modify thename
field underspec
to match themetadata.name
of the object.Example:
Change highlighted by
# This is the change made
apiVersion: longhorn.io/v1beta2 kind: Node metadata: finalizers: - longhorn.io generation: 1 name: node01 namespace: longhorn-system resourceVersion: "12713" uid: 3c11b55d-e0633-47a2f-a525-a2f98e96df66 spec: allowScheduling: true disks: default-disk-697367c0672dc2af: allowScheduling: true diskDriver: "" diskType: filesystem evictionRequested: false path: /var/lib/longhorn/ storageReserved: 150265232486 tags: [] evictionRequested: false instanceManagerCPURequest: 0 name: node01 # This is the change made tags: []
-
Save and Verify: Save the changes to the
node.longhorn.io
object. Once thenode.spec.name
field is correctly added, the Longhorn manager should automatically begin syncing the node. You should observe that the disk status on thenode.longhorn.io
object is updated to reflect the expanded disk space.
Cause
The Longhorn node-controller
includes a disk monitor that periodically queries the node's disk statistics and updates the node.status.diskStatus
field of the node.longhorn.io
object. However, if the node.spec.name
field is absent from the node.longhorn.io
definition, the controller cannot correctly identify and process the node, leading to sync failures and the inability to reflect updated disk sizes.
Status
Additional Information
Ideally, the node.spec.name
field should not be allowed to be missing or removed from node.longhorn.io
objects. An enhancement request is open with Longhorn (refer to longhorn/longhorn#6793) to implement stricter validation of resource spec
and status
fields within the validating webhook, which would prevent such issues in the future.
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:000021868
- Creation Date: 10-Jun-2025
- Modified Date:13-Jun-2025
-
- SUSE Enterprise Storage
- SUSE Rancher
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com