[ovirt-users] Re: Ovn command line issue

2019-03-04 Thread Akshita Jain
Thanks a lot Dominik, it solved the above issue.
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@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/UESYQRL7QFWBPPCYQ4KKOACH4LLH7RPH/


[ovirt-users] Re: Ovn command line issue

2019-03-01 Thread Dominik Holler
On Fri, 01 Mar 2019 08:30:18 -
"Akshita Jain"  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/ansible/roles/create-ovn-entities/tasks/main.yml

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.html
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-le...@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/JYQUQICDPIU2YD57OKTLBXIRNWQVT2JH/
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@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/R5TWCIVFKTYKQR4AGYKDN7IDJCLFMWB3/


[ovirt-users] Re: Ovn command line issue

2019-03-01 Thread Akshita Jain
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 .
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@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/JYQUQICDPIU2YD57OKTLBXIRNWQVT2JH/


[ovirt-users] Re: Ovn command line issue

2019-03-01 Thread Ales Musil
On Fri, Mar 1, 2019 at 8:04 AM Akshita Jain 
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-le...@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/WGHKXGYX2X6BOZAVV7J72DMOG6EJ4SS2/
>


-- 

ALES MUSIL
Associate Software Engineer - rhv network

Red Hat EMEA 


amu...@redhat.com   IM: amusil

___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@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/CRA72QCADNYD4ETNERV4R6OIDT4OMPCK/