{"action":"created","issue":{"url":"https://api.github.com/repos/axsh/openvnet/issues/303","labels_url":"https://api.github.com/repos/axsh/openvnet/issues/303/labels{/name}","comments_url":"https://api.github.com/repos/axsh/openvnet/issues/303/comments","events_url":"https://api.github.com/repos/axsh/openvnet/issues/303/events","html_url":"https://github.com/axsh/openvnet/pull/303","id":70607038,"number":303,"title":"Fix UniqueContraintViolation and symbol (:gre, :mac2mac) mysql errors","user":{"login":"Mopster","id":155956,"avatar_url":"https://avatars.githubusercontent.com/u/155956?v=3","gravatar_id":"","url":"https://api.github.com/users/Mopster","html_url":"https://github.com/Mopster","followers_url":"https://api.github.com/users/Mopster/followers","following_url":"https://api.github.com/users/Mopster/following{/other_user}","gists_url":"https://api.github.com/users/Mopster/gists{/gist_id}","starred_url":"https://api.github.com/users/Mopster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mopster/subscriptions","organizations_url":"https://api.github.com/users/Mopster/orgs","repos_url":"https://api.github.com/users/Mopster/repos","events_url":"https://api.github.com/users/Mopster/events{/privacy}","received_events_url":"https://api.github.com/users/Mopster/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-04-24T07:01:00Z","updated_at":"2015-04-30T05:10:11Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/axsh/openvnet/pulls/303","html_url":"https://github.com/axsh/openvnet/pull/303","diff_url":"https://github.com/axsh/openvnet/pull/303.diff","patch_url":"https://github.com/axsh/openvnet/pull/303.patch"},"body":"Prevents the following error in the vnmgr,log\r\n\r\n```\r\nI, [2015-04-23T06:03:30.392090 #10642]  INFO -- : failed to execute: class_name: tunnel method_name: execute args: [:create, {:src_datapath_id=>1, :dst_datapath_id=>2, :src_interface_id=>1, :dst_interface_id=>2, :mode=>:mac2mac}]\r\nI, [2015-04-23T06:03:30.392181 #10642]  INFO -- : Mysql2::Error: Duplicate entry '1-2-1-2-0' for key 'tunnels_datapath_id_interface_id_index' (Sequel::UniqueConstraintViolation)\r\n```\r\nwhich resulted in the following error in the vna.log \r\n\r\n```\r\nE, [2015-04-23T06:03:30.758691 #4820] ERROR -- : couldn't decode message\r\nDCell::Server::InvalidMessageError: invalid message: undefined class/module Mysql2::\r\n\t/opt/axsh/openvnet/vnet/vendor/bundle/ruby/2.1.0/gems/dcell-0.15.0/lib/dcell/server.rb:59:in `rescue in decode_message'\r\n\t/opt/axsh/openvnet/vnet/vendor/bundle/ruby/2.1.0/gems/dcell-0.15.0/lib/dcell/server.rb:56:in `decode_message'\r\n\t/opt/axsh/openvnet/vnet/vendor/bundle/ruby/2.1.0/gems/dcell-0.15.0/lib/dcell/server.rb:38:in `handle_message'\r\n\t/opt/axsh/openvnet/vnet/vendor/bundle/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/calls.rb:25:in `public_send'\r\n\t/opt/axsh/openvnet/vnet/vendor/bundle/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/calls.rb:25:in `dispatch'\r\n\t/opt/axsh/openvnet/vnet/vendor/bundle/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/calls.rb:122:in `dispatch'\r\n\t/opt/axsh/openvnet/vnet/vendor/bundle/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/actor.rb:322:in `block in handle_message'\r\n\t/opt/axsh/openvnet/vnet/vendor/bundle/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/actor.rb:416:in `block in task'\r\n\t/opt/axsh/openvnet/vnet/vendor/bundle/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/tasks.rb:55:in `block in initialize'\r\n\t/opt/axsh/openvnet/vnet/vendor/bundle/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/tasks/task_fiber.rb:13:in `block in create'\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/axsh/openvnet/issues/comments/97664333","html_url":"https://github.com/axsh/openvnet/pull/303#issuecomment-97664333","issue_url":"https://api.github.com/repos/axsh/openvnet/issues/303","id":97664333,"user":{"login":"axsh-bot","id":4980916,"avatar_url":"https://avatars.githubusercontent.com/u/4980916?v=3","gravatar_id":"","url":"https://api.github.com/users/axsh-bot","html_url":"https://github.com/axsh-bot","followers_url":"https://api.github.com/users/axsh-bot/followers","following_url":"https://api.github.com/users/axsh-bot/following{/other_user}","gists_url":"https://api.github.com/users/axsh-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/axsh-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axsh-bot/subscriptions","organizations_url":"https://api.github.com/users/axsh-bot/orgs","repos_url":"https://api.github.com/users/axsh-bot/repos","events_url":"https://api.github.com/users/axsh-bot/events{/privacy}","received_events_url":"https://api.github.com/users/axsh-bot/received_events","type":"User","site_admin":false},"created_at":"2015-04-30T05:10:11Z","updated_at":"2015-04-30T05:10:11Z","body":":x: 653bdfdf failure - wakame-ci/openvnet.integration"}}