Bug 1877881

Summary: New package: tripleo-powerflex [VxFlexOS/PowerFlex]
Product: [Community] RDO Reporter: Rajini Karthik <rajini.karthik>
Component: Package ReviewAssignee: hguemar
Status: CLOSED CURRENTRELEASE QA Contact: hguemar
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: trunkCC: amoralej, arkady_kanevsky, christopher_dearborn, david_paterson, dcain, gael_rehault, jeanpierre.roquesalane, kholtz, kurt_hey, mburns, morazi, pgrist, rajini.karthik, ykarel
Target Milestone: ---Flags: amoralej: 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: 2020-10-28 11:41:24 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: 1706123, 1842401, 1875810    

Description Rajini Karthik 2020-09-10 16:22:31 UTC
Description of problem:

Dell EMC is working on VxFlexOS/PowerFlexintegration into Tripleo

There is currently no automated way to deploy VxFlexOS/PowerFlex  from within TripleO.
Goal is to provide an ease of use at the time of deployment as well as during lifecycle operations.

Project Blueprint: https://review.opendev.org/#/c/724301/
Project Source Code: https://github.com/dell/tripleo-powerflex
Project Documentation: https://github.com/dell/tripleo-powerflex/blob/master/README.md

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Alfredo Moralejo 2020-09-11 09:42:55 UTC
licensecheck output:

$ licensecheck -r .
./LICENSE: *No copyright* Apache License (v2.0)
./README.md: *No copyright* UNKNOWN
./custom-dellemc-cinder-conf.yaml: *No copyright* UNKNOWN
./dellemc-powerflex-cinder-conf.yaml: *No copyright* UNKNOWN
./roles_data.yaml: Apache License (v2.0) GENERATED FILE
./powerflex-ansible/site.yaml: *No copyright* UNKNOWN
./powerflex-ansible/uninstall_powerflex.yaml: *No copyright* UNKNOWN
./deployment/powerflex-ansible/powerflex-base.yaml: *No copyright* UNKNOWN
./deployment/powerflex-ansible/powerflex-lia.yaml: *No copyright* UNKNOWN
./deployment/powerflex-ansible/powerflex-mdm.yaml: *No copyright* UNKNOWN
./deployment/powerflex-ansible/powerflex-sdc.yaml: *No copyright* UNKNOWN
./deployment/powerflex-ansible/powerflex-sds.yaml: *No copyright* UNKNOWN
./environments/powerflex-ansible/powerflex-ansible.yaml: *No copyright* UNKNOWN
./tripleo-powerflex-run-ansible/tasks/main.yml: *No copyright* UNKNOWN
./tripleo-powerflex-run-ansible/templates/inventory.ini.j2: *No copyright* UNKNOWN
./powerflex-ansible/roles/powerflex-common/tasks/install_powerflex.yaml: *No copyright* UNKNOWN
./powerflex-ansible/roles/powerflex-common/tasks/install_powerflex_redhat.yaml: *No copyright* UNKNOWN
./powerflex-ansible/roles/powerflex-common/tasks/install_powerflex_redhat_external.yaml: *No copyright* UNKNOWN
./powerflex-ansible/roles/powerflex-common/tasks/install_powerflex_redhat_local.yaml: *No copyright* UNKNOWN
./powerflex-ansible/roles/powerflex-common/tasks/main.yaml: *No copyright* UNKNOWN
./powerflex-ansible/roles/powerflex-common/templates/package_wrapper.sh.j2: *No copyright* UNKNOWN
./powerflex-ansible/roles/powerflex-common/vars/redhat.yaml: *No copyright* UNKNOWN
./powerflex-ansible/roles/powerflex-config/tasks/main.yaml: *No copyright* UNKNOWN
./powerflex-ansible/roles/powerflex-facts/defaults/main.yaml: *No copyright* UNKNOWN
./powerflex-ansible/roles/powerflex-facts/tasks/facts.yaml: *No copyright* UNKNOWN
./powerflex-ansible/roles/powerflex-facts/tasks/main.yaml: *No copyright* UNKNOWN
./powerflex-ansible/roles/powerflex-lia/tasks/main.yaml: *No copyright* UNKNOWN
./powerflex-ansible/roles/powerflex-lia/vars/main.yaml: *No copyright* UNKNOWN
./powerflex-ansible/roles/powerflex-mdm/defaults/main.yaml: *No copyright* UNKNOWN
./powerflex-ansible/roles/powerflex-mdm/tasks/main.yaml: *No copyright* UNKNOWN
./powerflex-ansible/roles/powerflex-mdm/vars/main.yaml: *No copyright* UNKNOWN
./powerflex-ansible/roles/powerflex-sdc/tasks/main.yaml: *No copyright* UNKNOWN
./powerflex-ansible/roles/powerflex-sdc/vars/main.yaml: *No copyright* UNKNOWN
./powerflex-ansible/roles/powerflex-sds/library/disk_facts.py: *No copyright* UNKNOWN
./powerflex-ansible/roles/powerflex-sds/tasks/main.yaml: *No copyright* UNKNOWN
./powerflex-ansible/roles/powerflex-sds/vars/main.yaml: *No copyright* UNKNOWN
./powerflex-ansible/roles/powerflex-tb/tasks/main.yaml: *No copyright* UNKNOWN
./powerflex-ansible/roles/powerflex-tb/vars/main.yaml: *No copyright* UNKNOWN


License is valid ASL 2.0

Comment 2 Alfredo Moralejo 2020-09-22 10:52:23 UTC
fedora-review result from spec reviewed in https://review.rdoproject.org/r/#/c/29389/5


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". 38 files have unknown license. Detailed
     output of licensecheck in /tmp/ansible-tripleo-
     powerflex/licensecheck.txt
[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
[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.
[-]: 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 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]: 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
[-]: Sources are verified with gpgverify first in %prep if upstream
     publishes signatures.
     Note: gpgverify is not used.
[-]: 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
[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-tripleo-powerflex-0.0.1-0.20200921194423.e52a39e.el8.noarch.rpm
          ansible-tripleo-powerflex-0.0.1-0.20200921194423.e52a39e.el8.src.rpm
ansible-tripleo-powerflex.noarch: W: description-shorter-than-summary
ansible-tripleo-powerflex.noarch: E: no-changelogname-tag
ansible-tripleo-powerflex.noarch: E: zero-length /usr/share/powerflex-ansible/roles/powerflex-common/default/main.yaml
ansible-tripleo-powerflex.noarch: E: non-executable-script /usr/share/powerflex-ansible/roles/powerflex-common/templates/package_wrapper.sh.j2 644 /bin/sh 
ansible-tripleo-powerflex.noarch: E: non-executable-script /usr/share/powerflex-ansible/roles/powerflex-sds/library/disk_facts.py 644 /usr/bin/python 
ansible-tripleo-powerflex.src: W: description-shorter-than-summary
ansible-tripleo-powerflex.src: E: no-changelogname-tag
ansible-tripleo-powerflex.src: W: invalid-url Source0: 0.0.1-0.20200921194423.e52a39e.tar.gz
2 packages and 0 specfiles checked; 5 errors, 3 warnings.




Rpmlint (installed packages)
----------------------------
ansible-tripleo-powerflex.noarch: E: no-changelogname-tag
ansible-tripleo-powerflex.noarch: W: invalid-url URL: https://github.com/dell/tripleo-powerflex <urlopen error [Errno -2] Name or service not known>
ansible-tripleo-powerflex.noarch: E: zero-length /usr/share/powerflex-ansible/roles/powerflex-common/default/main.yaml
ansible-tripleo-powerflex.noarch: E: non-executable-script /usr/share/powerflex-ansible/roles/powerflex-common/templates/package_wrapper.sh.j2 644 /bin/sh 
ansible-tripleo-powerflex.noarch: E: non-executable-script /usr/share/powerflex-ansible/roles/powerflex-sds/library/disk_facts.py 644 /usr/bin/python 
1 packages and 0 specfiles checked; 4 errors, 1 warnings.



Requires
--------
ansible-tripleo-powerflex (rpmlib, GLIBC filtered):
    openstack-tripleo-heat-templates
    python3dist(ansible)



Provides
--------
ansible-tripleo-powerflex:
    ansible-tripleo-powerflex



Generated by fedora-review 0.7.5 (5fa5b7e) last change: 2020-02-16
Command line :/usr/bin/fedora-review -m centos-8-x86_64 -rn ansible-tripleo-powerflex-0.0.1-0.20200921194423.e52a39e.el8.src.rpm
Buildroot used: centos-8-x86_64
Active plugins: Generic, Shell-api
Disabled plugins: SugarActivity, C/C++, R, Java, Perl, PHP, Ocaml, Haskell, fonts, Python
Disabled flags: EPEL6, EPEL7, DISTTAG, BATCH, EXARCH


Some notes:

- Package has no changelog as it's created for DLRN
- non-executable scripts are part of ansible roles not to be executed locally, permissions are correct


Package is APROVED

Comment 3 Alfredo Moralejo 2020-09-22 10:53:01 UTC
APPROVED

Comment 4 Rajini Karthik 2020-09-23 21:02:38 UTC
Alfredo , we are wanting this backported into downstream Train ( 16.2 z2 if possible or z2)  ?
How can we do that please

Comment 5 Alfredo Moralejo 2020-09-24 07:29:01 UTC
(In reply to Rajini Karthik from comment #4)
> Alfredo , we are wanting this backported into downstream Train ( 16.2 z2 if
> possible or z2)  ?
> How can we do that please

Propose a review to rdoinfo repo adding the package to tags/ussuri.yaml and tags/train.yaml please.

Looks like safe to backport.

Comment 6 Rajini Karthik 2020-09-24 16:51:04 UTC
Backported to train and ussuri. Thank you
https://review.rdoproject.org/r/#/c/29588/

Comment 7 Rajini Karthik 2020-09-24 16:51:16 UTC
Backported to train and ussuri. Thank you
https://review.rdoproject.org/r/#/c/29588/

Comment 8 Yatin Karel 2020-10-28 11:41:24 UTC
Package available in RDO trunk train+ repos.