Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
Summary: Review Request: imagefactory - System image generation tool
https://bugzilla.redhat.com/show_bug.cgi?id=721144
Summary: Review Request: imagefactory - System image generation tool Product: Fedora Version: rawhide Platform: Unspecified OS/Version: Unspecified Status: NEW Severity: unspecified Priority: unspecified Component: Package Review AssignedTo: nobody@fedoraproject.org ReportedBy: clalance@redhat.com QAContact: extras-qa@fedoraproject.org CC: notting@redhat.com, package-review@lists.fedoraproject.org Classification: Fedora Story Points: ---
Spec URL: http://people.redhat.com/clalance/imagefactory/imagefactory.spec SRPM URL: http://people.redhat.com/clalance/imagefactory/imagefactory-0.3.1-1.fc14.src...
Description: imagefactory is a daemon that listens for build requests via QMF. When a build request is received, imagefactory will build the requested image for the requested target.
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=721144
Chris Lalancette clalance@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends on| |717966
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=721144
Mark McLoughlin markmc@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |markmc@redhat.com AssignedTo|nobody@fedoraproject.org |markmc@redhat.com Flag| |fedora-review?
--- Comment #1 from Mark McLoughlin markmc@redhat.com 2011-07-18 04:47:59 EDT --- Looks good overall. I've only a bunch of fairly minor comments
rpmlint shows no problems
$> rpmlint imagefactory.spec 0 packages and 1 specfiles checked; 0 errors, 0 warnings. $> rpmlint imagefactory-0.3.1-1.fc14.src.rpm 1 packages and 0 specfiles checked; 0 errors, 0 warnings.
other comments:
- use %{version} instead of 0.3.1 in the source URL
- license is 'ASL 2.0' not GPLv2
- looking at rpm's GROUPS file, I think I'd go for Applications/System instead of Development/Libraries
- URL instead of Url
- I don't think euca2ools is actually required; we run all the euca- commands inside EC2 instances not locally
- it also doesn't look like python-suds is a direct dependency; psphere needs it alright, but not imagefactory directly
- no need for python BR, python-setuptools is enough
- use %{__python} instead of python
- like in psphere, just do:
%install %{__python} setup.py install --root=$RPM_BUILD_ROOT --skip-build
- need to require chkconfig for post and preun and initscripts for preun
http://fedoraproject.org/wiki/Packaging/SysVInitScript#Initscripts_in_spec_f...
- looks like you also forgot %{name} in the service stop line i.e.
- /sbin/service stop >/dev/null 2>&1 - /sbin/service %{name} stop >/dev/null 2>&1
- I don't think condrestart in %postun is appropriate in our case; e.g. we don't want to cancel running builds or pushes when doing an update. For example, koji doesn't do this
- Use %{_initddir} not %{_initrddir}
http://fedoraproject.org/wiki/Packaging/SysVInitScript#Initscripts_on_the_fi...
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=721144
--- Comment #2 from Chris Lalancette clalance@redhat.com 2011-07-19 16:33:28 EDT --- (In reply to comment #1)
Looks good overall. I've only a bunch of fairly minor comments
rpmlint shows no problems
$> rpmlint imagefactory.spec 0 packages and 1 specfiles checked; 0 errors, 0 warnings. $> rpmlint imagefactory-0.3.1-1.fc14.src.rpm 1 packages and 0 specfiles checked; 0 errors, 0 warnings.
other comments:
- use %{version} instead of 0.3.1 in the source URL
Fixed.
- license is 'ASL 2.0' not GPLv2
Fixed.
- looking at rpm's GROUPS file, I think I'd go for Applications/System instead of Development/Libraries
Fixed.
- URL instead of Url
Fixed.
- I don't think euca2ools is actually required; we run all the euca- commands inside EC2 instances not locally
When we are doing "upload" or "local" style builds, the euca2ools are actually required to do the bundling. See imagefactory/builders/FedoraBuilder.py, around lines 1383.
- it also doesn't look like python-suds is a direct dependency; psphere needs it alright, but not imagefactory directly
Right, removed.
- no need for python BR, python-setuptools is enough
Sure, removed.
- use %{__python} instead of python
Done.
like in psphere, just do:
%install %{__python} setup.py install --root=$RPM_BUILD_ROOT --skip-build
Done.
- need to require chkconfig for post and preun and initscripts for preun
http://fedoraproject.org/wiki/Packaging/SysVInitScript#Initscripts_in_spec_f...
Fixed.
looks like you also forgot %{name} in the service stop line i.e.
/sbin/service stop >/dev/null 2>&1
/sbin/service %{name} stop >/dev/null 2>&1
Oops. Fixed.
- I don't think condrestart in %postun is appropriate in our case; e.g. we don't want to cancel running builds or pushes when doing an update. For example, koji doesn't do this
Good point. I guess that means we remove the %postun section completely. It does make me a tad nervous, in that after a security update the user is still running the old, affected code. Still, this is far from the only place that has this problem. Removed.
- Use %{_initddir} not %{_initrddir}
http://fedoraproject.org/wiki/Packaging/SysVInitScript#Initscripts_on_the_fi...
Fixed.
New spec: http://people.redhat.com/clalance/imagefactory/imagefactory.spec New SRPM: http://people.redhat.com/clalance/imagefactory/imagefactory-0.3.1-2.fc14.src...
Thanks for the review.
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=721144
--- Comment #3 from Mark McLoughlin markmc@redhat.com 2011-07-20 04:46:51 EDT --- (In reply to comment #2)
(In reply to comment #1)
- I don't think euca2ools is actually required; we run all the euca- commands inside EC2 instances not locally
When we are doing "upload" or "local" style builds, the euca2ools are actually required to do the bundling. See imagefactory/builders/FedoraBuilder.py, around lines 1383.
Ah, of course - right
I was just about to approve this, but then I remembered to run rpmlint on the actual RPM itself:
$> rpmlint imagefactory-0.3.1-2.fc14.noarch.rpm imagefactory.noarch: E: explicit-lib-dependency python-httplib2 imagefactory.noarch: W: conffile-without-noreplace-flag /etc/pki/imagefactory/cert-ec2.pem imagefactory.noarch: E: non-executable-script /usr/lib/python2.7/site-packages/imagefactory/ApplicationConfiguration.py 0644L /usr/bin/env imagefactory.noarch: E: non-executable-script /usr/lib/python2.7/site-packages/imagefactory/Template.py 0644L /usr/bin/env imagefactory.noarch: E: non-executable-script /usr/lib/python2.7/site-packages/imagefactory/ImageWarehouse.py 0644L /usr/bin/env imagefactory.noarch: E: non-executable-script /usr/lib/python2.7/site-packages/imagefactory/VMWare.py 0644L /usr/bin/env imagefactory.noarch: W: no-manual-page-for-binary imgfac.py 1 packages and 0 specfiles checked; 5 errors, 2 warnings.
Re: explicit-lib-dependency - this looks like a false positive to me. See http://lists.fedoraproject.org/pipermail/devel/2010-March/133955.html
Re: conffile-without-noreplace-flag - do we allow users to replace this with their own cert? If so, the error is valid.
Re: non-executable-script - do sed -i '//usr/bin/env python/d' imagefactory/*.py
Re: no-manual-page-for-binary - there actually is a man page, but not with the same name as the binary. Do we really want the binary to be installed as imgfac.py ?
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=721144
--- Comment #4 from Chris Lalancette clalance@redhat.com 2011-07-20 10:49:51 EDT --- (In reply to comment #3)
(In reply to comment #2)
(In reply to comment #1)
- I don't think euca2ools is actually required; we run all the euca- commands inside EC2 instances not locally
When we are doing "upload" or "local" style builds, the euca2ools are actually required to do the bundling. See imagefactory/builders/FedoraBuilder.py, around lines 1383.
Ah, of course - right
I was just about to approve this, but then I remembered to run rpmlint on the actual RPM itself:
$> rpmlint imagefactory-0.3.1-2.fc14.noarch.rpm imagefactory.noarch: E: explicit-lib-dependency python-httplib2 imagefactory.noarch: W: conffile-without-noreplace-flag /etc/pki/imagefactory/cert-ec2.pem imagefactory.noarch: E: non-executable-script /usr/lib/python2.7/site-packages/imagefactory/ApplicationConfiguration.py 0644L /usr/bin/env imagefactory.noarch: E: non-executable-script /usr/lib/python2.7/site-packages/imagefactory/Template.py 0644L /usr/bin/env imagefactory.noarch: E: non-executable-script /usr/lib/python2.7/site-packages/imagefactory/ImageWarehouse.py 0644L /usr/bin/env imagefactory.noarch: E: non-executable-script /usr/lib/python2.7/site-packages/imagefactory/VMWare.py 0644L /usr/bin/env imagefactory.noarch: W: no-manual-page-for-binary imgfac.py 1 packages and 0 specfiles checked; 5 errors, 2 warnings.
Re: explicit-lib-dependency - this looks like a false positive to me. See http://lists.fedoraproject.org/pipermail/devel/2010-March/133955.html
Yeah, I figured it was just looking for the lib string, and that post confirms it :).
Re: conffile-without-noreplace-flag - do we allow users to replace this with their own cert? If so, the error is valid.
No, the user can't replace it. It is the global ec2 certificate, comes from amazon, and is used (in some way) to sign the bundled images. As such, I believe it is correct as-is.
Re: non-executable-script - do sed -i '//usr/bin/env python/d' imagefactory/*.py
Fixed.
Re: no-manual-page-for-binary - there actually is a man page, but not with the same name as the binary. Do we really want the binary to be installed as imgfac.py ?
This has been a source of annoyance to me for some time. Upstream, I think we should eventually rename the binary to imagefactory and fix all of the references to it, but I don't think I want to make that kind of change right at the moment.
I've uploaded revision 3:
SRPM: http://people.redhat.com/clalance/imagefactory/imagefactory-0.3.1-3.fc14.src... SPEC: http://people.redhat.com/clalance/imagefactory/imagefactory.spec
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=721144
Mark McLoughlin markmc@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Flag|fedora-review? |fedora-review+
--- Comment #5 from Mark McLoughlin markmc@redhat.com 2011-07-20 10:56:31 EDT --- Okay, looks good to me
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=721144
--- Comment #6 from Chris Lalancette clalance@redhat.com 2011-07-20 11:13:02 EDT --- Thanks!
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=721144
Chris Lalancette clalance@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Flag| |fedora-cvs?
--- Comment #7 from Chris Lalancette clalance@redhat.com 2011-07-20 11:13:57 EDT --- New Package SCM Request ======================= Package Name: imagefactory Short Description: System image generation tool Owners: clalance
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=721144
--- Comment #8 from Jon Ciesla limb@jcomserv.net 2011-07-20 11:49:40 EDT --- Git done (by process-git-requests).
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=721144
Chris Lalancette clalance@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |CLOSED Resolution| |RAWHIDE Last Closed| |2011-07-20 13:47:53
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=721144
Bug 721144 depends on bug 717966, which changed state.
Bug 717966 Summary: Review Request: python-psphere - vSphere SDK for Python https://bugzilla.redhat.com/show_bug.cgi?id=717966
What |Old Value |New Value ---------------------------------------------------------------------------- Resolution| |NEXTRELEASE Status|ASSIGNED |CLOSED
https://bugzilla.redhat.com/show_bug.cgi?id=721144
Ian McLeod imcleod@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |imcleod@redhat.com Flags|fedora-cvs+ |fedora-cvs?
--- Comment #9 from Ian McLeod imcleod@redhat.com --- Package Change Request ====================== Package Name: imagefactory New Branches: el6 Owners: imcleod
https://bugzilla.redhat.com/show_bug.cgi?id=721144
Jon Ciesla limburgher@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Flags|fedora-cvs? |fedora-cvs+
https://bugzilla.redhat.com/show_bug.cgi?id=721144
--- Comment #10 from Jon Ciesla limburgher@gmail.com --- Git done (by process-git-requests).
package-review@lists.fedoraproject.org