ovn-org / ovn

Open Virtual Network
Apache License 2.0
519 stars 254 forks source link

ovn-docker-overlay-driver --detach failed #30

Open lygstate opened 4 years ago

lygstate commented 4 years ago
 ovn-docker-overlay-driver --detach
Traceback (most recent call last):
  File "/usr/bin/ovn-docker-overlay-driver", line 441, in <module>
    prepare()
  File "/usr/bin/ovn-docker-overlay-driver", line 103, in prepare
    ovn_init_overlay()
  File "/usr/bin/ovn-docker-overlay-driver", line 86, in ovn_init_overlay
    OVN_NB = ovs_vsctl("get", "Open_vSwitch", ".",
TypeError: a bytes-like object is required, not 'str'
bitixft commented 4 years ago

I have the same issue, did you find the solution?

bitixft commented 4 years ago

 ovn-docker-overlay-driver --detach
Traceback (most recent call last):
  File "/usr/bin/ovn-docker-overlay-driver", line 441, in <module>
    prepare()
  File "/usr/bin/ovn-docker-overlay-driver", line 103, in prepare
    ovn_init_overlay()
  File "/usr/bin/ovn-docker-overlay-driver", line 86, in ovn_init_overlay
    OVN_NB = ovs_vsctl("get", "Open_vSwitch", ".",
TypeError: a bytes-like object is required, not 'str'
```I have the same issue, did you find the solution?
rledousa commented 3 years ago

In call_popen(cmd) in ovn-docker-underlay-driver and ovn-docker-overlay-driver add encoding argument to subprocess.Popen()

child = subprocess.Popen(cmd, stdout=subprocess.PIPE) -> child = subprocess.Popen(cmd, stdout=subprocess.PIPE, encoding='utf8')