Bug 1333280 - Update with --puppet-classes parameter will fail, if the classes belong to the same namespace
Summary: Update with --puppet-classes parameter will fail, if the classes belong to th...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Shimon Shtein
QA Contact: Tomas Strachota
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-05 07:46 UTC by Shimon Shtein
Modified: 2019-09-26 18:04 UTC (History)
3 users (show)

Fixed In Version: rubygem-hammer_cli_foreman-0.5.1.7-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-27 11:30:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 14930 0 None None None 2016-05-05 07:46:16 UTC

Description Shimon Shtein 2016-05-05 07:46:14 UTC
To reproduce:

<pre>

hammer hostgroup update --id 5 --puppet-classes "apache::mod::authnz_ldap,apache::dev"

</pre>
will fail.

The problem is in the API response handling in id_resolver.rb
API response was grouped by namespace and validated groups count against number of classes in the requested parameters.

Comment 1 Shimon Shtein 2016-05-05 07:46:19 UTC
Created from redmine issue http://projects.theforeman.org/issues/14930

Comment 2 Shimon Shtein 2016-05-05 07:46:25 UTC
Upstream bug assigned to sshtein

Comment 4 Bryan Kearney 2016-05-06 14:19:24 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/14930 has been closed

Comment 6 Tomas Strachota 2016-05-27 14:28:03 UTC
Verified in snap 13.

$ hammer hostgroup update --name test --puppet-classes "apache::mod::authnz_ldap,apache::dev"
Hostgroup updated

$ hammer hostgroup info --name test
Id:                     1
Name:                   test
Title:                  test
Puppet CA Proxy Id:     
Puppet Master Proxy Id: 
Puppetclasses:          
    apache::dev
    apache::mod::authnz_ldap
Parameters:             

Parent Id:

Comment 7 Bryan Kearney 2016-07-27 11:30:34 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:1501


Note You need to log in before you can comment on or make changes to this bug.