{"action":"created","issue":{"url":"https://api.github.com/repos/openvswitch/of-config/issues/9","labels_url":"https://api.github.com/repos/openvswitch/of-config/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/openvswitch/of-config/issues/9/comments","events_url":"https://api.github.com/repos/openvswitch/of-config/issues/9/events","html_url":"https://github.com/openvswitch/of-config/issues/9","id":65949938,"number":9,"title":"ofc-server crash if create logical switch without datapath-id","user":{"login":"budnyjj","id":1331682,"avatar_url":"https://avatars.githubusercontent.com/u/1331682?v=3","gravatar_id":"","url":"https://api.github.com/users/budnyjj","html_url":"https://github.com/budnyjj","followers_url":"https://api.github.com/users/budnyjj/followers","following_url":"https://api.github.com/users/budnyjj/following{/other_user}","gists_url":"https://api.github.com/users/budnyjj/gists{/gist_id}","starred_url":"https://api.github.com/users/budnyjj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/budnyjj/subscriptions","organizations_url":"https://api.github.com/users/budnyjj/orgs","repos_url":"https://api.github.com/users/budnyjj/repos","events_url":"https://api.github.com/users/budnyjj/events{/privacy}","received_events_url":"https://api.github.com/users/budnyjj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-04-02T15:21:57Z","updated_at":"2015-04-09T10:15:46Z","closed_at":null,"body":"Hello!\r\nWorking with ofc-server, I found that ofc-server crashes without any messages, if I try to create logical switch without datapath-id.\r\nUnfortunately, there is no XML schemas in of-config 1.2 specification, but as mentioned in of-config 1.1.1 spec (p. 27),\r\n> This element MUST be present in the NETCONF data store.\r\n> If this element is not present in a NETCONF <edit-config>\r\n> operation 'create', 'merge' or 'replace' and the parent\r\n> element does not exist, a 'data-missing' error is returned.\r\n\r\nSteps to reproduce:\r\ncreate_switch.xml\r\n```xml\r\n<capable-switch xmlns=\"urn:onf:config:yang\" xmlns:nc=\"urn:ietf:params:xml:ns:netconf:base:1.0\">\r\n    <id>openvswitch</id>\r\n    <logical-switches>\r\n      <switch nc:operation=\"create\">\r\n        <id>test-bridge</id>\r\n      </switch>\r\n    </logical-switches>\r\n</capable-switch>\r\n```\r\nand do edit-config with, for example, netopeer-cli."},"comment":{"url":"https://api.github.com/repos/openvswitch/of-config/issues/comments/91183728","html_url":"https://github.com/openvswitch/of-config/issues/9#issuecomment-91183728","issue_url":"https://api.github.com/repos/openvswitch/of-config/issues/9","id":91183728,"user":{"login":"budnyjj","id":1331682,"avatar_url":"https://avatars.githubusercontent.com/u/1331682?v=3","gravatar_id":"","url":"https://api.github.com/users/budnyjj","html_url":"https://github.com/budnyjj","followers_url":"https://api.github.com/users/budnyjj/followers","following_url":"https://api.github.com/users/budnyjj/following{/other_user}","gists_url":"https://api.github.com/users/budnyjj/gists{/gist_id}","starred_url":"https://api.github.com/users/budnyjj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/budnyjj/subscriptions","organizations_url":"https://api.github.com/users/budnyjj/orgs","repos_url":"https://api.github.com/users/budnyjj/repos","events_url":"https://api.github.com/users/budnyjj/events{/privacy}","received_events_url":"https://api.github.com/users/budnyjj/received_events","type":"User","site_admin":false},"created_at":"2015-04-09T10:15:45Z","updated_at":"2015-04-09T10:15:45Z","body":"This is full ofc-server's log...\r\nSame in verbose mode:\r\n```bash\r\nsudo ofc-server -v 3 -f\r\nofc-server[3019]: Shared memory key: -4\r\nofc-server[3019]: Shared memory ID: 262150\r\nofc-server[3019]: ncds_features_parse: no feature definitions found in data model ietf-inet-types.\r\nofc-server[3019]: ncds_features_parse: no feature definitions found in data model ietf-yang-types.\r\nofc-server[3019]: ncds_features_parse: no feature definitions found in data model ietf-netconf-monitoring.\r\nofc-server[3019]: ncds_features_parse: no feature definitions found in data model ietf-netconf-notifications.\r\nofc-server[3019]: ncds_features_parse: no feature definitions found in data model nc-notifications.\r\nofc-server[3019]: ncds_features_parse: no feature definitions found in data model notifications.\r\nofc-server[3019]: ncds_features_parse: no feature definitions found in data model ietf-netconf-with-defaults.\r\nofc-server[3019]: Checking the default Events stream path //var/lib/libnetconf//streams/.\r\nofc-server[3019]: ncds_features_parse: no feature definitions found in data model ietf-x509-cert-to-name.\r\nofc-server[3019]: NACM turned off, module 'ietf-netconf-acm' is not available for import from 'ietf-netconf-server'.\r\nofc-server[3019]: ncds_new_internal: Relax NG validator set (/usr/local/var/ofconfig/ietf-netconf-server/ietf-netconf-server-config.rng)\r\nofc-server[3019]: ncds_new_internal: Schematron validator set (/usr/local/var/ofconfig/ietf-netconf-server/ietf-netconf-server-schematron.xsl)\r\nofc-server[3019]: Datastore ietf-netconf-server initiated with ID 1804289384.\r\nofc-server[3019]: ncds_features_parse: no feature definitions found in data model of-config.\r\nofc-server[3019]: ncds_new_internal: Relax NG validator set (/usr/local/var/ofconfig/of-config/of-config-config.rng)\r\nofc-server[3019]: ncds_new_internal: Schematron validator set (/usr/local/var/ofconfig/of-config/of-config-schematron.xsl)\r\nofc-server[3019]: Try to synchronize OVSDB.\r\n2015-04-09T10:14:20Z|00001|reconnect|INFO|unix://var/run/openvswitch/db.sock: connecting...\r\n2015-04-09T10:14:20Z|00002|reconnect|INFO|unix://var/run/openvswitch/db.sock: connected\r\nofc-server[3019]: OF-CONFIG datastore initialized.\r\nofc-server[3019]: Datastore of-config initiated with ID 846930887.\r\nofc-server[3019]: Setting default configuration for ietf-netconf-server module\r\nofc-server[3019]: callback_srv_netconf_srv_ssh_srv_listen_oneport: port 830\r\nofc-server[3019]: callback_srv_netconf_srv_ssh_srv_listen: started sshd (PID 3020)\r\nofc-server[3019]: OFC COPY-CONFIG (from <config> to running)\r\nofc-server[3019]: Deleting all OVSDB content\r\nofc-server[3019]: OVSDB transaction successful\r\nofc-server[3019]: OVSDB unchanged\r\nofc-server[3019]: OFC COPY-CONFIG (from startup to running)\r\nofc-server[3019]: Creating the node capable-switch\r\nofc-server[3019]: Creating the node id\r\nofc-server[3019]: Creating the node resources\r\nofc-server[3019]: Creating the node port\r\nofc-server[3019]: Creating the node logical-switches\r\nofc-server[3019]: Creating the node switch\r\nofc-server[3019]: OVSDB transaction successful\r\nofc-server[3019]: OpenFlow: connecting to unix://var/run/openvswitch/ofc-bridge.mgmt\r\nofc-server[3019]: OpenFlow: ofc-bridge: failed to connect to socket (Connection reset by peer).\r\nofc-server[3019]: OpenFlow: could not connect to 'ofc-bridge' bridge.\r\nofc-server[3019]: Transapi calling callback /A:capable-switch with op ADD.\r\nofc-server[3019]: OF-CONFIG data affected.\r\nofc-server[3019]: OF-CONFIG server successfully initialized.\r\nofc-server[3019]: Some message received\r\nofc-server[3019]: Unsupported DBus message type received.\r\nofc-server[3019]: Some message received\r\nofc-server[3019]: Unsupported DBus message type received.\r\n```"}}