PUBAPI-1161 started exposing IMG.type, VM.brand and VM.docker (in cloudapi version 8.0.0). One of the main issues for users is that telling KVM ubuntu from LX ubuntu is confusing (see also smartos-live#532).
Here is my proposal for exposing these in triton images
and triton instances
. Any complaints? love? I'll try to ship equiv changes in triton
,
imgadm
, and {sdc,updates,joyent}-imgadm
today.
Images: New "type" column in default output. To keep near 80-columns, I've
dropped "state". triton images
(similar to imgadm list
) already has the 'X'
flag to indicate an image that isn't state=active.
$ triton images
SHORTID NAME VERSION FLAGS OS TYPE PUBDATE
1bd84670 minimal-64-lts 14.4.2 P smartos zone-dataset 2015-05-28
b67492c2 base-64-lts 14.4.2 P smartos zone-dataset 2015-05-28
ffe82a0a ubuntu-15.04 20151105 P linux lx-dataset 2015-11-05
8a1dbc62 centos-6 20160111 P linux zvol 2016-01-11
"state" is still there in "-l,--long" output, and of course with '-j' or '-o ...,state,...'.
$ triton images -l
ID NAME VERSION STATE FLAGS OS TYPE PUBDATE
1bd84670-055a-11e5-aaa2-0346bb21d5a1 minimal-64-lts 14.4.2 active P smartos zone-dataset 2015-05-28
b67492c2-055c-11e5-85d8-8b039ac981ec base-64-lts 14.4.2 active P smartos zone-dataset 2015-05-28
ffe82a0a-83d2-11e5-b5ac-f3e14f42f12d ubuntu-15.04 20151105 active P linux lx-dataset 2015-11-05
8a1dbc62-b885-11e5-b0de-1777d1a6eb10 centos-6 20160111 active P linux zvol 2016-01-11
Instances: new "flags" column in tabular output**: D == docker instance F == firewall enabled K == the instance brand is "kvm" This at the cost of "primaryIp" being in the default tabular output.
$ triton insts
SHORTID NAME IMG STATE FLAGS AGE
da7c6edd cocky_noyce 3d996aaa running DF 10m
deedeb42 ubu0 ubuntu-15.04@20151105 running - 9m
aa9ccfda mini2 minimal-64-lts@14.4.2 running - 9m
e8fc0b96 centi0 centos-6@20160111 running K 8m
"primaryIp" is still there in -l,--long output, et al. As is "brand".
$ triton insts -l
ID NAME IMG BRAND PACKAGE STATE FLAGS PRIMARYIP CREATED
da7c6edd-eadf-4250-8a21-a8832206a712 cocky_noyce 3d996aaa lx sample-1G running DF 2016-01-13T17:53:35.570Z
deedeb42-2eec-450f-9182-1ce37fc444b5 ubu0 ubuntu-15.04@20151105 lx sample-256M running - 10.88.88.11 2016-01-13T17:54:08.630Z
aa9ccfda-4ac9-4b3e-8231-dfa025ea7157 mini2 minimal-64-lts@14.4.2 joyent sample-128M running - 10.88.88.13 2016-01-13T17:54:56.753Z
e8fc0b96-0e46-4b75-8a84-ef728c899083 centi0 centos-6@20160111 kvm sample-512M running K 10.88.88.12 2016-01-13T17:55:32.997Z
Also, filtering on docker=true
works:
$ triton insts docker=true
SHORTID NAME IMG STATE FLAGS AGE
da7c6edd cocky_noyce 3d996aaa running DF 13m