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

    error when modifying backup metadata

    Scheduled Pinned Locked Moved Xen Orchestra
    3 Posts 3 Posters 172 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.
    • GheppyG Offline
      Gheppy
      last edited by

      XOCE commit d7da83359f007236784f2644213b288e24759823

      I can't modify a Pool metadata backup, I get the error below.
      I can create it without problems, but I can no longer modify it.

      schedule.set
      {
        "id": "b7bbc539-36a2-469b-9dd7-ee521a5a7dc0",
        "cron": "0 1 1,15 * *",
        "enabled": true,
        "name": "",
        "timezone": "Europe/Bucharest"
      }
      {
        "code": 10,
        "data": {
          "errors": [
            {
              "instancePath": "/name",
              "schemaPath": "#/properties/name/minLength",
              "keyword": "minLength",
              "params": {
                "limit": 1
              },
              "message": "must NOT have fewer than 1 characters"
            }
          ]
        },
        "message": "invalid parameters",
        "name": "XoError",
        "stack": "XoError: invalid parameters
          at Module.invalidParameters (/opt/xen-orchestra/packages/xo-common/api-errors.js:26:11)
          at Xo.call (file:///opt/xen-orchestra/packages/xo-server/src/xo-mixins/api.mjs:65:20)
          at Api.#callApiMethod (file:///opt/xen-orchestra/packages/xo-server/src/xo-mixins/api.mjs:397:19)"
      }
      
      julien-fJ 1 Reply Last reply Reply Quote 0
      • olivierlambertO Online
        olivierlambert Vates 🪐 Co-Founder CEO
        last edited by

        Hi,

        Thanks for the report, I think we know what's the problem. Pinging julien-f

        1 Reply Last reply Reply Quote 0
        • julien-fJ Offline
          julien-f Vates 🪐 Co-Founder XO Team @Gheppy
          last edited by

          Gheppy It should be fixed, thanks for your report!

          https://github.com/vatesfr/xen-orchestra/commit/b5578eadf7356098ac2fa4af63b75b18d34ba558

          0 julien-f committed to vatesfr/xen-orchestra
          fix(xo-server/sr.{create,set}): name can be empty
          
          Fixes https://xcp-ng.org/forum/post/59937
          
          Introduced by 65168c853
          1 Reply Last reply Reply Quote 1
          • First post
            Last post