Bug 747767 - CSV export for install options produces "None" values, which fail to be imported
Summary: CSV export for install options produces "None" values, which fail to be imported
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Beaker
Classification: Retired
Component: inventory
Version: 0.7
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified vote
Target Milestone: ---
Assignee: Dan Callaghan
QA Contact:
URL:
Whiteboard:
: 660179 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-21 00:49 UTC by Dan Callaghan
Modified: 2019-05-22 13:41 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 785048 (view as bug list)
Environment:
Last Closed: 2012-03-15 00:16:33 UTC


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 660179 0 low CLOSED System Install Options export produces broken data 2021-02-22 00:41:40 UTC

Internal Links: 660179

Description Dan Callaghan 2011-10-21 00:49:21 UTC
The CSV export for install options produces rows like this:

install,machine.example.com,i386,None,None,,"ksdevice=link console=ttyS1,57600n8","console=ttyS1,57600n8"

Attempting to re-import the same CSV output gives errors like this:

machine.example.com: Error! Invalid family None

The "None" values should probably be written as empty string in the CSV output instead.

Comment 1 Dan Callaghan 2011-10-24 04:04:00 UTC
While testing I noticed that the CSV output also fails to include install options for specific distro families and updates -- it only includes at most one row per system, instead of all rows. That will be fixed with this bug too.

Comment 2 Matt Brodeur 2012-01-20 19:07:59 UTC
Just in case it wasn't tested/fixed already, this bug shows up on the exclude csv_type too.

heka-srv-01.sbu.lab.eng.bos.redhat.com: Invalid Family Fedora7 Update None
heka-srv-01.sbu.lab.eng.bos.redhat.com: Invalid Family Fedora8 Update None
and on and on


Replacing the literal "None"s in the input CSV with empty strings does allow the import and sets the desired values.

Comment 3 Dan Callaghan 2012-01-27 03:37:34 UTC
Nope sorry, I didn't notice that problem with the exclude CSV. I've created bug 785048 for that.

Comment 4 Dan Callaghan 2012-02-29 22:37:59 UTC
*** Bug 660179 has been marked as a duplicate of this bug. ***


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