Problems with hammer csv

csv export and csv import should both work but there seem to be a few
problems.

As a general feature it should be possible to apply an organization
and/or a location to be used when creating the objects in the csv files.

installation-medias: does not work and generates "Missing arguments for
'medium'".
compute-resources: generates "Error: undefined method Error: 500 Internal Server Error" along with the csv data. partition tables: kicks out "Error: invalid format character - %" content-views: looks to only process the first entry and then kicks out "Error: undefined methodeach' for nil:NilClass"
activation-keys: has extra fields in the output csv.(field 2 in the data).
operating-systems: does not set the architectures.
sync-plans: does not add the products.

the compute resources should also include the extra information needed
to create the various resource types.
Things like user/pass or id/key for resource sources like EC2.

some csv files have quoted text some do not.

··· -- Alvin Starr || voice: (905)513-7688 Netvel Inc. || Cell: (416)806-0133 alvin@netvel.net ||

Please file redmine issues[1] for any problems or shortcomings you find. There are several PRs open[2] that I'd welcome your feedback on (ack/nack/comments).

For the most part the hammer-cli-csv module grows incrementally as I encounter needs. It is relatively straight forward to add both new export as well as import columns for resources and your own contributions, either as PRs or as redmine issues w/ requests, would be very welcome!

A currently open PR will hide any of the options that are not production worthy (in preparation for officially supporting it when Satellite-6.2 ships). All the functionality will remain and be revealed as I get tests, docs, etc. for each subcommand.

[1] Foreman Category:CLI w/ hammer-cli-csv in Subject, if you don't mind.
[2] https://github.com/katello/hammer-cli-csv/pulls

··· ----- Original Message ----- > csv export and csv import should both work but there seem to be a few > problems. > > As a general feature it should be possible to apply an organization > and/or a location to be used when creating the objects in the csv files. > > installation-medias: does not work and generates "Missing arguments for > 'medium'". > compute-resources: generates "Error: undefined method `Error: 500 > Internal Server Error" along with the csv data. > partition tables: kicks out "Error: invalid format character - %" > content-views: looks to only process the first entry and then kicks out > "Error: undefined method `each' for nil:NilClass" > activation-keys: has extra fields in the output csv.(field 2 in the data). > operating-systems: does not set the architectures. > sync-plans: does not add the products. > > the compute resources should also include the extra information needed > to create the various resource types. > Things like user/pass or id/key for resource sources like EC2. > > some csv files have quoted text some do not. > > > > -- > Alvin Starr || voice: (905)513-7688 > Netvel Inc. || Cell: (416)806-0133 > alvin@netvel.net || > > -- > You received this message because you are subscribed to the Google Groups > "Foreman users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to foreman-users+unsubscribe@googlegroups.com. > To post to this group, send email to foreman-users@googlegroups.com. > Visit this group at https://groups.google.com/group/foreman-users. > For more options, visit https://groups.google.com/d/optout. >

P.S. If you find problems on importing, including the CSV file in the redmine issue would be great.

··· ----- Original Message ----- > > > ----- Original Message ----- > > csv export and csv import should both work but there seem to be a few > > problems. > > > > As a general feature it should be possible to apply an organization > > and/or a location to be used when creating the objects in the csv files. > > > > installation-medias: does not work and generates "Missing arguments for > > 'medium'". > > compute-resources: generates "Error: undefined method `Error: 500 > > Internal Server Error" along with the csv data. > > partition tables: kicks out "Error: invalid format character - %" > > content-views: looks to only process the first entry and then kicks out > > "Error: undefined method `each' for nil:NilClass" > > activation-keys: has extra fields in the output csv.(field 2 in the data). > > operating-systems: does not set the architectures. > > sync-plans: does not add the products. > > > > the compute resources should also include the extra information needed > > to create the various resource types. > > Things like user/pass or id/key for resource sources like EC2. > > > > some csv files have quoted text some do not. > > > > > > > > -- > > Alvin Starr || voice: (905)513-7688 > > Netvel Inc. || Cell: (416)806-0133 > > alvin@netvel.net || > > > > -- > > You received this message because you are subscribed to the Google Groups > > "Foreman users" group. > > To unsubscribe from this group and stop receiving emails from it, send an > > email to foreman-users+unsubscribe@googlegroups.com. > > To post to this group, send email to foreman-users@googlegroups.com. > > Visit this group at https://groups.google.com/group/foreman-users. > > For more options, visit https://groups.google.com/d/optout. > > > > Please file redmine issues[1] for any problems or shortcomings you find. > There are several PRs open[2] that I'd welcome your feedback on > (ack/nack/comments). > > For the most part the hammer-cli-csv module grows incrementally as I > encounter needs. It is relatively straight forward to add both new export as > well as import columns for resources and your own contributions, either as > PRs or as redmine issues w/ requests, would be very welcome! > > A currently open PR will hide any of the options that are not production > worthy (in preparation for officially supporting it when Satellite-6.2 > ships). All the functionality will remain and be revealed as I get tests, > docs, etc. for each subcommand. > > [1] http://projects.theforeman.org/projects/katello/issues/new Category:CLI > w/ hammer-cli-csv in Subject, if you don't mind. > [2] https://github.com/katello/hammer-cli-csv/pulls

I will be holding off on filing a redmine issue just because my install
is so badly screwed up its hard to tell what is wrong.
Once I get things rebuilt I will give this another try.

Sadly this whole effort did not get rid of the problem that has been
plaguing me.

··· On 04/01/2016 04:54 PM, Tom McKay wrote: > > ----- Original Message ----- >> csv export and csv import should both work but there seem to be a few >> problems. >> >> As a general feature it should be possible to apply an organization >> and/or a location to be used when creating the objects in the csv files. >> >> installation-medias: does not work and generates "Missing arguments for >> 'medium'". >> compute-resources: generates "Error: undefined method `Error: 500 >> Internal Server Error" along with the csv data. >> partition tables: kicks out "Error: invalid format character - %" >> content-views: looks to only process the first entry and then kicks out >> "Error: undefined method `each' for nil:NilClass" >> activation-keys: has extra fields in the output csv.(field 2 in the data). >> operating-systems: does not set the architectures. >> sync-plans: does not add the products. >> >> the compute resources should also include the extra information needed >> to create the various resource types. >> Things like user/pass or id/key for resource sources like EC2. >> >> some csv files have quoted text some do not. >> >> >> >> -- >> Alvin Starr || voice: (905)513-7688 >> Netvel Inc. || Cell: (416)806-0133 >> alvin@netvel.net || >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Foreman users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to foreman-users+unsubscribe@googlegroups.com. >> To post to this group, send email to foreman-users@googlegroups.com. >> Visit this group at https://groups.google.com/group/foreman-users. >> For more options, visit https://groups.google.com/d/optout. >> > Please file redmine issues[1] for any problems or shortcomings you find. There are several PRs open[2] that I'd welcome your feedback on (ack/nack/comments). > > For the most part the hammer-cli-csv module grows incrementally as I encounter needs. It is relatively straight forward to add both new export as well as import columns for resources and your own contributions, either as PRs or as redmine issues w/ requests, would be very welcome! > > A currently open PR will hide any of the options that are not production worthy (in preparation for officially supporting it when Satellite-6.2 ships). All the functionality will remain and be revealed as I get tests, docs, etc. for each subcommand. > > [1] http://projects.theforeman.org/projects/katello/issues/new Category:CLI w/ hammer-cli-csv in Subject, if you don't mind. > [2] https://github.com/katello/hammer-cli-csv/pulls > -- Alvin Starr || voice: (905)513-7688 Netvel Inc. || Cell: (416)806-0133 alvin@netvel.net ||