Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RDO tickets are now tracked in Jira https://issues.redhat.com/projects/RDO/issues/

Bug 2040215

Summary: New package request: ovn-bgp-agent
Product: [Community] RDO Reporter: Daniel Alvarez Sanchez <dalvarez>
Component: Package ReviewAssignee: Alfredo Moralejo <amoralej>
Status: CLOSED CURRENTRELEASE QA Contact: Alfredo Moralejo <amoralej>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: trunkCC: amoralej, jjoyce, jschluet, mburns, shrjoshi
Target Milestone: ---Flags: amoralej: rdo-review+
Target Release: trunk   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2043508 (view as bug list) Environment:
Last Closed: 2022-12-02 12:00:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2033345, 2043508    

Description Daniel Alvarez Sanchez 2022-01-13 09:23:40 UTC
This BZ is to track the creation of a new package ``ovn-bgp-agent`` that is an agent aimed to advertise BGP routes.

The current code includes an OpenStack driver but there's nothing that prevents to be used in the future by other products or even in a standalone mode just with OVN.


Code:
https://opendev.org/x/ovn-bgp-agent

Comment 1 Alfredo Moralejo 2022-01-13 09:34:44 UTC
License is valid ASL 2.0

Please, go ahead and request the new repo as described in https://www.rdoproject.org/documentation/add-packages/

[amoralej@faemino ovn-bgp-agent]$ licensecheck -r .
./.coveragerc: *No copyright* UNKNOWN
./.gitreview: *No copyright* UNKNOWN
./.mailmap: *No copyright* UNKNOWN
./.stestr.conf: *No copyright* UNKNOWN
./CONTRIBUTING.rst: *No copyright* UNKNOWN
./HACKING.rst: *No copyright* UNKNOWN
./LICENSE: GENERATED FILE
./README.rst: *No copyright* UNKNOWN
./lower-constraints.txt: *No copyright* UNKNOWN
./requirements.txt: *No copyright* UNKNOWN
./setup.cfg: *No copyright* UNKNOWN
./setup.py: Apache License 2.0 GENERATED FILE
./test-requirements.txt: *No copyright* UNKNOWN
./tox.ini: *No copyright* UNKNOWN
./doc/requirements.txt: *No copyright* UNKNOWN
./ovn_bgp_agent/__init__.py: *No copyright* Apache License 2.0
./ovn_bgp_agent/agent.py: Apache License 2.0
./ovn_bgp_agent/config.py: Apache License 2.0
./ovn_bgp_agent/constants.py: Apache License 2.0
./ovn_bgp_agent/exceptions.py: Apache License 2.0
./zuul.d/project.yaml: *No copyright* UNKNOWN
./doc/images/evpn_traffic_flow.png: UNKNOWN
./doc/images/networking-bgpvpn_integration.png: UNKNOWN
./doc/source/conf.py: *No copyright* Apache License 2.0
./doc/source/index.rst: *No copyright* UNKNOWN
./doc/source/readme.rst: *No copyright* UNKNOWN
./ovn_bgp_agent/cmd/agent.py: Apache License 2.0
./ovn_bgp_agent/drivers/driver_api.py: Apache License 2.0
./ovn_bgp_agent/privileged/__init__.py: Apache License 2.0
./ovn_bgp_agent/privileged/linux_net.py: Apache License 2.0
./ovn_bgp_agent/privileged/ovs_vsctl.py: Apache License 2.0
./ovn_bgp_agent/privileged/vtysh.py: Apache License 2.0
./ovn_bgp_agent/tests/base.py: Apache License 2.0
./ovn_bgp_agent/tests/test_ovn_bgp_agent.py: *No copyright* Apache License 2.0
./ovn_bgp_agent/utils/linux_net.py: Apache License 2.0
./releasenotes/source/conf.py: *No copyright* Apache License 2.0 GENERATED FILE
./releasenotes/source/index.rst: *No copyright* UNKNOWN
./releasenotes/source/unreleased.rst: *No copyright* UNKNOWN
./doc/source/contributor/bgp_mode_design.rst: *No copyright* UNKNOWN
./doc/source/contributor/evpn_mode_design.rst: *No copyright* UNKNOWN
./doc/source/contributor/index.rst: *No copyright* UNKNOWN
./ovn_bgp_agent/drivers/openstack/ovn_bgp_driver.py: Apache License 2.0
./ovn_bgp_agent/drivers/openstack/ovn_evpn_driver.py: Apache License 2.0
./ovn_bgp_agent/tests/unit/fakes.py: Apache License 2.0
./ovn_bgp_agent/tests/unit/test_agent.py: Apache License 2.0
./ovn_bgp_agent/drivers/openstack/utils/frr.py: Apache License 2.0
./ovn_bgp_agent/drivers/openstack/utils/ovn.py: Apache License 2.0
./ovn_bgp_agent/drivers/openstack/utils/ovs.py: Apache License 2.0
./ovn_bgp_agent/drivers/openstack/watchers/base_watcher.py: Apache License 2.0
./ovn_bgp_agent/drivers/openstack/watchers/bgp_watcher.py: Apache License 2.0
./ovn_bgp_agent/drivers/openstack/watchers/evpn_watcher.py: Apache License 2.0
./ovn_bgp_agent/tests/unit/cmd/test_agent.py: Apache License 2.0
./ovn_bgp_agent/tests/unit/drivers/openstack/utils/test_frr.py: Apache License 2.0
./ovn_bgp_agent/tests/unit/drivers/openstack/utils/test_ovn.py: Apache License 2.0
./ovn_bgp_agent/tests/unit/drivers/openstack/utils/test_ovs.py: Apache License 2.0

Comment 2 Alfredo Moralejo 2022-01-19 15:14:34 UTC
Package Review
==============

Legend:
[x] = Pass, [!] = Fail, [-] = Not applicable, [?] = Not evaluated
[ ] = Manual review needed


Issues:
=======
- If (and only if) the source package includes the text of the license(s)
  in its own file, then that file, containing the text of the license(s)
  for the package is included in %license.
  Note: License file license.png is not marked as %license
  See: https://docs.fedoraproject.org/en-US/packaging-
  guidelines/LicensingGuidelines/#_license_text
- systemd_post is invoked in %post, systemd_preun in %preun, and
  systemd_postun in %postun for Systemd service files.
  Note: Systemd service file(s) in ovn-bgp-agent
  See: https://docs.fedoraproject.org/en-US/packaging-
  guidelines/Scriptlets/#_scriptlets


===== MUST items =====

Generic:
[x]: Package is licensed with an open-source compatible license and meets
     other legal requirements as defined in the legal section of Packaging
     Guidelines.
[x]: License field in the package spec file matches the actual license.
     Note: Checking patched sources after %prep for licenses. Licenses
     found: "Unknown or generated", "*No copyright* Apache License 2.0",
     "Apache License 2.0". 36 files have unknown license. Detailed output
     of licensecheck in /tmp/borrame5/ovn-bgp-agent/licensecheck.txt
[x]: License file installed when any subpackage combination is installed.
[x]: Package contains no bundled libraries without FPC exception.
[-]: Changelog in prescribed format.
[x]: Sources contain only permissible code or content.
[x]: Macros in Summary, %description expandable at SRPM build time.
     Note: Macros in: ovn-bgp-agent-doc (description)
[-]: Package contains desktop file if it is a GUI application.
[-]: Development files must be in a -devel package
[x]: Package uses nothing in %doc for runtime.
[x]: Package consistently uses macros (instead of hard-coded directory
     names).
[x]: Package is named according to the Package Naming Guidelines.
[x]: Package does not generate any conflict.
[x]: Package obeys FHS, except libexecdir and /usr/target.
[-]: If the package is a rename of another package, proper Obsoletes and
     Provides are present.
[x]: Requires correct, justified where necessary.
[x]: Spec file is legible and written in American English.
[x]: Package contains systemd file(s) if in need.
[x]: Package is not known to require an ExcludeArch tag.
[x]: Package complies to the Packaging Guidelines
[x]: Package successfully compiles and builds into binary rpms on at least
     one supported primary architecture.
[x]: Package installs properly.
[x]: Rpmlint is run on all rpms the build produces.
     Note: There are rpmlint messages (see attachment).
[x]: Package requires other packages for directories it uses.
[x]: Package must own all directories that it creates.
[x]: Package does not own files or directories owned by other packages.
[x]: Package uses either %{buildroot} or $RPM_BUILD_ROOT
[x]: Package does not run rm -rf %{buildroot} (or $RPM_BUILD_ROOT) at the
     beginning of %install.
[x]: Dist tag is present.
[x]: Package does not contain duplicates in %files.
[x]: Permissions on files are set properly.
[x]: Package must not depend on deprecated() packages.
[x]: Package use %makeinstall only when make install DESTDIR=... doesn't
     work.
[x]: Package is named using only allowed ASCII characters.
[x]: Package does not use a name that already exists.
[x]: Package is not relocatable.
[x]: Sources used to build the package match the upstream source, as
     provided in the spec URL.
[x]: Spec file name must match the spec package %{name}, in the format
     %{name}.spec.
[x]: File names are valid UTF-8.
[x]: Large documentation must go in a -doc subpackage. Large could be size
     (~1MB) or number of files.
     Note: Documentation size is 0 bytes in 0 files.
[x]: Packages must not store files under /srv, /opt or /usr/local

Python:
[x]: Python eggs must not download any dependencies during the build
     process.
[x]: A package which is used by another package via an egg interface should
     provide egg info.
[x]: Package meets the Packaging Guidelines::Python
[x]: Package contains BR: python2-devel or python3-devel
[x]: Packages MUST NOT have dependencies (either build-time or runtime) on
     packages named with the unversioned python- prefix unless no properly
     versioned package exists. Dependencies on Python packages instead MUST
     use names beginning with python2- or python3- as appropriate.
[x]: Python packages must not contain %{pythonX_site(lib|arch)}/* in %files
[x]: Binary eggs must be removed in %prep

===== SHOULD items =====

Generic:
[x]: Avoid bundling fonts in non-fonts packages.
     Note: Package contains font files
[-]: If the source package does not include license text(s) as a separate
     file from upstream, the packager SHOULD query upstream to include it.
[x]: Final provides and requires are sane (see attachments).
[x]: Package functions as described.
[x]: Latest version is packaged.
[x]: Package does not include license text files separate from upstream.
[-]: SourceX tarball generation or download is documented.
     Note: Package contains tarball without URL, check comments
[x]: Sources are verified with gpgverify first in %prep if upstream
     publishes signatures.
     Note: gpgverify is not used.
[x]: Description and summary sections in the package spec file contains
     translations for supported Non-English languages, if available.
[x]: Package should compile and build into binary rpms on all supported
     architectures.
[x]: %check is present and all tests pass.
[x]: Packages should try to preserve timestamps of original installed
     files.
[x]: Spec use %global instead of %define unless justified.
     Note: %define requiring justification: %define upstream_version
     0.0.1.dev40
[x]: Reviewer should test that the package builds in mock.
[x]: Buildroot is not present
[x]: Package has no %clean section with rm -rf %{buildroot} (or
     $RPM_BUILD_ROOT)
[x]: No file requires outside of /etc, /bin, /sbin, /usr/bin, /usr/sbin.
[x]: Fully versioned dependency in subpackages if applicable.
[x]: Packager, Vendor, PreReq, Copyright tags should not be in spec file
[x]: SourceX is a working URL.

===== EXTRA items =====

Generic:
[x]: Rpmlint is run on all installed packages.
     Note: No rpmlint messages.


Rpmlint
-------
Checking: ovn-bgp-agent-0.0.1-0.20220119130306.0762a31.el9.noarch.rpm
          ovn-bgp-agent-doc-0.0.1-0.20220119130306.0762a31.el9.noarch.rpm
          ovn-bgp-agent-0.0.1-0.20220119130306.0762a31.el9.src.rpm
ovn-bgp-agent.noarch: E: no-changelogname-tag
ovn-bgp-agent.noarch: W: no-documentation
ovn-bgp-agent.noarch: W: no-manual-page-for-binary ovn-bgp-agent
ovn-bgp-agent-doc.noarch: W: unexpanded-macro %description -l C %{common_desc}
ovn-bgp-agent-doc.noarch: W: spelling-error %description -l en_US desc -> disc, desk, descry
ovn-bgp-agent-doc.noarch: E: no-changelogname-tag
ovn-bgp-agent-doc.noarch: W: wrong-file-end-of-line-encoding /usr/share/doc/ovn-bgp-agent-doc/html/objects.inv
ovn-bgp-agent-doc.noarch: W: file-not-utf8 /usr/share/doc/ovn-bgp-agent-doc/html/objects.inv
ovn-bgp-agent.src: E: no-changelogname-tag
ovn-bgp-agent.src: W: invalid-url Source0: ovn-bgp-agent-0.0.1.dev40-0.20220119130306.0762a31.tar.gz
3 packages and 0 specfiles checked; 3 errors, 7 warnings.




Rpmlint (installed packages)
----------------------------
(none): E: no installed packages by name ovn-bgp-agent
0 packages and 0 specfiles checked; 0 errors, 0 warnings.
(none): E: no installed packages by name ovn-bgp-agent-doc



Requires
--------
ovn-bgp-agent (rpmlib, GLIBC filtered):
    /bin/sh
    /usr/bin/python3
    frr
    openvswitch
    python3-jinja2
    python3-neutron-lib
    python3-openvswitch
    python3-oslo-concurrency
    python3-oslo-config
    python3-oslo-log
    python3-oslo-privsep
    python3-oslo-service
    python3-ovsdbapp
    python3-pbr
    python3-pyroute2
    python3-stevedore

ovn-bgp-agent-doc (rpmlib, GLIBC filtered):



Provides
--------
ovn-bgp-agent:
    ovn-bgp-agent

ovn-bgp-agent-doc:
    ovn-bgp-agent-doc



Generated by fedora-review 0.7.6 (b083f91) last change: 2020-11-10
Command line :/usr/bin/fedora-review -m centos-stream-9-cbs -rn ovn-bgp-agent-0.0.1-0.20220119130306.0762a31.el9.src.rpm
Buildroot used: centos-stream-9-x86_64
Active plugins: Shell-api, Generic, Python
Disabled plugins: PHP, Java, Haskell, R, SugarActivity, Perl, Ocaml, fonts, C/C++
Disabled flags: EPEL6, EPEL7, DISTTAG, BATCH, EXARCH

Package is APPROVED