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

    xe sr-create ignores other-config:auto-scan=true during SR creation

    Scheduled Pinned Locked Moved Compute
    2 Posts 2 Posters 21 Views 2 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 Offline
      mdm
      last edited by

      I previously opened a forum topic about xe sr-create ignoring the name-description parameter, but the last comment/question there never received a response. This issue is specifically about another parameter that also appears to be ignored during SR creation: other-config:auto-scan=true.

      Forum thread:
      https://xcp-ng.org/forum/topic/12213/xapi-sr-create-ignores-name-description-parameter

      When creating an SR with:

      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  
                            ...
               other-config (MRW):
                            ...
      

      the SR is created successfully, but the other-config:auto-scan=true value is not present afterwards.

      Expected behavior:

      • other-config:auto-scan=true should be persisted during sr-create
      • or the command should explicitly reject unsupported parameters instead of silently ignoring them

      Actual behavior:

      • parameter appears to be silently ignored during creation

      Environment
      XCP-ng 8.3

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

        Ping @Team-XAPI-Network

        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