ZAPI-715: Reject long aliases early rather than during provision

Resolution

Fixed: A fix for this issue is checked into the tree and tested.
(Resolution Date: 2015-12-21T07:52:19.000Z)

Description

Currently a VM alias >189 chars will cause a provisioning failure (189 chars in base64 is 252 chars, plus null terminator, and it has to fit in a 256-byte buffer to validate in zonecfg)

We should enforce this limit earlier on and give users a friendly error message.

Comments

Comment by Bot Bot [X]
Created at 2015-12-18T23:34:41.000Z

sdc-vmapi commit 316d1aa (branch master, by Alex Wilson)

ZAPI-715 Reject long aliases early rather than during provision
    ZAPI-716 Reject invalid dns_domain or hostname values early
    Reviewed by: Trent Mick <trent.mick@joyent.com>
    Reviewed by: Joshua M. Clulow <jmc@joyent.com>