Closed Danp2 closed 5 years ago
VM to be created
Message stating Invalid parameters
Invalid parameters
From the XO Logs --
vm.create { "clone": true, "existingDisks": { "0": { "name_label": "Debian Stretch 9.0_odego", "name_description": "Created by XO", "size": 10737418240, "$SR": "fed313ad-68ac-8ce8-0ced-25f861c3c17f" } }, "name_label": "Debian Stretch 9.0", "template": "25f40ef0-48f2-5019-6d3b-28690d12f551", "VDIs": [], "VIFs": [ { "network": "a379a6e7-f099-f838-6514-486de4d56e80", "allowedIpv4Addresses": [], "allowedIpv6Addresses": [] } ], "CPUs": 2, "cpuWeight": null, "cpuCap": null, "name_description": "", "memoryMax": 1073741824, "bootAfterCreate": true, "share": false, "tags": [] } { "code": 10, "data": { "errors": [ { "code": null, "reason": "strict", "message": "should not contains properties [\"CPUs\", \"cpuWeight\", \"cpuCap\", \"memoryMax\", \"tags\"]", "property": "@" } ] }, "message": "invalid parameters", "name": "XoError", "stack": "XoError: invalid parameters at Object.factory [as invalidParameters] (/opt/xen-orchestra/packages/xo-common/src/api-errors.js:21:31) at Xo.checkParams (/opt/xen-orchestra/packages/xo-server/src/xo-mixins/api.js:71:17) at /opt/xen-orchestra/packages/xo-server/src/xo-mixins/api.js:277:18 at Generator.next (<anonymous>) at asyncGeneratorStep (/opt/xen-orchestra/packages/xo-server/dist/xo-mixins/api.js:38:103) at _next (/opt/xen-orchestra/packages/xo-server/dist/xo-mixins/api.js:40:194) at tryCatcher (/opt/xen-orchestra/node_modules/bluebird/js/release/util.js:16:23) at Promise._settlePromiseFromHandler (/opt/xen-orchestra/node_modules/bluebird/js/release/promise.js:517:31) at Promise._settlePromise (/opt/xen-orchestra/node_modules/bluebird/js/release/promise.js:574:18) at Promise._settlePromiseCtx (/opt/xen-orchestra/node_modules/bluebird/js/release/promise.js:611:10) at _drainQueueStep (/opt/xen-orchestra/node_modules/bluebird/js/release/async.js:142:12) at _drainQueue (/opt/xen-orchestra/node_modules/bluebird/js/release/async.js:131:9) at Async._drainQueues (/opt/xen-orchestra/node_modules/bluebird/js/release/async.js:147:5) at Immediate.Async.drainQueues (/opt/xen-orchestra/node_modules/bluebird/js/release/async.js:17:14) at runCallback (timers.js:810:20) at tryOnImmediate (timers.js:768:5) at processImmediate [as _immediateCallback] (timers.js:745:5)" }
Thanks for your report, this is a known issue, I though I had pushed fix for it :/
I'll do it soon :slightly_smiling_face:
Context
Expected behavior
VM to be created
Current behavior
Message stating
Invalid parameters
From the XO Logs --