[ovs-dev] problem to delete simple port

nicolas prochazka prochazka.nicolas at gmail.com
Sat May 14 09:37:05 UTC 2011


hello
i'm using kernel 2.6.38.5
openvswitch last stable 1.1 branche


qemu create a port vmtap32
list port : port is here
del port : seems ok
list port : port is always here
del port : not possible port not exist
recreate port : impossible, port exist


DEV-10.98.98.18:~# ovs-vsctl list port vmtap32
_uuid               : 3c025137-7ff6-4bf6-965d-40f14fab64f7
bond_downdelay      : 0
bond_fake_iface     : false
bond_mode           : []
bond_updelay        : 0
external_ids        : {}
fake_bridge         : false
interfaces          : [80fd2c69-b904-4bb3-8f2a-7ecaac9dda7b]
lacp                : []
mac                 : []
name                : "vmtap32"
other_config        : {}
qos                 : []
tag                 : 999
trunks              : []
DEV-10.98.98.18:~# ovs-vsctl -v del-port vmtap32
May 14
15:24:49|00002|reconnect|DBG|unix:/usr/local/var/run/openvswitch/db.sock:
entering BACKOFF
May 14
15:24:49|00003|reconnect|INFO|unix:/usr/local/var/run/openvswitch/db.sock:
connecting...
May 14
15:24:49|00004|reconnect|DBG|unix:/usr/local/var/run/openvswitch/db.sock:
entering CONNECTING
May 14 15:24:49|00005|poll_loop|DBG|[POLLOUT] on fd 3:
May 14
15:24:49|00006|reconnect|INFO|unix:/usr/local/var/run/openvswitch/db.sock:
connected
May 14
15:24:49|00007|reconnect|DBG|unix:/usr/local/var/run/openvswitch/db.sock:
entering ACTIVE
May 14
15:24:49|00008|jsonrpc|DBG|unix:/usr/local/var/run/openvswitch/db.sock: send
request, method="monitor",
params=["Open_vSwitch",null,{"Port":{"columns":["fake_bridge","interfaces","name","tag"]},"Controller":{"columns":[]},"Interface":{"columns":["name"]},"Open_vSwitch":{"columns":["bridges","cur_cfg"]},"Bridge":{"columns":["controller","fail_mode","name","ports"]}}],
id=0
May 14 15:24:49|00009|poll_loop|DBG|[POLLIN] on fd 3:
May 14
15:24:49|00010|jsonrpc|DBG|unix:/usr/local/var/run/openvswitch/db.sock:
received reply,
result={"Port":{"01bb2754-a6aa-4035-b8b6-d7d359b191e9":{"new":{"interfaces":["uuid","14cbe473-6488-4f4f-8db8-ac19c04a5159"],"name":"VMtap","fake_bridge":false,"tag":999}},"46150a0e-665e-4bb3-a0e2-74a45a573fc9":{"new":{"interfaces":["uuid","f7e76af4-17cb-48c9-a076-cbf4f29cfa6f"],"name":"neoEtap","fake_bridge":false,"tag":["set",[]]}},"428e859d-5558-41e0-bda8-136a8ae94ef9":{"new":{"interfaces":["uuid","3acae7f9-415c-4a54-b144-9eaf4d46ece2"],"name":"GRE-10.98.98.1","fake_bridge":false,"tag":999}},"b10961c6-e847-4401-856b-fae90e3b7971":{"new":{"interfaces":["uuid","6af8896f-fd38-4173-9b1a-925667e360d0"],"name":"eth1","fake_bridge":false,"tag":["set",[]]}},"3c025137-7ff6-4bf6-965d-40f14fab64f7":{"new":{"interfaces":["uuid","80fd2c69-b904-4bb3-8f2a-7ecaac9dda7b"],"name":"vmtap32","fake_bridge":false,"tag":999}},"f72d7453-aa22-4d94-bbcf-4202b96366af":{"new":{"interfaces":["uuid","b22349c0-9ca1-4920-8484-7cc6fac29f15"],"name":"eth0","fake_bridge":false,"tag":["set",[]]}},"dd81afee-0239-4f56-ab28-96e6943a9ca7":{"new":{"interfaces":["uuid","2928b6bf-0470-4034-b52c-2494b9319106"],"name":"br0","fake_bridge":false,"tag":["set",[]]}},"2e16bf62-d045-4cde-98f3-4bbf7b6c77f7":{"new":{"interfaces":["uuid","7d99a483-46cc-462f-920b-4fe2ff3b793c"],"name":"neotap","fake_bridge":false,"tag":["set",[]]}},"06d0adb2-08aa-47a0-8d71-616af1bcb64c":{"new":{"interfaces":["uuid","153a6e82-0021-4e6c-bc55-a79379682db8"],"name":"brE","fake_bridge":false,"tag":["set",[]]}},"14202fc9-2790-45c5-aba5-a400eed44228":{"new":{"interfaces":["uuid","a8175bf9-000d-4f0e-870f-ff5cae0757a9"],"name":"vmEtap32","fake_bridge":false,"tag":["set",[]]}}},"Interface":{"f7e76af4-17cb-48c9-a076-cbf4f29cfa6f":{"new":{"name":"neoEtap"}},"7d99a483-46cc-462f-920b-4fe2ff3b793c":{"new":{"name":"neotap"}},"b22349c0-9ca1-4920-8484-7cc6fac29f15":{"new":{"name":"eth0"}},"a8175bf9-000d-4f0e-870f-ff5cae0757a9":{"new":{"name":"vmEtap32"}},"14cbe473-6488-4f4f-8db8-ac19c04a5159":{"new":{"name":"VMtap"}},"6af8896f-fd38-4173-9b1a-925667e360d0":{"new":{"name":"eth1"}},"3acae7f9-415c-4a54-b144-9eaf4d46ece2":{"new":{"name":"GRE-10.98.98.1"}},"80fd2c69-b904-4bb3-8f2a-7ecaac9dda7b":{"new":{"name":"vmtap32"}},"153a6e82-0021-4e6c-bc55-a79379682db8":{"new":{"name":"brE"}},"2928b6bf-0470-4034-b52c-2494b9319106":{"new":{"name":"br0"}}},"Open_vSwitch":{"daf6d9f1-279c-4c09-b6ce-48f530578341":{"new":{"cur_cfg":18,"bridges":["set",[["uuid","87f8aacf-fc6f-4c3e-ae2a-03b8496c8354"],["uuid","d183c3dd-ca5b-4da4-a6d6-4c26662d4b4a"]]]}}},"Bridge":{"87f8aacf-fc6f-4c3e-ae2a-03b8496c8354":{"new":{"ports":["set",[["uuid","01bb2754-a6aa-4035-b8b6-d7d359b191e9"],["uuid","2e16bf62-d045-4cde-98f3-4bbf7b6c77f7"],["uuid","3c025137-7ff6-4bf6-965d-40f14fab64f7"],["uuid","428e859d-5558-41e0-bda8-136a8ae94ef9"],["uuid","dd81afee-0239-4f56-ab28-96e6943a9ca7"],["uuid","f72d7453-aa22-4d94-bbcf-4202b96366af"]]],"name":"br0","controller":["set",[]],"fail_mode":["set",[]]}},"d183c3dd-ca5b-4da4-a6d6-4c26662d4b4a":{"new":{"ports":["set",[["uuid","06d0adb2-08aa-47a0-8d71-616af1bcb64c"],["uuid","14202fc9-2790-45c5-aba5-a400eed44228"],["uuid","46150a0e-665e-4bb3-a0e2-74a45a573fc9"],["uuid","b10961c6-e847-4401-856b-fae90e3b7971"]]],"name":"brE","controller":["set",[]],"fail_mode":["set",[]]}}}},
id=0
May 14
15:24:49|00011|jsonrpc|DBG|unix:/usr/local/var/run/openvswitch/db.sock: send
request, method="transact",
params=["Open_vSwitch",{"rows":[{"bridges":["set",[["uuid","87f8aacf-fc6f-4c3e-ae2a-03b8496c8354"],["uuid","d183c3dd-ca5b-4da4-a6d6-4c26662d4b4a"]]]}],"until":"==","where":[["_uuid","==",["uuid","daf6d9f1-279c-4c09-b6ce-48f530578341"]]],"timeout":0,"op":"wait","table":"Open_vSwitch","columns":["bridges"]},{"rows":[{"interfaces":["uuid","a8175bf9-000d-4f0e-870f-ff5cae0757a9"]}],"until":"==","where":[["_uuid","==",["uuid","14202fc9-2790-45c5-aba5-a400eed44228"]]],"timeout":0,"op":"wait","table":"Port","columns":["interfaces"]},{"rows":[{"interfaces":["uuid","153a6e82-0021-4e6c-bc55-a79379682db8"]}],"until":"==","where":[["_uuid","==",["uuid","06d0adb2-08aa-47a0-8d71-616af1bcb64c"]]],"timeout":0,"op":"wait","table":"Port","columns":["interfaces"]},{"rows":[{"interfaces":["uuid","7d99a483-46cc-462f-920b-4fe2ff3b793c"]}],"until":"==","where":[["_uuid","==",["uuid","2e16bf62-d045-4cde-98f3-4bbf7b6c77f7"]]],"timeout":0,"op":"wait","table":"Port","columns":["interfaces"]},{"rows":[{"interfaces":["uuid","b22349c0-9ca1-4920-8484-7cc6fac29f15"]}],"until":"==","where":[["_uuid","==",["uuid","f72d7453-aa22-4d94-bbcf-4202b96366af"]]],"timeout":0,"op":"wait","table":"Port","columns":["interfaces"]},{"rows":[{"interfaces":["uuid","14cbe473-6488-4f4f-8db8-ac19c04a5159"]}],"until":"==","where":[["_uuid","==",["uuid","01bb2754-a6aa-4035-b8b6-d7d359b191e9"]]],"timeout":0,"op":"wait","table":"Port","columns":["interfaces"]},{"rows":[{"interfaces":["uuid","3acae7f9-415c-4a54-b144-9eaf4d46ece2"]}],"until":"==","where":[["_uuid","==",["uuid","428e859d-5558-41e0-bda8-136a8ae94ef9"]]],"timeout":0,"op":"wait","table":"Port","columns":["interfaces"]},{"rows":[{"ports":["set",[["uuid","06d0adb2-08aa-47a0-8d71-616af1bcb64c"],["uuid","14202fc9-2790-45c5-aba5-a400eed44228"],["uuid","46150a0e-665e-4bb3-a0e2-74a45a573fc9"],["uuid","b10961c6-e847-4401-856b-fae90e3b7971"]]]}],"until":"==","where":[["_uuid","==",["uuid","d183c3dd-ca5b-4da4-a6d6-4c26662d4b4a"]]],"timeout":0,"op":"wait","table":"Bridge","columns":["ports"]},{"rows":[{"interfaces":["uuid","2928b6bf-0470-4034-b52c-2494b9319106"]}],"until":"==","where":[["_uuid","==",["uuid","dd81afee-0239-4f56-ab28-96e6943a9ca7"]]],"timeout":0,"op":"wait","table":"Port","columns":["interfaces"]},{"rows":[{"interfaces":["uuid","6af8896f-fd38-4173-9b1a-925667e360d0"]}],"until":"==","where":[["_uuid","==",["uuid","b10961c6-e847-4401-856b-fae90e3b7971"]]],"timeout":0,"op":"wait","table":"Port","columns":["interfaces"]},{"rows":[{"interfaces":["uuid","f7e76af4-17cb-48c9-a076-cbf4f29cfa6f"]}],"until":"==","where":[["_uuid","==",["uuid","46150a0e-665e-4bb3-a0e2-74a45a573fc9"]]],"timeout":0,"op":"wait","table":"Port","columns":["interfaces"]},{"rows":[{"interfaces":["uuid","80fd2c69-b904-4bb3-8f2a-7ecaac9dda7b"]}],"until":"==","where":[["_uuid","==",["uuid","3c025137-7ff6-4bf6-965d-40f14fab64f7"]]],"timeout":0,"op":"wait","table":"Port","columns":["interfaces"]},{"rows":[{"ports":["set",[["uuid","01bb2754-a6aa-4035-b8b6-d7d359b191e9"],["uuid","2e16bf62-d045-4cde-98f3-4bbf7b6c77f7"],["uuid","3c025137-7ff6-4bf6-965d-40f14fab64f7"],["uuid","428e859d-5558-41e0-bda8-136a8ae94ef9"],["uuid","dd81afee-0239-4f56-ab28-96e6943a9ca7"],["uuid","f72d7453-aa22-4d94-bbcf-4202b96366af"]]]}],"until":"==","where":[["_uuid","==",["uuid","87f8aacf-fc6f-4c3e-ae2a-03b8496c8354"]]],"timeout":0,"op":"wait","table":"Bridge","columns":["ports"]},{"where":[["_uuid","==",["uuid","87f8aacf-fc6f-4c3e-ae2a-03b8496c8354"]]],"op":"update","table":"Bridge","row":{"ports":["set",[["uuid","01bb2754-a6aa-4035-b8b6-d7d359b191e9"],["uuid","2e16bf62-d045-4cde-98f3-4bbf7b6c77f7"],["uuid","428e859d-5558-41e0-bda8-136a8ae94ef9"],["uuid","dd81afee-0239-4f56-ab28-96e6943a9ca7"],["uuid","f72d7453-aa22-4d94-bbcf-4202b96366af"]]]}},{"mutations":[["next_cfg","+=",1]],"where":[["_uuid","==",["uuid","daf6d9f1-279c-4c09-b6ce-48f530578341"]]],"op":"mutate","table":"Open_vSwitch"},{"where":[["_uuid","==",["uuid","daf6d9f1-279c-4c09-b6ce-48f530578341"]]],"op":"select","table":"Open_vSwitch","columns":["next_cfg"]},{"comment":"ovs-vsctl:
ovs-vsctl -v del-port vmtap32","op":"comment"}], id=1
May 14 15:24:49|00012|poll_loop|DBG|[POLLIN] on fd 3:
May 14
15:24:49|00013|jsonrpc|DBG|unix:/usr/local/var/run/openvswitch/db.sock:
received notification, method="update",
params=[null,{"Bridge":{"87f8aacf-fc6f-4c3e-ae2a-03b8496c8354":{"old":{"ports":["set",[["uuid","01bb2754-a6aa-4035-b8b6-d7d359b191e9"],["uuid","2e16bf62-d045-4cde-98f3-4bbf7b6c77f7"],["uuid","3c025137-7ff6-4bf6-965d-40f14fab64f7"],["uuid","428e859d-5558-41e0-bda8-136a8ae94ef9"],["uuid","dd81afee-0239-4f56-ab28-96e6943a9ca7"],["uuid","f72d7453-aa22-4d94-bbcf-4202b96366af"]]]},"new":{"ports":["set",[["uuid","01bb2754-a6aa-4035-b8b6-d7d359b191e9"],["uuid","2e16bf62-d045-4cde-98f3-4bbf7b6c77f7"],["uuid","428e859d-5558-41e0-bda8-136a8ae94ef9"],["uuid","dd81afee-0239-4f56-ab28-96e6943a9ca7"],["uuid","f72d7453-aa22-4d94-bbcf-4202b96366af"]]],"name":"br0","controller":["set",[]],"fail_mode":["set",[]]}}}}]
May 14
15:24:49|00014|jsonrpc|DBG|unix:/usr/local/var/run/openvswitch/db.sock:
received reply,
result=[{},{},{},{},{},{},{},{},{},{},{},{},{},{"count":1},{"count":1},{"rows":[{"next_cfg":19}]},{}],
id=1
May 14 15:24:49|00015|poll_loop|DBG|0-ms timeout:
May 14 15:24:49|00016|poll_loop|DBG|[POLLIN] on fd 3:
May 14
15:24:49|00017|jsonrpc|DBG|unix:/usr/local/var/run/openvswitch/db.sock:
received notification, method="update",
params=[null,{"Open_vSwitch":{"daf6d9f1-279c-4c09-b6ce-48f530578341":{"old":{"cur_cfg":18},"new":{"cur_cfg":19,"bridges":["set",[["uuid","87f8aacf-fc6f-4c3e-ae2a-03b8496c8354"],["uuid","d183c3dd-ca5b-4da4-a6d6-4c26662d4b4a"]]]}}}}]
DEV-10.98.98.18:~# ovs-vsctl list port vmtap32
_uuid               : 3c025137-7ff6-4bf6-965d-40f14fab64f7
bond_downdelay      : 0
bond_fake_iface     : false
bond_mode           : []
bond_updelay        : 0
external_ids        : {}
fake_bridge         : false
interfaces          : [80fd2c69-b904-4bb3-8f2a-7ecaac9dda7b]
lacp                : []
mac                 : []
name                : "vmtap32"
other_config        : {}
qos                 : []
tag                 : 999
trunks              : []
DEV-10.98.98.18:~# ovs-vsctl -v del-port vmtap32
May 14
15:25:40|00002|reconnect|DBG|unix:/usr/local/var/run/openvswitch/db.sock:
entering BACKOFF

May 14
15:25:40|00003|reconnect|INFO|unix:/usr/local/var/run/openvswitch/db.sock:
connecting...

May 14
15:25:40|00004|reconnect|DBG|unix:/usr/local/var/run/openvswitch/db.sock:
entering CONNECTING

May 14 15:25:40|00005|poll_loop|DBG|[POLLOUT] on fd 3:


May 14
15:25:40|00006|reconnect|INFO|unix:/usr/local/var/run/openvswitch/db.sock:
connected

May 14
15:25:40|00007|reconnect|DBG|unix:/usr/local/var/run/openvswitch/db.sock:
entering ACTIVE

May 14
15:25:40|00008|jsonrpc|DBG|unix:/usr/local/var/run/openvswitch/db.sock: send
request, method="monitor",
params=["Open_vSwitch",null,{"Port":{"columns":["fake_bridge","interfaces","name","tag"]},"Controller":{"columns":[]},"Interface":{"columns":["name"]},"Open_vSwitch":{"columns":["bridges","cur_cfg"]},"Bridge":{"columns":["controller","fail_mode","name","ports"]}}],
id=0
May 14 15:25:40|00009|poll_loop|DBG|[POLLIN] on fd 3:


May 14
15:25:40|00010|jsonrpc|DBG|unix:/usr/local/var/run/openvswitch/db.sock:
received reply,
result={"Port":{"01bb2754-a6aa-4035-b8b6-d7d359b191e9":{"new":{"interfaces":["uuid","14cbe473-6488-4f4f-8db8-ac19c04a5159"],"name":"VMtap","fake_bridge":false,"tag":999}},"46150a0e-665e-4bb3-a0e2-74a45a573fc9":{"new":{"interfaces":["uuid","f7e76af4-17cb-48c9-a076-cbf4f29cfa6f"],"name":"neoEtap","fake_bridge":false,"tag":["set",[]]}},"428e859d-5558-41e0-bda8-136a8ae94ef9":{"new":{"interfaces":["uuid","3acae7f9-415c-4a54-b144-9eaf4d46ece2"],"name":"GRE-10.98.98.1","fake_bridge":false,"tag":999}},"b10961c6-e847-4401-856b-fae90e3b7971":{"new":{"interfaces":["uuid","6af8896f-fd38-4173-9b1a-925667e360d0"],"name":"eth1","fake_bridge":false,"tag":["set",[]]}},"3c025137-7ff6-4bf6-965d-40f14fab64f7":{"new":{"interfaces":["uuid","80fd2c69-b904-4bb3-8f2a-7ecaac9dda7b"],"name":"vmtap32","fake_bridge":false,"tag":999}},"f72d7453-aa22-4d94-bbcf-4202b96366af":{"new":{"interfaces":["uuid","b22349c0-9ca1-4920-8484-7cc6fac29f15"],"name":"eth0","fake_bridge":false,"tag":["set",[]]}},"dd81afee-0239-4f56-ab28-96e6943a9ca7":{"new":{"interfaces":["uuid","2928b6bf-0470-4034-b52c-2494b9319106"],"name":"br0","fake_bridge":false,"tag":["set",[]]}},"2e16bf62-d045-4cde-98f3-4bbf7b6c77f7":{"new":{"interfaces":["uuid","7d99a483-46cc-462f-920b-4fe2ff3b793c"],"name":"neotap","fake_bridge":false,"tag":["set",[]]}},"06d0adb2-08aa-47a0-8d71-616af1bcb64c":{"new":{"interfaces":["uuid","153a6e82-0021-4e6c-bc55-a79379682db8"],"name":"brE","fake_bridge":false,"tag":["set",[]]}},"14202fc9-2790-45c5-aba5-a400eed44228":{"new":{"interfaces":["uuid","a8175bf9-000d-4f0e-870f-ff5cae0757a9"],"name":"vmEtap32","fake_bridge":false,"tag":["set",[]]}}},"Interface":{"f7e76af4-17cb-48c9-a076-cbf4f29cfa6f":{"new":{"name":"neoEtap"}},"7d99a483-46cc-462f-920b-4fe2ff3b793c":{"new":{"name":"neotap"}},"b22349c0-9ca1-4920-8484-7cc6fac29f15":{"new":{"name":"eth0"}},"a8175bf9-000d-4f0e-870f-ff5cae0757a9":{"new":{"name":"vmEtap32"}},"14cbe473-6488-4f4f-8db8-ac19c04a5159":{"new":{"name":"VMtap"}},"6af8896f-fd38-4173-9b1a-925667e360d0":{"new":{"name":"eth1"}},"3acae7f9-415c-4a54-b144-9eaf4d46ece2":{"new":{"name":"GRE-10.98.98.1"}},"80fd2c69-b904-4bb3-8f2a-7ecaac9dda7b":{"new":{"name":"vmtap32"}},"153a6e82-0021-4e6c-bc55-a79379682db8":{"new":{"name":"brE"}},"2928b6bf-0470-4034-b52c-2494b9319106":{"new":{"name":"br0"}}},"Open_vSwitch":{"daf6d9f1-279c-4c09-b6ce-48f530578341":{"new":{"cur_cfg":19,"bridges":["set",[["uuid","87f8aacf-fc6f-4c3e-ae2a-03b8496c8354"],["uuid","d183c3dd-ca5b-4da4-a6d6-4c26662d4b4a"]]]}}},"Bridge":{"87f8aacf-fc6f-4c3e-ae2a-03b8496c8354":{"new":{"ports":["set",[["uuid","01bb2754-a6aa-4035-b8b6-d7d359b191e9"],["uuid","2e16bf62-d045-4cde-98f3-4bbf7b6c77f7"],["uuid","428e859d-5558-41e0-bda8-136a8ae94ef9"],["uuid","dd81afee-0239-4f56-ab28-96e6943a9ca7"],["uuid","f72d7453-aa22-4d94-bbcf-4202b96366af"]]],"name":"br0","controller":["set",[]],"fail_mode":["set",[]]}},"d183c3dd-ca5b-4da4-a6d6-4c26662d4b4a":{"new":{"ports":["set",[["uuid","06d0adb2-08aa-47a0-8d71-616af1bcb64c"],["uuid","14202fc9-2790-45c5-aba5-a400eed44228"],["uuid","46150a0e-665e-4bb3-a0e2-74a45a573fc9"],["uuid","b10961c6-e847-4401-856b-fae90e3b7971"]]],"name":"brE","controller":["set",[]],"fail_mode":["set",[]]}}}},
id=0
ovs-vsctl: no port named vmtap32
DEV-10.98.98.18:~# ovs-vsctl list port vmtap32
_uuid               : 3c025137-7ff6-4bf6-965d-40f14fab64f7
bond_downdelay      : 0
bond_fake_iface     : false
bond_mode           : []
bond_updelay        : 0
external_ids        : {}
fake_bridge         : false
interfaces          : [80fd2c69-b904-4bb3-8f2a-7ecaac9dda7b]
lacp                : []
mac                 : []
name                : "vmtap32"
other_config        : {}
qos                 : []
tag                 : 999
trunks              : []


some others tests

ovs-vsctl add-port br0  vmtap32

DEV-10.98.98.18:~# ovs-vsctl list port vmtap32
ovs-vsctl: multiple rows in Port match "vmtap32"

ovs-vsctl: multiple rows in Port match "vmtap32"
ovs-vsctl: multiple rows in Interface match "vmtap32"


Regards,
Nicolas Prochazka
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-dev/attachments/20110514/d209ba03/attachment-0003.html>


More information about the dev mailing list