RDO tickets are now tracked in Jira https://issues.redhat.com/projects/RDO/issues/
Bug 1691314 - Package Review: cinderlib
Summary: Package Review: cinderlib
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RDO
Classification: Community
Component: Package Review
Version: trunk
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: trunk
Assignee: Alfredo Moralejo
QA Contact: hguemar
URL:
Whiteboard:
Depends On:
Blocks: RDO-STEIN
TreeView+ depends on / blocked
 
Reported: 2019-03-21 11:45 UTC by Gorka Eguileor
Modified: 2019-05-14 15:18 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-05-14 15:18:35 UTC
Embargoed:


Attachments (Terms of Use)

Description Gorka Eguileor 2019-03-21 11:45:40 UTC
cinderlib is a Python library for direct usage of Cinder Block Storage drivers
without the services.

Documentation: https://docs.openstack.org/cinderlib/
Repository: https://opendev.org/openstack/cinderlib

Link to spec: https://raw.githubusercontent.com/Akrog/cinderlib/rdo-rpm/rpm/cinderlib.spec
Link to SRPM: https://github.com/Akrog/cinderlib/raw/rdo-rpm/rpm/cinderlib-0.3.10.dev5-1.el7.centos.src.rpm


We can see 2 types of warnings when running rpmlint:

- Missing source

  Cinderlib releases up till now were done as an external project to OpenStack,
  so the only tarball available right now since the project became an OpenStack
  official project under the Cinder team is the one generated from master
  available at http://tarballs.openstack.org/cinderlib

  To generate the SRPM we used the one from master which corresponds to
  0.3.10.dev5.

- Missing docs

  The missing docs warning can be ignored, since there's a doc specific package
  that includes the HTML.

The rpmlint outputs are:

  $ rpmlint cinderlib.spec
  cinderlib.spec: W: invalid-url Source0: https://tarballs.openstack.org/cinderlib/cinderlib-0.3.10.dev5.tar.gz HTTP Error 404: Not Found
  0 packages and 1 specfiles checked; 0 errors, 1 warnings.

  $ rpmlint ../rpmbuild/SRPMS/cinderlib-0.3.10.dev5-1.el7.centos.src.rpm
  cinderlib.src: W: invalid-url Source0: https://tarballs.openstack.org/cinderlib/cinderlib-0.3.10.dev5.tar.gz HTTP Error 404: Not Found
  1 packages and 0 specfiles checked; 0 errors, 1 warnings.

  $ rpmlint ../rpmbuild/RPMS/noarch/*.rpm
  cinderlib-tests.noarch: W: no-documentation
  cinderlib-tests-functional.noarch: W: no-documentation
  cinderlib-tests-unit.noarch: W: no-documentation
  python2-cinderlib.noarch: W: no-documentation
  5 packages and 0 specfiles checked; 0 errors, 4 warnings.

Comment 1 Alfredo Moralejo 2019-03-29 08:37:29 UTC
licensecheck output:

$ licensecheck -r .
./.gitreview: *No copyright* UNKNOWN
./.stestr.conf: *No copyright* UNKNOWN
./.zuul.yaml: *No copyright* UNKNOWN
./CONTRIBUTING.rst: *No copyright* UNKNOWN
./DESCRIPTION.rst: *No copyright* Apache License (v2.0)
./HACKING.rst: *No copyright* UNKNOWN
./LICENSE: *No copyright* Apache License (v2.0)
./README.rst: *No copyright* Apache License (v2.0)
./babel.cfg: *No copyright* UNKNOWN
./lower-constraints.txt: *No copyright* UNKNOWN
./requirements.txt: *No copyright* UNKNOWN
./setup.cfg: *No copyright* Apache License
./setup.py: Apache License (v2.0) GENERATED FILE
./test-requirements.txt: *No copyright* UNKNOWN
./tox.ini: *No copyright* UNKNOWN
./cinderlib/__init__.py: Apache License (v2.0)
./cinderlib/cinderlib.py: Apache License (v2.0)
./cinderlib/exception.py: Apache License (v2.0)
./cinderlib/nos_brick.py: Apache License (v2.0)
./cinderlib/objects.py: Apache License (v2.0)
./cinderlib/serialization.py: Apache License (v2.0)
./cinderlib/workarounds.py: Apache License (v2.0)
./devstack/README.rst: *No copyright* UNKNOWN
./devstack/override-defaults: *No copyright* UNKNOWN
./devstack/plugin.sh: *No copyright* UNKNOWN
./devstack/settings: *No copyright* UNKNOWN
./doc/requirements.txt: *No copyright* UNKNOWN
./playbooks/cinder-gate-run.yaml: *No copyright* UNKNOWN
./playbooks/setup-ceph.yaml: Apache License (v2.0)
./playbooks/setup-lvm.yaml: Apache License (v2.0)
./tools/coding-checks.sh: *No copyright* UNKNOWN
./tools/fast8.sh: *No copyright* UNKNOWN
./tools/lvm-prepare.sh: *No copyright* UNKNOWN
./tools/virtualenv-sudo.sh: *No copyright* UNKNOWN
./cinderlib/cmd/cinder_cfg_to_python.py: Apache License (v2.0)
./cinderlib/cmd/cinder_to_yaml.py: Apache License (v2.0)
./cinderlib/persistence/__init__.py: Apache License (v2.0)
./cinderlib/persistence/base.py: Apache License (v2.0)
./cinderlib/persistence/dbms.py: Apache License (v2.0)
./cinderlib/persistence/memory.py: Apache License (v2.0)
./doc/source/Makefile: *No copyright* UNKNOWN
./doc/source/conf.py: *No copyright* GENERATED FILE
./doc/source/contributing.rst: *No copyright* UNKNOWN
./doc/source/index.rst: *No copyright* Apache License (v2.0)
./doc/source/installation.rst: *No copyright* UNKNOWN
./doc/source/limitations.rst: *No copyright* UNKNOWN
./doc/source/make.bat: *No copyright* UNKNOWN
./doc/source/usage.rst: *No copyright* UNKNOWN
./releasenotes/notes/cinderlib-a458b8e23b6d35f4.yaml: *No copyright* UNKNOWN
./releasenotes/source/conf.py: *No copyright* Apache License (v2.0)
./releasenotes/source/index.rst: *No copyright* UNKNOWN
./releasenotes/source/unreleased.rst: *No copyright* UNKNOWN
./cinderlib/tests/functional/base_tests.py: Apache License (v2.0)
./cinderlib/tests/functional/ceph.yaml: *No copyright* UNKNOWN
./cinderlib/tests/functional/lvm.yaml: *No copyright* UNKNOWN
./cinderlib/tests/functional/test_basic.py: Apache License (v2.0)
./cinderlib/tests/unit/base.py: Apache License (v2.0)
./cinderlib/tests/unit/test_cinderlib.py: Apache License (v2.0)
./cinderlib/tests/unit/utils.py: Apache License (v2.0)
./doc/source/_static/.placeholder: *No copyright* UNKNOWN
./doc/source/topics/backends.rst: *No copyright* UNKNOWN
./doc/source/topics/connections.rst: *No copyright* UNKNOWN
./doc/source/topics/initialization.rst: *No copyright* UNKNOWN
./doc/source/topics/metadata.rst: *No copyright* UNKNOWN
./doc/source/topics/serialization.rst: *No copyright* UNKNOWN
./doc/source/topics/snapshots.rst: *No copyright* UNKNOWN
./doc/source/topics/tracking.rst: *No copyright* UNKNOWN
./doc/source/topics/volumes.rst: *No copyright* UNKNOWN
./cinderlib/tests/unit/objects/test_connection.py: Apache License (v2.0)
./cinderlib/tests/unit/objects/test_snapshot.py: Apache License (v2.0)
./cinderlib/tests/unit/objects/test_volume.py: Apache License (v2.0)
./cinderlib/tests/unit/persistence/base.py: Apache License (v2.0)
./cinderlib/tests/unit/persistence/test_dbms.py: Apache License (v2.0)
./cinderlib/tests/unit/persistence/test_memory.py: Apache License (v2.0)

License is correct: Apache Software License v2.0

Comment 2 Alfredo Moralejo 2019-04-01 17:59:48 UTC
official review

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


===== 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: "*No copyright* Apache License (v2.0)", "*No copyright* Apache
     License", "Unknown or generated", "Apache License (v2.0)". 32 files
     have unknown license. Detailed output of licensecheck in /tmp/python-
     cinderlib/licensecheck.txt
[x]: 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:
[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.
[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.
[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.3.10.dev8
[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: python-cinderlib-doc-0.3.10-0.20190401151551.7b639d0.el7.noarch.rpm
          python-cinderlib-0.3.10-0.20190401151551.7b639d0.el7.src.rpm
python-cinderlib-doc.noarch: E: no-changelogname-tag
python-cinderlib.src: E: no-changelogname-tag
python-cinderlib.src: W: invalid-url Source0: cinderlib-0.3.10.dev8-0.20190401151551.7b639d0.tar.gz
2 packages and 0 specfiles checked; 2 errors, 1 warnings.




Rpmlint (installed packages)
----------------------------
python-cinderlib-doc.noarch: E: no-changelogname-tag
python-cinderlib-doc.noarch: W: invalid-url URL: https://docs.openstack.org/cinderlib/latest/ <urlopen error [Errno -2] Name or service not known>
1 packages and 0 specfiles checked; 1 errors, 1 warnings.



Requires
--------
python-cinderlib-doc (rpmlib, GLIBC filtered):



Provides
--------
python-cinderlib-doc:
    python-cinderlib-doc



Generated by fedora-review 0.6.1 (f03e4e7) last change: 2016-05-02
Command line :/usr/bin/fedora-review -m centos-7-dlrn -rn python-cinderlib-0.3.10-0.20190401151551.7b639d0.el7.src.rpm
Buildroot used: dlrn-centos7-x86_64
Active plugins: Python, Generic, Shell-api
Disabled plugins: Java, C/C++, fonts, SugarActivity, Ocaml, Perl, Haskell, R, PHP
Disabled flags: EXARCH, DISTTAG, EPEL5, BATCH, EPEL6

Package does not contain changelog as it's prepared for DLRN


Package is approved

Comment 3 Alfredo Moralejo 2019-05-14 15:18:35 UTC
cinderlib is in RDO since Stein.


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