TRITON-1762: disks.*.snapshot_size not implemented

Details

Issue Type:Bug
Priority:4 - Normal
Status:Open
Created at:2019-06-18T20:05:24.996Z
Updated at:2019-06-18T21:47:03.226Z

People

Created by:Former user
Reported by:Former user

Related Issues

Description

RFD 154 says that disks.*.snapshot_size should report the size in MiB of snapshots of the disks.  After I created a snapshot of an instance this still does not appear.

$ triton instance snapshots 38328b88-3baf-e241-b31c-86767f31a696
NAME              STATE    CREATED
20190618T195252Z  created  2019-06-18T19:52:56.000Z
$ triton instance get 38328b88 | json disks
[
  {
    "size": 10240,
    "boot": true,
    "image": "4feac886-cc24-4e52-902b-fc939f1f0fcb",
    "id": "11c1a5a7-1544-624c-fe60-961de9a3aa8b"
  },
  {
    "size": 1024,
    "id": "04d28a0a-9baa-68f9-9322-be81df4ba42f"
  }
]

However, on the CN I see:

# zfs list -o usedbysnapshots,name -t volume -r zones/38328b88-3baf-e241-b31c-86767f31a696
USEDSNAP  NAME
   4.46M  zones/38328b88-3baf-e241-b31c-86767f31a696/disk0
     27K  zones/38328b88-3baf-e241-b31c-86767f31a696/disk1

Comments