Skip to content

SIZE and CREATIONTIME fields are empty in etcdsnapshotfile #12684

@manuelbuil

Description

@manuelbuil

Environmental Info:
K3s Version: 1.33.3

Node(s) CPU architecture, OS, and Version:

Any

Cluster Configuration:

Any

Describe the bug:

If we list the etcdsnapshotfile, the SIZE and CREATIONTIME columns are empty

$> kubectl get etcdsnapshotfile local-on-demand-ip-10-11-0-14-1753969041-9e8c6d
NAME                                              SNAPSHOTNAME                         NODE            LOCATION                                                                             SIZE   CREATIONTIME
local-on-demand-ip-10-11-0-14-1753969041-9e8c6d   on-demand-ip-10-11-0-14-1753969041   ip-10-11-0-14   file:///var/lib/rancher/k3s/server/db/snapshots/on-demand-ip-10-11-0-14-1753969041      

But if we look into the etcdsnapshotfile object, we can see the size and creationtime in the status:

status:
  creationTime: "2025-07-31T13:37:21Z"
  readyToUse: true
  size: "4866080"

Steps To Reproduce:

  • Installed K3s: v1.33.3

create a snapshot:

k3s etcd-snapshot save

then list it"

k3s etcd-snapshot list

If the snapshot is already there, list the etcdsnapshotfile:

kubectl get etcdsnapshotfile

You can see SIZE and CREATIONTIME with empty values

Expected behavior:

The SIZE and CREATIONTIME columns provide a value

Actual behavior:

The SIZE and CREATIONTIME columns don't provide a value

Additional context / logs:

Metadata

Metadata

Type

Projects

Status

Done Issue

Relationships

None yet

Development

No branches or pull requests

Issue actions