Bug 639369 - Review Request: gfs2-utils - Fileysystem utilities for the GFS2 Filesystem
Summary: Review Request: gfs2-utils - Fileysystem utilities for the GFS2 Filesystem
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Ben Marzinski
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 505061
TreeView+ depends on / blocked
 
Reported: 2010-10-01 15:10 UTC by Steve Whitehouse
Modified: 2010-12-14 09:42 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-12-14 09:42:19 UTC
Type: ---
Embargoed:
bmarzins: fedora-review+


Attachments (Terms of Use)
Draft spec file (8.36 KB, application/octet-stream)
2010-10-01 15:13 UTC, Steve Whitehouse
no flags Details
Updated spec file (8.37 KB, application/octet-stream)
2010-10-18 15:39 UTC, Steve Whitehouse
no flags Details
Source RPM (315.02 KB, application/x-rpm)
2010-10-18 15:41 UTC, Steve Whitehouse
no flags Details
Spec file (updated) (8.41 KB, application/octet-stream)
2010-10-27 10:31 UTC, Steve Whitehouse
no flags Details
Source rpm (330.67 KB, application/x-rpm)
2010-10-27 10:32 UTC, Steve Whitehouse
no flags Details

Description Steve Whitehouse 2010-10-01 15:10:36 UTC
Spec URL: Attached
SRPM URL: TBD
Description:

The gfs2-utils package contains a number of utilities for creating,
mounting, checking, modifying, and correcting any inconsistencies in GFS2
filesystems.


Important Note: This is complicated.... so I'm going to be adding to this bug over the next few days. Feel free to comment in the mean time, but not everything is ready for a full review right away. The plan is this:

1. To bring back gfs2-utils as a package in its own right
2. To add a new subpackage to gfs2-utils, gfs2-cluster which will contain the cluster parts of the gfs2 userland infrastructure
3. To drop those items from the pre-existing cluster package (which means dropping the gfs2-utils binary package in its entirety, and the parts of the cman binary package which will move into gfs2-cluster)
4. The new gfs2-utils package will then be built in all versions of Fedora and work alongside the newly adjusted cluster packages

The main reason for doing this is that the releases of the GFS2 packages will then be independent from those of the rest of the cluster infrastructure. That means that the GFS2 team can deal with those releases directly, taking some of the load from the cluster team.

The only missing item at the moment, is an init script for gfs2-cluster which I'll add to the upstream source shortly. In the mean time, the gfs2-utils spec file will, I hope, not change very much so that is available for review now.

The upstream source can be found here:
http://git.fedorahosted.org/git/?p=gfs2-utils.git

Comment 1 Steve Whitehouse 2010-10-01 15:13:08 UTC
Created attachment 451033 [details]
Draft spec file

Hopefully this isn't too far from the final spec file.

Comment 2 Steve Whitehouse 2010-10-04 09:15:24 UTC
Note that the initscript that was mentioned as missing in the opening comment has now been added upstream. So we are getting closer now.

Comment 3 Steve Whitehouse 2010-10-04 09:30:24 UTC
Also a reminder to myself, we'll need to add a conflicts line for cman prior to when gfs_controld is removed from cman, but I need to wait to do that, until I know exactly which version of cman that will be.

Comment 4 Steve Whitehouse 2010-10-18 15:39:05 UTC
Created attachment 454152 [details]
Updated spec file

Now I know what the versions will be, updated the version info for the package and for the cman dependency. So only a fairly minor change.

Once we are sure that we are ready to release, I'll drop a version tag into the git tree which will allow the script to create tar balls of the correct name.

Plan is to call this 3.1.0 in order that we are in sync with the rest of the cluster packages. What happens after that doesn't matter so long as we move upwards.

Comment 5 Steve Whitehouse 2010-10-18 15:41:51 UTC
Created attachment 454154 [details]
Source RPM

Added the source rpm.

Comment 6 Ben Marzinski 2010-10-25 20:00:02 UTC
spec file needs

BuildRequires: libtool

Comment 7 Steve Whitehouse 2010-10-26 10:24:22 UTC
Is that the only issue? Normal practise is to paste the checklist into the bz and check them off as you go through them I think.

Let me know about comment #6 and I'll update the spec file.

Comment 8 Ben Marzinski 2010-10-26 14:47:26 UTC
No. That was just the first issue I spotted.

Here is the important rpmlint results:
gfs2-utils.src: W: no-version-in-last-changelog

Needs a version in the last changelog entry

gfs2-utils.src: W: invalid-url Source0: gfs2-utils-3.1.0.tar.gz

It wants a URL to go to for the source. I'm not sure if we can ignore this warning, since we are upstream. However the cluster package currently has one.

Comment 9 Steve Whitehouse 2010-10-26 14:58:10 UTC
The source url thing we can ignore according to the instructions. The alternative is to add a comment to describe where the source comes from, which is what I did in this case.

My long term plan is to use the script in the gfs2-utils tree to create tar balls and then we can stick them somewhere (kernel.org might be easiest) and that will allow us to replace that with a real url. I don't want to do that until I drop the release tag into the git tree though, which I'll do shortly.

I'll try and figure out what the other warning means and sort that out when I next update the spec file.

Comment 10 Ben Marzinski 2010-10-26 15:39:27 UTC
The only other rmplint warning that wasn't a false positive when I checked was

gfs2-utils.src: W: no-version-in-last-changelog

which just means you need to add the version to your changelog message.

change

* Tue Sep 30 2010 Steven Whitehouse <swhiteho>

to

* Tue Sep 30 2010 Steven Whitehouse <swhiteho> 3.1.0-1


Looking at the scriptlets, I assume you mean to remove the gfs2-cluster service, not cman.

%preun -n gfs2-cluster
if [ "$1" = 0 ]; then
        /sbin/service stop gfs2-cluster >/dev/null 2>&1
        /sbin/chkconfig --del cman
fi

Comment 11 Fabio Massimo Di Nitto 2010-10-26 15:45:53 UTC
Or you can simply use the fedorahosted release area. The URL is already known for you and even if you haven't actually uploaded a tarball there, you can still update the spec file to point to it. To release there, you simply need to scp the tarball. See how we do it for cluster STABLE3 in make/releases.mk publish target. Your releases would be in 

https://fedorahosted.org/releases/g/f/gfs2-utils/....

I remember at somepoint, but I might be mistaken, that some of the fedora automatic tool checks, does a URL sanity check to verify that the tarball referenced by the spec file is actually the same as the one in the fedora build cache. I'd recommend to allow that check to run smoothly (aka add the URL as it costs nothing) as a mismatch is source of questions and BZs.

Fabio

Comment 12 Ben Marzinski 2010-10-26 21:08:00 UTC
That's all the issues I found with this package.

Comment 13 Steve Whitehouse 2010-10-27 10:31:31 UTC
Created attachment 455941 [details]
Spec file (updated)

Three changes:

1. Added version to most recent comment
2. Added BuildRequired: libtool
3. Fixed script to refer to gfs-cluster rather than cman

Comment 14 Steve Whitehouse 2010-10-27 10:32:22 UTC
Created attachment 455943 [details]
Source rpm

Updated source rpm

Comment 16 Steve Whitehouse 2010-10-27 10:34:49 UTC
Oops. Wrong bug.

Please ignore comment #15

Comment 17 Steve Whitehouse 2010-10-27 10:48:42 UTC
Note that I've dropped a 3.1.0 tag into the gfs2-utils git tree now. That means that the make-tarball.sh script which I wrote a little while back will now create the release tar ball directly from the git tree.

Any further patches checked into the git tree will have to wait for 3.1.1 now.


Assuming that Ben is happy with everything now, we are pretty much ready to go I think.

Comment 18 Ben Marzinski 2010-10-27 14:48:24 UTC
Looks good to me.

Comment 19 Steve Whitehouse 2010-10-27 16:28:23 UTC
Package Change Request
======================
Package Name: gfs2-utils
New Branches: f13 f14
Owners: swhiteho, bmarzins, adas, rpeterso, fabbione
InitialCC: 


This is complicated, so let me explain what we want to do here:

 - There is an already existing (but obsolete) gfs2-utils package which we'd like to revive with the (new) source package to which this bugzilla relates.
 - There is an already existing package called cluster which builds a number of binary packages including (currently) gfs2-utils and cman

We want to:
 - Use this package to replace the pre-existing gfs2-utils binary package
 - Use this package to build a new gfs2-cluster binary package which replaces part of the existing cman binary package
 - Adjust the spec file for the cluster package so that it does not build gfs2-utils at all, and so that the cman package will no longer contain gfs_control, gfs_controld and the respective man page, which will now be part of gfs2-cluster

The plan is based upon the first version after the split being version 3.1.0 (that will be the same across both SRPMs in order to avoid confusion). So we need to coordinate with the actions being carried out in the cluster package, in order that both happen at the same time.

The reason for the rather complicated split is to allow the gfs2 developers to look after their own packages independent of the remainder of the cluster packages once the split has taken place.

To try and sum it up simply, the idea is this:

cluster SRPM:
   gfs2-utils binary package -> removed
   cman binary package -> gfs_control, gfs_controld & man page removed
   other binary packages -> continue as before

gfs2-utils SRPM: (this bugzilla)
  gfs2-utils binary package (identical content to cluster SRPMs gfs2-utils binary package)
  gfs2-cluster binary package (some of the content from old cman package, plus new init script)

The cluster maintainer (Fabio) is not quite ready yet to make the change, so this is a heads up on what we want to do so that you can flag up any issues which may arise. Also if there are things which can be set up in the mean time, then I'd like to get them set up sooner rather than later to avoid having too much to do when we do the switch.

This package is however ready, and so I want to be certain that we've not got anything else which needs to be done, bar the final switch over from our PoV.

Comment 20 Fabio Massimo Di Nitto 2010-10-27 17:01:27 UTC
> The cluster maintainer (Fabio) is not quite ready yet to make the change, so
> this is a heads up on what we want to do so that you can flag up any issues
> which may arise. Also if there are things which can be set up in the mean time,
> then I'd like to get them set up sooner rather than later to avoid having too
> much to do when we do the switch.
> 
> This package is however ready, and so I want to be certain that we've not got
> anything else which needs to be done, bar the final switch over from our PoV.

cluster upstream and packages will be ready in approx 2 weeks. I´d strongly recommend to get gfs2-utils srpm/rpm ready and tested in the meantime.

Comment 21 Steve Whitehouse 2010-10-27 17:38:18 UTC
RE: comment #20

It is ready now.

Comment 22 Jens Petersen 2010-10-28 09:08:10 UTC
adas appears not to be a Fedora Packager.

Could you please fix the Change Request?

Comment 23 Steve Whitehouse 2010-10-28 10:09:46 UTC
Package Change Request
======================
Package Name: gfs2-utils
New Branches: f13 f14
Owners: swhiteho, bmarzins, rpeterso, fabbione
InitialCC: 


See comment #19 for additional details.

RE: comment #22. I've removed Abhi from the list for now. Once the package is created I'll arrange for him to have access to it. Let me know if there are any other issues.

Comment 24 Kevin Fenzi 2010-10-28 17:48:04 UTC
This package already exists. 

I have 'unretired' it in devel/rawhide. 

Please reset the fedora-cvs flag if you need anything further.

Comment 25 Steve Whitehouse 2010-11-01 19:59:24 UTC
Package Change Request
======================
Package Name: gfs2-utils
New Branches: f13 f14
Owners: swhiteho, bmarzins, rpeterso, fabbione
InitialCC: 


RE: comment #24. The branches for f-13 and f-14 don't appear to exist. I assume that you still need to create them.... or do I do that?

Also I want to confirm exactly what the final step needs to be in order to get gfs2-utils building again in all branches. I want to do as much as possible to get things ready without actually releasing anything at this stage. So if I add back in the spec file and upload the sources to the lockaside cache, etc., can I be 100% sure that nothing will get released until we are ready to synchronize with the cluster team?

Sorry its a long question, but we need to be certain. Can I assume that nothing will get released until the dead.package file is removed for example?

Comment 26 Kevin Fenzi 2010-11-03 04:04:04 UTC
Ah, the branches existed in pkgdb, but were not on the git server. 

I have fixed that. 

Nothing will be released until you remove the dead.package, import a package
and build it (and push it as an update for stable releases).

Comment 27 Steve Whitehouse 2010-11-16 12:00:51 UTC
To keep everybody uptodate, Fabio is currently building all the cluster packages (including this one) to test, and if successful, we'll be "going live" with the new package very shortly.

Comment 28 Fabio Massimo Di Nitto 2010-12-02 10:33:33 UTC
Hi Kevin,

I am having problems to build this package. It appears that not all the work in the backend has been done.

2638831 build (dist-rawhide, /gfs2-utils:c4f049f791f862220b28e1baff35a9f7446539fe): open (x86-19.phx2.fedoraproject.org) -> FAILED: BuildError: package gfs2-utils is blocked for tag dist-f15

Can you please fix it and make sure to unlock it for all stable releases too? f13/f14. No plans to backport to f12 before EOL.

Thanks
Fabio

Comment 29 Kevin Fenzi 2010-12-02 16:06:19 UTC
Please try again now?

Comment 30 Fabio Massimo Di Nitto 2010-12-02 18:27:58 UTC
It appears Steven did build rawhide and f13. I am unable to test f14 myself as I am getting some other errors. Steven will figure that out.

Thanks
Fabio

Comment 31 Jason Tibbitts 2010-12-06 16:04:36 UTC
I'm not sure why the fedora-cvs flag is still set, but I don't see unprocessed request, so I'll clear the flag.  If there is something left to be done, please explain.

Comment 32 Steve Whitehouse 2010-12-14 09:42:19 UTC
This seems to be all ok now and the updates have all been pushed to f13/f14, so I think we can close this now unless anybody has any objections.


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