Comment 2 for bug 1807340

Revision history for this message
Maria Luisa Arches (arches) wrote :

Hi,

Thanks.

Additional info, it seems that when interface was attached runtime, target dev is not present in libvirt. In this case, detach was successful.

First interface is from vm creation. Second one, was attached run-time.
    <interface type='vhostuser'>
      <source type='unix' path='/var/run/openvswitch/vhu5b00f2b1-02' mode='server'/>
      <target dev='vhu5b00f2b1-02'/>
      <model type='virtio'/>
      <alias name='net0'/>
    </interface>
    <interface type='vhostuser'>
      <source type='unix' path='/var/run/openvswitch/vhu70a4f277-36' mode='server'/>
      <model type='virtio'/>
      <alias name='net1'/>
    </interface>

Possible solution that I can think of:
1. Skip checking of target dev for vhostuser
2. Update vhostuser to check if target dev is empty, if not, assign a target dev. I need to investigate this still how this can be done.

I'm thinking robust solution is #2, but still need to figure out how to do this.