Bug 747767

Summary: CSV export for install options produces "None" values, which fail to be imported
Product: [Retired] Beaker Reporter: Dan Callaghan <dcallagh>
Component: inventoryAssignee: Dan Callaghan <dcallagh>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 0.7CC: bpeck, mbrodeur, mcsontos, rmancy, stl
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 785048 (view as bug list) Environment:
Last Closed: 2012-03-15 00:16: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:

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. ***