netplugin
netplugin copied to clipboard
Error connecting to OVS. Err: dial unix /var/run/openvswitch/db.sock: connect: no such file or directory
Hi on attempting to run netplugin as follows on a fresh install
netplugin -vlan-if eth0 -cluster-store etcd://100.108.150.45:2379 -plugin-mode docker -vtep-ip 100.108.150.45 -ctrl-ip 100.108.150.45
I get the following error
INFO[Feb 25 21:23:57.178925295] HostPvtNW: 2886926336
INFO[Feb 25 21:23:57.202395155] Initializing ovsdriver
INFO[Feb 25 21:23:57.202448628] Received request to create new ovs switch bridge:contivVxlanBridge, localIP:100.108.150.45, fwdMode:bridge
FATA[Feb 25 21:23:57.202539997] Error connecting to OVS. Err: dial unix /var/run/openvswitch/db.sock: connect: no such file or directory
netplugin version:
Version: 1.0.0-beta.3-02-25-2017.20-45-10.UTC
GitCommit: 3e55ef6
BuildTime: 02-25-2017.20-45-10.UTC
Are you manually installing netplugin? Or using the contiv install tool?
manually installing with https://github.com/contiv/netplugin/blob/master/install/HowtoSetupContiv.md, basically trying to get the two daemons running netmaster and netplugin
I think ovs may not be installed or there might be a permissions issue. You might want to use https://github.com/contiv/install instead. It will install everything you need.
I didn't like the install process, plus I'm trying to understand how contiv works. Let me try installing ovs. Thanks for the hint
on you laptop if you have vagrant and Virtual box this will give you running setup.
1: git clone https://github.com/contiv/netplugin
2: cd netplugin
3: make demo
or
You need to have docker engine on the host from which you are going to run this. Also you will need vagrant and virtualbox. This will give you everything setup and you dont have to setup anything else.
1: git clone https://github.com/contiv/install
2: export BUILD_VERSION=1.0.0-beta.3
3: make demo-swarm
@gaurav-dalvi I get
root@sc-swarm:~/work/src/github.com/contiv/netplugin# make demo-swarm
make: *** No rule to make target 'demo-swarm'. Stop.
with the latter command @jojimt Actually the reason I gave up on the installer was because I was running into an ansible error
fatal: [node1]: FAILED! => {"changed": false, "failed": true, "module_stderr": "", "module_stdout": "sudo: a password is required\r\n", "msg": "MODULE FAILURE"}
Even though my user has passwordless sudo on the remote, and the thing is I can't specify additional ansible options via the install script to get around this by adding perhaps --ask-pass
Please follow the steps correctly which i have written above.
1: git clone https://github.com/contiv/netplugin
2: cd netplugin
3: make demo
To setup passwordless SSH : http://twincreations.co.uk/pre-shared-keys-for-ssh-login-without-password/
Thanks. Fixed the passwordless sudo. However I'm running into this
{"changed": false, "failed": true, "gid": 0, "group": "root", "mode": "0644", "msg": "refusing to convert between file and link for /etc/bash_completion.d/netctl", "owner": "root", "path": "/etc/bash_completion.d/netctl", "size": 14421, "state": "file", "uid": 0}
could you please ping us on slack : https://contiv.herokuapp.com/ Please register wit your email. You can ask questions there as well for faster response.
For this response, please provide more details, commands which you were running (make demo or make demo-swarm) . What is your ansible host ? (mac or linux ? if linux which distribution etc.)
what do you see at the end ?
@jonathan-kosgei , did you have /etc/bash_completion.d/netctl installed as part of the manual install process?
No, but I wasn't able to get past running netplugin which nuked my server and made it inaccessible via ssh.
On Feb 27, 2017 8:39 PM, "neelimamukiri" [email protected] wrote:
@jonathan-kosgei https://github.com/jonathan-kosgei , did you have /etc/bash_completion.d/netctl installed as part of the manual install process?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/contiv/netplugin/issues/760#issuecomment-282792599, or mute the thread https://github.com/notifications/unsubscribe-auth/AGZuUs5uuHYSFzMmiSqSWIE1ksGs84Skks5rgwpBgaJpZM4MMJQw .
+1 @jonathan-kosgei
Have you solve the problem?
I got the same problem with you, I manually install contiv on my test environment, I did't use virtual machine, I running 3 physical machines, one for netmaster.
netplugin -cluster-store etcd://172.20.0.113:2379
INFO[Mar 9 19:11:37.129284172] HostPvtNW: 2886926336
INFO[Mar 9 19:11:37.130184557] Initializing ovsdriver
INFO[Mar 9 19:11:37.130223532] Received request to create new ovs switch bridge:contivVxlanBridge, localIP:172.20.0.113, fwdMode:bridge
FATA[Mar 9 19:11:37.130314147] Error connecting to OVS. Err: dial unix /var/run/openvswitch/db.sock: connect: no such file or directory
And I don't like vagrant for testing, I just want to install contiv by myself not using the shell scripts.
What should I do next? Install openvswith?
My environment
- Docker 1.13.1
- netplugin version: Version: 1.0.0-beta.3-03-08-2017.18-51-20.UTC
apt-get install openvcs I ran into other issues and haven't pursued it farther
On Mar 9, 2017 2:20 PM, "Jimmy Song" [email protected] wrote:
+1 @jonathan-kosgei https://github.com/jonathan-kosgei Have you solve the problem? I got the same problem with you, I manually install contiv on my test environment, I did't use virtual machine, I running 3 physical machines, one for netmaster.
netplugin -cluster-store etcd://172.20.0.113:2379 INFO[Mar 9 19:11:37.129284172] HostPvtNW: 2886926336 INFO[Mar 9 19:11:37.130184557] Initializing ovsdriver INFO[Mar 9 19:11:37.130223532] Received request to create new ovs switch bridge:contivVxlanBridge, localIP:172.20.0.113, fwdMode:bridge FATA[Mar 9 19:11:37.130314147] Error connecting to OVS. Err: dial unix /var/run/openvswitch/db.sock: connect: no such file or directory
And I don't like vagrant for testing, I just want to install contiv by myself not using the shell scripts. What should I do next? Install openvswith?
My environment
- Docker 1.13.1
- netplugin version: Version: 1.0.0-beta.3-03-08-2017.18-51-20.UTC
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/contiv/netplugin/issues/760#issuecomment-285325547, or mute the thread https://github.com/notifications/unsubscribe-auth/AGZuUnf1YUv9XVqIuzaR0DhaxDyNM9flks5rj-B9gaJpZM4MMJQw .
@jonathan-kosgei Got it, I install it with rpm package on CentOS7.2 follow this instructions:http://supercomputing.caltech.edu/blog/index.php/2016/05/03/open-vswitch-installation-on-centos-7-2/ Here it is not a problem any more.
Hi @rootsongjc were you able to plow through the manual install? Wish contiv had anything else other than ansible, would actually have been very happy with bash scripts :)