!1 Package Init

Merge pull request !1 from Sindweller/openEuler1.0-base
This commit is contained in:
openeuler-ci-bot 2020-05-26 10:50:06 +08:00 committed by Gitee
commit bd315d4fc8
4 changed files with 167 additions and 57 deletions

View File

@ -1,22 +1,7 @@
# ovirt-provider-ovn
# oVirt external network provider for OVN
#### Description
{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**}
#### Software Architecture
Software architecture description
#### Installation
1. xxxx
2. xxxx
3. xxxx
#### Instructions
1. xxxx
2. xxxx
3. xxxx
The oVirt external network provider for OVN allows to integrate oVirt with the Open vSwitch Open Virtual Network (OVN) solution. OVN is a Software Defined Networking extension to Open vSwitch. OVN is integrated into oVirt using oVirts external network API, which is a subset of the OpenStack Networking API v2.0 and the OpenStack Identity API v2.0. The oVirt provider for OVN serves as a proxy between oVirt engine and OVN Northbound Database. This role is called a "Cloud Management System (CMS) Plugin" in the OVN documentation.
#### Contribution
@ -24,13 +9,3 @@ Software architecture description
2. Create Feat_xxx branch
3. Commit your code
4. Create Pull Request
#### Gitee Feature
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
4. The most valuable open source project [GVP](https://gitee.com/gvp)
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

View File

@ -1,25 +1,8 @@
# ovirt-provider-ovn
# oVirt external network provider for OVN
#### 介绍
{**以下是码云平台说明,您可以替换此简介**
码云是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN。专为开发者提供稳定、高效、安全的云端软件开发协作平台
无论是个人、团队、或是企业,都能够用码云实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)}
#### 软件架构
软件架构说明
#### 安装教程
1. xxxx
2. xxxx
3. xxxx
#### 使用说明
1. xxxx
2. xxxx
3. xxxx
oVirt的外部网络提供了将Open vSwitch Open Virtual Network (OVN)集成到oVirt的解决方案。
OVN是一款支持Open vSwitch的虚拟网络扩展软件。OVN通过oVirt外部网络APIOpenStack Networking API v2.0和OpenStack Identity API v2.0的一个子集集成到oVirt中。oVirt为oVirt引擎与OVN Northbound数据库之间提供代理服务。这个角色在OVN文档中称为“云管理系统CMS插件”。
#### 参与贡献
@ -27,13 +10,3 @@
2. 新建 Feat_xxx 分支
3. 提交代码
4. 新建 Pull Request
#### 码云特技
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

Binary file not shown.

162
ovirt-provider-ovn.spec Normal file
View File

@ -0,0 +1,162 @@
# Copyright 2016 Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#
# Refer to the README and COPYING files for full details of the license
%define __spec_install_post %{nil}
%define debug_package %{nil}
%define __os_install_post %{_dbpath}/brp-compress
# define the python package prefix based on distribution version
# this is needed to require a correct python-openvswitch package:
# python-openvswitch or python3-openvswitch for fedora >=28 or
# el >= 8
%if 0%{?fedora} >= 30 || 0%{?rhel} >= 8
%global required_python python%{python3_pkgversion}
%global required_python_interpreter %{__python3}
%define required_python_lib(l:) python%{python3_pkgversion}-%{*}
%global required_python_sitelib %{python3_sitelib}
%else
%global required_python python
%global required_python_interpreter %{__python2}
%global required_python_sitelib %{python2_sitelib}
%define required_python_lib(l:) %{-l*}%{*}
%endif
%global required_ovs_lib %{required_python_lib -l python- openvswitch}
%global required_six_lib %{required_python_lib -l python- six}
%global required_ovsdbapp_lib %{required_python_lib -l python- ovsdbapp}
%global required_requests_lib %{required_python_lib -l python- requests}
%global required_netaddr_lib %{required_python_lib -l python- netaddr}
%global required_python_devel %{required_python_lib -l python- devel}
%global required_python_setup_tools %{required_python_lib -l python- setuptools}
Name: ovirt-provider-ovn
Version: 1.2.29
Release: 1%{?dist}
Summary: The oVirt external network provider for OVN
License: GPLv2+
BuildArch: noarch
URL: https://gerrit.ovirt.org/#/admin/projects/ovirt-provider-ovn
Source0: %{name}-%{version}.tar.gz
Requires: firewalld-filesystem
Requires: kernel >= 3.10.0-512
Requires: openvswitch >= 0:2.7
Requires: openvswitch-ovn-central >= 0:2.7
Requires: openvswitch-ovn-common >= 0:2.7
Requires: %{required_ovs_lib} >= 0:2.7
Conflicts: openvswitch = 1:2.6.1
Conflicts: openvswitch-ovn-central = 1:2.6.1
Conflicts: openvswitch-ovn-common = 1:2.6.1
Conflicts: %{required_ovs_lib} = 1:2.6.1
Requires: %{required_requests_lib}
Requires: %{required_netaddr_lib}
Requires: %{required_ovsdbapp_lib}
Requires: %{required_six_lib}
BuildRequires: %{required_python}
BuildRequires: %{required_python_devel}
BuildRequires: %{required_python_setup_tools}
BuildRequires: systemd
%prep
%setup -q
%build
%install
rm -rf $RPM_BUILD_ROOT
%make_install PYTHON="%{required_python_interpreter}"
%description
The oVirt external network provider for OVN allows to integrate oVirt with the
Open vSwitch Open Virtual Network (OVN) solution. OVN is a Software Defined
Networking extension to Open vSwitch. OVN is integrated into oVirt using the
external network API. The oVirt provider for OVN serves as a proxy between
oVirt engine and OVN Northbound DB.
%post
%systemd_post ovirt-provider-ovn.service
%preun
%systemd_preun ovirt-provider-ovn.service
%postun
%systemd_postun_with_restart ovirt-provider-ovn.service
%package driver
Summary: The virtual interface driver for oVirt external network provider for OVN
License: GPLv2+
BuildArch: noarch
Requires: firewalld-filesystem
Requires: kernel >= 3.10.0-512
Requires: openvswitch >= 0:2.7
Requires: openvswitch-ovn-host >= 0:2.7
Requires: openvswitch-ovn-common >= 0:2.7
Requires: %{required_ovs_lib} >= 0:2.7
Conflicts: openvswitch = 1:2.6.1
Conflicts: openvswitch-ovn-host = 1:2.6.1
Conflicts: openvswitch-ovn-common = 1:2.6.1
Conflicts: %{required_ovs_lib} = 1:2.6.1
Requires: vdsm
Requires(post): firewalld-filesystem
BuildRequires: %{required_python}
BuildRequires: %{required_python_devel}
BuildRequires: %{required_python_setup_tools}
BuildRequires: systemd
%description driver
The virtual interface driver for oVirt external network provider for OVN.
The driver handles the connection of virtual NICs provisioned on oVirt hosts
to OVN.
%files
%config(noreplace) %{_sysconfdir}/ovirt-provider-ovn
%config(noreplace) %{_sysconfdir}/logrotate.d/ovirt-provider-ovn
%{_datadir}/ovirt-provider-ovn
%{_unitdir}/ovirt-provider-ovn.service
/usr/lib/firewalld/services/ovirt-provider-ovn.xml
%doc /usr/share/doc/ovirt-provider-ovn/README.adoc
%license LICENSE
%files driver
%{_libexecdir}/vdsm/hooks/before_nic_hotplug/
%{_libexecdir}/vdsm/hooks/before_device_create/
%{_libexecdir}/vdsm/hooks/after_get_caps/
%{_libexecdir}/vdsm/hooks/after_vm_destroy/
%{_libexecdir}/vdsm/vhostuser_permissions_setter
%{_libexecdir}/ovirt-provider-ovn
%{required_python_sitelib}/vdsm/tool/
%{_sysconfdir}/sudoers.d/50_vdsm_hook_ovirt_provider_ovn_hook
%license LICENSE
%changelog
* Thu Mar 5 2020 di.wang <di.wang@cs2c.com.cn> - 1.2.29-1
- Package Initialization