XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Why changing objects in resource set wipe limits ???

    Scheduled Pinned Locked Moved Solved REST API
    15 Posts 3 Posters 2.4k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K Offline
      Kptainflintt
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • olivierlambertO Offline
        olivierlambert Vates 🪐 Co-Founder CEO
        last edited by

        Keep us posted when you are on master, then we'll try to reproduce the issue when we can.

        K 1 Reply Last reply Reply Quote 0
        • K Offline
          Kptainflintt @olivierlambert
          last edited by

          @olivierlambert

          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-vatesL 1 Reply Last reply Reply Quote 0
          • olivierlambertO Offline
            olivierlambert Vates 🪐 Co-Founder CEO
            last edited by

            @lsouai-vates we should try to reproduce and if we can, to fix it ASAP. Thanks!

            lsouai-vatesL 1 Reply Last reply Reply Quote 1
            • lsouai-vatesL Offline
              lsouai-vates Vates 🪐 Product team @olivierlambert
              last edited by

              @olivierlambert I am asking XO Team about this issue.

              1 Reply Last reply Reply Quote 1
              • lsouai-vatesL Offline
                lsouai-vates Vates 🪐 Product team @Kptainflintt
                last edited by lsouai-vates

                @Kptainflintt Hey! XO team dev is doing a fix on it: https://github.com/vatesfr/xen-orchestra/pull/8979

                FYI @pdonias

                pdonias opened this pull request in vatesfr/xen-orchestra

                closed fix(xo-server/resource-sets): only edit limits if `limits` is passed #8979

                K 1 Reply Last reply Reply Quote 1
                • K Offline
                  Kptainflintt @lsouai-vates
                  last edited by

                  @lsouai-vates

                  Nice ! Thank you!

                  1 Reply Last reply Reply Quote 0
                  • olivierlambertO Offline
                    olivierlambert Vates 🪐 Co-Founder CEO
                    last edited by

                    More than working on it, the patch is merged on master, so you can already use it now 🙂

                    K 1 Reply Last reply Reply Quote 1
                    • olivierlambertO olivierlambert marked this topic as a question on
                    • olivierlambertO olivierlambert has marked this topic as solved on
                    • K Offline
                      Kptainflintt @olivierlambert
                      last edited by

                      @olivierlambert

                      Yes, I saw it !

                      Just finish update, testing tomorrow !

                      Thank to all the team 😉

                      lsouai-vatesL 1 Reply Last reply Reply Quote 0
                      • lsouai-vatesL Offline
                        lsouai-vates Vates 🪐 Product team @Kptainflintt
                        last edited by

                        @Kptainflintt you are welcome 😉 We are always delighted when we can quickly unblock a user!
                        Have a good day and don't hesitate to come back if you have other issues in the future.

                        1 Reply Last reply Reply Quote 0

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better 💗

                        Register Login
                        • First post
                          Last post