Hammer CLI CSV: Issueshttps://projects.theforeman.org/https://projects.theforeman.org/favicon.ico?16970236342016-12-15T15:03:08ZForeman
Redmine Bug #17695 (New): importing an unlimited quantity sub to act key prints quantity of -1 instead of...https://projects.theforeman.org/issues/176952016-12-15T15:03:08ZThomas McKaythomasmckay@redhat.com
<pre>
Name,Organization,Description,Limit,Environment,Content View,Host Collections,Auto-Attach,Service Level,Release Version,Subscription Name,Subscription Type,Subscription Quantity,Subscription SKU,Subscription Contract,Subscription Account,Subscription Start,Subscription End,Subscription Guest
ak2,Default Organization,,,,Default Organization View,"",Yes,,,"Red Hat Enterprise Linux for Virtual Datacenters, Premium",Red Hat,Automatic,RH00001,10999116,5700573,2016-06-20T04:00:00+00:00,2017-06-20T03:59:59+00:00,
ak2,Default Organization,,,,Default Organization View,"",Yes,,,"Red Hat Enterprise Linux for Virtual Datacenters, Premium",Red Hat Guest,1,RH00001,10999116,5700573,2016-06-20T04:00:00+00:00,2017-06-20T03:59:59+00:00,hv1
# hammer csv activation-keys --verbose --itemized-subscriptions --organization "Default Organization" --file activation-keys.csv
[Foreman] Password for admin:
Updating subscriptions for activation key 'ak2'... attaching -1 of 'Red Hat Enterprise Linux for Virtual Datacenters, Premium'...done
Updating subscriptions for activation key 'ak2'... attaching 1 of 'Red Hat Enterprise Linux for Virtual Datacenters, Premium - Guest of hv1'...done
</pre> Bug #17693 (New): content-hosts --help missing description for SUBS_GUEST columnhttps://projects.theforeman.org/issues/176932016-12-15T14:39:25ZThomas McKaythomasmckay@redhat.com
<p>The --help is missing description of SUBS_GUEST. Another case where a more robust column definition would be better; too many manual places in the code.</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 #17645 (New): add a --import just because it's natural to type it after using --exporthttps://projects.theforeman.org/issues/176452016-12-12T16:09:50ZThomas McKaythomasmckay@redhat.com
<p>The default is to import the specified --file, however it is natural for user to think that --import is an option to use. Add that option (make it conflict with --export) but no need to actually check it since code should always "if !--export, then import"</p> Bug #17551 (New): change content-hosts columns --help output to use new help extensionshttps://projects.theforeman.org/issues/175512016-12-01T10:51:10ZThomas McKaythomasmckay@redhat.com
<p><a class="external" href="https://github.com/theforeman/hammer-cli-foreman/pull/263/files#diff-d97db2a6b7f5e45c90b2311d60668dc9R5">https://github.com/theforeman/hammer-cli-foreman/pull/263/files#diff-d97db2a6b7f5e45c90b2311d60668dc9R5</a></p>
<p>The ability to add extended command info was added and the column help for content-hosts should leverage that rather than trying to just output more strings.</p>
<p>May also be worth changing the way columns are defined to be more structured so that the help framework can be shared between commands. At the moment with the columns simply being variables rather than a list or hash or something the help is very manual process.</p> Bug #17511 (New): only import specified columns when --columns is specified for content-hostshttps://projects.theforeman.org/issues/175112016-11-28T16:39:47ZThomas McKaythomasmckay@redhat.com
<p>Should custom columns be included? Perhaps with a "buyer beware" warning in the docs?</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 #16672 (New): column to disable console passwordshttps://projects.theforeman.org/issues/166722016-09-23T10:19:26ZThomas McKaythomasmckay@redhat.com
<p>Need a column to set console passwords toggle</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>