Bug 206478

Summary: Review Request: Yumdiff - Compares RPMS installed on local and remote systems
Product: [Fedora] Fedora Reporter: Gwyn Ciesla <gwync>
Component: Package ReviewAssignee: Nobody's working on this, feel free to take it <nobody>
Status: CLOSED NOTABUG QA Contact: Fedora Package Reviews List <fedora-package-review>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: jspaleta, panemade
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-01-31 14:33:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Clean SPEC file none

Description Gwyn Ciesla 2006-09-14 16:41:41 UTC
Spec URL: http://gryffindor.jcomserv.net/yumdiff/yumdiff.spec
SRPM URL: http://gryffindor.jcomserv.net/yumdiff/yumdiff-1.0-1.src.rpm
Description: Yumdiff compares local installed RPMs to those installed on a remote host, and can call yum to install the packages missing on the local system. Written in Python for Fedora Core, Yumdiff is released under the GNU GPL.

Comment 1 Gwyn Ciesla 2006-09-14 16:44:23 UTC
This is my first package, and I am seeking a sponsor.  Thanks!

Comment 2 Parag AN(पराग) 2006-09-15 05:40:34 UTC
There needs some SPEC file changes. I have done it for you. Add Changelog entry
and add direct download upstream tarball URL and rebuild SRPM and post here.


Comment 3 Parag AN(पराग) 2006-09-15 05:41:49 UTC
Created attachment 136329 [details]
Clean SPEC file

Comment 5 Ralf Corsepius 2006-09-20 11:22:53 UTC
Jon, are you actively working on improving yumdiff?

I am having serious doubts if this script in its current shape is ready for
inclusion in FE.

Comment 6 Gwyn Ciesla 2006-09-21 11:15:53 UTC
(In reply to comment #5)
> Jon, are you actively working on improving yumdiff?
> 
> I am having serious doubts if this script in its current shape is ready for
> inclusion in FE.

I've frozen any changes while working on the submission process.  What changes
or improvements do you suggest?  I'm open to any suggestions.

Comment 7 Ralf Corsepius 2006-09-21 13:50:23 UTC
(In reply to comment #6)
> (In reply to comment #5)

> I've frozen any changes while working on the submission process.  What changes
> or improvements do you suggest?  I'm open to any suggestions.

What your script basically does at the moment, is fetching 
/var/log/rpmpkgs via ssh from a remote host and diff it against the local one.

1. This working principle can't work.
2. Your script produces bogus results (probably bugs)
3. Your script relies on many preliminaries on the remote host
4. ...

All in all, I feel your script to be in a very early stage.

Comment 8 Gwyn Ciesla 2006-09-21 13:57:25 UTC
(In reply to comment #7)
> (In reply to comment #6)
>
> What your script basically does at the moment, is fetching 
> /var/log/rpmpkgs via ssh from a remote host and diff it against the local one.
> 
> 1. This working principle can't work.
> 2. Your script produces bogus results (probably bugs)
> 3. Your script relies on many preliminaries on the remote host
> 4. ...
> 
> All in all, I feel your script to be in a very early stage.

I'm considering changing it to call rpm -qa and sort the results directly,
rather that relying on the /etc/cron.daily/rpm having run, which would likely
address #2.  As for #3, I felt if same to assume that most networked Fedora
hosts would have ssh running and rpm installed.

Could you elaborate on #1?  I'm not sure I follow what you mean.

Comment 9 Gwyn Ciesla 2006-10-18 10:05:53 UTC
Lacking a timely response from Ralf, is there anything I can do to move this
forward?   I'm willing to make improvements, but I need more specific examples
in order to make them . . .

Comment 10 Ralf Corsepius 2006-10-18 10:27:30 UTC
(In reply to comment #9)
> Lacking a timely response from Ralf,
Hmm? Note, this package is still in FE_NEW. 
I never started formally reviewing it ;)

> is there anything I can do to move this
> forward?
Yes, may-be I had not been clear enough.

IMO, your script in its current shape is non-functional (C.f. comment #7).
=> Bring it to function.

>   I'm willing to make improvements, but I need more specific examples
> in order to make them . . .
Additional food for thought:
* What if the remote host uses a different Linux distro?
* What if the remote host doesn't use rpm or yum?
* What if the remote host is not a Linux system at all (Solaris, or even Windows)?



Comment 11 Gwyn Ciesla 2006-10-18 11:16:05 UTC
(In reply to comment #10)
> (In reply to comment #9)
> > Lacking a timely response from Ralf,
> Hmm? Note, this package is still in FE_NEW. 
> I never started formally reviewing it ;)
> 
> > is there anything I can do to move this
> > forward?
> Yes, may-be I had not been clear enough.
> 
> IMO, your script in its current shape is non-functional (C.f. comment #7).
> => Bring it to function.

I guess what I'm getting at is that within scope I intended, I've not run into
any problems with this script.  In what way does it not function?

> >   I'm willing to make improvements, but I need more specific examples
> > in order to make them . . .
> Additional food for thought:
> * What if the remote host uses a different Linux distro?

Yumdiff is only intended to support Fedora, currently.

> * What if the remote host doesn't use rpm or yum?

As all Fedora hosts use rpm, and Yumdiff never calls yum on the remote host, I
don't see a problem here.

> * What if the remote host is not a Linux system at all (Solaris, or even Windows)?

See #1.

> 
> 

If there are problems or improvements I can make to make this function better
with Fedora, I will.  It was never intended to make installed-software
comparisions across distros or OSs, as these comparisons could very well be
meaningless due to differences in software version, package system type, etc.


Comment 12 Ralf Corsepius 2006-10-18 11:41:39 UTC
(In reply to comment #11)
> (In reply to comment #10)
> > (In reply to comment #9)
> > > Lacking a timely response from Ralf,
> > Hmm? Note, this package is still in FE_NEW. 
> > I never started formally reviewing it ;)
> > 
> > > is there anything I can do to move this
> > > forward?
> > Yes, may-be I had not been clear enough.
> > 
> > IMO, your script in its current shape is non-functional (C.f. comment #7).
> > => Bring it to function.
> 
> I guess what I'm getting at is that within scope I intended, I've not run into
> any problems with this script.  In what way does it not function?
Design flaw #1: The whole working principle is flawed.

You can't apply /var/log/rpmpkgs for the purpose you intend.

Just rm /var/log/rpmpkgs on the remote host and you'll see.
 
> > >   I'm willing to make improvements, but I need more specific examples
> > > in order to make them . . .
> > Additional food for thought:
> > * What if the remote host uses a different Linux distro?
> 
> Yumdiff is only intended to support Fedora, currently.
All your script does is to remotely execute a script, from inside of a python
script. It's really trivial to extend this remote script with a couple of checks
to make it more reliable.

> > * What if the remote host doesn't use rpm or yum?
> 
> As all Fedora hosts use rpm, and Yumdiff never calls yum on the remote host, I
> don't see a problem here.

> If there are problems or improvements I can make to make this function better
> with Fedora, I will.  It was never intended to make installed-software
> comparisions across distros or OSs, as these comparisons could very well be
> meaningless due to differences in software version, package system type, etc.
Design flaw #2: You are executing a script remotely. Therefore you can't rely on
any assumption.




Comment 13 Gwyn Ciesla 2006-10-18 11:45:47 UTC
Ok.  I'll address these issues and bring the results back here.  Thanks for the
input.

Comment 14 Gwyn Ciesla 2006-10-18 13:56:02 UTC
Done.
Spec URL: http://gryffindor.jcomserv.net/yumdiff/yumdiff.spec
SRPM URL: http://gryffindor.jcomserv.net/yumdiff/yumdiff-1.0-3.src.rpm

Let me know if this is sufficient.

Comment 15 Gwyn Ciesla 2006-10-30 14:33:20 UTC
Any update?  I've actually been working on this some more, and have a 1.1
release that allows an inverse flag, to update the remote system to match local.

Comment 16 Gwyn Ciesla 2006-11-10 17:08:22 UTC
New files, now with man page.

Spec URL: http://gryffindor.jcomserv.net/yumdiff/yumdiff-1.1-2.spec
SRPM URL: http://gryffindor.jcomserv.net/yumdiff/yumdiff-1.1-2.src.rpm


Comment 17 Jef Spaleta 2006-12-03 03:05:49 UTC
A suggestion,
Considering that most of the discussion so far concerns the basic functionality
and not packaging issues, I think it would be worthwhile for you to open up a
discussion on fedora-extras-list or on the upstream yum development list and get
feedback from the community as to the underlying design and functionality aims,
before continuing with a submission request.  

-jef


Comment 18 Gwyn Ciesla 2006-12-04 20:28:49 UTC
Good idea.  I'll write something up and run it up the flagpole.  Thanks.

(In reply to comment #17)
> A suggestion,
> Considering that most of the discussion so far concerns the basic functionality
> and not packaging issues, I think it would be worthwhile for you to open up a
> discussion on fedora-extras-list or on the upstream yum development list and get
> feedback from the community as to the underlying design and functionality aims,
> before continuing with a submission request.  
> 
> -jef
> 



Comment 19 Gwyn Ciesla 2007-01-05 17:24:20 UTC
New files, reflecting new "ignore version info"feature"

Spec URL: http://gryffindor.jcomserv.net/extras/yumdiff/yumdiff-1.2-1.spec
SRPM URL: http://gryffindor.jcomserv.net/extras/yumdiff/yumdiff-1.2-1.src.rpm

Will be posting to f-e-l for community brainstorm shortly. . .

Comment 20 Gwyn Ciesla 2007-01-16 19:14:46 UTC
Removing FE-NEEDSPONSOR, sponsored through limph review.

Comment 21 Gwyn Ciesla 2007-01-31 14:33:33 UTC
Following discussion on f-e-l, withdrawing review request to work on re-vamping
yumdiff.  Thanks to all for suggestions, criticism, feedback, etc.