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 514 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 Offline
        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

          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