RDO tickets are now tracked in Jira https://issues.redhat.com/projects/RDO/issues/
Bug 1779785 - New package: sushy-oem-idrac
Summary: New package: sushy-oem-idrac
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: hguemar
QA Contact: hguemar
URL:
Whiteboard:
Depends On:
Blocks: RDO-USSURI
TreeView+ depends on / blocked
 
Reported: 2019-12-04 18:11 UTC by Ilya Etingof
Modified: 2020-07-31 14:47 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-07-31 14:47:46 UTC
Embargoed:
ykarel: rdo-review+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
RDO 23961 0 None None None 2019-12-10 13:01:33 UTC
RDO 24057 0 None None None 2019-12-10 12:58:26 UTC

Description Ilya Etingof 2019-12-04 18:11:03 UTC
`sushy-oem-idrac` is an extension to `sushy` library providing Redfish OEM features support that are specific to Dell/EMC hardware.

`sushy` is a Python library (already in RDO) enabling communication with Redfish based systems (http://www.dmtf.org/standards/redfish). It is used by ironic to talk with Redfish BMCs.

Ironic will rely on `sushy-oem-idrac` library to boot Dell EMC baremetal machines over Redfish virtual media.

Comment 1 Ilya Etingof 2019-12-04 18:14:42 UTC
Official upstream repository under OpenStack umbrella is being worked on [1].

In the meanwhile, this [2] is the alma mater of the tool.

1. https://review.opendev.org/#/c/697159/
2. https://github.com/etingof/sushy-oem-idrac/

Comment 2 Ilya Etingof 2019-12-05 12:54:27 UTC
Added RPM spec [1]

1. https://github.com/etingof/sushy-oem-idrac-spec

Comment 3 Ilya Etingof 2019-12-05 16:12:05 UTC
Added rdoinfo patch: https://review.rdoproject.org/r/#/c/23961/

Comment 4 Javier Peña 2019-12-05 16:29:47 UTC
Initial licensecheck output:

./.stestr.conf: *No copyright* UNKNOWN
./CONTRIBUTING.rst: *No copyright* UNKNOWN
./HACKING.rst: *No copyright* UNKNOWN
./LICENSE: *No copyright* Apache License (v2.0)
./README.md: *No copyright* UNKNOWN
./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
./sushy_oem_idrac/asynchronous.py: *No copyright* Apache License (v2.0)
./sushy_oem_idrac/constants.py: *No copyright* Apache License (v2.0)
./sushy_oem_idrac/utils.py: *No copyright* Apache License (v2.0)
./sushy_oem_idrac/resources/manager/manager.py: *No copyright* Apache License (v2.0)
./sushy_oem_idrac/tests/functional/vmedia_boot.py: *No copyright* Apache License (v2.0)
./sushy_oem_idrac/tests/unit/base.py: Apache License (v2.0)
./sushy_oem_idrac/tests/unit/test_manager.py: Apache License (v2.0)
./sushy_oem_idrac/tests/unit/test_root.py: Apache License (v2.0)
./sushy_oem_idrac/tests/unit/json_samples/manager.json: *No copyright* UNKNOWN
./sushy_oem_idrac/tests/unit/json_samples/manager_collection.json: *No copyright* UNKNOWN
./sushy_oem_idrac/tests/unit/json_samples/root.json: *No copyright* UNKNOWN

The package is licensed using the Apache 2.0 License.

Comment 5 Ilya Etingof 2019-12-05 16:31:39 UTC
I can add copyright header to some of the above mentioned files, if that'd improve things.

Comment 6 Javier Peña 2019-12-05 17:26:42 UTC
(In reply to Ilya Etingof from comment #5)
> I can add copyright header to some of the above mentioned files, if that'd
> improve things.

No, there's no need for that.

Comment 7 Yatin Karel 2019-12-12 16:31:55 UTC
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: "Unknown or generated", "*No copyright* Apache License (v2.0)",
     "*No copyright* Apache License", "Apache License (v2.0)". 23 files
     have unknown license. Detailed output of licensecheck in /tmp/python-
     sushy-oem-idrac/licensecheck.txt
[x]: License file installed when any subpackage combination is installed.
[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
[-]: 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.
[x]: 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]: 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 must not depend on deprecated() packages.
[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]: Packages MUST NOT have dependencies (either build-time or runtime) on
     packages named with the unversioned python- prefix unless no properly
     versioned package exists. Dependencies on Python packages instead MUST
     use names beginning with python2- or python3- as appropriate.
[x]: Python packages must not contain %{pythonX_site(lib|arch)}/* in %files
[x]: Binary eggs must be removed in %prep

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

Generic:
[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).
[x]: Fully versioned dependency in subpackages if applicable.
     Note: No Requires: %{name}%{?_isa} = %{version}-%{release} in
     python3-sushy-oem-idrac , python3-sushy-oem-idrac-tests
[?]: 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
[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.
[!]: Spec use %global instead of %define unless justified.
     Note: %define requiring justification: %define upstream_version
     0.0.3.dev9
[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-sushy-oem-idrac-0.0.3-0.20191212151146.7b31b0b.fc28.noarch.rpm
          python3-sushy-oem-idrac-tests-0.0.3-0.20191212151146.7b31b0b.fc28.noarch.rpm
          python-sushy-oem-idrac-0.0.3-0.20191212151146.7b31b0b.fc28.src.rpm
python3-sushy-oem-idrac.noarch: E: summary-too-long C An extension for the Sushy library to communicate with Redfish-enabled Dell/EMC servers
python3-sushy-oem-idrac.noarch: E: no-changelogname-tag
python3-sushy-oem-idrac.noarch: W: no-documentation
python3-sushy-oem-idrac-tests.noarch: E: summary-too-long C An extension for the Sushy library to communicate with Redfish-enabled Dell/EMC servers - tests
python3-sushy-oem-idrac-tests.noarch: E: no-changelogname-tag
python3-sushy-oem-idrac-tests.noarch: W: no-documentation
python-sushy-oem-idrac.src: E: summary-too-long C An extension for the Sushy library to communicate with Redfish-enabled Dell/EMC servers
python-sushy-oem-idrac.src: E: no-changelogname-tag
python-sushy-oem-idrac.src: W: strange-permission python-sushy-oem-idrac.spec 600
python-sushy-oem-idrac.src: W: invalid-url Source0: sushy-oem-idrac-0.0.3.dev9-0.20191212151146.7b31b0b.tar.gz
3 packages and 0 specfiles checked; 6 errors, 4 warnings.




Rpmlint (installed packages)
----------------------------
sh: /usr/bin/python: No such file or directory
python3-sushy-oem-idrac.noarch: E: summary-too-long C An extension for the Sushy library to communicate with Redfish-enabled Dell/EMC servers
python3-sushy-oem-idrac.noarch: E: no-changelogname-tag
python3-sushy-oem-idrac.noarch: W: invalid-url URL: https://opendev.org/x/sushy-oem-idrac <urlopen error [Errno -2] Name or service not known>
python3-sushy-oem-idrac.noarch: W: no-documentation
python3-sushy-oem-idrac-tests.noarch: E: summary-too-long C An extension for the Sushy library to communicate with Redfish-enabled Dell/EMC servers - tests
python3-sushy-oem-idrac-tests.noarch: E: no-changelogname-tag
python3-sushy-oem-idrac-tests.noarch: W: invalid-url URL: https://opendev.org/x/sushy-oem-idrac <urlopen error [Errno -2] Name or service not known>
python3-sushy-oem-idrac-tests.noarch: W: no-documentation
2 packages and 0 specfiles checked; 4 errors, 4 warnings.



Requires
--------
python3-sushy-oem-idrac (rpmlib, GLIBC filtered):
    python(abi)
    python3-dateutil
    python3-pbr
    python3-six
    python3-sushy

python3-sushy-oem-idrac-tests (rpmlib, GLIBC filtered):
    python(abi)
    python3-mock
    python3-oslotest
    python3-sushy-oem-idrac
    python3-testtools



Provides
--------
python3-sushy-oem-idrac:
    python3-sushy-oem-idrac
    python3.6dist(sushy-oem-idrac)
    python3dist(sushy-oem-idrac)

python3-sushy-oem-idrac-tests:
    python3-sushy-oem-idrac-tests


Some issues detected, but are excempted because of following:-
- Changelog is taken care by DLRN(tool used to build package in RDO)
- %define is used by DLRN
- Source tarball is generated by DLRN



Package is Approved.

Comment 8 Yatin Karel 2020-07-31 14:47:46 UTC
sushy-oem-idrac is available in RDO since Train release, closing it.


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