Bug 1591473 - Review Request: sassist - Dell SupportAssist log collector for Linux
Summary: Review Request: sassist - Dell SupportAssist log collector for Linux
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Robert-André Mauchin 🐧
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-06-14 19:53 UTC by Charles Rose
Modified: 2021-06-11 14:13 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-06-11 14:13:42 UTC
Type: ---
Embargoed:
zebob.m: fedora-review+


Attachments (Terms of Use)

Description Charles Rose 2018-06-14 19:53:59 UTC
Spec URL: https://github.com/dell/sassist/blob/master/pkg/sassist.spec
SRPM URL: https://github.com/dell/sassist/releases/download/0.8.1/sassist-0.8.0-1.el7.src.rpm
Description: Dell SupportAssist log collector for Linux.
Fedora Account System Username: charlesrose

Detailed Description: Dell iDRAC can trigger OS configuration and log collection (with sosreport) to help with debugging customer issues in the field.

Dell PowerEdge Servers running fedora with "sassist" installed and enabled will be able to satisfy Dell iDRAC requests to collect OS config/log information and pass it over via a virtual USB block device along with checksum information. The logs are then combined by Dell iDRAC with other useful server troubleshooting information to assist the support personnel debug issues.

In the near future, this package will also support extraction of detailed Hardware/Firmware inventory information from Dell iDRAC and make it available to the OS which could potentially be used in software like sosreport, cockpit, etc.

Comment 1 Robert-André Mauchin 🐧 2018-06-14 20:52:14 UTC
 - Not needed:

Group:

rm -rf -- "%{buildroot}"

%clean
rm -rf -- "%{buildroot}"

%defattr(-,root,root,-)

 - Source0 should be d/l from a remote source:

Source0:	https://github.com/dell/sassist/archive/%{version}/%{name}-%{version}.tar.gz

 - Should't be needed:

Requires: systemd-units
Requires(post): systemd-units
Requires(postun): systemd-units

Requires: systemd

   it is implied by %{?systemd_requires}.

 - However you need:

BuildRequires: systemd

 - The license must be installed with %license:

%license COPYING

Comment 2 Charles Rose 2018-06-15 16:28:21 UTC
Thank you for your review.

I have made the suggested changes:
https://github.com/dell/sassist/blob/master/pkg/sassist.spec

Comment 3 Robert-André Mauchin 🐧 2018-06-15 20:34:49 UTC
 - Perms are incorrect:

sassist.noarch: E: non-standard-executable-perm /usr/bin/sassist.sh 555

It should be 755.

 - Your changelog entries are missing the release info:

* Thu Jun 14 2018 Charles Rose <charles_rose> - 0.8.2-1

 - You should also execute the systemd scriptlets for sassist-collect.service:

%post
%systemd_post sassist.service
%systemd_post sassist-collect.service

%preun
%systemd_preun sassist.service
%systemd_preun sassist-collect.service

%postun
%systemd_postun_with_restart sassist.service
%systemd_postun_with_restart sassist-collect.service




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: "MIT/X11 (BSD like)", "Unknown or generated". 11 files have
     unknown license. Detailed output of licensecheck in
     /home/bob/packaging/review/sassist/review-sassist/licensecheck.txt
[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.
[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]: 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

===== 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).
[?]: Package functions as described.
[x]: Latest version is packaged.
[x]: Package does not include license text files separate from upstream.
[-]: 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]: 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]: Sources can be downloaded from URI in Source: tag
[x]: SourceX is a working URL.
[x]: Spec use %global instead of %define unless justified.

===== EXTRA items =====

Generic:
[x]: Rpmlint is run on all installed packages.
     Note: There are rpmlint messages (see attachment).
[x]: Spec file according to URL is the same as in SRPM.


Rpmlint
-------
Checking: sassist-0.8.1-1.fc29.noarch.rpm
          sassist-0.8.1-1.fc29.src.rpm
sassist.noarch: W: incoherent-version-in-changelog 0.8.1 ['0.8.1-1.fc29', '0.8.1-1']
sassist.noarch: W: no-documentation
sassist.noarch: E: non-standard-executable-perm /usr/bin/sassist.sh 555
sassist.noarch: W: no-manual-page-for-binary sassist.sh
2 packages and 0 specfiles checked; 1 errors, 3 warnings.

Comment 4 Charles Rose 2018-06-18 19:07:49 UTC
(In reply to Robert-André Mauchin from comment #3)
>  - Perms are incorrect:
> 
> sassist.noarch: E: non-standard-executable-perm /usr/bin/sassist.sh 555
> 
> It should be 755.

Fixed.

> 
>  - Your changelog entries are missing the release info:
> 
> * Thu Jun 14 2018 Charles Rose <charles_rose> - 0.8.2-1

Fixed.

> 
>  - You should also execute the systemd scriptlets for
> sassist-collect.service:

The sassist-collect service is not started/stopped under user-control but is triggered a volume is mounted:

media-iDRAC_NATOSC.mount:
...
BindsTo=sassist-collect.service
...

sassist-collect.service:
...
RefuseManualStart=true
...

> 
> %post
> %systemd_post sassist.service
> %systemd_post sassist-collect.service
> 
> %preun
> %systemd_preun sassist.service
> %systemd_preun sassist-collect.service
> 
> %postun
> %systemd_postun_with_restart sassist.service
> %systemd_postun_with_restart sassist-collect.service
>

Comment 5 Robert-André Mauchin 🐧 2018-06-18 19:21:16 UTC
I'd like to see the updated SPEC

Comment 6 Charles Rose 2018-06-18 20:15:10 UTC
(In reply to Robert-André Mauchin from comment #5)
> I'd like to see the updated SPEC

Here you go:
https://github.com/dell/sassist/blob/master/pkg/sassist.spec

Comment 7 Robert-André Mauchin 🐧 2018-06-18 20:22:22 UTC
Package approved.

Comment 8 Charles Rose 2018-08-08 20:25:40 UTC
(In reply to Robert-André Mauchin from comment #7)
> Package approved.

Hello Robert-Andre,
Can you help move this along the next steps?

Comment 9 Robert-André Mauchin 🐧 2018-08-08 21:13:48 UTC
what do you mean? I already approved your package, now you need to request the repo and build it.

If you're lost, your next step is https://fedoraproject.org/wiki/Join_the_package_collection_maintainers?rd=PackageMaintainers/Join#Add_Package_to_Source_Code_Management_.28SCM.29_system_and_Set_Owner

Comment 10 Gwyn Ciesla 2018-08-09 14:19:05 UTC
(fedscm-admin):  The Pagure repository was created at https://src.fedoraproject.org/rpms/sassist

Comment 11 Mattia Verga 2021-06-11 14:13:42 UTC
Package imported, closing.


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