<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>hi:</div><div>when I use openstack devstack to test QOS, wired phenomenon appeared, </div><div>I set qos ingress rule in tapB, but when I reboot tapA, the ingress rule of tapB automatically removed, but the egress rule is still exist.</div><div>Test enviroment:</div><div>Linux: ubuntu 14.04.1 LTS</div><div>kernel: 3.13.0-32-generic</div><div>libvirt: 1.2.2</div><div>openstack: havana</div><div><br></div><div>1. use nova to create vm A and vm B. for the configuration of the libvirt xml, see the last paragraph in the end.</div><div>2. use tc cmd to create qos rule for <span style="line-height: 23.7999992370605px;">vm A and vm B</span></div><div><span style="line-height: 23.7999992370605px;">   tc qdisc add dev </span>tap3d0d2c4a-0b ingress  //vmA</div><div>   <span style="line-height: 23.7999992370605px;">tc qdisc add dev </span>tap896d5066-69<span style="line-height: 23.7999992370605px;"> ingress //vmB</span></div><div><span style="line-height: 23.7999992370605px;"><br></span></div><div><span style="line-height: 23.7999992370605px;">3. then use cmd </span></div><div><span style="line-height: 23.7999992370605px;">  "sudo virsh destory </span><span style="line-height: 23.7999992370605px;">142a08db-6e25-4a03-be13-7073104b0745</span><span style="line-height: 23.7999992370605px;"> "  to first shutdown vm1</span></div><div><span style="line-height: 23.7999992370605px;">  then I see ingress rule of vmB disappeared :(     </span></div><div><span style="line-height: 23.7999992370605px;"><br></span></div><div><span style="line-height: 23.7999992370605px;"><br></span></div><div>configurations:</div><div>  vmA:-------------------------------------------</div><div><br></div><div>  <domain type='qemu' id='15'></div><div>  <name>instance-00000001</name></div><div>  <uuid>142a08db-6e25-4a03-be13-7073104b0745</uuid></div><div>  <memory unit='KiB'>524288</memory></div><div>  <currentMemory unit='KiB'>524288</currentMemory></div><div>  <vcpu placement='static'>1</vcpu></div><div>  <resource></div><div>    <partition>/machine</partition></div><div>  </resource></div><div>  <sysinfo type='smbios'></div><div>    <system></div><div>      <entry name='manufacturer'>OpenStack Foundation</entry></div><div>      <entry name='product'>OpenStack Nova</entry></div><div>      <entry name='version'>2013.2.3</entry></div><div>      <entry name='serial'>5fd079ed-5bc3-45ed-8de5-8bf9b8533d82</entry></div><div>      <entry name='uuid'>142a08db-6e25-4a03-be13-7073104b0745</entry></div><div>    </system></div><div>  </sysinfo></div><div>  <os></div><div>    <type arch='x86_64' machine='pc-i440fx-trusty'>hvm</type></div><div>    <boot dev='hd'/></div><div>    <smbios mode='sysinfo'/></div><div>  </os></div><div>  <features></div><div>    <acpi/></div><div>    <apic/></div><div>  </features></div><div>  <clock offset='utc'/></div><div>  <on_poweroff>destroy</on_poweroff></div><div>  <on_reboot>restart</on_reboot></div><div>  <on_crash>destroy</on_crash></div><div>  <devices></div><div>    <emulator>/usr/bin/qemu-system-x86_64</emulator></div><div>    <disk type='file' device='disk'></div><div>      <driver name='qemu' type='qcow2' cache='none'/></div><div>      <source file='/opt/stack/data/nova/instances/142a08db-6e25-4a03-be13-7073104b0745/disk'/></div><div>      <target dev='vda' bus='virtio'/></div><div>      <alias name='virtio-disk0'/></div><div>      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/></div><div>    </disk></div><div>    <controller type='usb' index='0'></div><div>      <alias name='usb0'/></div><div>      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/></div><div>    </controller></div><div>    <controller type='pci' index='0' model='pci-root'></div><div>      <alias name='pci.0'/></div><div>    </controller></div><div>    <interface type='bridge'></div><div>      <mac address='fa:16:3e:22:68:6a'/></div><div>      <source bridge='br-int'/></div><div>      <virtualport type='openvswitch'></div><div>        <parameters interfaceid='3d0d2c4a-0b72-4f91-b393-413e0c5a335b'/></div><div>      </virtualport></div><div>      <target dev='tap3d0d2c4a-0b'/></div><div>      <model type='virtio'/></div><div>      <driver name='qemu'/></div><div>      <alias name='net0'/></div><div>      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/></div><div>    </interface></div><div>    <serial type='file'></div><div>      <source path='/opt/stack/data/nova/instances/142a08db-6e25-4a03-be13-7073104b0745/console.log'/></div><div>      <target port='0'/></div><div>      <alias name='serial0'/></div><div>    </serial></div><div>    <serial type='pty'></div><div>      <source path='/dev/pts/31'/></div><div>      <target port='1'/></div><div>      <alias name='serial1'/></div><div>    </serial></div><div>    <console type='file'></div><div>      <source path='/opt/stack/data/nova/instances/142a08db-6e25-4a03-be13-7073104b0745/console.log'/></div><div>      <target type='serial' port='0'/></div><div>      <alias name='serial0'/></div><div>    </console></div><div>    <input type='tablet' bus='usb'></div><div>      <alias name='input0'/></div><div>    </input></div><div>    <input type='mouse' bus='ps2'/></div><div>    <input type='keyboard' bus='ps2'/></div><div>    <graphics type='vnc' port='5900' autoport='yes' listen='127.0.0.1' keymap='en-us'></div><div>      <listen type='address' address='127.0.0.1'/></div><div>    </graphics></div><div>    <video></div><div>      <model type='cirrus' vram='9216' heads='1'/></div><div>      <alias name='video0'/></div><div>      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/></div><div>    </video></div><div>    <memballoon model='virtio'></div><div>      <alias name='balloon0'/></div><div>      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/></div><div>    </memballoon></div><div>  </devices></div><div>  <seclabel type='dynamic' model='apparmor' relabel='yes'></div><div>    <label>libvirt-142a08db-6e25-4a03-be13-7073104b0745</label></div><div>    <imagelabel>libvirt-142a08db-6e25-4a03-be13-7073104b0745</imagelabel></div><div>  </seclabel></div><div></domain></div><div><br></div><div><span style="line-height: 23.7999992370605px;"> vmB:-------------------------------------------</span></div><div><div><domain type='qemu' id='13'></div><div>  <name>instance-00000002</name></div><div>  <uuid>fbd69f7b-83f1-45fe-818b-2021d5cb2e61</uuid></div><div>  <memory unit='KiB'>524288</memory></div><div>  <currentMemory unit='KiB'>524288</currentMemory></div><div>  <vcpu placement='static'>1</vcpu></div><div>  <resource></div><div>    <partition>/machine</partition></div><div>  </resource></div><div>  <sysinfo type='smbios'></div><div>    <system></div><div>      <entry name='manufacturer'>OpenStack Foundation</entry></div><div>      <entry name='product'>OpenStack Nova</entry></div><div>      <entry name='version'>2013.2.3</entry></div><div>      <entry name='serial'>5fd079ed-5bc3-45ed-8de5-8bf9b8533d82</entry></div><div>      <entry name='uuid'>fbd69f7b-83f1-45fe-818b-2021d5cb2e61</entry></div><div>    </system></div><div>  </sysinfo></div><div>  <os></div><div>    <type arch='x86_64' machine='pc-i440fx-trusty'>hvm</type></div><div>    <boot dev='hd'/></div><div>    <smbios mode='sysinfo'/></div><div>  </os></div><div>  <features></div><div>    <acpi/></div><div>    <apic/></div><div>  </features></div><div>  <clock offset='utc'/></div><div>  <on_poweroff>destroy</on_poweroff></div><div>  <on_reboot>restart</on_reboot></div><div>  <on_crash>destroy</on_crash></div><div>  <devices></div><div>    <emulator>/usr/bin/qemu-system-x86_64</emulator></div><div>    <disk type='file' device='disk'></div><div>      <driver name='qemu' type='qcow2' cache='none'/></div><div>      <source file='/opt/stack/data/nova/instances/fbd69f7b-83f1-45fe-818b-2021d5cb2e61/disk'/></div><div>      <target dev='vda' bus='virtio'/></div><div>      <alias name='virtio-disk0'/></div><div>      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/></div><div>    </disk></div><div>    <controller type='usb' index='0'></div><div>      <alias name='usb0'/></div><div>      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/></div><div>    </controller></div><div>    <controller type='pci' index='0' model='pci-root'></div><div>      <alias name='pci.0'/></div><div>    </controller></div><div>    <interface type='bridge'></div><div>      <mac address='fa:16:3e:c0:43:88'/></div><div>      <source bridge='br-int'/></div><div>      <virtualport type='openvswitch'></div><div>        <parameters interfaceid='896d5066-694d-4f15-9abe-f587439f279b'/></div><div>      </virtualport></div><div>      <target dev='tap896d5066-69'/></div><div>      <model type='virtio'/></div><div>      <driver name='qemu'/></div><div>      <alias name='net0'/></div><div>      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/></div><div>    </interface></div><div>    <serial type='file'></div><div>      <source path='/opt/stack/data/nova/instances/fbd69f7b-83f1-45fe-818b-2021d5cb2e61/console.log'/></div><div>      <target port='0'/></div><div>      <alias name='serial0'/></div><div>    </serial></div><div>    <serial type='pty'></div><div>      <source path='/dev/pts/32'/></div><div>      <target port='1'/></div><div>      <alias name='serial1'/></div><div>    </serial></div><div>    <console type='file'></div><div>      <source path='/opt/stack/data/nova/instances/fbd69f7b-83f1-45fe-818b-2021d5cb2e61/console.log'/></div><div>      <target type='serial' port='0'/></div><div>      <alias name='serial0'/></div><div>    </console></div><div>    <input type='tablet' bus='usb'></div><div>      <alias name='input0'/></div><div>    </input></div><div>    <input type='mouse' bus='ps2'/></div><div>    <input type='keyboard' bus='ps2'/></div><div>    <graphics type='vnc' port='5901' autoport='yes' listen='127.0.0.1' keymap='en-us'></div><div>      <listen type='address' address='127.0.0.1'/></div><div>    </graphics></div><div>    <video></div><div>      <model type='cirrus' vram='9216' heads='1'/></div><div>      <alias name='video0'/></div><div>      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/></div><div>    </video></div><div>    <memballoon model='virtio'></div><div>      <alias name='balloon0'/></div><div>      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/></div><div>    </memballoon></div><div>  </devices></div><div>  <seclabel type='dynamic' model='apparmor' relabel='yes'></div><div>    <label>libvirt-fbd69f7b-83f1-45fe-818b-2021d5cb2e61</label></div><div>    <imagelabel>libvirt-fbd69f7b-83f1-45fe-818b-2021d5cb2e61</imagelabel></div><div>  </seclabel></div><div></domain></div></div><div><br></div></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>