Hammer CLI CSV: Issueshttps://projects.theforeman.org/https://projects.theforeman.org/favicon.ico?16970236342018-01-19T07:50:29ZForeman
Redmine Bug #22321 (New): hammer csv content-hosts create empty csv filehttps://projects.theforeman.org/issues/223212018-01-19T07:50:29ZDjebran Lezzoumldjebran@gmail.com
<p>hammer csv content-hosts create empty csv file<br />The automation test case cover customer bug <a class="external" href="https://bugzilla.redhat.com/show_bug.cgi?id=1296978">https://bugzilla.redhat.com/show_bug.cgi?id=1296978</a><br />The test in question seems randomly passing and failing, but when debugging that command we realize that command lead to other operations, where one of them is retrieving organizations, noticed that when the organization is not in that list (the list seems to be sorted by org name with limit 20) the csv file is empty, there is no error logged</p> Bug #21843 (New): Extract the strings for the foreman-admin pluginhttps://projects.theforeman.org/issues/218432017-12-01T21:27:28ZBryan Kearneybryan.kearney@gmail.com
<p>The strings are old, and not connected to transifex.</p> Bug #19945 (New): Consider matching records on import using label instead of namehttps://projects.theforeman.org/issues/199452017-06-06T14:55:12ZDavid Davisdaviddavis@redhat.com
<p>Consider the following scenario:</p>
<p>1. I export a content view to csv<br />2. I import that record into another instance<br />3. I change the content view name in the original instance<br />4. I do another import into my other instance.</p>
<p>This'll create a new record in my second instance instead of updating the existing one. With labels being immutable, the above scenario would work if we were using labels during import.</p>
<p>Not sure if this is a feature or a bug.</p> Bug #19915 (New): Support importing/exporting package group filtershttps://projects.theforeman.org/issues/199152017-06-04T15:59:02ZDavid Davisdaviddavis@redhat.com
<p>Support importing/exporting of package group filters. It looks like currently, we just export the name of the package group that the filter rule is acting on but this is insufficient since the name could exist in two different repositories. You'll note for example that you can see package group AND repo name when you go to create a package filter rule.</p>
<p>Also, we need to support importing of package filters. It looks like the code that exists is incomplete.</p> Bug #19724 (New): Support importing/exporting erratum filtershttps://projects.theforeman.org/issues/197242017-05-31T15:01:30ZDavid Davisdaviddavis@redhat.com
<p>Create an erratum filter and export it via csv. You'll get something like:</p>
<pre>
Name,Content View,Organization,Type,Description,Repositories,Rules
ERRATFILTER,Test,Default Organization,Exclude unknown,,"","start = 2012-01-01,end = 2013-01-01,""types = bugfix,enhancement,security"""
PKGFILTER,Test,Default Organization,Exclude Packages,,zoolander,test|=|3.0
</pre>
<p>Notice the type for my ERRATFILTER is unknown.</p>
<p>Relevant code: <a class="external" href="https://git.io/vHBhC">https://git.io/vHBhC</a></p> Bug #19722 (New): Content view filter export/import does not support archhttps://projects.theforeman.org/issues/197222017-05-31T10:36:36ZDavid Davisdaviddavis@redhat.com
<p>The architecture field seems to be missing.</p> Bug #17684 (New): content-hosts non-itemized export/import missing subscription parity w/ --itemi...https://projects.theforeman.org/issues/176842016-12-15T07:16:26ZThomas McKaythomasmckay@redhat.com
<p>The all-in-one subscription export/import default mode is not capable of the same features as the itemized method. Specifically, all the columns used for --itemized-subscriptions need to be represented in the all-in-one data in order to handle hypervisor and guest subscriptions properly. Once the fields are all represented then the code can be refactored to a single implementation.</p> Feature #16675 (New): hammer csv subscription --in-portal should prompt for portal-password rathe...https://projects.theforeman.org/issues/166752016-09-23T13:33:41ZAndrew Kofinkakofink@redhat.com
<p>Passing `--portal-password superSecretP@assw0rd` via the command line is insecure for multiple reasons such as cli history logging, etc. It would be much better if the user could pass a blank `--portal-password` and hammer prompt the user for the password instead.</p> Bug #16234 (New): content hosts import does not populate host collectionshttps://projects.theforeman.org/issues/162342016-08-22T18:36:42ZThomas McKaythomasmckay@redhat.com
<p>The API for adding host collections to imported content hosts has changed and no longer works. Needs to support export Sat-6.1, import/export Sat-6.2, import/export katello latest.</p> Bug #16155 (New): having no user or passwd specified in conf file gives unclear error messagehttps://projects.theforeman.org/issues/161552016-08-17T14:00:06ZThomas McKaythomasmckay@redhat.com
<p>If the user has not specified a default username/password in the hammer conf files, nor have they specified in on the command line, the error message just says " 'undefined method `clear' for nil:NilClass'". This is part of the stack trace when it fails to make http call.</p>
<p>A better error message is appropriate. (If this is general issue w/ hammer and not specific to csv, change project of this issue.)</p> Bug #15937 (New): add auto-attach column to content-hostshttps://projects.theforeman.org/issues/159372016-08-01T13:22:12ZThomas McKaythomasmckay@redhat.comBug #15747 (New): add column for download policyhttps://projects.theforeman.org/issues/157472016-07-19T14:44:08ZThomas McKaythomasmckay@redhat.com
<p>The download policy should be reflected in the export/import of repositories.</p> Feature #15317 (New): when searching for operating system, first search by description then namehttps://projects.theforeman.org/issues/153172016-06-06T17:46:36ZThomas McKaythomasmckay@redhat.com
<p>An example not working now is a column value of "Red Hat Enterprise Linux Atomic Host 7.2" which is the description. The name for this is "RedHat_Enterprise_Linux_Atomic_Host" so the column value, based on current code, should be "RedHat_Enterprise_Linux_Atomic_Host 7.2"</p> Bug #15106 (New): arch and release not calculated correctly on subscriptions exporthttps://projects.theforeman.org/issues/151062016-05-20T04:45:19ZThomas McKaythomasmckay@redhat.com
<p>Red Hat OpenShift Enterprise 3.1 (RPMs)<br />Red Hat Enterprise Linux 7 Server (RPMs)</p>
<p>Perhaps there is a field in json to use instead of trying to parse the content set name</p> Bug #14654 (New): default facts sent during content-host update will overwrite any existing rhsm ...https://projects.theforeman.org/issues/146542016-04-14T16:07:33ZThomas McKaythomasmckay@redhat.com
<p>During content host update a set of predefined facts are sent. If this is a real host that has been sub-mgr registered then it will have real facts. These real facts will be lost on an update to the system.</p>
<p>Fix: Solution is either 1) not send facts during update calls, or 2) fetch all existing facts and add required ones in.</p>