Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

CIRCLE / cloud

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 94
  • Merge Requests 10
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Closed
Open
Issue #489 opened Apr 08, 2017 by Czémán Arnold@cemiarni 
  • Report abuse
  • New issue
Report abuse New issue

Cannot detach network interface in a special case

When VM hasn't got boot media, don't able to detach network interface.

On first destroy doesn't produce any errors.

On second attach libvirt duplicates the network interface confing.

On second destroy gives following error: Unhandled exception: Exception: operation failed: multiple devices matching mac address 02:00:00:0b:30:02 found

cloud@devenv:~ $ sudo virsh domiflist cloud-179
Interface  Type       Source     Model       MAC
-------------------------------------------------------
cloud-179-2 bridge     cloud      virtio      02:00:00:0b:30:02
cloud-179-2 bridge     cloud      virtio      02:00:00:0b:30:02
cloud@devenv:~ $ sudo virsh dumpxml cloud-179
<domain type='qemu' id='9'>
  <name>cloud-179</name>
  <uuid>e9da7eac-2bd0-45a4-bc25-ee6e1200ca84</uuid>
  <memory unit='KiB'>131072</memory>
  <currentMemory unit='KiB'>131072</currentMemory>
  <vcpu placement='static'>2</vcpu>
  <cputune>
    <shares>30</shares>
  </cputune>
  <resource>
    <partition>/machine</partition>
  </resource>
  <os>
    <type arch='i686' machine='pc-i440fx-trusty'>hvm</type>
    <boot dev='hd'/>
    <bootmenu enable='no'/>
  </os>
  <features>
    <acpi/>
  </features>
  <cpu>
    <topology sockets='1' cores='2' threads='1'/>
  </cpu>
  <clock offset='utc'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
    <emulator>/usr/bin/kvm</emulator>
    <controller type='usb' index='0'>
      <alias name='usb0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
    </controller>
    <controller type='pci' index='0' model='pci-root'>
      <alias name='pci.0'/>
    </controller>
    <controller type='virtio-serial' index='0'>
      <alias name='virtio-serial0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </controller>
    <interface type='bridge'>
      <mac address='02:00:00:0b:30:02'/>
      <source bridge='cloud'/>
      <vlan>
        <tag id='2'/>
      </vlan>
      <virtualport type='openvswitch'>
        <parameters interfaceid='3d6ac8fb-6cf3-4d6f-ae1e-8f21a921faca'/>
      </virtualport>
      <target dev='cloud-179-2'/>
      <model type='virtio'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
    </interface>
    <interface type='bridge'>
      <mac address='02:00:00:0b:30:02'/>
      <source bridge='cloud'/>
      <vlan>
        <tag id='2'/>
      </vlan>
      <virtualport type='openvswitch'>
        <parameters interfaceid='743b16f9-766d-4209-9232-1fa8660bdf78'/>
      </virtualport>
      <target dev='cloud-179-2'/>
      <model type='virtio'/>
      <alias name='net1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
    </interface>
    <serial type='unix'>
      <source mode='bind' path='/var/lib/libvirt/serial/cloud-179'/>
      <target port='0'/>
      <alias name='serial0'/>
    </serial>
    <console type='unix'>
      <source mode='bind' path='/var/lib/libvirt/serial/cloud-179'/>
      <target type='serial' port='0'/>
      <alias name='serial0'/>
    </console>
    <channel type='unix'>
      <source mode='bind' path='/var/lib/libvirt/serial/vio-cloud-179'/>
      <target type='virtio' name='agent'/>
      <alias name='channel0'/>
      <address type='virtio-serial' controller='0' bus='0' port='1'/>
    </channel>
    <input type='tablet' bus='usb'>
      <alias name='input0'/>
    </input>
    <input type='mouse' bus='ps2'/>
    <input type='keyboard' bus='ps2'/>
    <graphics type='vnc' port='20002' autoport='no' listen='0.0.0.0'>
      <listen type='address' address='0.0.0.0'/>
    </graphics>
    <video>
      <model type='cirrus' vram='9216' heads='1'/>
      <alias name='video0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </video>
    <memballoon model='virtio'>
      <alias name='balloon0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </memballoon>
  </devices>
  <seclabel type='dynamic' model='apparmor' relabel='yes'>
    <label>libvirt-e9da7eac-2bd0-45a4-bc25-ee6e1200ca84</label>
    <imagelabel>libvirt-e9da7eac-2bd0-45a4-bc25-ee6e1200ca84</imagelabel>
  </seclabel>
</domain>
  • Write
  • Preview
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
No due date
1
Labels
defect
Assign labels
  • View labels
1
1 participant
Reference: circle/cloud#489