Re: Reviving the hardware census

2017-11-08 Thread Nathaniel McCallum
It isn't documented in F27, but it does work. However, we probably want at least this patch: https://github.com/lyonel/lshw/commit/135a853c60582b14c5b67e5cd988a8062d9896f4 On Wed, Nov 8, 2017 at 4:28 PM, Don Zickus wrote: > On Wed, Nov 08, 2017 at 04:09:26PM -0500, Nathaniel

Re: Reviving the hardware census

2017-11-08 Thread Don Zickus
On Wed, Nov 08, 2017 at 04:09:26PM -0500, Nathaniel McCallum wrote: > I just looked at the code for lshw. The master branch already supports > JSON. We just need them to release it. Eh? 'lshw -json' doesn't work for you? I thought that was a supported output for a while now. At least it works

Re: Reviving the hardware census

2017-11-08 Thread Nathaniel McCallum
I just looked at the code for lshw. The master branch already supports JSON. We just need them to release it. On Wed, Nov 8, 2017 at 3:23 PM, Don Zickus wrote: > On Wed, Nov 08, 2017 at 03:16:24PM -0500, Nathaniel McCallum wrote: >> I just played around with lshw a bit. We

Re: Reviving the hardware census

2017-11-08 Thread Nathaniel McCallum
External plugins? No. We are talking about internal modular interfaces used to separate the code conceptually. This allows us to delegate data collection easily to domain experts. It also allows users to choose, somewhat coursely, which day they report. For example, some users may be fine with

Re: Reviving the hardware census

2017-11-08 Thread Jeremy Cline
On 11/08/2017 03:18 PM, Nathaniel McCallum wrote: > I agree completely. My point is not that we don't need any planning, > but that the planing is scoped per plugin. Do we really need the concept of plugins, though? Are there going to be plugins that live outside of the census "core"? Will users

Re: Reviving the hardware census

2017-11-08 Thread Don Zickus
On Wed, Nov 08, 2017 at 03:16:24PM -0500, Nathaniel McCallum wrote: > I just played around with lshw a bit. We should totally make it export > JSON. We can then submit this directly (as one census plugin). Yes, that is how we use it to update hardware info internally to our Beaker instance. :-)

Re: Reviving the hardware census

2017-11-08 Thread Nathaniel McCallum
I agree completely. My point is not that we don't need any planning, but that the planing is scoped per plugin. On Wed, Nov 8, 2017 at 3:05 PM, Jeremy Cline wrote: > On 11/08/2017 09:24 AM, Nathaniel McCallum wrote: >> Here is why I don't think we need to have all the data

Re: Reviving the hardware census

2017-11-08 Thread Nathaniel McCallum
I just played around with lshw a bit. We should totally make it export JSON. We can then submit this directly (as one census plugin). On Wed, Nov 8, 2017 at 12:34 PM, Don Zickus wrote: > On Tue, Nov 07, 2017 at 10:49:02PM +, Jeremy Cline wrote: >> Hey folks, >> >> For

Re: Reviving the hardware census

2017-11-08 Thread Jeremy Cline
On 11/08/2017 09:24 AM, Nathaniel McCallum wrote: > Here is why I don't think we need to have all the data collection > requirements up front. Clevis is designed to be very modular. A data > collector plugin is just an executable that outputs a JSON blob. A > corresponding server-side plugin

Re: Reviving the hardware census

2017-11-08 Thread Josh Boyer
On Wed, Nov 8, 2017 at 2:14 PM, Don Zickus wrote: > On Wed, Nov 08, 2017 at 01:48:36PM -0500, Josh Boyer wrote: >> >> [1] https://github.com/npmccallum/census >> >> [2] https://github.com/npmccallum/census/blob/master/client/plugins/ >> >> [3]

Re: Reviving the hardware census

2017-11-08 Thread Don Zickus
On Wed, Nov 08, 2017 at 01:48:36PM -0500, Josh Boyer wrote: > >> [1] https://github.com/npmccallum/census > >> [2] https://github.com/npmccallum/census/blob/master/client/plugins/ > >> [3] https://github.com/npmccallum/census/pull/3 > > > > Internally, we have been focusing on using 'lshw' as the

Re: Reviving the hardware census

2017-11-08 Thread Josh Boyer
On Wed, Nov 8, 2017 at 12:34 PM, Don Zickus wrote: > On Tue, Nov 07, 2017 at 10:49:02PM +, Jeremy Cline wrote: >> Hey folks, >> >> For some time now, Fedora has operated without a database of hardware >> users have. Smolt, the old hardware database, was retired in 2012[0]

Re: Reviving the hardware census

2017-11-08 Thread Don Zickus
On Tue, Nov 07, 2017 at 10:49:02PM +, Jeremy Cline wrote: > Hey folks, > > For some time now, Fedora has operated without a database of hardware > users have. Smolt, the old hardware database, was retired in 2012[0] and > its intended successor[1] was never deployed by Fedora Infrastructure.

Re: Reviving the hardware census

2017-11-08 Thread Nathaniel McCallum
I forgot to post the link to the server-side of the pci plugin: https://github.com/npmccallum/census/blob/master/libs/census/server/plugins/hardware/pci.py On Wed, Nov 8, 2017 at 9:24 AM, Nathaniel McCallum wrote: > Here is why I don't think we need to have all the data

Re: Reviving the hardware census

2017-11-08 Thread Nathaniel McCallum
Here is why I don't think we need to have all the data collection requirements up front. Clevis is designed to be very modular. A data collector plugin is just an executable that outputs a JSON blob. A corresponding server-side plugin parses this data and stores it in the database in an efficient

Re: Reviving the hardware census

2017-11-08 Thread Peter Robinson
On Tue, Nov 7, 2017 at 10:49 PM, Jeremy Cline wrote: > Hey folks, > > For some time now, Fedora has operated without a database of hardware > users have. Smolt, the old hardware database, was retired in 2012[0] and > its intended successor[1] was never deployed by Fedora

Re: Reviving the hardware census

2017-11-08 Thread Bastien Nocera
- Original Message - > Hey folks, > > For some time now, Fedora has operated without a database of hardware > users have. Smolt, the old hardware database, was retired in 2012[0] and > its intended successor[1] was never deployed by Fedora Infrastructure. > > It would be nice to have a