Skip to content

Attach volume operation fails on Xenserver when volume name comprises of special characters or emojis #10756

@Pearl1594

Description

@Pearl1594

problem

A test - test_02_create_volume in the test_resource_names.py suite has been consistently failing, as seen in:
#10668 (comment)

It fails with the following exception:

Checking a96cc3b1-1964-3407-ac99-1abfeeb00153 or SR cd769ece-0ee5-2184-1696-d344e0fd77a8 on XS[4b4b736d-9399-480f-9473-bc96a29c45f0-10.0.33.57]
2025-04-21 08:02:16,581 DEBUG [c.c.h.x.r.XenServerConnectionPool] (DirectAgent-13:[ctx-1ba5ac76]) (logid:68f5539d) XmlRpcException for method: VDI.create due to org.apache.xmlrpc.client.XmlRpcHttpTransportException: HTTP server returned unexpected status: Internal Error
2025-04-21 08:02:16,581 DEBUG [c.c.h.x.r.Xenserver625StorageProcessor] (DirectAgent-13:[ctx-1ba5ac76]) (logid:68f5539d) create volume failed: org.apache.xmlrpc.client.XmlRpcHttpTransportException: HTTP server returned unexpected status: Internal Error
2025-04-21 08:02:16,582 DEBUG [c.c.a.m.D.Task] (DirectAgent-13:[ctx-1ba5ac76]) (logid:68f5539d) Seq 2-2967590679460446232: Response Received: 
2025-04-21 08:02:16,583 DEBUG [c.c.a.t.Request] (DirectAgent-13:[ctx-1ba5ac76]) (logid:68f5539d) Seq 1-2967590679460446232: Processing:  { Ans: , MgmtId: 32988804940123, via: 1(ref-trl-8376-x-mol8-pearl-dsilva-xs1), Ver: v1, Flags: 10, [{"org.apache.cloudstack.storage.command.CreateObjectAnswer":{"result":"false","details":"org.apache.xmlrpc.client.XmlRpcHttpTransportException: HTTP server returned unexpected status: Internal Error","wait":"0","bypassHostMaintenance":"false"}}] }

versions

The versions of ACS, hypervisors, storage, network etc..

The steps to reproduce the bug

  1. Deploy a VM
  2. Create a volume with a name comprising of say emojis
  3. Attach volume to the VM

What to do about it?

Expectation:
Successfully creates the VDI and attaches it to the VM

Actual Behaviour:
Fails to create VDI with the above exception

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions