Hammer CLI CSV: Issueshttps://projects.theforeman.org/https://projects.theforeman.org/favicon.ico?16970236342016-12-10T15:24:01ZForeman
Redmine Bug #17624 (Closed): session api breaks hammer csvhttps://projects.theforeman.org/issues/176242016-12-10T15:24:01ZThomas McKaythomasmckay@redhat.com
<p><a class="external" href="https://github.com/theforeman/hammer-cli-foreman/pull/269">https://github.com/theforeman/hammer-cli-foreman/pull/269</a></p>
<p>hammer csv no longer works</p>
<pre>
[ERROR 2016-12-10T15:07:29 Exception] Error: uninitialized constant HammerCLIForeman::BasicCredentials
Did you mean? BasicSocket
Error: uninitialized constant HammerCLIForeman::BasicCredentials
Did you mean? BasicSocket
[ERROR 2016-12-10T15:07:29 Exception]
NameError (uninitialized constant HammerCLIForeman::BasicCredentials
Did you mean? BasicSocket):
/home/thomasmckay/code/hammer-cli-csv/lib/hammer_cli_csv/utils/config.rb:5:in `credentials'
/home/thomasmckay/code/hammer-cli-csv/lib/hammer_cli_csv/utils/config.rb:15:in `resource_config'
/home/thomasmckay/code/hammer-cli-csv/lib/hammer_cli_csv/utils/config.rb:35:in `api_connection'
/home/thomasmckay/code/hammer-cli-csv/lib/hammer_cli_csv/base.rb:52:in `execute'
</pre> Feature #17510 (Closed): add configurable column export for content-hostshttps://projects.theforeman.org/issues/175102016-11-28T16:26:23ZThomas McKaythomasmckay@redhat.com
<p>Allow configuration and control of columns to be exported.</p>
<p>See associated PR for more details.</p> Bug #17505 (Closed): attempting to assign hypervisor/guest subscriptions yields "too many subscri...https://projects.theforeman.org/issues/175052016-11-28T14:54:28ZThomas McKaythomasmckay@redhat.com
<p>To reproduce:<br /><pre>
Name,Count,Organization,Environment,Content View,Host Collections,Virtual,Host,OS,Arch,Sockets,RAM,Cores,SLA,Products,Subscriptions
testhypervisor,1,Test Corporation,Library,Default Organization View,,No,,RHEL 7Server,x86_64,4,4 GB,1,,,""
testguest%d,2,Test Corporation,Library,Default Organization View,,Yes,testhypervisor,RHEL 7Server,x86_64,1,4GB,1,,"69|Red Hat Enterprise Linux Server","""1|RH00002|Red Hat Enterprise Linux for Virtual Datacenters, Standard|10999110|5700573"""
</pre></p>
<p>Import above and note that the guest subscriptions will fail since after the first one assigned there will be two matching entries, one for the original subscription and one for the newly created guest subscription. The logic should be such that the correct matching subscription from the group should match. (Perhaps the --itemized-subscriptions logic didn't get implemented in the non-itemized mode?)</p> Bug #17453 (Closed): use /rhsm api to update content host factshttps://projects.theforeman.org/issues/174532016-11-22T19:00:20ZThomas McKaythomasmckay@redhat.com
<p>Use PUT /rhsm/consumers/:id to update facts in candlepin. This will allow hypervisors to set their socket count correctly for subscription usage.</p> Bug #17420 (Closed): ActivationKey itemized subscription tests do not use the TestCorp manifest s...https://projects.theforeman.org/issues/174202016-11-21T11:59:59ZAndrew Kofinkakofink@redhat.com
<p>The activation key tests for itemized subscriptions should use the subscriptions included in the TestCorp manifest so that recording VCR tests are easy to set up with consistent data.</p> Bug #17307 (Closed): hammer csv -h fails with uninitialized constanthttps://projects.theforeman.org/issues/173072016-11-10T07:15:20ZAndrew Kofinkakofink@redhat.com
<p>To reproduce:</p>
<p>$ hammer csv -h<br />Error: uninitialized constant HammerCLICsv::Help</p> Bug #17259 (Closed): support import/export docker productshttps://projects.theforeman.org/issues/172592016-11-07T14:30:31ZThomas McKaythomasmckay@redhat.com
<p>add docker content type repos to products</p> Bug #17223 (Closed): SortedBuilder undefined because HammerCLI renamed it to TextBuilderhttps://projects.theforeman.org/issues/172232016-11-04T09:55:24ZAndrew Kofinkakofink@redhat.com
<p>Trying to run `hammer -vd` with csv module enabled gives:</p>
<p>Warning: An error occured while loading module hammer_cli_csv<br />[ERROR 2016-11-04T09:54:44 Modules] <NameError> uninitialized constant HammerCLICsv::CsvCommand::SortedBuilder<br /> /home/vagrant/hammer-cli-csv/lib/hammer_cli_csv/csv.rb:10:in `<class:CsvCommand>'<br /> /home/vagrant/hammer-cli-csv/lib/hammer_cli_csv/csv.rb:5:in `<module:HammerCLICsv>'<br /> /home/vagrant/hammer-cli-csv/lib/hammer_cli_csv/csv.rb:4:in `<top (required)>'<br /> /home/vagrant/hammer-cli-csv/lib/hammer_cli_csv/base.rb:6:in `require'<br /> /home/vagrant/hammer-cli-csv/lib/hammer_cli_csv/base.rb:6:in `<top (required)>'<br /> /home/vagrant/hammer-cli-csv/lib/hammer_cli_csv.rb:11:in `require'<br /> /home/vagrant/hammer-cli-csv/lib/hammer_cli_csv.rb:11:in `<module:HammerCLICsv>'</p> Bug #17052 (Closed): hammer csv can't import activation keys with multiple guest vdc subscriptionshttps://projects.theforeman.org/issues/170522016-10-20T15:11:22ZAndrew Kofinkakofink@redhat.com
<p>Cloned from <a class="external" href="https://bugzilla.redhat.com/show_bug.cgi?id=1374072">https://bugzilla.redhat.com/show_bug.cgi?id=1374072</a> <br /> Description of problem:<br /> When attempting to re-import an activation key that has multiple guest vdc subscriptions attached, you are presented with the following error:<br /> Error: Too many subscriptions match 'Red Hat Enterprise Linux for Virtual Datacenters, Premium'</p>
<pre><code>Version-Release number of selected component (if applicable):<br /> Satellite 6.2.2</code></pre>
<pre><code>How reproducible:<br /> Always</code></pre>
<pre><code>Steps to Reproduce:<br /> 1. Setup virt-who with at least one hypervisor<br /> 2. Add the guest subscriptions provided by each of the hypervisors.<br /> 3. Export the activation key(s) using hammer csv<br /> 4. re-import the activation key(s) using hammer csv</code></pre>
<pre><code>Actual results:<br /> Error message above is shown and unable to progress further.</code></pre>
<pre><code>Expected results:<br /> The tool is able to correctly handle the multiple vdc guest subscriptions.</code></pre> Bug #17051 (Closed): activation-keys import PUT request quantity is the total quantity, not the q...https://projects.theforeman.org/issues/170512016-10-20T14:51:04ZAndrew Kofinkakofink@redhat.comBug #16999 (Closed): creating manifest in portal fails to process results correctlyhttps://projects.theforeman.org/issues/169992016-10-18T17:02:48ZThomas McKaythomasmckay@redhat.com
<p>The call to create a new SMA in the portal fails to convert results to json before further processing.</p>