TritonDataCenter / sdc-adminui

Operator portal for Triton DataCenter
Mozilla Public License 2.0
15 stars 27 forks source link

No way to enter JSON types != strings via browser #233

Closed curiositycasualty closed 1 year ago

curiositycasualty commented 6 years ago

Although adminui offers an Edit Metadata GUI interface, values entered there are always interpreted as json strings. This renders the adminui useless for such tasks as enabling custom image creation (as with the triton packer builder) since entering "true" into the Edit Metadata interface results in the string literal: "true" rather than the JSON type of true.

The only workaround is if you have shell access to the SmartOS headnode and can enter the following directly:

echo '{"metadata": {"IMGAPI_ALLOW_LOCAL_CREATE_IMAGE_FROM_VM": true}}' \ | sapiadm update $(sdc-sapi /services?name=imgapi | json -H 0.uuid)

per https://docs.joyent.com/private-cloud/install/image-management

bahamat commented 6 years ago

This is at /services/:uuid, but probably also applies to instance metadata as well.

curiositycasualty commented 1 year ago

Closing own stale issues.