Bug 1633832

Summary: Package Review: ansible-role-chrony
Product: [Community] RDO Reporter: Alex Schultz <aschultz>
Component: Package ReviewAssignee: Javier Peña <jpena>
Status: CLOSED RAWHIDE QA Contact: hguemar
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: trunkCC: jpena
Target Milestone: ---Flags: jpena: 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: Environment:
Last Closed: 2019-04-25 14:41:04 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:

Description Alex Schultz 2018-09-27 20:42:55 UTC
Package ansible-role-chrony is an ansible role to manage chrony

ansible-role-chrony is part of OpenStack (under the TripleO umbrella): https://review.openstack.org/#/admin/projects/openstack/ansible-role-chrony

Git repository: http://git.openstack.org/cgit/openstack/ansible-role-chrony

Comment 1 Alex Schultz 2018-09-27 22:25:12 UTC
Created an initial spec for use with DLRN here: https://github.com/mwhahaha/ansible-role-chrony-distgit/blob/master/ansible-role-chrony.spec

Comment 2 Javier Peña 2018-10-04 16:39:07 UTC
Initial licensecheck output:

$ licensecheck -r .
./.gitreview: *No copyright* UNKNOWN
./LICENSE: *No copyright* Apache (v2.0)
./README.rst: *No copyright* UNKNOWN
./ansible-requirements.txt: *No copyright* UNKNOWN
./ansible.cfg: *No copyright* UNKNOWN
./install.yml: *No copyright* UNKNOWN
./requirements.txt: *No copyright* UNKNOWN
./setup.cfg: *No copyright* Apache
./setup.py: Apache (v2.0)
./test-requirements.txt: *No copyright* UNKNOWN
./tox.ini: *No copyright* UNKNOWN
./ci-scripts/ansible-lint.sh: *No copyright* UNKNOWN
./defaults/main.yml: *No copyright* UNKNOWN
./handlers/main.yml: *No copyright* UNKNOWN
./meta/main.yml: *No copyright* UNKNOWN
./tasks/config.yml: *No copyright* UNKNOWN
./tasks/install.yml: *No copyright* UNKNOWN
./tasks/main.yml: *No copyright* UNKNOWN
./tasks/upgrade.yml: *No copyright* UNKNOWN
./templates/chrony.conf.j2: *No copyright* UNKNOWN
./tests/all.yml: *No copyright* UNKNOWN
./tests/config.yml: *No copyright* UNKNOWN
./tests/install.yml: *No copyright* UNKNOWN
./tests/inventory.yml: *No copyright* UNKNOWN
./tests/upgrade.yml: *No copyright* UNKNOWN
./vars/RedHat.yml: *No copyright* UNKNOWN
./vars/default.yml: *No copyright* UNKNOWN
./zuul.d/layout.yaml: *No copyright* UNKNOWN

The project is licensed using ASL 2.0

Comment 4 Javier Peña 2018-10-05 15:51:59 UTC
Review notes:

- The notes about tarball generation and %define requiring justification are expected, since the SRPM was created by DLRN.

The package is APPROVED.

Package Review
==============

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



===== 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)". 32 files have unknown
     license. Detailed output of licensecheck in /tmp/ansible-role-
     chrony/licensecheck.txt
[x]: Package requires other packages for directories it uses.
     Note: No known owner of /usr/share/ansible
[x]: Package must own all directories that it creates.
     Note: Directories without known owners: /usr/share/ansible,
     /usr/lib/python2.7, /usr/lib/python2.7/site-packages
[x]: Package contains no bundled libraries without FPC exception.
[x]: 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]: Large documentation must go in a -doc subpackage. Large could be size
     (~1MB) or number of files.
     Note: Documentation size is 10240 bytes in 1 files.
[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]: 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.
[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]: Packages must not store files under /srv, /opt or /usr/local

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

Generic:
[-]: 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.
[-]: %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.dev4
[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: ansible-role-chrony-0.0.1-0.20181004225854.3257982.el7.noarch.rpm
          ansible-role-chrony-0.0.1-0.20181004225854.3257982.el7.src.rpm
ansible-role-chrony.noarch: E: no-changelogname-tag
ansible-role-chrony.src: E: no-changelogname-tag
ansible-role-chrony.src: W: invalid-url Source0: ansible-role-chrony-0.0.1.dev4-0.20181004225854.3257982.tar.gz
2 packages and 0 specfiles checked; 2 errors, 1 warnings.




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



Requires
--------
ansible-role-chrony (rpmlib, GLIBC filtered):
    ansible



Provides
--------
ansible-role-chrony:
    ansible-role-chrony



Generated by fedora-review 0.6.1 (f03e4e7) last change: 2016-05-02
Command line :/usr/bin/fedora-review -m dlrn -n ansible-role-chrony -r
Buildroot used: dlrn-centos7-x86_64
Active plugins: Generic, Shell-api
Disabled plugins: Java, C/C++, Python, fonts, SugarActivity, Ocaml, Perl, Haskell, R, PHP
Disabled flags: EXARCH, DISTTAG, EPEL5, BATCH, EPEL6

Comment 5 Javier Peña 2019-04-25 14:41:04 UTC
The package has been present in RDO Trunk for a while, closing the bug.