Dear Numan,

Thanks for your patience, it really helps me a lot. And I run it successfully. but I still have some another questions in OVN usage, I am sorry to disturb you.

When I used the OVN in my system, I followed the setup.sh of env1 of OVN-Tutorial.md.

ovn-nbctl lswitch-add sw0
ovn-nbctl lport-add sw0 sw0-port1
ovn-nbctl lport-add sw0 sw0-port2

ovn-nbctl lport-set-addresses sw0-port1 00:00:00:00:00:01
ovn-nbctl lport-set-addresses sw0-port2 00:00:00:00:00:02

ovn-nbctl lport-set-port-security sw0-port1 00:00:00:00:00:01
ovn-nbctl lport-set-port-security sw0-port2 00:00:00:00:00:02

ovs-vsctl add-port br-int vnet0 -- set Interface vnet0 external_ids:iface-id=sw0-port1 ovs-vsctl add-port br-int vnet1 -- set Interface vnet1 external_ids:iface-id=sw0-port2

In this test, I have two VMs, and the "vnet0" and "vnet1" is the dev. but I find the OVN didn't work. whatever I do, if only the vnet0 and vnet1 are in a common OVS br, they always can communicate with each other. And i run " $ ovn-sbctl show", it didn't show anything. I guess in the last step, I didn't add the set options in the OVS.

I want to use the OVN to control the two VMs network(just like iptables to control the connection behaviors). But in the guide book and examples, they use it in sandbox and doesn't add any VMs, if possible, could you give me some guidance about the OVN usage with VMs please?

Could you help me? Anyway, thanks for your anwsers and patience, it is really helpful.

Best regards,
Troy

在 2016年04月22日 14:05, Numan Siddique 写道:


On Fri, Apr 22, 2016 at 7:32 AM, Troy <jlzh...@jlzhang.cn <mailto:jlzh...@jlzhang.cn>> wrote:

    Hi, Dear all,

    I want to use OVN in Ubuntu-14.04 without sandbox.

    In the topic before, Numan told me I should follow the OVN
    documents in the Openstack at this-
    
http://docs.openstack.org/developer/networking-ovn/deployment_integration_guide.html
    But this document only tells something about openstack.
    I just want to use OVN in Ubuntu and want it work like iptables.
    I install the ovn and ovs in Ubuntu. And I can find the ovn
    command in shell.
    But I still cannot run any ovn cmd. When I run "ovn-controller",
    it showed:

    root@troy-PC:/usr/local/etc/openvswitch# ovn-controller
    
2016-04-22T01:58:44Z|00001|reconnect|INFO|unix:/usr/local/var/run/openvswitch/db.sock:
    connecting...
    
2016-04-22T01:58:44Z|00002|reconnect|INFO|unix:/usr/local/var/run/openvswitch/db.sock:
    connected
    2016-04-22T01:58:44Z|00003|main|INFO|OVN OVSDB remote not
    specified.  Waiting...

    How can I start the database(north-database and sorth-database) ?
    Can anyone have any commands to run it correctly?

    I look forward your reply.
    Best Regards,
    Troy




​ Hi Troy,

In order for you to start ovn youself, you need to do the below

1. Create initial ovn nb and sb dbs using ovsdb-tool
$ovsdb-tool create /opt/stack/data/ovs/ovnnb.db /opt/stack/ovs/ovn/ovn-nb.ovsschema​
$ovsdb-tool create /opt/stack/data/ovs/ovnsb.db /opt/stack/ovs/ovn/ovn-sb.ovsschema​
​

  Please change the path as per your wish.

Refer this link for more information - https://github.com/openstack/networking-ovn/blob/master/devstack/plugin.sh#L193


2. Start ovsdb-servers.

3. Start ovn-northd and ovn-controller.

Refer this link on how to start these services - https://github.com/openstack/networking-ovn/blob/master/devstack/plugin.sh#L259

The script file devstack/plugin.sh has answers for all your questions I guess :).

Thanks
Numan



    _______________________________________________
    discuss mailing list
    discuss@openvswitch.org <mailto:discuss@openvswitch.org>
    http://openvswitch.org/mailman/listinfo/discuss



_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to