Bug 1506722 - Review Request: python-octaviaclient - Client for OpenStack Octavia (Load Balancer as a Service)
Summary: Review Request: python-octaviaclient - Client for OpenStack Octavia (Load Bal...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Robert-André Mauchin 🐧
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1505482 1513469
TreeView+ depends on / blocked
 
Reported: 2017-10-26 16:14 UTC by Carlos Goncalves
Modified: 2019-09-10 14:07 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-11-27 10:40:07 UTC
Type: Bug
Embargoed:
zebob.m: fedora-review+


Attachments (Terms of Use)

Description Carlos Goncalves 2017-10-26 16:14:00 UTC
Spec URL: http://cgoncalves.pt/trash/openstack/python-octaviaclient.spec
SRPM URL: http://cgoncalves.pt/trash/openstack/python-octaviaclient-1.1.1-0.20171026134812.c6f5da8.fc28.src.rpm 
Description: Client for OpenStack Octavia (Load Balancer as a Service)

Fedora Account System Username: cgoncalves

Comment 1 Robert-André Mauchin 🐧 2017-10-28 15:47:46 UTC
Hello,

 - Did you forget to put the Version and Release infos?

Version:        XXX
Release:        XXX

⇒

Version:        1.1.0
Release:        1%{?dist}

 - There is no %changelog entry either!

* Thu Oct 26 2017 Carlos Goncalves <cgoncalves> - 1.1.0-1
- Initial RPM release

 - No need to complicate things, use version instead of upstream_version and remove upstream_version definition

%autosetup -n %{name}-%{version}

 - You could use the %{py2_dist/%{py3_dist macros to handle your BR and R. See https://fedoraproject.org/wiki/Packaging:Python#Requires_and_BuildRequires_with_standardized_names

 - BuildRequires:  openstack-macros

There is no package openstack-macros in Fedora repositories. You'll have to package it beforehand.

Comment 2 Nir Magnezi 2017-10-29 23:39:08 UTC
Carlos,

Initial review:

1. In other packages we have, URL points to a launchpad URL. since Octavia migrated to storyboard, perhaps the URL should be: https://storyboard.openstack.org/#!/project/911

2. You should end up with a separate RPM for tests, see the python-neutronclient spec for reference: https://github.com/rdo-packages/neutronclient-distgit/blob/26310d84ea59c383c928be5d01d350f0e21291cd/python-neutronclient.spec#L65-L130

3. Another reference can use to learn how to handle the tests deletion from the main rpm: https://github.com/rdo-packages/neutronclient-distgit/commit/296abb5e9aee5019ea22b4f2235f12fae2916a43

Comment 3 Carlos Goncalves 2017-11-20 14:57:34 UTC
(In reply to Robert-André Mauchin from comment #1)

>  - Did you forget to put the Version and Release infos?

Done.

>  - There is no %changelog entry either!

Done.

>  - No need to complicate things, use version instead of upstream_version and
> remove upstream_version definition

Template client spec suggests using upstream_version [1]. Couple of existing OpenStack clients specs also defining macro upstream_version [2][3][4][5].
 

>  - You could use the %{py2_dist/%{py3_dist macros to handle your BR and R.
> See
> https://fedoraproject.org/wiki/Packaging:
> Python#Requires_and_BuildRequires_with_standardized_names

Yes, although:

a) Easier to maintain dependencies with BR and R explicitly thanks to '$ rdopkg reqcheck'.
b) Consistency with other OpenStack client specs.
c) Straightforward to support RDO and RHOSP, because EL7 does not support such macros AFAIK.


> There is no package openstack-macros in Fedora repositories. You'll have to
> package it beforehand.

Replaced macro %py_req_cleanup by "rm -f {,test-}requirements.txt" as it's also not used in existing OpenStack client specs for Fedora.



(In reply to Nir Magnezi from comment #2)

> 1. In other packages we have, URL points to a launchpad URL. since Octavia
> migrated to storyboard, perhaps the URL should be:
> https://storyboard.openstack.org/#!/project/911

Good point! Indeed [1] suggests linking to launchpad. I think that is because launchpad project pages have been considered good landing pages. Would project-specific storyboard pages be a good replacement? I'd rather point to somewhere providing users with more info such as [6], [7] or [8] (because of the HTML-rendered README).

 
> 2. You should end up with a separate RPM for tests, see the
> python-neutronclient spec for reference:
> https://github.com/rdo-packages/neutronclient-distgit/blob/
> 26310d84ea59c383c928be5d01d350f0e21291cd/python-neutronclient.spec#L65-L130

Yes, although python-stestr is a dependency and happens that the python-stestr RPM has a dependency issue (rhbz #1507995). Either we wait for a fix or disable -tests subpackage.


[1] https://github.com/openstack-packages/openstack-example-spec/blob/master/python-exampleclient.spec
[2] http://pkgs.fedoraproject.org/cgit/rpms/python-neutronclient.git/tree/python-neutronclient.spec
[3] http://pkgs.fedoraproject.org/cgit/rpms/python-novaclient.git/tree/python-novaclient.spec
[4] http://pkgs.fedoraproject.org/cgit/rpms/python-congressclient.git/tree/python-congressclient.spec
[5] http://pkgs.fedoraproject.org/cgit/rpms/python-aodhclient.git/tree/python-aodhclient.spec
[6] https://docs.openstack.org/python-octaviaclient/latest/
[7] https://docs.openstack.org/octavia/latest/
[7] https://github.com/openstack/python-octaviaclient

Comment 4 Robert-André Mauchin 🐧 2017-11-20 23:41:17 UTC
Care to point us toward the updated SPEC and SRPM?

Comment 6 Robert-André Mauchin 🐧 2017-11-21 17:27:43 UTC
Everything seems good, package accepted.

Comment 7 Carlos Goncalves 2017-11-22 09:40:30 UTC
Repo request: https://pagure.io/releng/fedora-scm-requests/issue/3223

Comment 8 Patrick Uiterwijk 2017-11-24 15:10:10 UTC
(fedrepo-req-admin):  The Pagure repository was created at https://src.fedoraproject.org/rpms/python-octaviaclient

Comment 9 Carlos Goncalves 2017-11-24 16:40:51 UTC
This is my first package and thus I need sponsoring. Could you please sponsor?

Comment 10 hguemar 2017-11-27 10:13:15 UTC
I'm sponsoring Carlos, he will be working with RDO project to maintain this package and he will get our support when he needs to.
FAS: hguemar (yeah, too lazy to switch to my fp.o account on RHBZ :o) )

Comment 11 hguemar 2017-11-27 10:14:55 UTC
Removing FE-NEEDSPONSOR as I sponsored Carlos in the packager group

Comment 12 Carlos Goncalves 2017-11-27 10:40:07 UTC
python-octaviaclient file sources successfully push to http://pkgs.fedoraproject.org/cgit/rpms/python-octaviaclient.git/

It was also successfully built for f28 (rawhide): http://koji.fedoraproject.org/koji/buildinfo?buildID=1004381


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