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

    Bulk "Disconnect from all hosts" action does not work for selected Storage Repositories

    Scheduled Pinned Locked Moved Unsolved Management
    3 Posts 2 Posters 58 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
      mdm
      last edited by

      When trying to disconnect one or multiple SRs from all hosts using the bulk action in Xen Orchestra 5 (XO5), the operation does not seem to execute.

      The issue occurs when selecting one or more Storage Repositories from the Storage list, choosing "Disconnect from all hosts", and confirming the action by clicking OK.

      After confirmation, nothing happens. The selected Storage Repositories remain connected to the hosts.

      However, if I open each Storage Repository individually and perform the Disconnect action from its own page, the operation works as expected.

      Steps to reproduce

      1. Open Xen Orchestra 5.
      2. Navigate to the Storage Repositories list.
      3. Select one or multiple Storage Repositories.
      4. Choose "Disconnect from all hosts" from the available actions.
      5. Click OK to confirm the operation.
      6. Observe that nothing happens and the Storage Repositories remain connected.

      Expected behavior

      The selected Storage Repositories should be disconnected from all hosts after confirming the bulk action.

      Actual behavior

      Nothing happens after clicking OK. The Storage Repositories remain connected to the hosts.

      The only workaround is to open each Storage Repository individually and disconnect it from there.

      Could you please confirm whether this is a known issue or a bug in the current XO5 interface?

      poddingueP 1 Reply Last reply
      Reply Quote 0
      • poddingueP
        poddingue Vates 🪐 @mdm
        last edited by

        I had a look at the XO5 code. If I'm reading it right, the bulk action hands the list of SRs to Promise.all together with the function that should disconnect each one, but Promise.all only takes the list, so the disconnect calls never go out.
        The single-SR action calls the API directly, which would explain why doing it from each SR's page works.
        The bulk "Reconnect to all hosts" looks like it's written the same way, if you feel like checking it.
        Until it's fixed, one SR at a time is the only workaround I know of.
        Might be worth a mention to @Team-XO-Frontend, they'll know better than me if there's more to it.

        1 Reply Last reply
        Reply Quote 0
        • poddingueP poddingue marked this topic as a question
        • M
          mdm
          last edited by

          @poddingue Thanks for looking into this! I checked the bulk "Reconnect to all hosts" action as well, and you're right — it doesn't work either. It only works if I select a single SR, open its page, and use the "Reconnect to all hosts" action from there.

          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