[ovs-discuss] Single nic server and ovn

2018-12-18 Thread Vasiliy Tolstov
Hi, i have some servers that have only one nic for network. As i understand
for ovn i need to add this interface to ovs bridge.
But for host access i need some ip address on server and also if ovs or ovn
is down or something else with this services i can't connect to server.
How to deal with such case? Or only one thing is to create localnet port in
ovn?
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] documentation improvements

2018-12-18 Thread Ben Pfaff
On Wed, Dec 19, 2018 at 01:08:47AM +, Davis, Matthew wrote:
> *What is the full list of possible types for a port? I know of 
> dpdkvhostuserclient, dpdkvhostuser and internal. What are the other types?

See ovs-vswitchd.conf.db(5).

> *Every bridge example I've seen has `datapath_type=netdev`. What 
> other datapath_types are there?

See ovs-vswitchd.conf.db(5).
 
> *How is the development process supposed to work? The site has a 
> "fork on github" button, but this 
> page
>  says to send patches via email, but it also says that Github submission are 
> the right way.

I'm pretty sure that page is all about how to send patches.  It starts
out with "Send changes to Open vSwitch as patches to
d...@openvswitch.org. One patch per email. More details are included
below."

I don't think there's any way to prevent forking on Github.

> *Where are logs saved? The docs don't say. After looking around I've 
> found that today it is /usr/local/var/log/openvswitch, but yesterday it was 
> /var/log/openvswitch . Why does it choose one of those locations over the 
> other?

The default is whatever you passed to configure with --with-logdir.  You
can override that at runtime with --log-file.

> *The "Basic configuration FAQ" talks about "access ports". What is an 
> "access port"? How does it differ from other kinds of ports?

See ovs-vswitchd.conf.db(5).

http://docs.openvswitch.org/en/latest/faq/vlan/ also has an introduction
to VLANs.

> Other documentation improvement ideas:
> 
> *There are two entries for `ovsdb` on this 
> page. They should be merged or 
> relabelled uniquely.

One is ovsdb(5), the other is ovsdb(7).  I don't know how to make the
rST compilation process distinguish them.

> *High level documents like Why 
> OVS
>  talk about accounting and visibility, but the docs provide almost no 
> instructions on how to actually get statistics out of OVS. There should be a 
> FAQ or guide about how to find out stats. E.g. I'm trying to find out what 
> the bottleneck in my system is, and nothing in the docs helps me find that 
> out.

You can use whatever you use for other OpenFlow switches.  OVS is an
OpenFlow implementation and it's not the primary goal of the
documentation to provide OpenFlow tutorials.

> *The "Basic configuration FAQ" should have a more basic example,

ovs-vsctl(8) has tons of simple configuration examples.  The FAQ is
really there to answer questions that we used to get a lot.

> *The logo up the top of the readthedocs page links to 
> https://openvswitch.org/ instead of https://www.openvswitch.org/ . 
> Consequently, the user is presented with a full page certificate error

Thanks, I think I've fixed that now.
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


[ovs-discuss] documentation improvements

2018-12-18 Thread Davis, Matthew
Hi,

My colleague and I are having some difficulty finding the information we need 
in the docs.
For example, the 
"terminology" page has 
only 2 entries.

Could someone please explain the following things, so that I can add them to 
the docs?


*What is the full list of possible types for a port? I know of 
dpdkvhostuserclient, dpdkvhostuser and internal. What are the other types?

*Every bridge example I've seen has `datapath_type=netdev`. What other 
datapath_types are there?

*How is the development process supposed to work? The site has a "fork 
on github" button, but this 
page
 says to send patches via email, but it also says that Github submission are 
the right way.

*Where are logs saved? The docs don't say. After looking around I've 
found that today it is /usr/local/var/log/openvswitch, but yesterday it was 
/var/log/openvswitch . Why does it choose one of those locations over the other?

*The "Basic configuration FAQ" talks about "access ports". What is an 
"access port"? How does it differ from other kinds of ports?

Other documentation improvement ideas:

*There are two entries for `ovsdb` on this 
page. They should be merged or 
relabelled uniquely.

*High level documents like Why 
OVS
 talk about accounting and visibility, but the docs provide almost no 
instructions on how to actually get statistics out of OVS. There should be a 
FAQ or guide about how to find out stats. E.g. I'm trying to find out what the 
bottleneck in my system is, and nothing in the docs helps me find that out.

*The "Basic configuration FAQ" should have a more basic example,

*The logo up the top of the readthedocs page links to 
https://openvswitch.org/ instead of https://www.openvswitch.org/ . 
Consequently, the user is presented with a full page certificate error

Thanks,


Matthew Davis
Technical Specialist
Telstra | Product Strategy & Innovation - Telstra Labs | Programmable 
Infrastructure
matthew.davi...@team.telstra.com


___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


[ovs-discuss] Mininet installation fails due to ovs-appctl: cannot connect to "/var/run/openvswitch/ovsdb-server.4301.ctl" (No such file or directory)

2018-12-18 Thread Daniel Nelle

Hi,

I am getting the following error while trying to install mininet (output 
below).


The whole problem started after I tried to install openvswitch according 
to the tutorial at 
http://docs.openvswitch.org/en/latest/intro/install/general/ hoping to 
get the userspace switch to work.


I retried the installation procedure using


./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc
and also starting the ovsdb-server with different paths provided via the 
--remote and --unixctl options.


The ideal outcome would be if I could simply run mininet with --switch 
ovsk and --switch user again. I realize that the mininet installation 
fails due to



/var/run/openvswitch/ovsdb-server.4301.ctl" (No such file or directory)
not being found. A similar file is created for one reason or another, 
but with the wrong pid in its name:



kurt@kurt-UX305LA:~$ ls /var/run/openvswitch/
ovsdb-server.2493.ctl  ovs-vswitchd.26682.ctl ovs-vswitchd.9499.ctl  
ovs-vswitchd.pid

kurt@kurt-UX305LA:~$ ls /usr/local/var/run/openvswitch/
ovsdb-server.pid  ovs-vswitchd.pid  sock.db

Any help would be much appreciated.

Best,

Daniel


Output when attempting to install mininet:


kurt@kurt-UX305LA:~$ sudo apt-get install mininet
Reading package lists... Done
Building dependency tree
Reading state information... Done
mininet is already the newest version (2.2.2-1).
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up openvswitch-switch (2.8.1-0ubuntu0.17.10.2) ...
update-alternatives: warning: forcing reinstallation of alternative 
/usr/lib/openvswitch-switch/ovs-vswitchd because link group 
ovs-vswitchd is broken
update-alternatives: warning: not replacing /usr/sbin/ovs-vswitchd 
with a link
A dependency job for openvswitch-switch.service failed. See 
'journalctl -xe' for details.

invoke-rc.d: initscript openvswitch-switch, action "start" failed.
● openvswitch-switch.service - Open vSwitch
   Loaded: loaded (/lib/systemd/system/openvswitch-switch.service; 
enabled; vendor preset: enabled)

   Active: inactive (dead)

Dez 18 22:46:20 kurt-UX305LA systemd[1]: Dependency failed for Open 
vSwitch.
Dez 18 22:46:20 kurt-UX305LA systemd[1]: openvswitch-switch.service: 
Job openvswitch-switch.service/start failed with result 'dependency'.
Dez 18 23:02:47 kurt-UX305LA systemd[1]: Dependency failed for Open 
vSwitch.
Dez 18 23:02:47 kurt-UX305LA systemd[1]: openvswitch-switch.service: 
Job openvswitch-switch.service/start failed with result 'dependency'.
Dez 18 23:04:18 kurt-UX305LA systemd[1]: Dependency failed for Open 
vSwitch.
Dez 18 23:04:18 kurt-UX305LA systemd[1]: openvswitch-switch.service: 
Job openvswitch-switch.service/start failed with result 'dependency'.
Dez 18 23:05:53 kurt-UX305LA systemd[1]: Dependency failed for Open 
vSwitch.
Dez 18 23:05:53 kurt-UX305LA systemd[1]: openvswitch-switch.service: 
Job openvswitch-switch.service/start failed with result 'dependency'.
Dez 18 23:29:47 kurt-UX305LA systemd[1]: Dependency failed for Open 
vSwitch.
Dez 18 23:29:47 kurt-UX305LA systemd[1]: openvswitch-switch.service: 
Job openvswitch-switch.service/start failed with result 'dependency'.

dpkg: error processing package openvswitch-switch (--configure):
 subprocess installed post-installation script returned error exit 
status 1

dpkg: dependency problems prevent configuration of mininet:
 mininet depends on openvswitch-switch; however:
  Package openvswitch-switch is not configured yet.

dpkg: error processing package mininet (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a 
followup error from a previous failure.

Errors were encountered while processing:
 openvswitch-switch
 mininet
E: Sub-process /usr/bin/dpkg returned an error code (1)



kurt@kurt-UX305LA:~$ journalctl -xe
-- Support: http://www.ubuntu.com/support
--
-- Unit openvswitch-nonetwork.service has begun starting up.
Dez 18 23:29:47 kurt-UX305LA ovs-ctl[4280]:  * Starting ovsdb-server
Dez 18 23:29:47 kurt-UX305LA ovs-vsctl[4302]: 
ovs|1|vsctl|INFO|Called as ovs-vsctl --no-wait -- init -- set 
Open_vSwitch . db-version=7.16.1
Dez 18 23:29:47 kurt-UX305LA ovs-vsctl[4307]: 
ovs|1|vsctl|INFO|Called as ovs-vsctl --no-wait set Open_vSwitch . 
ovs-version=2.10.90 "external-ids:system-id=\"32a08550-98be-4a6f-8008-ca3
Dez 18 23:29:47 kurt-UX305LA ovs-ctl[4280]:  * Configuring Open 
vSwitch system IDs
Dez 18 23:29:47 kurt-UX305LA ovs-ctl[4280]:  * ovs-vswitchd is already 
running
Dez 18 23:29:47 kurt-UX305LA ovs-ctl[4280]: 
2018-12-18T15:29:47Z|1|unixctl|WARN|failed to connect to 
/var/run/openvswitch/ovsdb-server.4301.ctl
Dez 18 23:29:47 kurt-UX305LA ovs-ctl[4280]: ovs-appctl: cannot connect 
to "/var/run/openvswitch/ovsdb-server.4301.ctl" (No such file or 
directory)
Dez 18 23:29:47 kurt-UX305LA systemd[1]: 

[ovs-discuss] add-flow based on dest-ip and dest-port

2018-12-18 Thread Sara Gittlin
Hello
can you give the correct syntax to use "ovs-ofctl add-flow" for packet
destined to ip=x and dest-port=y, the action should be output to port z
Thank you
-Sara
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss