Bug 1439595

Summary: New package: os-xenapi
Product: [Community] RDO Reporter: Javier Peña <jpena>
Component: Package ReviewAssignee: hguemar
Status: CLOSED NEXTRELEASE QA Contact: hguemar
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: trunkCC: amoralej, apevec, karlthered
Target Milestone: ---Flags: karlthered: 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: 2017-04-11 05:44:55 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: 1427510    

Description Javier Peña 2017-04-06 09:53:49 UTC
Description of problem:

os-xenapi is a XenAPI library for OpenStack projects. It is currently being used at least by Nova and Neutron, and has recently become a hard requirement for Neutron [1].

Additional information:

The official repository for the project is https://github.com/openstack/os-xenapi.

There is an initial spec available at https://jpena.fedorapeople.org/os-xenapi/python-os-xenapi.spec

[1] http://git.openstack.org/cgit/openstack/neutron/commit/?id=f9b9474e8cf17bac459a6bad4162efcda9be99c8

Comment 1 Alfredo Moralejo 2017-04-06 16:17:07 UTC
Output of licensecheck -r:

./.coveragerc: *No copyright* UNKNOWN
./.gitreview: *No copyright* UNKNOWN
./.mailmap: *No copyright* UNKNOWN
./.testr.conf: *No copyright* UNKNOWN
./CONTRIBUTING.rst: *No copyright* UNKNOWN
./HACKING.rst: *No copyright* UNKNOWN
./LICENSE: *No copyright* Apache (v2.0)
./MANIFEST.in: *No copyright* UNKNOWN
./Makefile: *No copyright* UNKNOWN
./README.rst: *No copyright* Apache
./babel.cfg: *No copyright* UNKNOWN
./exclusion_py3.txt: *No copyright* UNKNOWN
./requirements.txt: *No copyright* UNKNOWN
./setup.cfg: *No copyright* Apache
./setup.py: Apache (v2.0) GENERATED FILE
./test-requirements.txt: *No copyright* UNKNOWN
./tox.ini: *No copyright* UNKNOWN
./devstack/README.rst: *No copyright* UNKNOWN
./devstack/dom0_functions: *No copyright* UNKNOWN
./devstack/override-defaults: *No copyright* UNKNOWN
./devstack/plugin.sh: Apache (v2.0)
./os_xenapi/__init__.py: *No copyright* Apache (v2.0)
./tools/tox_install.sh: *No copyright* UNKNOWN
./doc/source/conf.py: *No copyright* Apache (v2.0)
./doc/source/contributing.rst: *No copyright* UNKNOWN
./doc/source/index.rst: *No copyright* UNKNOWN
./doc/source/installation.rst: *No copyright* UNKNOWN
./doc/source/readme.rst: *No copyright* UNKNOWN
./doc/source/usage.rst: *No copyright* UNKNOWN
./os_xenapi/client/XenAPI.py: Apache (v2.0)
./os_xenapi/client/exception.py: Apache (v2.0)
./os_xenapi/client/i18n.py: Apache (v2.0)
./os_xenapi/client/objects.py: Apache (v2.0)
./os_xenapi/client/session.py: Apache (v2.0)
./os_xenapi/dom0/README: *No copyright* UNKNOWN
./os_xenapi/dom0/xenapi-plugins.spec: *No copyright* UNKNOWN
./os_xenapi/tests/base.py: Apache (v2.0)
./os_xenapi/tests/test_os_xenapi.py: *No copyright* Apache (v2.0)
./releasenotes/source/conf.py: *No copyright* Apache (v2.0) GENERATED FILE
./releasenotes/source/index.rst: *No copyright* UNKNOWN
./releasenotes/source/unreleased.rst: *No copyright* UNKNOWN
./os_xenapi/tests/client/test_objects.py: *No copyright* Apache (v2.0)
./os_xenapi/tests/client/test_session.py: *No copyright* Apache (v2.0)
./os_xenapi/tests/plugins/plugin_test.py: Apache (v2.0)
./os_xenapi/tests/plugins/test_bandwidth.py: Apache (v2.0)
./os_xenapi/tests/plugins/test_dom0_plugin_version.py: Apache (v2.0)
./os_xenapi/tests/plugins/test_dom0_pluginlib.py: Apache (v2.0)
./os_xenapi/tests/plugins/test_partition_utils.py: Apache (v2.0)
./os_xenapi/dom0/etc/xapi.d/plugins/_bittorrent_seeder.py: Apache (v2.0)
./os_xenapi/dom0/etc/xapi.d/plugins/agent.py: Apache (v2.0)
./os_xenapi/dom0/etc/xapi.d/plugins/bandwidth.py: Apache (v2.0)
./os_xenapi/dom0/etc/xapi.d/plugins/bittorrent.py: Apache (v2.0)
./os_xenapi/dom0/etc/xapi.d/plugins/config_file.py: *No copyright* Apache (v2.0)
./os_xenapi/dom0/etc/xapi.d/plugins/console.py: *No copyright* Apache (v2.0)
./os_xenapi/dom0/etc/xapi.d/plugins/dom0_plugin_version.py: Apache (v2.0)
./os_xenapi/dom0/etc/xapi.d/plugins/dom0_pluginlib.py: Apache (v2.0)
./os_xenapi/dom0/etc/xapi.d/plugins/glance.py: Apache (v2.0)
./os_xenapi/dom0/etc/xapi.d/plugins/ipxe.py: Apache (v2.0)
./os_xenapi/dom0/etc/xapi.d/plugins/kernel.py: Apache (v2.0)
./os_xenapi/dom0/etc/xapi.d/plugins/migration.py: Apache (v2.0)
./os_xenapi/dom0/etc/xapi.d/plugins/netwrap.py: Apache (v2.0)
./os_xenapi/dom0/etc/xapi.d/plugins/partition_utils.py: Apache (v2.0)
./os_xenapi/dom0/etc/xapi.d/plugins/utils.py: Apache (v2.0)
./os_xenapi/dom0/etc/xapi.d/plugins/workarounds.py: Apache (v2.0)
./os_xenapi/dom0/etc/xapi.d/plugins/xenhost.py: Apache (v2.0)
./os_xenapi/dom0/etc/xapi.d/plugins/xenstore.py: Apache (v2.0)



License is valid: Apache v2.0

Comment 2 Haïkel Guémar 2017-04-10 23:57:25 UTC
Approved


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

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


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

Generic:
[x]: Package successfully compiles and builds into binary rpms on at least
     one supported primary architecture.
     Note: Using prebuilt packages
[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)". 34 files have unknown
     license. Detailed output of licensecheck in /home/hguemar/dist-git-
     delorean/centos-
     master/data/repos/39/c5/39c53f0aa9018d80167cc8dd373691cc243b763c_dev
     /review-python-os-xenapi/licensecheck.txt
[x]: License file installed when any subpackage combination is installed.
[x]: All build dependencies are listed in BuildRequires, except for any
     that are listed in the exceptions section of Packaging Guidelines.
     Note: Using prebuilt rpms.
[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]: Package complies to the Packaging Guidelines
[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 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]: 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]: Reviewer should test that the package builds in mock.
[x]: 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).
[-]: Fully versioned dependency in subpackages if applicable.
     Note: No Requires: %{name}%{?_isa} = %{version}-%{release} in python2
     -os-xenapi , python2-os-xenapi-tests , python-os-xenapi-doc
[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
[-]: 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.
[-]: Spec use %global instead of %define unless justified.
     Note: %define requiring justification: %define upstream_version
     0.1.2.dev12
[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.
     See: http://fedoraproject.org/wiki/Packaging/Guidelines#rpmlint
[x]: Spec file according to URL is the same as in SRPM.



Rpmlint
-------
Checking: python2-os-xenapi-0.1.2-0.20170410232351.39c53f0.el7.centos.noarch.rpm
          python2-os-xenapi-tests-0.1.2-0.20170410232351.39c53f0.el7.centos.noarch.rpm
          python-os-xenapi-doc-0.1.2-0.20170410232351.39c53f0.el7.centos.noarch.rpm
          python-os-xenapi-0.1.2-0.20170410232351.39c53f0.el7.centos.src.rpm
python2-os-xenapi.noarch: E: no-changelogname-tag
python2-os-xenapi.noarch: W: no-documentation
python2-os-xenapi-tests.noarch: E: no-changelogname-tag
python2-os-xenapi-tests.noarch: W: no-documentation
python-os-xenapi-doc.noarch: E: no-changelogname-tag
python-os-xenapi.src: E: no-changelogname-tag
python-os-xenapi.src: E: specfile-error Python detected LC_CTYPE=C: LC_ALL & LANG coerced to C.UTF-8 (set another locale or PYTHONCOERCECLOCALE=0 to disable this locale coercion behaviour).
python-os-xenapi.src: E: specfile-error Python detected LC_CTYPE=C: LC_ALL & LANG coerced to C.UTF-8 (set another locale or PYTHONCOERCECLOCALE=0 to disable this locale coercion behaviour).
python-os-xenapi.src: E: specfile-error Python detected LC_CTYPE=C: LC_ALL & LANG coerced to C.UTF-8 (set another locale or PYTHONCOERCECLOCALE=0 to disable this locale coercion behaviour).
python-os-xenapi.src: E: specfile-error Python detected LC_CTYPE=C: LC_ALL & LANG coerced to C.UTF-8 (set another locale or PYTHONCOERCECLOCALE=0 to disable this locale coercion behaviour).
python-os-xenapi.src: E: specfile-error Python detected LC_CTYPE=C: LC_ALL & LANG coerced to C.UTF-8 (set another locale or PYTHONCOERCECLOCALE=0 to disable this locale coercion behaviour).
4 packages and 0 specfiles checked; 9 errors, 2 warnings.




Requires
--------
python2-os-xenapi-tests (rpmlib, GLIBC filtered):
    python(abi)
    python-os-testr
    python-oslotest
    python-testrepository
    python-testscenarios
    python-testtools
    python2-os-xenapi

python-os-xenapi-doc (rpmlib, GLIBC filtered):

python2-os-xenapi (rpmlib, GLIBC filtered):
    python(abi)
    python-eventlet
    python-oslo-concurrency
    python-oslo-i18n
    python-oslo-log
    python-oslo-utils
    python-pbr
    python-six



Provides
--------
python2-os-xenapi-tests:
    python2-os-xenapi-tests

python-os-xenapi-doc:
    python-os-xenapi-doc

python2-os-xenapi:
    python-os-xenapi
    python2-os-xenapi



Generated by fedora-review 0.6.1 (f03e4e7) last change: 2016-05-02
Command line :/usr/bin/fedora-review -m rdo-pike-el7 --define DISTTAG=el7.centos -p -n python-os-xenapi
Buildroot used: cloud7-openstack-ocata-el7-build
Active plugins: Python, Generic, Shell-api
Disabled plugins: Java, C/C++, fonts, SugarActivity, Ocaml, Perl, Haskell, R, PHP
Disabled flags: EXARCH, EPEL5, BATCH, EPEL6