LXC info snapshots not sorted by date


(Trystan) #1

LXD 3.13 with scheduled snapshots/default snapshots.pattern

Sorting by oldest to newest probably makes the most sense instead of alphabetically since you get a relatively jumbled output, or giving it a default snapshots.pattern that forces the behavior with alphanumeric timestamped names like snap201905172015

lxc info shows what I’m experiencing :

Snapshots:
  snap0 (taken at 2019/05/16 10:11 UTC) (stateless)
  snap1 (taken at 2019/05/16 10:15 UTC) (expires at 2019/05/18 10:15 UTC) (stateless)
  snap10 (taken at 2019/05/16 19:15 UTC) (expires at 2019/05/18 19:15 UTC) (stateless)
  snap11 (taken at 2019/05/16 20:15 UTC) (expires at 2019/05/18 20:15 UTC) (stateless)
  snap12 (taken at 2019/05/16 21:15 UTC) (expires at 2019/05/18 21:15 UTC) (stateless)
  snap13 (taken at 2019/05/16 22:15 UTC) (expires at 2019/05/18 22:15 UTC) (stateless)
  snap14 (taken at 2019/05/16 23:15 UTC) (expires at 2019/05/18 23:15 UTC) (stateless)
  snap15 (taken at 2019/05/17 00:15 UTC) (expires at 2019/05/19 00:15 UTC) (stateless)
  snap16 (taken at 2019/05/17 01:15 UTC) (expires at 2019/05/19 01:15 UTC) (stateless)
  snap17 (taken at 2019/05/17 02:15 UTC) (expires at 2019/05/19 02:15 UTC) (stateless)
  snap18 (taken at 2019/05/17 03:15 UTC) (expires at 2019/05/19 03:15 UTC) (stateless)
  snap19 (taken at 2019/05/17 04:15 UTC) (expires at 2019/05/19 04:15 UTC) (stateless)
  snap2 (taken at 2019/05/16 11:15 UTC) (expires at 2019/05/18 11:15 UTC) (stateless)
  snap20 (taken at 2019/05/17 05:15 UTC) (expires at 2019/05/19 05:15 UTC) (stateless)
  snap21 (taken at 2019/05/17 06:15 UTC) (expires at 2019/05/19 06:15 UTC) (stateless)
  snap22 (taken at 2019/05/17 07:15 UTC) (expires at 2019/05/19 07:15 UTC) (stateless)
  snap23 (taken at 2019/05/17 08:15 UTC) (expires at 2019/05/19 08:15 UTC) (stateless)
  snap24 (taken at 2019/05/17 09:15 UTC) (expires at 2019/05/19 09:15 UTC) (stateless)
  snap25 (taken at 2019/05/17 10:15 UTC) (expires at 2019/05/19 10:15 UTC) (stateless)
  snap26 (taken at 2019/05/17 11:15 UTC) (expires at 2019/05/19 11:15 UTC) (stateless)
  snap27 (taken at 2019/05/17 12:15 UTC) (expires at 2019/05/19 12:15 UTC) (stateless)
  snap28 (taken at 2019/05/17 13:15 UTC) (expires at 2019/05/19 13:15 UTC) (stateless)
  snap29 (taken at 2019/05/17 14:15 UTC) (expires at 2019/05/19 14:15 UTC) (stateless)
  snap3 (taken at 2019/05/16 12:15 UTC) (expires at 2019/05/18 12:15 UTC) (stateless)
  snap30 (taken at 2019/05/17 15:15 UTC) (expires at 2019/05/19 15:15 UTC) (stateless)
  snap4 (taken at 2019/05/16 13:15 UTC) (expires at 2019/05/18 13:15 UTC) (stateless)
  snap5 (taken at 2019/05/16 14:15 UTC) (expires at 2019/05/18 14:15 UTC) (stateless)
  snap6 (taken at 2019/05/16 15:15 UTC) (expires at 2019/05/18 15:15 UTC) (stateless)
  snap7 (taken at 2019/05/16 16:15 UTC) (expires at 2019/05/18 16:15 UTC) (stateless)
  snap8 (taken at 2019/05/16 17:15 UTC) (expires at 2019/05/18 17:15 UTC) (stateless)
  snap9 (taken at 2019/05/16 18:15 UTC) (expires at 2019/05/18 18:15 UTC) (stateless)

(Stéphane Graber) #2

Can you file a bug at https://github.com/lxc/lxd/issues?
This should be a pretty easy one to fix :slight_smile: