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 #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 #18229 (New): importing itemized subscriptions for content-hosts and activation-keys needs to...https://projects.theforeman.org/issues/182292017-01-24T17:08:48ZThomas McKaythomasmckay@redhat.com
<p>When future-dated subscriptions become available in manifests, importing a CSV to mirror existing with future dated subs needs to work.</p>
<p>For example, a content-host has a "RHEL" sub that expires 2017-02-01. An export csv could be modified to duplicate that subscription with a new one that starts 2017-02-02. Start dates should be a column checked when making the import.</p> Feature #18097 (New): As a user, I want to name :export: config sections for convenient use on th...https://projects.theforeman.org/issues/180972017-01-16T12:34:43ZThomas McKaythomasmckay@redhat.com
<p>For example, I have a custom export defined for content-hosts</p>
<pre>
:csv:
:enable_module: true
:columns:
:content-hosts:
:define:
- :name: Subscription Status
:json:
- subscription_status_label
- :name: Last Checkin
:json:
- subscription_facet_attributes
- last_checkin
:export:
- Name
- Organization
- Subscription Status
- Last Checkin
</pre>
<p>Currently the above config means that --export will always export just those four columns.</p>
<p>Instead, let me add a :name: to the :export: section that may be referred to. Something like this if I had included ":name: substatus" in the conf</p>
<p>hammer csv content-hosts --export --export-name substatus</p> Bug #17817 (New): content-hosts import should honor --search and only process the matched hostshttps://projects.theforeman.org/issues/178172016-12-21T08:54:33ZThomas McKaythomasmckay@redhat.com
<p>Using --search during import should only process the matching hosts.</p>
<p>One problem, though, would be the processing of hypervisor and guests which occurs at the end of the import.</p> Bug #17725 (New): import/export docker content-view-filtershttps://projects.theforeman.org/issues/177252016-12-18T16:36:31ZThomas McKaythomasmckay@redhat.com
<p>Blocked by <a class="external" href="https://github.com/Katello/katello/pull/6441">https://github.com/Katello/katello/pull/6441</a></p>
<p>export/import docker filters</p> Bug #17716 (New): content-hosts - skip setting values for columns that are not specifiedhttps://projects.theforeman.org/issues/177162016-12-16T12:06:22ZThomas McKaythomasmckay@redhat.com
<p>For example, if no columns are present that require the setting of facts, do not try to update. If Subscriptions column not present, don't modify subscriptions.</p> Bug #17699 (New): importing content-hosts will prompt for password during run unless specified as...https://projects.theforeman.org/issues/176992016-12-15T15:48:00ZThomas McKaythomasmckay@redhat.com
<p>Since the call to /rhsm to update facts requires authentication, unless the username / password is specified in config or as command option user will be prompted.</p> Bug #17697 (New): print verbose message for subscriptions that are being attachedhttps://projects.theforeman.org/issues/176972016-12-15T15:45:03ZThomas McKaythomasmckay@redhat.com
<p>In non-itemized mode, there are no verbose messages as the subscriptions are being processed. This makes it a guessing game as to what failed during import when a subscription, for example, has no more quantity available.</p>
<p>To reproduce, put a sub that is fully consumed into a non-itemized csv and import.</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> 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> 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>