Why changing objects in resource set wipe limits ???
-
Update : same thing when adding or changing "tags" field.
-
Hi,
That would be helpful to know on which XO version you are running first.
-
@olivierlambert Hi,
I use xo from sources. Update two weeks ago.
From CHANGELOG :
- @vates/types 1.10.0
- @xen-orchestra/web-core 0.27.0
- @xen-orchestra/rest-api 0.14.0
- @xen-orchestra/web 0.25.0
- xo-server 5.185.0
Thank you
-
First, you need to update to the latest commit on Master, it's important to be sure in case something changed since then. Cf https://docs.xen-orchestra.com/community#report-a-bug
-
Indeed, I have 39 commits behind...
I can't do it now, as I have several users working on it.
I'll do this before next week, I come back if it's changing something.
-
Keep us posted when you are on master, then we'll try to reproduce the issue when we can.
-
Hi,
Update was made now to last master branch (and big tanks to REST API doc integration by the way).
Working on a testing resource set.
Before :
xo-cli resourceSet.get id="h-PSp-FzCb0" { id: 'h-PSp-FzCb0', ipPools: [], limits: { cpus: { total: 6, usage: 2 }, disk: { total: 80530636800, usage: 34359738368 }, disks: { usage: 2 }, memory: { total: 12884901888, usage: 3221225472 }, vms: { usage: 2 } }, name: 'resource-test', objects: [ '71359f87-2297-a2d9-1236-77ebfcbe71eb', '74f92165-9f40-a6b0-26e2-6377409d3911', '92751eb2-0007-fa22-9001-1b08db171145', 'dd467579-027a-21a7-5c81-1a396312befb' ], shareByDefault: false, subjects: [ '6ddaf1a0-c440-4539-8634-c00a078aef78' ], tags: [ 'test' ] }
Then, applying new object array :
xo-cli resourceSet.set id="h-PSp-FzCb0" objects=json:'["71359f87-2297-a2d9-1236-77ebfcbe71eb","74f92165-9f40-a6b0-26e2-6377409d3911","92751eb2-0007-fa22-9001-1b08db171145","dd467579-027a-21a7-5c81-1a396312befb","89ef16d0-9fc6-3bb0-8161-37dc69e64b3b","94f4a9be-5614-9a2b-a389-d0b2c8228b60"]'
After :
xo-cli resourceSet.get id="h-PSp-FzCb0" { id: 'h-PSp-FzCb0', ipPools: [], limits: { cpus: { usage: 2 }, disk: { usage: 34359738368 }, disks: { usage: 2 }, memory: { usage: 3221225472 }, vms: { usage: 2 } }, name: 'resource-test', objects: [ '71359f87-2297-a2d9-1236-77ebfcbe71eb', '74f92165-9f40-a6b0-26e2-6377409d3911', '92751eb2-0007-fa22-9001-1b08db171145', 'dd467579-027a-21a7-5c81-1a396312befb', '89ef16d0-9fc6-3bb0-8161-37dc69e64b3b', '94f4a9be-5614-9a2b-a389-d0b2c8228b60' ], shareByDefault: false, subjects: [ '6ddaf1a0-c440-4539-8634-c00a078aef78' ], tags: [ 'test' ] }
Same result if I add/change "tags" field.
-
@lsouai-vates we should try to reproduce and if we can, to fix it ASAP. Thanks!
-
@olivierlambert I am asking XO Team about this issue.
-
@Kptainflintt Hey! XO team dev is doing a fix on it: https://github.com/vatesfr/xen-orchestra/pull/8979
FYI @pdonias