RDO tickets are now tracked in Jira https://issues.redhat.com/projects/RDO/issues/
Bug 1669749 - Package Review: python-octavia-lib
Summary: Package Review: python-octavia-lib
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RDO
Classification: Community
Component: Package Review
Version: trunk
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: trunk
Assignee: Yatin Karel
QA Contact: hguemar
URL:
Whiteboard:
Depends On:
Blocks: RDO-STEIN 1667892
TreeView+ depends on / blocked
 
Reported: 2019-01-26 17:09 UTC by Carlos Goncalves
Modified: 2020-07-23 10:54 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-07-23 10:54:46 UTC
Embargoed:
ykarel: rdo-review+


Attachments (Terms of Use)

Description Carlos Goncalves 2019-01-26 17:09:35 UTC
octavia-lib is a library to support Octavia provider drivers.

Documentation: https://docs.openstack.org/octavia-lib/
Repository: https://github.com/openstack/octavia-lib

https://cgoncalves.pt/trash/openstack/octavia/python-octavia-lib.spec
https://cgoncalves.pt/trash/openstack/octavia/python-octavia-lib-1.0.0-1.src.rpm

$ rpmlint python-octavia-lib-1.0.0-1.src.rpm 
1 packages and 0 specfiles checked; 0 errors, 0 warnings.

Comment 1 Yatin Karel 2019-01-31 06:34:40 UTC
[octavia-lib]$ licensecheck -r . |grep -v UNKNOWN
./LICENSE: *No copyright* Apache (v2.0)
./README.rst: *No copyright* Apache (v2.0)
./setup.cfg: *No copyright* Apache
./setup.py: Apache (v2.0) GENERATED FILE
./octavia_lib/__init__.py: *No copyright* Apache (v2.0)
./octavia_lib/i18n.py: *No copyright* Apache (v2.0)
./doc/source/conf.py: *No copyright* Apache (v2.0)
./octavia_lib/common/constants.py: Apache (v2.0)
./octavia_lib/hacking/checks.py: Apache (v2.0)
./releasenotes/source/conf.py: *No copyright* Apache (v2.0) GENERATED FILE
./octavia_lib/api/drivers/data_models.py: Apache (v2.0)
./octavia_lib/api/drivers/driver_lib.py: Apache (v2.0)
./octavia_lib/api/drivers/exceptions.py: Apache (v2.0)
./octavia_lib/api/drivers/provider_base.py: Apache (v2.0)
./octavia_lib/tests/unit/base.py: Apache (v2.0)
./octavia_lib/tests/unit/hacking/test_checks.py: Apache (v2.0)
./octavia_lib/tests/unit/api/drivers/test_data_models.py: Apache (v2.0)
./octavia_lib/tests/unit/api/drivers/test_driver_lib.py: Apache (v2.0)
./octavia_lib/tests/unit/api/drivers/test_exceptions.py: Apache (v2.0)
./octavia_lib/tests/unit/api/drivers/test_provider_base.py: Apache (v2.0)

License is ASL 2.0

Comment 2 Yatin Karel 2019-02-07 13:00:48 UTC
fedora-review is run against srpm:- https://logs.rdoproject.org/82/18682/3/check/legacy-DLRN-rpmbuild-fedora/b11ffe1/buildset/fedora/current/python-octavia-lib-1.0.1-0.20190207102544.7684657.fc28.src.rpm

The Fedora-review looks fine, package is ready to be APPROVED.


- Package has following issues which are justified:-
1) Spec use %global instead of %define unless justified: The automated tool: dlrn inserts it.
2) rpmlint Errors:- no-changelogname-tag, automated tool(dlrn) takes care of changelog

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:
  http://fedoraproject.org/wiki/Packaging/LicensingGuidelines#License_Text

--> "LICENSE" file is added in %license

===== 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: "Apache (v2.0)", "*No copyright* Apache", "Unknown or
     generated", "*No copyright* Apache (v2.0)". 37 files have unknown
     license. Detailed output of licensecheck in /tmp/python-octavia-
     lib/licensecheck.txt
[x]: License file installed when any subpackage combination is installed.
[-]: Package contains no bundled libraries without FPC exception.
[-]: Changelog in prescribed format.
[x]: Sources contain only permissible code or content.
[-]: 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.
[-]: 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]: All build dependencies are listed in BuildRequires, except for any
     that are listed in the exceptions section of Packaging Guidelines.
[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]: Macros in Summary, %description expandable at SRPM build time.
[x]: Dist tag is present.
[x]: Package does not contain duplicates in %files.
[x]: Permissions on files are set properly.
[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]: Binary eggs must be removed in %prep

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

Generic:
[-]: 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]: Fully versioned dependency in subpackages if applicable.
     Note: No Requires: %{name}%{?_isa} = %{version}-%{release} in python3
     -octavia-lib , python3-octavia-lib-tests , python-octavia-lib-doc
[x]: Package functions as described.
[x]: Latest version is packaged.
[x]: Package does not include license text files separate from upstream.
[x]: SourceX tarball generation or download is documented.
     Note: Package contains tarball without URL, check comments
[x]: Description and summary sections in the package spec file contains
     translations for supported Non-English languages, if available.
[?]: 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.
[!]: Spec use %global instead of %define unless justified.
     Note: %define requiring justification: %define upstream_version
     1.0.1.dev1
[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]: 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: There are rpmlint messages (see attachment).


Rpmlint
-------
Checking: python3-octavia-lib-1.0.1-0.20190207102544.7684657.fc28.noarch.rpm
          python3-octavia-lib-tests-1.0.1-0.20190207102544.7684657.fc28.noarch.rpm
          python-octavia-lib-doc-1.0.1-0.20190207102544.7684657.fc28.noarch.rpm
          python-octavia-lib-1.0.1-0.20190207102544.7684657.fc28.src.rpm
python3-octavia-lib.noarch: E: no-changelogname-tag
python3-octavia-lib.noarch: W: no-documentation
python3-octavia-lib-tests.noarch: E: no-changelogname-tag
python3-octavia-lib-tests.noarch: W: no-documentation
python-octavia-lib-doc.noarch: E: no-changelogname-tag
python-octavia-lib.src: E: no-changelogname-tag
python-octavia-lib.src: W: strange-permission python-octavia-lib.spec 600
python-octavia-lib.src: W: invalid-url Source0: octavia-lib-1.0.1.dev1-0.20190207102544.7684657.tar.gz
4 packages and 0 specfiles checked; 4 errors, 4 warnings.




Rpmlint (installed packages)
----------------------------
sh: /usr/bin/python: No such file or directory
python3-octavia-lib-tests.noarch: E: no-changelogname-tag
python3-octavia-lib-tests.noarch: W: invalid-url URL: https://docs.openstack.org/octavia-lib/ <urlopen error [Errno -2] Name or service not known>
python3-octavia-lib-tests.noarch: W: no-documentation
python3-octavia-lib.noarch: E: no-changelogname-tag
python3-octavia-lib.noarch: W: invalid-url URL: https://docs.openstack.org/octavia-lib/ <urlopen error [Errno -2] Name or service not known>
python3-octavia-lib.noarch: W: no-documentation
python-octavia-lib-doc.noarch: E: no-changelogname-tag
python-octavia-lib-doc.noarch: W: invalid-url URL: https://docs.openstack.org/octavia-lib/ <urlopen error [Errno -2] Name or service not known>
3 packages and 0 specfiles checked; 3 errors, 5 warnings.



Requires
--------
python3-octavia-lib-tests (rpmlib, GLIBC filtered):
    python(abi)
    python3-octavia-lib

python3-octavia-lib (rpmlib, GLIBC filtered):
    python(abi)
    python3-oslo-i18n
    python3-oslo-log
    python3-oslo-serialization
    python3-oslo-utils
    python3-pbr
    python3-six

python-octavia-lib-doc (rpmlib, GLIBC filtered):



Provides
--------
python3-octavia-lib-tests:
    python3-octavia-lib-tests

python3-octavia-lib:
    python3-octavia-lib
    python3.6dist(octavia-lib)
    python3dist(octavia-lib)

python-octavia-lib-doc:
    python-octavia-lib-doc

Comment 3 Yatin Karel 2020-07-23 10:54:46 UTC
Package available since stein.


Note You need to log in before you can comment on or make changes to this bug.