From Pablo.Iranzo at redhat.com Wed Jan 10 15:54:25 2018 From: Pablo.Iranzo at redhat.com (Pablo Iranzo =?iso-8859-1?Q?G=F3mez?=) Date: Wed, 10 Jan 2018 16:54:25 +0100 Subject: [sos-devel] Sosreport sorts packages with -f and that might not show latest line with latest installed package Message-ID: <20180110155425.GM4622@redhat.com> Hi, This comes out of https://github.com/sosreport/sos/issues/1184 Where, the use of sort -f does mess with the rpm ordering not showing latest or first the higher package version. It does seem that sort -V does this: Fake entry [piranzo at collab-shell ~]$ echo "kernel-3.9.0-001.1.12.el7.x86_64" >> installed-rpms Show entry faked: [piranzo at collab-shell ~]$ grep kernel installed-rpms kernel-3.10.0-514.16.1.el7.x86_64 Thu May 4 17:11:30 2017 kernel-3.10.0-693.11.6.el7.x86_64 Tue Jan 9 12:26:12 2018 kernel-3.10.0-693.2.2.el7.x86_64 Wed Sep 20 17:32:23 2017 kernel-3.9.0-001.1.12.el7.x86_64 Entry was at the end, now let's try sort -V: [piranzo at collab-shell ~]$ grep kernel installed-rpms |sort -V kernel-3.9.0-001.1.12.el7.x86_64 kernel-3.10.0-514.16.1.el7.x86_64 Thu May 4 17:11:30 2017 kernel-3.10.0-693.2.2.el7.x86_64 Wed Sep 20 17:32:23 2017 kernel-3.10.0-693.11.6.el7.x86_64 Tue Jan 9 12:26:12 2018 What are your toughs on this? Even if we've several sos report versions hanging around with the 'unnatural' sorting, it still be good in the future to have this as default to quickly check the installed rpm's ordered (request that introduced the sort -f, to visually check package versions for the same package alongside), and also, allow to check last line for latest version. Thanks, Pablo -- Pablo Iranzo G?mez (Pablo.Iranzo at redhat.com) GnuPG: 0x5BD8E1E4 Senior Software Maintenance Engineer - OpenStack iranzo @ IRC RHC{A,SS,DS,VA,E,SA,SP,AOSP}, JBCAA #110-215-852 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 228 bytes Desc: not available URL: From jhunsake at redhat.com Wed Jan 10 19:56:21 2018 From: jhunsake at redhat.com (Jake Hunsaker) Date: Wed, 10 Jan 2018 14:56:21 -0500 Subject: [sos-devel] Changing sosreport tarball names Message-ID: Hi list, There is currently a proposal upstream for sos to change the naming pattern for sos tarballs (or more precisely, allowing distribution policies to change it): https://github.com/sosreport/sos/pull/1175 Specifically, for the RH family (currently there would be no change to any other distros) this would change the tarball names from something like: sosreport-tux.123456-20180110142241.tar.xz to sosreport-tux-123456-2018-01-10-abcdefg.tar.xz which I believe is easier on the eyes, and better for being able to quickly reference sosreports especially when there are multiple sosreports attached to a particular case. The 'abcdefg' at the end will be a random 7-alpha character string. For example, instead of parsing through the full date string, one can just say "look at sosreport qwertyu". So I'm asking for feedback on making this change (or not). Particularly interested if this has the potential to cause trouble with any tooling/automation/etc anyone has in place for working with sosreports. Thanks! - jake -- Jake Hunsaker Sr. Container and Virtualization Support Engineer From pmoravec at redhat.com Fri Jan 12 07:15:54 2018 From: pmoravec at redhat.com (Pavel Moravec) Date: Fri, 12 Jan 2018 08:15:54 +0100 Subject: [sos-devel] Changing sosreport tarball names In-Reply-To: References: Message-ID: As I expressed in upstream, I personally like bit more the variant sosreport-tux-123456-2018-01-10_08-13-55.tar.xz due to sorting multiple reports from a day. But the proposed improvement is ok for me, it still does improve the current hard-to-read name. Kind regards, Pavel On Wed, Jan 10, 2018 at 8:56 PM, Jake Hunsaker wrote: > Hi list, > > There is currently a proposal upstream for sos to change the naming > pattern for sos tarballs (or more precisely, allowing distribution policies > to change it): > > https://github.com/sosreport/sos/pull/1175 > > > Specifically, for the RH family (currently there would be no change to any > other distros) this would change the tarball names from something like: > > sosreport-tux.123456-20180110142241.tar.xz > > to > > sosreport-tux-123456-2018-01-10-abcdefg.tar.xz > > > which I believe is easier on the eyes, and better for being able to > quickly reference sosreports especially when there are multiple sosreports > attached to a particular case. The 'abcdefg' at the end will be a random > 7-alpha character string. For example, instead of parsing through the full > date string, one can just say "look at sosreport qwertyu". > > > So I'm asking for feedback on making this change (or not). Particularly > interested if this has the potential to cause trouble with any > tooling/automation/etc anyone has in place for working with sosreports. > > > Thanks! > > - jake > > -- > Jake Hunsaker > Sr. Container and Virtualization Support Engineer > > _______________________________________________ > sos-devel mailing list > sos-devel at redhat.com > https://www.redhat.com/mailman/listinfo/sos-devel > -------------- next part -------------- An HTML attachment was scrubbed... URL: