Skip to content

adminui allows packages to be created with Invalid value(s) for: max_swap #226

@gbmeuk

Description

@gbmeuk

Creating a package through the web interface allows the creation of a package with 128M for swap but when trying to use this package, other APIs error. For example, sdc-docker:

{"name":"vmadm","req_id":"f8823110-db2a-11e6-9e66-1d5c88f263d5","hostname":"headnode","pid":29654,"stack":"vmadm.create","level":30,"evt":{"args":{"result":-1},"ph":"e","name":"create"},"msg":"","time":"2017-01-15T14:00:45.404Z","v":0} Invalid value(s) for: max_swap at parseResponse (/opt/smartdc/docker/node_modules/sdc-clients/node_modules/restify/lib/clients/json_client.js:67:23) at IncomingMessage.done (/opt/smartdc/docker/node_modules/sdc-clients/node_modules/restify/lib/clients/string_client.js:151:17) at IncomingMessage.g (events.js:180:16) at IncomingMessage.emit (events.js:117:20) at _stream_readable.js:944:16 at process._tickDomainCallback (node.js:502:13)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions