-
Notifications
You must be signed in to change notification settings - Fork 348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError on running "ovn-k8s-overlay master-init" #125
Comments
As asked in the instructions, did you run:
If so, what does the following command give you:
|
@shettyg |
What is the platform? i.e Ubuntu 14.04 etc. |
Platform is Ubuntu 16.04 |
Looks like python3 is being invoked instead of python2.7 Put this code in a file and run it in both python2.7 and python3 and run it with sudo
|
@shettyg |
What does the following say?
|
output : |
@shettyg |
@AakashKT |
@shettyg |
I will spend some time to get it to work for python3 too. |
Oh okay, that would be great. |
Hi,
Followed the guide to set up kubernetes with ovs (https://github.com/openvswitch/ovn-kubernetes/blob/master/README.md)
In the section for "k8s master node initialisation", on running "ovn-k8s-overlay master-init", I get the following error :
Failed operation.
(a bytes-like object is required, not 'str')
at Traceback (most recent call last):
File "/usr/local/bin/ovn-k8s-overlay", line 802, in
main()
File "/usr/local/bin/ovn-k8s-overlay", line 797, in main
args.func(args)
File "/usr/local/bin/ovn-k8s-overlay", line 408, in master_init
fetch_ovn_nb()
File "/usr/local/bin/ovn-k8s-overlay", line 41, in fetch_ovn_nb
"external_ids:ovn-nb").strip('"')
TypeError: a bytes-like object is required, not 'str'
It would be great if someone could help me out :-) Thanks
The text was updated successfully, but these errors were encountered: