Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Cloud:OpenStack:Zed
openstack-neutron-vsphere
openstack-neutron-vsphere.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File openstack-neutron-vsphere.spec of Package openstack-neutron-vsphere
# # spec file for package openstack-neutron-vsphere # # Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: openstack-neutron-vsphere Version: 2.0.1~dev170 Release: 0 Summary: OVSvApp and DVS VMware vSphere drivers for Neutron License: Apache-2.0 Group: Development/Languages/Python URL: https://docs.openstack.org/networking-vsphere Source0: networking-vsphere-master.tar.gz Source1: openstack-neutron-dvs-agent.service Source2: openstack-neutron-ovsvapp-agent.service Source3: openstack-neutron-ovsvapp-agent-monitor.service # https://review.opendev.org/#/c/671155/ Patch1: 0001-Switch-documentation-build-to-python3.patch BuildRequires: fdupes BuildRequires: openstack-macros BuildRequires: python3-devel BuildRequires: python3-nova BuildRequires: python39-Babel BuildRequires: python39-kombu BuildRequires: python39-mock BuildRequires: python39-oslo.vmware BuildRequires: python39-oslotest BuildRequires: python39-ovsdbapp BuildRequires: python39-pbr BuildRequires: python39-testrepository BuildRequires: python39-testresources BuildRequires: python39-testscenarios BuildRequires: python39-testtools Requires: python3-networking-vsphere = %{version}-%{release} BuildArch: noarch %if 0%{?suse_version} BuildRequires: systemd-rpm-macros %{?systemd_requires} %else BuildRequires: systemd Requires(post): systemd Requires(postun):systemd Requires(preun):systemd %endif %description Neutron ML2 drivers and L2 agents for OVSvApp - a Neutron supported solution for vSphere deployments in the form of a service VM called OVSvApp VM which steers the ESX tenant VMs' traffic through it. %package -n python3-networking-vsphere Summary: OVSvApp and DVS Drivers - Python libraries Requires: python39-Babel # NOTE(dmllr): Todo, need to unwind recursive dependencies #Requires: python3-neutron Requires: python3-nova Requires: python39-oslo.vmware Requires: python39-ovsdbapp %description -n python3-networking-vsphere The OVSvApp solution comprises of a service VM called OVSvApp VM hosted on each ESXi hypervisor within a cluster and two vSphere Distributed Switches (VDS). Two ML2 mechanism drivers are provided for Neutron - one for OVSvApp and another one for DVS. This package contains the Python libraries. %package dvs-agent Summary: DVS L2 agent for %{name} plugin Group: System/Management Requires: %{name} = %{version}-%{release} %description dvs-agent Contains the DVS L2 agent service for %{name} %package ovsvapp-agent Summary: OVSvApp agents for %{name} plugin Group: System/Management Requires: %{name} = %{version}-%{release} Requires: openvswitch %description ovsvapp-agent Contains the OVSvApp agent services for %{name} %package doc Summary: Documentation for %{name} Group: Documentation/HTML BuildRequires: python39-Sphinx %description doc This package contains extra documentation for %{name}. %package test Summary: Testsuite for the OVSvApp VMware Group: System/Management Requires: %{name} = %{version}-%{release} Requires: python39-kombu Requires: python39-mock Requires: python39-oslotest Requires: python39-testrepository Requires: python39-testresources Requires: python39-testscenarios Requires: python39-testtools %description test The testsuite for the VMware vSphere ML2 drivers for OpenStack Neutron %prep %autosetup -p1 -n networking-vsphere-2.0.1.dev170 %py_req_cleanup %build %{py3_build} PYTHONPATH=. PBR_VERSION=2.0.1.dev170 %sphinx_build -b html doc/source doc/build/html # remove the sphinx-build leftovers rm -rf doc/build/html/.{doctrees,buildinfo} %install %{py3_install} mv %{buildroot}%{_prefix}%{_sysconfdir} %{buildroot}%{_sysconfdir} install -p -D -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/openstack-neutron-dvs-agent.service install -p -D -m 644 %{SOURCE2} %{buildroot}%{_unitdir}/openstack-neutron-ovsvapp-agent.service install -p -D -m 644 %{SOURCE3} %{buildroot}%{_unitdir}/openstack-neutron-ovsvapp-agent-monitor.service chmod +x %{buildroot}%{python3_sitelib}/networking_vsphere/monitor/ovsvapp-agent-monitor.sh # Copy the drivers provided from python-networking-vsphere for # Nova. Apparently VMWare drivers are out of the Nova tree, and # maintained outside Nova, so we need to copy the provided driver. mkdir -p %{buildroot}%{python3_sitelib}/nova/virt/vmwareapi/ cp -a %{buildroot}%{python3_sitelib}/networking_vsphere/nova/virt/vmwareapi/ovsvapp_vc_driver.py* \ %{buildroot}%{python3_sitelib}/nova/virt/vmwareapi/ cp -a %{buildroot}%{python3_sitelib}/networking_vsphere/nova/virt/vmwareapi/ovsvapp_vmops.py* \ %{buildroot}%{python3_sitelib}/nova/virt/vmwareapi/ %fdupes %{buildroot}%{python3_sitelib} # %check # python2 setup.py testr %post dvs-agent %systemd_post openstack-neutron-dvs-agent.service %preun dvs-agent %systemd_preun openstack-neutron-dvs-agent.service %postun dvs-agent %systemd_postun_with_restart openstack-neutron-dvs-agent.service %post ovsvapp-agent %systemd_post openstack-neutron-ovsvapp-agent.service %systemd_post openstack-neutron-ovsvapp-agent-monitor.service %preun ovsvapp-agent %systemd_preun openstack-neutron-ovsvapp-agent-monitor.service %systemd_preun openstack-neutron-ovsvapp-agent.service %postun ovsvapp-agent %systemd_postun_with_restart openstack-neutron-ovsvapp-agent-monitor.service %systemd_postun_with_restart openstack-neutron-ovsvapp-agent.service %files %dir %{_sysconfdir}/neutron %dir %{_sysconfdir}/neutron/plugins %dir %{_sysconfdir}/neutron/plugins/ml2 %config(noreplace) %{_sysconfdir}/neutron/ml2_conf_vmware_dvs.ini %config(noreplace) %{_sysconfdir}/neutron/plugins/ml2/ovsvapp_agent.ini # Patch no longer required in nova stable/newton %exclude %{_prefix}%{_localstatedir}/tmp/nova.patch %{_bindir}/ovsvapp-manage-dvpg %{_bindir}/ovsvapp-manage-dvs %files -n python3-networking-vsphere %doc README.rst %license LICENSE %{python3_sitelib}/networking_vsphere %{python3_sitelib}/networking_vsphere-*.egg-info %{python3_sitelib}/nova/virt/vmwareapi/* # Part of test subpackage %exclude %{python3_sitelib}/networking_vsphere/tests %files dvs-agent %{_unitdir}/openstack-neutron-dvs-agent.service %{_bindir}/neutron-dvs-agent %files ovsvapp-agent %{_unitdir}/openstack-neutron-ovsvapp-agent.service %{_unitdir}/openstack-neutron-ovsvapp-agent-monitor.service %{_bindir}/neutron-ovsvapp-agent %{_bindir}/neutron-ovsvapp-agent-monitor %{_bindir}/neutron-ovsvapp-db-manage %files doc %license LICENSE %doc doc/build/html %files test %{python3_sitelib}/networking_vsphere/tests %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor