[ovs-discuss] ovsdb jsonrpc: referential integrity

Boris Tobotras tobotras at parallels.com
Tue Mar 26 16:04:15 UTC 2013


	Hi Ben,

On 03/26/2013 07:42 PM, Ben Pfaff wrote:
> The Interface row was created with the specified uuid, but it was
> deleted immediately as part of transaction commit by the garbage
> collector because it was unreferenced.  To keep it from being garbage
> collected, create a Port that references it and add a reference to the
> Port from a Bridge in the same transaction.

	Good point, thanks! But still:

 > 
{"method":"transact","params":["Open_vSwitch",{"op":"insert","table":"Interface","row":{"name":"paci1face","type":"internal","_uuid":["uuid","d68a838d-97ca-4269-98d1-dca6c86e99ef"]}},{"op":"insert","table":"Port","row":{"name":"paci1port","interfaces":["uuid","d68a838d-97ca-4269-98d1-dca6c86e99ef"],"_uuid":["uuid","ccde0db1-130d-44f0-96ae-dddaefeaea79"]}},{"op":"insert","table":"Bridge","row":{"name":"paci1br","ports":["uuid","ccde0db1-130d-44f0-96ae-dddaefeaea79"]}},{"op":"commit","durable":true}],"id":4}

< {:id 4, :error nil, :result [{:uuid ["uuid" 
"3ff4b45c-4baf-4617-8061-0f617f6a7a79"]} {:uuid ["uuid" 
"a736a968-c1de-4f24-99fd-87ee09880705"]} {:uuid ["uuid" 
"14d0de04-6a4c-4030-9c42-89fb8c10763e"]} {} {:error "referential 
integrity violation", :details "Table Port column interfaces row 
a736a968-c1de-4f24-99fd-87ee09880705 references nonexistent row 
d68a838d-97ca-4269-98d1-dca6c86e99ef in table Interface."}]}


-- 
         Best regards, -- Boris.

Any stone in your boot always migrates against the pressure gradient to 
exactly the point of most pressure.



More information about the discuss mailing list