RDO tickets are now tracked in Jira https://issues.redhat.com/projects/RDO/issues/
Bug 1666259 - New package: sahara-plugin-ambari
Summary: New package: sahara-plugin-ambari
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RDO
Classification: Community
Component: Package Review
Version: trunk
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: ---
: trunk
Assignee: Yatin Karel
QA Contact: hguemar
URL:
Whiteboard:
Depends On:
Blocks: RDO-STEIN
TreeView+ depends on / blocked
 
Reported: 2019-01-15 11:12 UTC by Luigi Toscano
Modified: 2020-07-23 10:57 UTC (History)
2 users (show)

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


Attachments (Terms of Use)

Description Luigi Toscano 2019-01-15 11:12:05 UTC
Sahara recently split its plugins from sahara.git. Each plugin allows Sahara to interact (provision, run jobs) with a different Hadoop/Big data provider.

The code of each plugin is a subset of code which was already part of Sahara.

This review focuses on the Ambari plugin for Sahara:

https://git.openstack.org/cgit/openstack/ssahara-plugin-ambari

Comment 1 Yatin Karel 2019-01-18 10:23:27 UTC
Source code is in https://git.openstack.org/openstack/sahara-plugin-ambari

$ 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
./sahara_plugin_ambari/i18n.py: Apache (v2.0)
./doc/source/conf.py: *No copyright* GENERATED FILE
./releasenotes/source/conf.py: *No copyright* Apache (v2.0)
./sahara_plugin_ambari/tests/__init__.py: Apache (v2.0)
./sahara_plugin_ambari/utils/patches.py: Apache (v2.0) GENERATED FILE
./sahara_plugin_ambari/plugins/ambari/client.py: Apache (v2.0)
./sahara_plugin_ambari/plugins/ambari/common.py: Apache (v2.0)
./sahara_plugin_ambari/plugins/ambari/configs.py: Apache (v2.0)
./sahara_plugin_ambari/plugins/ambari/deploy.py: Apache (v2.0)
./sahara_plugin_ambari/plugins/ambari/edp_engine.py: Apache (v2.0)
./sahara_plugin_ambari/plugins/ambari/ha_helper.py: Apache (v2.0)
./sahara_plugin_ambari/plugins/ambari/health.py: Apache (v2.0)
./sahara_plugin_ambari/plugins/ambari/plugin.py: Apache (v2.0)
./sahara_plugin_ambari/plugins/ambari/requests_helper.py: Apache (v2.0)
./sahara_plugin_ambari/plugins/ambari/validation.py: Apache (v2.0)
./sahara_plugin_ambari/tests/unit/base.py: Apache (v2.0)
./sahara_plugin_ambari/plugins/ambari/resources/configs-2.5.json: Apache (v2.0)
./sahara_plugin_ambari/plugins/ambari/resources/configs-2.6.json: Apache (v2.0)
./sahara_plugin_ambari/plugins/ambari/resources/generate_config.py: Apache (v2.0)
./sahara_plugin_ambari/tests/unit/plugins/ambari/test_client.py: Apache (v2.0)
./sahara_plugin_ambari/tests/unit/plugins/ambari/test_common.py: Apache (v2.0)
./sahara_plugin_ambari/tests/unit/plugins/ambari/test_configs.py: Apache (v2.0)
./sahara_plugin_ambari/tests/unit/plugins/ambari/test_deploy.py: Apache (v2.0)
./sahara_plugin_ambari/tests/unit/plugins/ambari/test_ha_helper.py: Apache (v2.0)
./sahara_plugin_ambari/tests/unit/plugins/ambari/test_health.py: Apache (v2.0)
./sahara_plugin_ambari/tests/unit/plugins/ambari/test_open_ports.py: Apache (v2.0)
./sahara_plugin_ambari/tests/unit/plugins/ambari/test_plugin.py: Apache (v2.0)
./sahara_plugin_ambari/tests/unit/plugins/ambari/test_requests_helper.py: Apache (v2.0)
./sahara_plugin_ambari/tests/unit/plugins/ambari/test_validation.py: Apache (v2.0)


License is ASL 2.0

Comment 2 Yatin Karel 2019-01-30 12:30:47 UTC
fedora-review is run against srpm:- https://logs.rdoproject.org/76/18376/5/check/legacy-DLRN-rpmbuild-fedora/0ca872b/buildset/fedora/current/python-sahara-plugin-ambari-0.0.1-0.20190123101330.22bde83.fc28.src.rpm

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


- Package has following issues which are justified:-
1) %check is present and all test pass:- is waiting for package: "sahara" to remove the plugin
2) Spec use %global instead of %define unless justified: The automated tool: dlrn inserts it.
3) rpmlint Errors:- non-executable-script and wrong-script-interpreter, these scripts are
   installed with package, but are not used directly, the service uses it during deployment.
4) 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)". 40 files have unknown
     license. Detailed output of licensecheck in /tmp/python-sahara-plugin-
     ambari/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]: 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]: 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]: 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
     -sahara-plugin-ambari , python3-sahara-plugin-ambari-tests-unit ,
     python-sahara-plugin-ambari-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
[-]: 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.0.1.dev3048
[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-sahara-plugin-ambari-0.0.1-0.20190123101330.22bde83.fc28.noarch.rpm
          python3-sahara-plugin-ambari-tests-unit-0.0.1-0.20190123101330.22bde83.fc28.noarch.rpm
          python-sahara-plugin-ambari-doc-0.0.1-0.20190123101330.22bde83.fc28.noarch.rpm
          python-sahara-plugin-ambari-0.0.1-0.20190123101330.22bde83.fc28.src.rpm
python3-sahara-plugin-ambari.noarch: E: no-changelogname-tag
python3-sahara-plugin-ambari.noarch: E: wrong-script-interpreter /usr/lib/python3.6/site-packages/sahara_plugin_ambari/plugins/ambari/resources/images/centos/disable_ambari /usr/bin/env bash
python3-sahara-plugin-ambari.noarch: E: non-executable-script /usr/lib/python3.6/site-packages/sahara_plugin_ambari/plugins/ambari/resources/images/centos/disable_ambari 644 /usr/bin/env bash
python3-sahara-plugin-ambari.noarch: E: non-executable-script /usr/lib/python3.6/site-packages/sahara_plugin_ambari/plugins/ambari/resources/images/centos/disable_certificate_check 644 /bin/bash 
python3-sahara-plugin-ambari.noarch: E: non-executable-script /usr/lib/python3.6/site-packages/sahara_plugin_ambari/plugins/ambari/resources/images/centos/disable_firewall 644 /bin/bash 
python3-sahara-plugin-ambari.noarch: E: non-executable-script /usr/lib/python3.6/site-packages/sahara_plugin_ambari/plugins/ambari/resources/images/centos/disable_selinux 644 /bin/bash 
python3-sahara-plugin-ambari.noarch: E: non-executable-script /usr/lib/python3.6/site-packages/sahara_plugin_ambari/plugins/ambari/resources/images/centos/setup_java_home 644 /bin/bash 
python3-sahara-plugin-ambari.noarch: E: non-executable-script /usr/lib/python3.6/site-packages/sahara_plugin_ambari/plugins/ambari/resources/images/centos/unlimited_security_artifacts 644 /bin/bash 
python3-sahara-plugin-ambari.noarch: E: wrong-script-interpreter /usr/lib/python3.6/site-packages/sahara_plugin_ambari/plugins/ambari/resources/images/centos/wget_repo /usr/bin/env bash
python3-sahara-plugin-ambari.noarch: E: non-executable-script /usr/lib/python3.6/site-packages/sahara_plugin_ambari/plugins/ambari/resources/images/centos/wget_repo 644 /usr/bin/env bash
python3-sahara-plugin-ambari.noarch: E: non-executable-script /usr/lib/python3.6/site-packages/sahara_plugin_ambari/plugins/ambari/resources/images/common/add_jar 644 /bin/bash 
python3-sahara-plugin-ambari.noarch: E: non-executable-script /usr/lib/python3.6/site-packages/sahara_plugin_ambari/plugins/ambari/resources/images/common/fix_tls_ambari_agent 644 /bin/bash -x
python3-sahara-plugin-ambari.noarch: E: non-executable-script /usr/lib/python3.6/site-packages/sahara_plugin_ambari/plugins/ambari/resources/images/common/mysql_connector_java_link 644 /bin/bash -x
python3-sahara-plugin-ambari.noarch: E: non-executable-script /usr/lib/python3.6/site-packages/sahara_plugin_ambari/plugins/ambari/resources/images/common/oracle_java 644 /bin/bash 
python3-sahara-plugin-ambari.noarch: E: wrong-script-interpreter /usr/lib/python3.6/site-packages/sahara_plugin_ambari/plugins/ambari/resources/images/ubuntu/wget_repo /usr/bin/env bash
python3-sahara-plugin-ambari.noarch: E: non-executable-script /usr/lib/python3.6/site-packages/sahara_plugin_ambari/plugins/ambari/resources/images/ubuntu/wget_repo 644 /usr/bin/env bash
python3-sahara-plugin-ambari-tests-unit.noarch: E: no-changelogname-tag
python3-sahara-plugin-ambari-tests-unit.noarch: W: no-documentation
python-sahara-plugin-ambari-doc.noarch: E: no-changelogname-tag
python-sahara-plugin-ambari.src: E: no-changelogname-tag
python-sahara-plugin-ambari.src: W: strange-permission python-sahara-plugin-ambari.spec 600
python-sahara-plugin-ambari.src:162: W: macro-in-comment %check
python-sahara-plugin-ambari.src:163: W: macro-in-comment %{buildroot}
python-sahara-plugin-ambari.src:165: W: macro-in-comment %{pyver}
python-sahara-plugin-ambari.src: W: invalid-url Source0: sahara-plugin-ambari-0.0.1.dev3048-0.20190123101330.22bde83.tar.gz
4 packages and 0 specfiles checked; 19 errors, 6 warnings.




Rpmlint (installed packages)
----------------------------
python-sahara-plugin-ambari-doc.noarch: E: no-changelogname-tag
python-sahara-plugin-ambari-doc.noarch: W: invalid-url URL: https://launchpad.net/sahara <urlopen error [Errno -2] Name or service not known>
python3-sahara-plugin-ambari.noarch: E: no-changelogname-tag
python3-sahara-plugin-ambari.noarch: W: invalid-url URL: https://launchpad.net/sahara <urlopen error [Errno -2] Name or service not known>
python3-sahara-plugin-ambari.noarch: E: wrong-script-interpreter /usr/lib/python3.6/site-packages/sahara_plugin_ambari/plugins/ambari/resources/images/centos/disable_ambari /usr/bin/env bash
python3-sahara-plugin-ambari.noarch: E: non-executable-script /usr/lib/python3.6/site-packages/sahara_plugin_ambari/plugins/ambari/resources/images/centos/disable_ambari 644 /usr/bin/env bash
python3-sahara-plugin-ambari.noarch: E: non-executable-script /usr/lib/python3.6/site-packages/sahara_plugin_ambari/plugins/ambari/resources/images/centos/disable_certificate_check 644 /bin/bash 
python3-sahara-plugin-ambari.noarch: E: non-executable-script /usr/lib/python3.6/site-packages/sahara_plugin_ambari/plugins/ambari/resources/images/centos/disable_firewall 644 /bin/bash 
python3-sahara-plugin-ambari.noarch: E: non-executable-script /usr/lib/python3.6/site-packages/sahara_plugin_ambari/plugins/ambari/resources/images/centos/disable_selinux 644 /bin/bash 
python3-sahara-plugin-ambari.noarch: E: non-executable-script /usr/lib/python3.6/site-packages/sahara_plugin_ambari/plugins/ambari/resources/images/centos/setup_java_home 644 /bin/bash 
python3-sahara-plugin-ambari.noarch: E: non-executable-script /usr/lib/python3.6/site-packages/sahara_plugin_ambari/plugins/ambari/resources/images/centos/unlimited_security_artifacts 644 /bin/bash 
python3-sahara-plugin-ambari.noarch: E: wrong-script-interpreter /usr/lib/python3.6/site-packages/sahara_plugin_ambari/plugins/ambari/resources/images/centos/wget_repo /usr/bin/env bash
python3-sahara-plugin-ambari.noarch: E: non-executable-script /usr/lib/python3.6/site-packages/sahara_plugin_ambari/plugins/ambari/resources/images/centos/wget_repo 644 /usr/bin/env bash
python3-sahara-plugin-ambari.noarch: E: non-executable-script /usr/lib/python3.6/site-packages/sahara_plugin_ambari/plugins/ambari/resources/images/common/add_jar 644 /bin/bash 
python3-sahara-plugin-ambari.noarch: E: non-executable-script /usr/lib/python3.6/site-packages/sahara_plugin_ambari/plugins/ambari/resources/images/common/fix_tls_ambari_agent 644 /bin/bash -x
python3-sahara-plugin-ambari.noarch: E: non-executable-script /usr/lib/python3.6/site-packages/sahara_plugin_ambari/plugins/ambari/resources/images/common/mysql_connector_java_link 644 /bin/bash -x
python3-sahara-plugin-ambari.noarch: E: non-executable-script /usr/lib/python3.6/site-packages/sahara_plugin_ambari/plugins/ambari/resources/images/common/oracle_java 644 /bin/bash 
python3-sahara-plugin-ambari.noarch: E: wrong-script-interpreter /usr/lib/python3.6/site-packages/sahara_plugin_ambari/plugins/ambari/resources/images/ubuntu/wget_repo /usr/bin/env bash
python3-sahara-plugin-ambari.noarch: E: non-executable-script /usr/lib/python3.6/site-packages/sahara_plugin_ambari/plugins/ambari/resources/images/ubuntu/wget_repo 644 /usr/bin/env bash
python3-sahara-plugin-ambari-tests-unit.noarch: E: no-changelogname-tag
python3-sahara-plugin-ambari-tests-unit.noarch: W: invalid-url URL: https://launchpad.net/sahara <urlopen error [Errno -2] Name or service not known>
python3-sahara-plugin-ambari-tests-unit.noarch: W: no-documentation
3 packages and 0 specfiles checked; 18 errors, 4 warnings.



Requires
--------
python-sahara-plugin-ambari-doc (rpmlib, GLIBC filtered):
    python3-sahara-plugin-ambari

python3-sahara-plugin-ambari (rpmlib, GLIBC filtered):
    /usr/bin/python3
    python(abi)
    python3-babel
    python3-eventlet
    python3-oslo-i18n
    python3-oslo-log
    python3-oslo-serialization
    python3-oslo-utils
    python3-pbr
    python3-requests
    python3-sahara
    python3-six

python3-sahara-plugin-ambari-tests-unit (rpmlib, GLIBC filtered):
    python(abi)
    python3-sahara-plugin-ambari



Provides
--------
python-sahara-plugin-ambari-doc:
    python-sahara-plugin-ambari-doc

python3-sahara-plugin-ambari:
    python3-sahara-plugin-ambari
    python3.6dist(sahara-plugin-ambari)
    python3dist(sahara-plugin-ambari)

python3-sahara-plugin-ambari-tests-unit:
    python3-sahara-plugin-ambari-tests-unit

Comment 3 Luigi Toscano 2019-06-28 13:45:04 UTC
I think that this bug can be CLOSED (CURRENTRELEASE?).

Comment 4 Yatin Karel 2020-07-23 10:57:57 UTC
Package available since stein, closing.


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