smart-edge-open / converged-edge-experience-kits

Source code for experience kits with Ansible-based deployment.
Apache License 2.0
37 stars 40 forks source link

Error while obtaining addresses for {"portName": "ovn4nfv0-8c735a", "error": "exit status 1"} #116

Closed liuuwqia closed 3 years ago

liuuwqia commented 3 years ago

When I deployed my YAML files after deploying the Calico and OVN4NFV networks on the OpenENSS environment, I encountered the following problems:

2021-05-18T01:17:42.891Z INFO controller_pod Enter Reconciling Pod {"Request.Namespace": "default", "Request.Name": "sdewan-694ff8d99f-7qhrm"} 2021-05-18T01:17:42.895Z INFO controller_pod Enter Reconciling Pod {"Request.Namespace": "default", "Request.Name": "sdewan-694ff8d99f-7qhrm"} 2021-05-18T01:17:42.895Z DEBUG ovn exec: {"cmdPath": "/usr/bin/ovn-nbctl", "args": "--db=tcp:10.109.0.174:6641 --timeout=15 --data=bare --no-heading --columns=name find logical_switch name=dync-net1"} 2021-05-18T01:17:42.903Z DEBUG ovn output: {"stdout": "dync-net1\n"} 2021-05-18T01:17:42.903Z DEBUG ovn Creating logical port for on switch {"portName": "default_sdewan-694ff8d99f-7qhrm_net2", "logicalSwitch": "dync-net1"} 2021-05-18T01:17:42.903Z DEBUG ovn exec: {"cmdPath": "/usr/bin/ovn-nbctl", "args": "--db=tcp:10.109.0.174:6641 --timeout=15 --wait=sb -- --may-exist lsp-add dync-net1 default_sdewan-694ff8d99f-7qhrm_net2 -- lsp-set-addresses default_sdewan-694ff8d99f-7qhrm_net2 dynamic -- set logical_switch_port default_sdewan-694ff8d99f-7qhrm_net2 external-ids:namespace=default external-ids:logical_switch=dync-net1 external-ids:pod=true"} 2021-05-18T01:17:42.917Z DEBUG ovn output: {"stdout": ""} 2021-05-18T01:17:42.917Z DEBUG ovn exec: {"cmdPath": "/usr/bin/ovn-nbctl", "args": "--db=tcp:10.109.0.174:6641 --timeout=15 get logical_switch_port default_sdewan-694ff8d99f-7qhrm_net2 dynamic_addresses"} 2021-05-18T01:17:42.926Z DEBUG ovn output: {"stdout": "\"56:45:66:1e:21:03 172.30.33.2\"\n"} 2021-05-18T01:17:42.926Z DEBUG ovn Get Node logical port {"pod": "sdewan-694ff8d99f-7qhrm", "node": "k8s-node1", "portName": "ovn4nfv0-8c735a"} 2021-05-18T01:17:42.926Z DEBUG ovn exec: {"cmdPath": "/usr/bin/ovn-nbctl", "args": "--db=tcp:10.109.0.174:6641 --timeout=15 get logical_switch_port ovn4nfv0-8c735a dynamic_addresses"} 2021-05-18T01:17:42.934Z INFO ovn ovs {"Error:": "exit status 1", "cmdPath": "/usr/bin/ovn-nbctl", "args": "--db=tcp:10.109.0.174:6641 --timeout=15 get logical_switch_port ovn4nfv0-8c735a dynamic_addresses", "stdout": "", "stderr": "ovn-nbctl: no row \"ovn4nfv0-8c735a\" in table Logical_Switch_Port\n"} 2021-05-18T01:17:42.934Z ERROR ovn Error while obtaining addresses for {"portName": "ovn4nfv0-8c735a", "error": "exit status 1"} github.com/go-logr/zapr.(*zapLogger).Error

liuuwqia commented 3 years ago

But I was able to deploy successfully in the K8S environment,

liuuwqia commented 3 years ago

If I need to reproduce the problem, I can provide the appropriate documentation