Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
RDO tickets are now tracked in Jira https://issues.redhat.com/projects/RDO/issues/
Bug 1323219 - Review Request: openstack-trove-ui - OpenStack Dashboard plugin for Trove project
Summary: Review Request: openstack-trove-ui - OpenStack Dashboard plugin for Trove pro...
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-MITAKA, RDO-MITAKA-REVIEWS
TreeView+ depends on / blocked
 
Reported: 2016-04-01 14:55 UTC by Pete MacKinnon
Modified: 2017-06-18 06:01 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-06-18 06:01:05 UTC
Embargoed:
hguemar: rdo-review+


Attachments (Terms of Use)
Fix bytecode files symlinks (deleted)
2016-04-22 21:54 UTC, Haïkel Guémar
no flags Details | Diff

Comment 1 Luigi Toscano 2016-04-05 11:16:07 UTC
I could not test in depth, but the package generated from the above RPM works on the RC1 of RDO Mitaka. The pages are displayed and can be browsed, and the buttons triggers actions, but I didn't test if the actions really works with a live datastore.

Comment 4 hguemar 2016-04-12 09:29:52 UTC
Spec URL: https://hguemar.fedorapeople.org/reviews/openstack-trove-ui.spec
SRPM URL: https://hguemar.fedorapeople.org/reviews/openstack-trove-ui-6.0.0-0.1.0rc2.el7.src.rpm

To fasten the review, I fixed the packaging:
* include python bytecode
* requires: openstack-dashboard
* Sources uses tarballs.openstack.org 

I also rebuild 6.0.0 RC2 as automated reviewing tool does not support delorean-style spec file.

Comment 5 hguemar 2016-04-12 09:36:17 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: "Apache (v2.0)", "Unknown or generated", "*No copyright* Apache
     (v2.0)". 14 files have unknown license. Detailed output of
     licensecheck in /home/haikel/openstack-trove-ui/review-openstack-
     trove-ui/licensecheck.txt
[x]: Package requires other packages for directories it uses.
     Note: No known owner of /etc/openstack-dashboard/enabled
[x]: Package must own all directories that it creates.
     Note: Directories without known owners: /etc/openstack-
     dashboard/enabled
[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.
[x]: 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]: 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 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:
[-]: 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.
[-]: 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]: Packager, Vendor, PreReq, Copyright tags should not be in spec file
[x]: Sources can be downloaded from URI in Source: tag
[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]: 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.
[x]: Spec file according to URL is the same as in SRPM.


Rpmlint
-------
Checking: openstack-trove-ui-6.0.0-0.1.0rc2.fc25.noarch.rpm
          openstack-trove-ui-6.0.0-0.1.0rc2.fc25.src.rpm
openstack-trove-ui.noarch: W: non-conffile-in-etc /etc/openstack-dashboard/enabled/_1731_project_database_backups_panel.py
openstack-trove-ui.noarch: W: non-conffile-in-etc /etc/openstack-dashboard/enabled/_1731_project_database_backups_panel.pyo
openstack-trove-ui.noarch: W: non-conffile-in-etc /etc/openstack-dashboard/enabled/_1730_project_database_backups_panel.pyc
openstack-trove-ui.noarch: W: non-conffile-in-etc /etc/openstack-dashboard/enabled/_1731_project_database_backups_panel.pyc
openstack-trove-ui.noarch: W: non-conffile-in-etc /etc/openstack-dashboard/enabled/_1730_project_database_backups_panel.pyo
openstack-trove-ui.noarch: W: non-conffile-in-etc /etc/openstack-dashboard/enabled/_1740_project_database_clusters_panel.pyc
openstack-trove-ui.noarch: W: non-conffile-in-etc /etc/openstack-dashboard/enabled/_1710_database_panel_group.py
openstack-trove-ui.noarch: W: non-conffile-in-etc /etc/openstack-dashboard/enabled/_1720_project_databases_panel.py
openstack-trove-ui.noarch: W: non-conffile-in-etc /etc/openstack-dashboard/enabled/_1720_project_databases_panel.pyc
openstack-trove-ui.noarch: W: non-conffile-in-etc /etc/openstack-dashboard/enabled/_1730_project_database_backups_panel.py
openstack-trove-ui.noarch: W: non-conffile-in-etc /etc/openstack-dashboard/enabled/_1740_project_database_clusters_panel.pyo
openstack-trove-ui.noarch: W: non-conffile-in-etc /etc/openstack-dashboard/enabled/_1740_project_database_clusters_panel.py
openstack-trove-ui.noarch: W: non-conffile-in-etc /etc/openstack-dashboard/enabled/_1710_database_panel_group.pyc
openstack-trove-ui.noarch: W: non-conffile-in-etc /etc/openstack-dashboard/enabled/_1710_database_panel_group.pyo
openstack-trove-ui.noarch: W: non-conffile-in-etc /etc/openstack-dashboard/enabled/_1720_project_databases_panel.pyo
2 packages and 0 specfiles checked; 0 errors, 15 warnings.




Requires
--------
openstack-trove-ui (rpmlib, GLIBC filtered):
    openstack-dashboard
    python(abi)
    python-babel
    python-iso8601
    python-keystoneclient
    python-swiftclient
    python-troveclient



Provides
--------
openstack-trove-ui:
    openstack-trove-ui



Source checksums
----------------
http://tarballs.openstack.org/trove-dashboard/trove-dashboard-6.0.0.0rc2.tar.gz :
  CHECKSUM(SHA256) this package     : 1c2c4fda2b0adff90891b3fbf312ac76ecc688d9dbb00c9f6b68b6a01f724ce0
  CHECKSUM(SHA256) upstream package : 1c2c4fda2b0adff90891b3fbf312ac76ecc688d9dbb00c9f6b68b6a01f724ce0


Generated by fedora-review 0.6.0 (3c5c9d7) last change: 2015-05-20
Command line :/usr/bin/fedora-review -n /home/haikel/openstack-trove-ui/ -m fedora-rawhide-x86_64
Buildroot used: fedora-rawhide-x86_64
Active plugins: Python, Generic, Shell-api
Disabled plugins: Java, C/C++, fonts, SugarActivity, Ocaml, Perl, Haskell, R, PHP, Ruby
Disabled flags: EXARCH, DISTTAG, EPEL5, BATCH, EPEL6

Comment 6 hguemar 2016-04-12 09:36:43 UTC
Review approved, I'll do the import today.

Comment 8 Luigi Toscano 2016-04-20 16:45:58 UTC
The dashboard can be installed and work properly. 

When the package is removed, few stale files are left under /usr/share/openstack-dashboard/openstack_dashboard/local/enabled/, but they *do not* affect the restart of httpd, unlike openstack-sahara-ui where they prevents the restart, not sure if it's a red herring: 

_1710_database_panel_group.pyc
_1720_project_databases_panel.pyc
_1730_project_database_backups_panel.pyc
_1731_project_database_backups_panel.pyc
_1740_project_database_clusters_panel.pyc

Comment 9 Haïkel Guémar 2016-04-22 21:54:02 UTC
Created attachment 1149929 [details]
Fix bytecode files symlinks

Comment 10 Luigi Toscano 2016-04-25 10:29:46 UTC
The build with the patch in #c9 (6.0.0-2) correctly cleans the files, but I think it should be done the other way, see 
https://bugzilla.redhat.com/show_bug.cgi?id=1323222#c7

Comment 11 Elise Gafford 2016-05-12 17:25:31 UTC
Review to reverse symlinks at https://review.rdoproject.org/r/#/c/1127/

Comment 12 Christopher Brown 2017-06-17 19:46:15 UTC
This was accepted so this bug can be closed.


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