Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

sorry for my late response, i used --nic network-id, but not used --nic port-id. i can see all vm with at least one port, i have reproduced this error for quantum server log after i cleaned all nova-compute.log on compute hosts and quantum logs on api host, this time, there are four instances that have two fixed ips, each instance has two ports which hae the same device ids, and in the libvirt xml, there are two tap interfaces for these intances. if i log into this vm and execute "ifconfig -a", it will output two nics(one is up with fixed ip, the other is down), i will take one instance as an example. below is detail information.

output of nova list:

| 16599b42-190e-473f-8586-d40746484ce7 | slave | ACTIVE | demo-int-net=172.16.100.21 | | 18298dc0-3042-42ee-80c6-08483a582712 | slave | ACTIVE | demo-int-net=172.16.100.117, 172.16.100.123 | | 19bbe682-45df-4ebf-972e-617cfab76c82 | slave | ACTIVE | demo-int-net=172.16.100.17

port list of this instance:

+--------------------------------------+------+-------------------+---------------------------------------------------------------------------------------+ | id | name | mac_address | fixed_ips | +--------------------------------------+------+-------------------+---------------------------------------------------------------------------------------+ | 222d558f-bb03-4295-919b-9081150ada0c | | fa:16:3e:1d:d1:60 | {"subnet_id": "3a8f62c8-a5ce-4da3-b5a2-1ca612496fc1", "ip_address": "172.16.100.117"} | | c0002dbb-50bf-48dc-8755-ba6b8a011452 | | fa:16:3e:a1:95:46 | {"subnet_id": "3a8f62c8-a5ce-4da3-b5a2-1ca612496fc1", "ip_address": "172.16.100.123"} | +--------------------------------------+------+-------------------+---------------------------------------------------------------------------------------+

status of each port

+----------------------+---------------------------------------------------------------------------------------+ | Field | Value | +----------------------+---------------------------------------------------------------------------------------+ | admin_state_up | True | | binding:capabilities | {"port_filter": true} | | binding:vif_type | ovs | | device_id | 18298dc0-3042-42ee-80c6-08483a582712 | | device_owner | compute:None | | fixed_ips | {"subnet_id": "3a8f62c8-a5ce-4da3-b5a2-1ca612496fc1", "ip_address": "172.16.100.117"} | | id | 222d558f-bb03-4295-919b-9081150ada0c | | mac_address | fa:16:3e:1d:d1:60 | | name | | | network_id | 4a798345-561f-4c9e-a5c4-aac87f1daf26 | | security_groups | 49a820ec-cf06-4316-bf4b-c1f20902848f | | status | ACTIVE | | tenant_id | ebacbc9c99f84607920b2ac749608623 | +----------------------+---------------------------------------------------------------------------------------+

+----------------------+---------------------------------------------------------------------------------------+ | Field | Value | +----------------------+---------------------------------------------------------------------------------------+ | admin_state_up | True | | binding:capabilities | {"port_filter": true} | | binding:vif_type | ovs | | device_id | 18298dc0-3042-42ee-80c6-08483a582712 | | device_owner | compute:None | | fixed_ips | {"subnet_id": "3a8f62c8-a5ce-4da3-b5a2-1ca612496fc1", "ip_address": "172.16.100.123"} | | id | c0002dbb-50bf-48dc-8755-ba6b8a011452 | | mac_address | fa:16:3e:a1:95:46 | | name | | | network_id | 4a798345-561f-4c9e-a5c4-aac87f1daf26 | | security_groups | 49a820ec-cf06-4316-bf4b-c1f20902848f | | status | ACTIVE | | tenant_id | ebacbc9c99f84607920b2ac749608623 | +----------------------+---------------------------------------------------------------------------------------+

libvirt xml( two tap interfaces)

<domain type="kvm"> <name>instance-0000008f</name> <uuid>18298dc0-3042-42ee-80c6-08483a582712</uuid> <memory unit="KiB">4194304</memory> <currentmemory unit="KiB">4194304</currentmemory> <vcpu placement="static">2</vcpu> <sysinfo type="smbios"> <system> <entry name="manufacturer">OpenStack Foundation</entry> <entry name="product">OpenStack Nova</entry> <entry name="version">2013.1</entry> <entry name="serial">db7cce3d-4e73-11e0-bf2c-001e67059c8c</entry> <entry name="uuid">18298dc0-3042-42ee-80c6-08483a582712</entry> </system> </sysinfo> <os> <type arch="x86_64" machine="pc-1.2">hvm</type> <boot dev="hd"/> <smbios mode="sysinfo"/> </os> <features> <acpi/> <apic/> </features> <cpu mode="host-model"> <model fallback="allow"/> </cpu> <clock offset="utc"> <timer name="pit" tickpolicy="delay"/> <timer name="rtc" tickpolicy="catchup"/> </clock> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>destroy</on_crash> <devices> <emulator>/usr/bin/kvm</emulator> <disk type="file" device="disk"> <driver name="qemu" type="qcow2" cache="none"/> <source file="/var/lib/nova/instances/18298dc0-3042-42ee-80c6-08483a582712/disk"/> <target dev="vda" bus="virtio"/>

</disk> <controller type="usb" index="0">
</controller> <interface type="bridge"> <mac address="fa:16:3e:1d:d1:60"/> <source bridge="br-int"/> <virtualport type="openvswitch"> <parameters interfaceid="222d558f-bb03-4295-919b-9081150ada0c"/> </virtualport> <target dev="tap222d558f-bb"/> <model type="virtio"/>
</interface> <interface type="bridge"> <mac address="fa:16:3e:a1:95:46"/> <source bridge="br-int"/> <virtualport type="openvswitch"> <parameters interfaceid="c0002dbb-50bf-48dc-8755-ba6b8a011452"/> </virtualport> <target dev="tapc0002dbb-50"/> <model type="virtio"/>
</interface> <serial type="file"> <source path="/var/lib/nova/instances/18298dc0-3042-42ee-80c6-08483a582712/console.log"/> <target port="0"/> </serial> <serial type="pty"> <target port="1"/> </serial> <console type="file"> <source path="/var/lib/nova/instances/18298dc0-3042-42ee-80c6-08483a582712/console.log"/> <target type="serial" port="0"/> </console> <input type="tablet" bus="usb"/> <input type="mouse" bus="ps2"/> <graphics type="vnc" port="-1" autoport="yes" listen="0.0.0.0" keymap="en-us"> <listen type="address" address="0.0.0.0"/> </graphics> <video> <model type="cirrus" vram="9216" heads="1"/>
</video> <memballoon model="virtio">
</memballoon> </devices> </domain>

run "ovs-vsctl list-ports br-int" on compute host where this instance boot, found these two taps on ports list.

nova-compute.log on this compute host : http://paste.openstack.org/show/34699/