Ovn command line issue

Dear all I am running our project on ovirt api and i am facing issue on OVN network I've created a logical switch by ovn-nbctl ls-add SW switch in oVirt Network, but when i plug two vms in the above switch, ping is not working If I create OVN swich from ovirt GUI , it is working fine but my requirement is to create ovn network by my code please help me anybody i m stuck on this

On Fri, Mar 1, 2019 at 8:04 AM Akshita Jain <akshitajain.cis@gmail.com> wrote:
Dear all I am running our project on ovirt api and i am facing issue on OVN network I've created a logical switch by ovn-nbctl ls-add SW switch in oVirt Network, but when i plug two vms in the above switch, ping is not working If I create OVN swich from ovirt GUI , it is working fine but my requirement is to create ovn network by my code please help me anybody i m stuck on this
Hello, there is multiple ways how to automate creation of external (OVN) networks. First is the oVirt engine REST API [1]. Second is to use the ovirt-provider-ovn Neutron like REST API [2]. For the Neutron API just be aware that not everything is implemented by our provider. Hopefully it helps. Regards, Ales [1] http://ovirt.github.io/ovirt-engine-api-model/ [2] https://developer.openstack.org/api-ref/network/v2/index.html
_______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/WGHKXGYX2X6BOZ...
-- ALES MUSIL Associate Software Engineer - rhv network Red Hat EMEA <https://www.redhat.com/> amusil@redhat.com IM: amusil <https://red.ht/sig>

I want to use ovn-nbctl ls-add command on ovirt engine to create the switch but I'm not able to make communication between vms in switch created by above command. Please tell me the exact procedure or any command which can be used to create the switches by commands .

On Fri, 01 Mar 2019 08:30:18 -0000 "Akshita Jain" <akshitajain.cis@gmail.com> wrote:
I want to use ovn-nbctl ls-add command on ovirt engine to create the switch but I'm not able to make communication between vms in switch created by above command. Please tell me the exact procedure or any command which can be used to create the switches by commands .
You can create the logical network in oVirt and the underlying OVN switch in a single step via the oVirt's REST-API, please find an example in https://gist.github.com/dominikholler/be7286931c0ea26b14965a5f91783cd4 If you like to have more granularity in creating the OVN logical switch, you can create the OVN logical switch via OpenStack Networking API on the ovirt-provider-ovn and import the OpenStack network into oVirt as logical network by oVirt REST-API or automatic synchronization. If you prefer to use ansible, please find an example in https://github.com/oVirt/ovirt-system-tests/blob/master/network-suite-master... The python module 'openstack' can be used like this: import openstack cloud = openstack.connect(cloud='ovirt') cloud.create_network('ovn_net') The configuration if the python module 'openstack' is documented in https://docs.openstack.org/python-openstackclient/pike/configuration/index.h... e.g. a file clouds.yaml in the working directory with content similar to: clouds: ovirt: auth: auth_url: https://0.0.0.0:35357/v2.0 password: '123456' username: admin@internal verify: false should do the trick. Alternatively the configuration could be provided by the environment variables: OS_USERNAME, OS_PASSWORD, OS_AUTH_URL and OS_CACERT. The same configuration works for the OpenStack command line: openstack network create ovn_net Does this help you to avoid the usage of "ovn-nbctl ls-add"?
_______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/JYQUQICDPIU2YD...
participants (3)
-
Akshita Jain
-
Ales Musil
-
Dominik Holler