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

    XAPI sr-create ignores name-description parameter

    Scheduled Pinned Locked Moved Compute
    3 Posts 3 Posters 19 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.
    • M Online
      mdm
      last edited by

      Hello,

      I’m not entirely sure whether this is a bug or expected behavior, so I’d like to ask for clarification here.

      When creating an SR using xe sr-create with the name-description parameter, the command succeeds but the value is not persisted.

      After creation, xe sr-list shows an empty name-description field. However, the value can be set correctly afterwards using xe sr-param-set.

      Steps to reproduce:

      xe sr-create name-label="NFS-SR-01" name-description="NFS storage repository for VM disks" type=nfs content-type=user shared=true device-config:server=192.168.1.50 device-config:serverpath=/export/xe-storage other-config:auto-scan=true
      b3c2a7d1-6f2e-4a91-9d3f-1a2c9d8e7f10
      
      
      xe sr-list uuid=b3c2a7d1-6f2e-4a91-9d3f-1a2c9d8e7f10 
      uuid ( RO)                : b3c2a7d1-6f2e-4a91-9d3f-1a2c9d8e7f10  
                name-label ( RW): NFS-SR-01  
          name-description ( RW):  
                      host ( RO): <shared>  
                      type ( RO): nfs  
              content-type ( RO): user
      

      Result:
      name-description is empty.

      Workaround:

      xe sr-param-set uuid=<SR_UUID> name-description="test description"
      

      Expected behavior:
      The name-description value should be saved during sr-create.

      Actual behavior:
      The parameter is ignored without error.

      Environment:
      XCP-ng 8.3

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

        Hi,

        Thanks for the report, let me ping @Team-XAPI-Network

        psafontP 1 Reply Last reply Reply Quote 0
        • psafontP Online
          psafont Vates 🪐 XAPI & Network Team @olivierlambert
          last edited by

          @olivierlambert said:

          Hi,

          Thanks for the report, let me ping @Team-XAPI-Network

          This is a problem with the CLI, the parameter is not read and instead an empty string is used. The same situation happens with sr-introduce.

          It should be a very quick fix, I don't know why it was done since the beginning.

          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