Hammer gives error in content view filtering

Problem:
hammer gives error in content view filtering
Expected outcome:
package group filter should work as normal
Foreman and Proxy versions:
3.1.0
Foreman and Proxy plugin versions:

Distribution and version:
RHEL 8
Other relevant data:
I am trying to add a filter in my content view of type “package group” but I am facing an error

 hammer content-view filter rule create --content-view-filter 'package filter 1' --organization COT --content-view 'Alma 8.4 Content View_local_iso' --name Core
Could not create the filter rule:
Validation failed: Uuid can't be blank

I tried creating this through ansible method also and I am getting the same error. Any help would be appreciated.

Thank you

Could you post what ends up in production.log when you run this?

@aruzicka This is what I can see from production.log after running this

2022-03-07T05:25:42 [I|app|b846fc40] Started GET "/katello/api/organizations?search=name+%3D+%22COT%22&per_page=1000&page=1" for 161.92.211.65 at 2022-03-07 05:25:42 -0500
2022-03-07T05:25:42 [I|app|b846fc40] Processing by Katello::Api::V2::OrganizationsController#index as JSON
2022-03-07T05:25:42 [I|app|b846fc40]   Parameters: {"search"=>"name = \"COT\"", "per_page"=>"1000", "page"=>"1", "api_version"=>"v2", "organization"=>{}}
2022-03-07T05:25:42 [I|app|b846fc40] Authorized user admin(Admin User)
2022-03-07T05:25:42 [I|app|b846fc40]   Rendering /usr/share/gems/gems/katello-4.3.0.rc3/app/views/katello/api/v2/organizations/index.json.rabl within api/v2/layouts/index_layout
2022-03-07T05:25:42 [I|app|b846fc40]   Rendered /usr/share/gems/gems/katello-4.3.0.rc3/app/views/katello/api/v2/organizations/index.json.rabl within api/v2/layouts/index_layout (Duration: 3.7ms | Allocations: 3025)
2022-03-07T05:25:42 [I|app|b846fc40] Completed 200 OK in 133ms (Views: 6.4ms | ActiveRecord: 21.3ms | Allocations: 18283)
2022-03-07T05:25:42 [I|app|69f86550] Started GET "/katello/api/organizations/1/content_views?name=Alma+8.4+Content+View_local_iso&per_page=1000&page=1" for 161.92.211.65 at 2022-03-07 05:25:42 -0500
2022-03-07T05:25:42 [I|app|69f86550] Processing by Katello::Api::V2::ContentViewsController#index as JSON
2022-03-07T05:25:42 [I|app|69f86550]   Parameters: {"name"=>"Alma 8.4 Content View_local_iso", "per_page"=>"1000", "page"=>"1", "api_version"=>"v2", "organization_id"=>"1", "content_view"=>{}}
2022-03-07T05:25:42 [I|app|69f86550] Authorized user admin(Admin User)
2022-03-07T05:25:42 [I|app|69f86550]   Rendering /usr/share/gems/gems/katello-4.3.0.rc3/app/views/katello/api/v2/content_views/index.json.rabl within katello/api/v2/layouts/collection
2022-03-07T05:25:42 [I|app|69f86550]   Rendered /usr/share/gems/gems/katello-4.3.0.rc3/app/views/katello/api/v2/content_views/index.json.rabl within katello/api/v2/layouts/collection (Duration: 32.6ms | Allocations: 13423)
2022-03-07T05:25:42 [I|app|69f86550] Completed 200 OK in 126ms (Views: 28.4ms | ActiveRecord: 18.9ms | Allocations: 26184)
2022-03-07T05:25:42 [I|app|45594cf7] Started GET "/katello/api/content_views/26/filters?name=package+filter+1&per_page=1000&page=1" for 161.92.211.65 at 2022-03-07 05:25:42 -0500
2022-03-07T05:25:42 [I|app|45594cf7] Processing by Katello::Api::V2::ContentViewFiltersController#index as JSON
2022-03-07T05:25:42 [I|app|45594cf7]   Parameters: {"name"=>"package filter 1", "per_page"=>"1000", "page"=>"1", "api_version"=>"v2", "content_view_id"=>"26", "content_view_filter"=>{}}
2022-03-07T05:25:42 [I|app|45594cf7] Authorized user admin(Admin User)
2022-03-07T05:25:42 [I|app|45594cf7]   Rendering /usr/share/gems/gems/katello-4.3.0.rc3/app/views/katello/api/v2/content_view_filters/index.json.rabl within katello/api/v2/layouts/collection
2022-03-07T05:25:42 [I|app|45594cf7]   Rendered /usr/share/gems/gems/katello-4.3.0.rc3/app/views/katello/api/v2/content_view_filters/index.json.rabl within katello/api/v2/layouts/collection (Duration: 28.3ms | Allocations: 15940)
2022-03-07T05:25:42 [I|app|45594cf7] Completed 200 OK in 123ms (Views: 28.2ms | ActiveRecord: 18.5ms | Allocations: 27939)
2022-03-07T05:25:42 [I|app|3dbf35c3] Started POST "/katello/api/content_view_filters/24/rules" for 161.92.211.65 at 2022-03-07 05:25:42 -0500
2022-03-07T05:25:42 [I|app|3dbf35c3] Processing by Katello::Api::V2::ContentViewFilterRulesController#create as JSON
2022-03-07T05:25:42 [I|app|3dbf35c3]   Parameters: {"name"=>["Core"], "api_version"=>"v2", "content_view_filter_id"=>"24", "content_view_filter_rule"=>{"name"=>["Core"]}}
2022-03-07T05:25:43 [I|app|3dbf35c3] Authorized user admin(Admin User)
2022-03-07T05:25:43 [E|app|3dbf35c3] <Class> ActiveRecord::RecordInvalid
2022-03-07T05:25:43 [E|app|3dbf35c3] uuid: ["can't be blank"]
2022-03-07T05:25:43 [I|app|3dbf35c3] Completed 422 Unprocessable Entity in 86ms (Views: 0.2ms | ActiveRecord: 9.0ms | Allocations: 9709)

Any lead @aruzicka ?

Not really, no. All I can say is that this doesn’t appear to be an issue with hammer itself.

Any next steps I want to try? Or can you tag anyone from @katello who can possibly find the answer for this query?

Well, you just pinged the entire team, that should be enough.

2 Likes

@almond

Can you run hammer -d and post the output in a pastebin?

@cintrix84 Pasting the output

[ INFO 2022-03-07T13:08:25 Init] Initialization of Hammer CLI (3.1.0) has started...
[DEBUG 2022-03-07T13:08:25 Init] Running at ruby 2.7.4-p191
[ INFO 2022-03-07T13:08:25 Init] Configuration from the file /etc/hammer/cli_config.yml has been loaded
[ INFO 2022-03-07T13:08:25 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman.yml has been loaded
[ INFO 2022-03-07T13:08:25 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_discovery.yml has been loaded
[ INFO 2022-03-07T13:08:25 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_puppet.yml has been loaded
[ INFO 2022-03-07T13:08:25 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_remote_execution.yml has been loaded
[ INFO 2022-03-07T13:08:25 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_tasks.yml has been loaded
[ INFO 2022-03-07T13:08:25 Init] Configuration from the file /etc/hammer/cli.modules.d/katello.yml has been loaded
[ INFO 2022-03-07T13:08:25 Init] Configuration from the file /root/.hammer/cli.modules.d/foreman.yml has been loaded
[DEBUG 2022-03-07T13:08:26 SSLoptions] SSL options: {
    :ssl_ca_file => "/etc/pki/katello/certs/katello-server-ca.crt",
     :verify_ssl => true
}
[DEBUG 2022-03-07T13:08:26 API] Global headers: {
        :content_type => "application/json",
              :accept => "application/json;version=2",
    "Accept-Language" => "en"
}
[DEBUG 2022-03-07T13:08:26 API] Follow redirects: never
[DEBUG 2022-03-07T13:08:26 Connection] Registered: foreman
[DEBUG 2022-03-07T13:08:26 HammerCLIForeman::CommandExtensions::OptionSources] Added predefined options for HammerCLIForeman::Command:
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIForeman::CommandExtensions::OptionSources for *all* except *nothing* on HammerCLIForeman::Command.
[DEBUG 2022-03-07T13:08:26 HammerCLIForeman::CommandExtensions::Fields] Added predefined options for HammerCLIForeman::ListCommand: [:fields]
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIForeman::CommandExtensions::Fields for *all* except *nothing* on HammerCLIForeman::ListCommand.
[DEBUG 2022-03-07T13:08:26 HammerCLIForeman::CommandExtensions::Fields] Added predefined options for HammerCLIForeman::InfoCommand: [:fields]
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIForeman::CommandExtensions::Fields for *all* except *nothing* on HammerCLIForeman::InfoCommand.
[DEBUG 2022-03-07T13:08:26 HammerCLIForeman::CommandExtensions::UpdateCommon] Added predefined options for HammerCLIForeman::UpdateCommand:
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIForeman::CommandExtensions::UpdateCommon for *all* except *nothing* on HammerCLIForeman::UpdateCommand.
[ INFO 2022-03-07T13:08:26 Modules] Extension module hammer_cli_foreman (3.1.0) loaded.
[ INFO 2022-03-07T13:08:26 Modules] Extension module hammer_cli_foreman_discovery (1.0.2) loaded.
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironment] Added predefined options for HammerCLIForemanPuppet::SmartClassParameter::ListCommand:
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironment] Called option family block for HammerCLIForemanPuppet::SmartClassParameter::ListCommand:
        #<Proc:0x000056034e1ac938 /usr/share/gems/gems/hammer_cli_foreman_puppet-0.0.4/lib/hammer_cli_foreman_puppet/command_extensions/environment.rb:6>
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironment for *all* except *nothing* on HammerCLIForemanPuppet::SmartClassParameter::ListCommand.
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironment] Added predefined options for HammerCLIForemanPuppet::PuppetEnvironment::SCParamsCommand:
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironment] Called option family block for HammerCLIForemanPuppet::PuppetEnvironment::SCParamsCommand:
        #<Proc:0x000056034e1ac938 /usr/share/gems/gems/hammer_cli_foreman_puppet-0.0.4/lib/hammer_cli_foreman_puppet/command_extensions/environment.rb:6>
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironment for *all* except *nothing* on HammerCLIForemanPuppet::PuppetEnvironment::SCParamsCommand.
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironment] Added predefined options for HammerCLIForemanPuppet::PuppetClass::ListCommand:
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironment] Called option family block for HammerCLIForemanPuppet::PuppetClass::ListCommand:
        #<Proc:0x000056034e1ac938 /usr/share/gems/gems/hammer_cli_foreman_puppet-0.0.4/lib/hammer_cli_foreman_puppet/command_extensions/environment.rb:6>
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironment for *all* except *nothing* on HammerCLIForemanPuppet::PuppetClass::ListCommand.
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironment] Added predefined options for HammerCLIForemanPuppet::PuppetClass::InfoCommand:
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironment] Called option family block for HammerCLIForemanPuppet::PuppetClass::InfoCommand:
        #<Proc:0x000056034e1ac938 /usr/share/gems/gems/hammer_cli_foreman_puppet-0.0.4/lib/hammer_cli_foreman_puppet/command_extensions/environment.rb:6>
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironment for *all* except *nothing* on HammerCLIForemanPuppet::PuppetClass::InfoCommand.
[DEBUG 2022-03-07T13:08:26 HammerCLIForeman::CommandExtensions::Hosts::Help::Interfaces] Added predefined options for HammerCLIForeman::Host::CreateCommand:
[DEBUG 2022-03-07T13:08:26 HammerCLIForeman::CommandExtensions::Hosts::Help::Interfaces] Saved block for HammerCLIForeman::Host::CreateCommand help definition:
        #<Proc:0x000056034cfed030 /usr/share/gems/gems/hammer_cli_foreman-3.1.0/lib/hammer_cli_foreman/command_extensions/hosts/help/interfaces.rb:6>
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIForeman::CommandExtensions::Hosts::Help::Interfaces for *all* except *nothing* on HammerCLIForeman::Host::CreateCommand.
[DEBUG 2022-03-07T13:08:26 #<Class:0x000056034d8d4c48>] Added predefined options for HammerCLIForeman::Host::CreateCommand:
[DEBUG 2022-03-07T13:08:26 #<Class:0x000056034d8d4c48>] Saved block for HammerCLIForeman::Host::CreateCommand help definition:
        #<Proc:0x000056034d8d4798 /usr/share/gems/gems/hammer_cli_foreman-3.1.0/lib/hammer_cli_foreman/command_extensions/hosts/help/compute_resources.rb:45>
[ INFO 2022-03-07T13:08:26 Extensions] Applied #<Class:0x000056034d8d4c48> for *all* except *nothing* on HammerCLIForeman::Host::CreateCommand.
[DEBUG 2022-03-07T13:08:26 HammerCLIForeman::CommandExtensions::Hosts::Help::Interfaces] Added predefined options for HammerCLIForeman::Host::UpdateCommand:
[DEBUG 2022-03-07T13:08:26 HammerCLIForeman::CommandExtensions::Hosts::Help::Interfaces] Saved block for HammerCLIForeman::Host::UpdateCommand help definition:
        #<Proc:0x000056034cfed030 /usr/share/gems/gems/hammer_cli_foreman-3.1.0/lib/hammer_cli_foreman/command_extensions/hosts/help/interfaces.rb:6>
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIForeman::CommandExtensions::Hosts::Help::Interfaces for *all* except *nothing* on HammerCLIForeman::Host::UpdateCommand.
[DEBUG 2022-03-07T13:08:26 #<Class:0x000056034e4a6620>] Added predefined options for HammerCLIForeman::Host::UpdateCommand:
[DEBUG 2022-03-07T13:08:26 #<Class:0x000056034e4a6620>] Saved block for HammerCLIForeman::Host::UpdateCommand help definition:
        #<Proc:0x000056034e4a6580 /usr/share/gems/gems/hammer_cli_foreman-3.1.0/lib/hammer_cli_foreman/command_extensions/hosts/help/compute_resources.rb:45>
[ INFO 2022-03-07T13:08:26 Extensions] Applied #<Class:0x000056034e4a6620> for *all* except *nothing* on HammerCLIForeman::Host::UpdateCommand.
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironment] Added predefined options for HammerCLIForeman::Host::ListCommand:
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironment] Called option family block for HammerCLIForeman::Host::ListCommand:
        #<Proc:0x000056034e1ac938 /usr/share/gems/gems/hammer_cli_foreman_puppet-0.0.4/lib/hammer_cli_foreman_puppet/command_extensions/environment.rb:6>
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironment for *all* except *nothing* on HammerCLIForeman::Host::ListCommand.
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironment] Added predefined options for HammerCLIForeman::Host::CreateCommand:
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironment] Called option family block for HammerCLIForeman::Host::CreateCommand:
        #<Proc:0x000056034e1ac938 /usr/share/gems/gems/hammer_cli_foreman_puppet-0.0.4/lib/hammer_cli_foreman_puppet/command_extensions/environment.rb:6>
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironment for *all* except *nothing* on HammerCLIForeman::Host::CreateCommand.
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::HostPuppetProxy] Added predefined options for HammerCLIForeman::Host::CreateCommand:
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::HostPuppetProxy] Added option for HammerCLIForeman::Host::CreateCommand: {:switches=>"--puppet-ca-proxy", :type=>"PUPPET_CA_PROXY_NAME", :description=>"Name of Puppet CA proxy", :opts=>{}, :block=>nil}
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::HostPuppetProxy] Added option for HammerCLIForeman::Host::CreateCommand: {:switches=>"--puppet-proxy", :type=>"PUPPET_PROXY_NAME", :description=>"Name of Puppet proxy", :opts=>{}, :block=>nil}
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::HostPuppetProxy] Called option family block for HammerCLIForeman::Host::CreateCommand:
        #<Proc:0x000056034df9f2d0 /usr/share/gems/gems/hammer_cli_foreman_puppet-0.0.4/lib/hammer_cli_foreman_puppet/command_extensions/host.rb:14>
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIForemanPuppet::CommandExtensions::HostPuppetProxy for *all* except *nothing* on HammerCLIForeman::Host::CreateCommand.
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironment] Added predefined options for HammerCLIForeman::Host::UpdateCommand:
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironment] Called option family block for HammerCLIForeman::Host::UpdateCommand:
        #<Proc:0x000056034e1ac938 /usr/share/gems/gems/hammer_cli_foreman_puppet-0.0.4/lib/hammer_cli_foreman_puppet/command_extensions/environment.rb:6>
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironment for *all* except *nothing* on HammerCLIForeman::Host::UpdateCommand.
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::HostPuppetProxy] Added predefined options for HammerCLIForeman::Host::UpdateCommand:
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::HostPuppetProxy] Added option for HammerCLIForeman::Host::UpdateCommand: {:switches=>"--puppet-ca-proxy", :type=>"PUPPET_CA_PROXY_NAME", :description=>"Name of Puppet CA proxy", :opts=>{}, :block=>nil}
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::HostPuppetProxy] Added option for HammerCLIForeman::Host::UpdateCommand: {:switches=>"--puppet-proxy", :type=>"PUPPET_PROXY_NAME", :description=>"Name of Puppet proxy", :opts=>{}, :block=>nil}
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::HostPuppetProxy] Called option family block for HammerCLIForeman::Host::UpdateCommand:
        #<Proc:0x000056034df9f2d0 /usr/share/gems/gems/hammer_cli_foreman_puppet-0.0.4/lib/hammer_cli_foreman_puppet/command_extensions/host.rb:14>
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIForemanPuppet::CommandExtensions::HostPuppetProxy for *all* except *nothing* on HammerCLIForeman::Host::UpdateCommand.
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::Host] Added predefined options for HammerCLIForeman::Host::InfoCommand:
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::Host] Called block for HammerCLIForeman::Host::InfoCommand output definition:
        #<Proc:0x000056034df9f6e0 /usr/share/gems/gems/hammer_cli_foreman_puppet-0.0.4/lib/hammer_cli_foreman_puppet/command_extensions/host.rb:4>
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIForemanPuppet::CommandExtensions::Host for *all* except *nothing* on HammerCLIForeman::Host::InfoCommand.
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironments] Added predefined options for HammerCLIForeman::Organization::CreateCommand:
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironments] Called option family block for HammerCLIForeman::Organization::CreateCommand:
        #<Proc:0x000056034d3731f0 /usr/share/gems/gems/hammer_cli_foreman_puppet-0.0.4/lib/hammer_cli_foreman_puppet/command_extensions/environments.rb:6>
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironments for *all* except *nothing* on HammerCLIForeman::Organization::CreateCommand.
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironments] Added predefined options for HammerCLIForeman::Organization::UpdateCommand:
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironments] Called option family block for HammerCLIForeman::Organization::UpdateCommand:
        #<Proc:0x000056034d3731f0 /usr/share/gems/gems/hammer_cli_foreman_puppet-0.0.4/lib/hammer_cli_foreman_puppet/command_extensions/environments.rb:6>
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironments for *all* except *nothing* on HammerCLIForeman::Organization::UpdateCommand.
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::OrganizationInfo] Added predefined options for HammerCLIForeman::Organization::InfoCommand:
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::OrganizationInfo] Called block for HammerCLIForeman::Organization::InfoCommand output definition:
        #<Proc:0x000056034e652230 /usr/share/gems/gems/hammer_cli_foreman_puppet-0.0.4/lib/hammer_cli_foreman_puppet/command_extensions/organization.rb:4>
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIForemanPuppet::CommandExtensions::OrganizationInfo for *all* except *nothing* on HammerCLIForeman::Organization::InfoCommand.
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironments] Added predefined options for HammerCLIForeman::Location::CreateCommand:
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironments] Called option family block for HammerCLIForeman::Location::CreateCommand:
        #<Proc:0x000056034d3731f0 /usr/share/gems/gems/hammer_cli_foreman_puppet-0.0.4/lib/hammer_cli_foreman_puppet/command_extensions/environments.rb:6>
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironments for *all* except *nothing* on HammerCLIForeman::Location::CreateCommand.
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironments] Added predefined options for HammerCLIForeman::Location::UpdateCommand:
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironments] Called option family block for HammerCLIForeman::Location::UpdateCommand:
        #<Proc:0x000056034d3731f0 /usr/share/gems/gems/hammer_cli_foreman_puppet-0.0.4/lib/hammer_cli_foreman_puppet/command_extensions/environments.rb:6>
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironments for *all* except *nothing* on HammerCLIForeman::Location::UpdateCommand.
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::LocationInfo] Added predefined options for HammerCLIForeman::Location::InfoCommand:
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::LocationInfo] Called block for HammerCLIForeman::Location::InfoCommand output definition:
        #<Proc:0x000056034e184b40 /usr/share/gems/gems/hammer_cli_foreman_puppet-0.0.4/lib/hammer_cli_foreman_puppet/command_extensions/location.rb:4>
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIForemanPuppet::CommandExtensions::LocationInfo for *all* except *nothing* on HammerCLIForeman::Location::InfoCommand.
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironment] Added predefined options for HammerCLIForemanPuppet::ImportPuppetClassesCommand:
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironment] Called option family block for HammerCLIForemanPuppet::ImportPuppetClassesCommand:
        #<Proc:0x000056034e1ac938 /usr/share/gems/gems/hammer_cli_foreman_puppet-0.0.4/lib/hammer_cli_foreman_puppet/command_extensions/environment.rb:6>
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironment for *all* except *nothing* on HammerCLIForemanPuppet::ImportPuppetClassesCommand.
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::ListCombination] Added predefined options for HammerCLIForeman::Combination::ListCombination:
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::ListCombination] Called block for HammerCLIForeman::Combination::ListCombination output definition:
        #<Proc:0x000056034e63e7d0 /usr/share/gems/gems/hammer_cli_foreman_puppet-0.0.4/lib/hammer_cli_foreman_puppet/command_extensions/combination.rb:4>
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIForemanPuppet::CommandExtensions::ListCombination for *all* except *nothing* on HammerCLIForeman::Combination::ListCombination.
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::InfoCombination] Added predefined options for HammerCLIForeman::Combination::InfoCombination:
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::InfoCombination] Called block for HammerCLIForeman::Combination::InfoCombination output definition:
        #<Proc:0x000056034e63e6e0 /usr/share/gems/gems/hammer_cli_foreman_puppet-0.0.4/lib/hammer_cli_foreman_puppet/command_extensions/combination.rb:10>
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIForemanPuppet::CommandExtensions::InfoCombination for *all* except *nothing* on HammerCLIForeman::Combination::InfoCombination.
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironment] Added predefined options for HammerCLIForeman::Combination::InfoCombination:
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironment] Called option family block for HammerCLIForeman::Combination::InfoCombination:
        #<Proc:0x000056034e1ac938 /usr/share/gems/gems/hammer_cli_foreman_puppet-0.0.4/lib/hammer_cli_foreman_puppet/command_extensions/environment.rb:6>
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironment for *all* except *nothing* on HammerCLIForeman::Combination::InfoCombination.
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironment] Added predefined options for HammerCLIForeman::Combination::UpdateCombination:
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironment] Called option family block for HammerCLIForeman::Combination::UpdateCombination:
        #<Proc:0x000056034e1ac938 /usr/share/gems/gems/hammer_cli_foreman_puppet-0.0.4/lib/hammer_cli_foreman_puppet/command_extensions/environment.rb:6>
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironment for *all* except *nothing* on HammerCLIForeman::Combination::UpdateCombination.
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironment] Added predefined options for HammerCLIForeman::Combination::CreateCombination:
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironment] Called option family block for HammerCLIForeman::Combination::CreateCombination:
        #<Proc:0x000056034e1ac938 /usr/share/gems/gems/hammer_cli_foreman_puppet-0.0.4/lib/hammer_cli_foreman_puppet/command_extensions/environment.rb:6>
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironment for *all* except *nothing* on HammerCLIForeman::Combination::CreateCombination.
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironment] Added predefined options for HammerCLIForeman::Hostgroup::CreateCommand:
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironment] Called option family block for HammerCLIForeman::Hostgroup::CreateCommand:
        #<Proc:0x000056034e1ac938 /usr/share/gems/gems/hammer_cli_foreman_puppet-0.0.4/lib/hammer_cli_foreman_puppet/command_extensions/environment.rb:6>
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironment for *all* except *nothing* on HammerCLIForeman::Hostgroup::CreateCommand.
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::HostgroupPuppetProxy] Added predefined options for HammerCLIForeman::Hostgroup::CreateCommand:
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::HostgroupPuppetProxy] Added option for HammerCLIForeman::Hostgroup::CreateCommand: {:switches=>"--puppet-ca-proxy", :type=>"PUPPET_CA_PROXY_NAME", :description=>"Name of Puppet CA proxy", :opts=>{}, :block=>nil}
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::HostgroupPuppetProxy] Added option for HammerCLIForeman::Hostgroup::CreateCommand: {:switches=>"--puppet-proxy", :type=>"PUPPET_PROXY_NAME", :description=>"Name of Puppet proxy", :opts=>{}, :block=>nil}
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::HostgroupPuppetProxy] Called option family block for HammerCLIForeman::Hostgroup::CreateCommand:
        #<Proc:0x000056034d4d5048 /usr/share/gems/gems/hammer_cli_foreman_puppet-0.0.4/lib/hammer_cli_foreman_puppet/command_extensions/hostgroup.rb:20>
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIForemanPuppet::CommandExtensions::HostgroupPuppetProxy for *all* except *nothing* on HammerCLIForeman::Hostgroup::CreateCommand.
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironment] Added predefined options for HammerCLIForeman::Hostgroup::UpdateCommand:
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironment] Called option family block for HammerCLIForeman::Hostgroup::UpdateCommand:
        #<Proc:0x000056034e1ac938 /usr/share/gems/gems/hammer_cli_foreman_puppet-0.0.4/lib/hammer_cli_foreman_puppet/command_extensions/environment.rb:6>
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironment for *all* except *nothing* on HammerCLIForeman::Hostgroup::UpdateCommand.
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::HostgroupPuppetProxy] Added predefined options for HammerCLIForeman::Hostgroup::UpdateCommand:
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::HostgroupPuppetProxy] Added option for HammerCLIForeman::Hostgroup::UpdateCommand: {:switches=>"--puppet-ca-proxy", :type=>"PUPPET_CA_PROXY_NAME", :description=>"Name of Puppet CA proxy", :opts=>{}, :block=>nil}
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::HostgroupPuppetProxy] Added option for HammerCLIForeman::Hostgroup::UpdateCommand: {:switches=>"--puppet-proxy", :type=>"PUPPET_PROXY_NAME", :description=>"Name of Puppet proxy", :opts=>{}, :block=>nil}
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::HostgroupPuppetProxy] Called option family block for HammerCLIForeman::Hostgroup::UpdateCommand:
        #<Proc:0x000056034d4d5048 /usr/share/gems/gems/hammer_cli_foreman_puppet-0.0.4/lib/hammer_cli_foreman_puppet/command_extensions/hostgroup.rb:20>
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIForemanPuppet::CommandExtensions::HostgroupPuppetProxy for *all* except *nothing* on HammerCLIForeman::Hostgroup::UpdateCommand.
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::HostgroupInfo] Added predefined options for HammerCLIForeman::Hostgroup::InfoCommand:
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::HostgroupInfo] Called block for HammerCLIForeman::Hostgroup::InfoCommand output definition:
        #<Proc:0x000056034d4d5e30 /usr/share/gems/gems/hammer_cli_foreman_puppet-0.0.4/lib/hammer_cli_foreman_puppet/command_extensions/hostgroup.rb:4>
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIForemanPuppet::CommandExtensions::HostgroupInfo for *all* except *nothing* on HammerCLIForeman::Hostgroup::InfoCommand.
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::HostgroupList] Added predefined options for HammerCLIForeman::Hostgroup::ListCommand:
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::CommandExtensions::HostgroupList] Called block for HammerCLIForeman::Hostgroup::ListCommand output definition:
        #<Proc:0x000056034d4d5a70 /usr/share/gems/gems/hammer_cli_foreman_puppet-0.0.4/lib/hammer_cli_foreman_puppet/command_extensions/hostgroup.rb:10>
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIForemanPuppet::CommandExtensions::HostgroupList for *all* except *nothing* on HammerCLIForeman::Hostgroup::ListCommand.
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanPuppet::Discovery] Discovery plugin was not found: uninitialized constant HammerCLIForeman::CommandExtensions::PuppetEnvironment
[ INFO 2022-03-07T13:08:26 Modules] Extension module hammer_cli_foreman_puppet (0.0.4) loaded.
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanTasks::CommandExtensions::RecurringLogic] Added predefined options for HammerCLIForemanTasks::RecurringLogic::InfoCommand:
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanTasks::CommandExtensions::RecurringLogic] Called block for HammerCLIForemanTasks::RecurringLogic::InfoCommand output definition:
        #<Proc:0x000056034e3d4a08 /usr/share/gems/gems/hammer_cli_foreman_tasks-0.0.16/lib/hammer_cli_foreman_tasks/command_extensions/recurring_logic.rb:14>
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIForemanTasks::CommandExtensions::RecurringLogic for *all* except *nothing* on HammerCLIForemanTasks::RecurringLogic::InfoCommand.
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanRemoteExecution::InterfaceExtensionsInfo] Added predefined options for HammerCLIForeman::Interface::InfoCommand:
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanRemoteExecution::InterfaceExtensionsInfo] Called block for HammerCLIForeman::Interface::InfoCommand output definition:
        #<Proc:0x000056034e5a4d38 /usr/share/gems/gems/hammer_cli_foreman_remote_execution-0.2.2/lib/hammer_cli_foreman_remote_execution/interface_extensions.rb:7>
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIForemanRemoteExecution::InterfaceExtensionsInfo for *all* except *nothing* on HammerCLIForeman::Interface::InfoCommand.
[DEBUG 2022-03-07T13:08:26 HammerCLIForeman::CommandExtensions::Subnet] Added predefined options for HammerCLIForeman::Subnet::CreateCommand:
[DEBUG 2022-03-07T13:08:26 HammerCLIForeman::CommandExtensions::Subnet] Added option for HammerCLIForeman::Subnet::CreateCommand: {:switches=>"--prefix", :type=>"PREFIX", :description=>"Network prefix in CIDR notation (e.g. 64) for this subnet", :opts=>{}, :block=>nil}
[DEBUG 2022-03-07T13:08:26 HammerCLIForeman::CommandExtensions::Subnet] Called option family block for HammerCLIForeman::Subnet::CreateCommand:
        #<Proc:0x000056034cfe1ed8 /usr/share/gems/gems/hammer_cli_foreman-3.1.0/lib/hammer_cli_foreman/command_extensions/subnet.rb:15>
[DEBUG 2022-03-07T13:08:26 HammerCLIForeman::CommandExtensions::Subnet] Called option family block for HammerCLIForeman::Subnet::CreateCommand:
        #<Proc:0x000056034cfe1d70 /usr/share/gems/gems/hammer_cli_foreman-3.1.0/lib/hammer_cli_foreman/command_extensions/subnet.rb:21>
[DEBUG 2022-03-07T13:08:26 HammerCLIForeman::CommandExtensions::Subnet] Called option family block for HammerCLIForeman::Subnet::CreateCommand:
        #<Proc:0x000056034cfe1c58 /usr/share/gems/gems/hammer_cli_foreman-3.1.0/lib/hammer_cli_foreman/command_extensions/subnet.rb:27>
[DEBUG 2022-03-07T13:08:26 HammerCLIForeman::CommandExtensions::Subnet] Called option family block for HammerCLIForeman::Subnet::CreateCommand:
        #<Proc:0x000056034cfe1b68 /usr/share/gems/gems/hammer_cli_foreman-3.1.0/lib/hammer_cli_foreman/command_extensions/subnet.rb:33>
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIForeman::CommandExtensions::Subnet for *all* except *nothing* on HammerCLIForeman::Subnet::CreateCommand.
[DEBUG 2022-03-07T13:08:26 HammerCLIForeman::CommandExtensions::Subnet] Added predefined options for HammerCLIForeman::Subnet::UpdateCommand:
[DEBUG 2022-03-07T13:08:26 HammerCLIForeman::CommandExtensions::Subnet] Added option for HammerCLIForeman::Subnet::UpdateCommand: {:switches=>"--prefix", :type=>"PREFIX", :description=>"Network prefix in CIDR notation (e.g. 64) for this subnet", :opts=>{}, :block=>nil}
[DEBUG 2022-03-07T13:08:26 HammerCLIForeman::CommandExtensions::Subnet] Called option family block for HammerCLIForeman::Subnet::UpdateCommand:
        #<Proc:0x000056034cfe1ed8 /usr/share/gems/gems/hammer_cli_foreman-3.1.0/lib/hammer_cli_foreman/command_extensions/subnet.rb:15>
[DEBUG 2022-03-07T13:08:26 HammerCLIForeman::CommandExtensions::Subnet] Called option family block for HammerCLIForeman::Subnet::UpdateCommand:
        #<Proc:0x000056034cfe1d70 /usr/share/gems/gems/hammer_cli_foreman-3.1.0/lib/hammer_cli_foreman/command_extensions/subnet.rb:21>
[DEBUG 2022-03-07T13:08:26 HammerCLIForeman::CommandExtensions::Subnet] Called option family block for HammerCLIForeman::Subnet::UpdateCommand:
        #<Proc:0x000056034cfe1c58 /usr/share/gems/gems/hammer_cli_foreman-3.1.0/lib/hammer_cli_foreman/command_extensions/subnet.rb:27>
[DEBUG 2022-03-07T13:08:26 HammerCLIForeman::CommandExtensions::Subnet] Called option family block for HammerCLIForeman::Subnet::UpdateCommand:
        #<Proc:0x000056034cfe1b68 /usr/share/gems/gems/hammer_cli_foreman-3.1.0/lib/hammer_cli_foreman/command_extensions/subnet.rb:33>
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIForeman::CommandExtensions::Subnet for *all* except *nothing* on HammerCLIForeman::Subnet::UpdateCommand.
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanRemoteExecution::SubnetExtensions] Added predefined options for HammerCLIForeman::Subnet::InfoCommand:
[DEBUG 2022-03-07T13:08:26 HammerCLIForemanRemoteExecution::SubnetExtensions] Called block for HammerCLIForeman::Subnet::InfoCommand output definition:
        #<Proc:0x000056034e584948 /usr/share/gems/gems/hammer_cli_foreman_remote_execution-0.2.2/lib/hammer_cli_foreman_remote_execution/subnet_extensions.rb:5>
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIForemanRemoteExecution::SubnetExtensions for *all* except *nothing* on HammerCLIForeman::Subnet::InfoCommand.
[DEBUG 2022-03-07T13:08:26 HammerCLIKatello::CommandExtensions::LifecycleEnvironment] Added predefined options for HammerCLIKatello::Capsule::Content::AddLifecycleEnvironmentCommand:
[DEBUG 2022-03-07T13:08:26 HammerCLIKatello::CommandExtensions::LifecycleEnvironment] Called option family block for HammerCLIKatello::Capsule::Content::AddLifecycleEnvironmentCommand:
        #<Proc:0x000056034e604698 /usr/share/gems/gems/hammer_cli_katello-1.3.1/lib/hammer_cli_katello/command_extensions/lifecycle_environment.rb:8>
[DEBUG 2022-03-07T13:08:26 HammerCLIKatello::CommandExtensions::LifecycleEnvironment] Called option family block for HammerCLIKatello::Capsule::Content::AddLifecycleEnvironmentCommand:
        #<Proc:0x000056034e6045d0 /usr/share/gems/gems/hammer_cli_katello-1.3.1/lib/hammer_cli_katello/command_extensions/lifecycle_environment.rb:22>
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIKatello::CommandExtensions::LifecycleEnvironment for *all* except *nothing* on HammerCLIKatello::Capsule::Content::AddLifecycleEnvironmentCommand.
[DEBUG 2022-03-07T13:08:26 HammerCLIKatello::CommandExtensions::LifecycleEnvironment] Added predefined options for HammerCLIKatello::Capsule::Content::RemoveLifecycleEnvironmentCommand:
[DEBUG 2022-03-07T13:08:26 HammerCLIKatello::CommandExtensions::LifecycleEnvironment] Called option family block for HammerCLIKatello::Capsule::Content::RemoveLifecycleEnvironmentCommand:
        #<Proc:0x000056034e604698 /usr/share/gems/gems/hammer_cli_katello-1.3.1/lib/hammer_cli_katello/command_extensions/lifecycle_environment.rb:8>
[DEBUG 2022-03-07T13:08:26 HammerCLIKatello::CommandExtensions::LifecycleEnvironment] Called option family block for HammerCLIKatello::Capsule::Content::RemoveLifecycleEnvironmentCommand:
        #<Proc:0x000056034e6045d0 /usr/share/gems/gems/hammer_cli_katello-1.3.1/lib/hammer_cli_katello/command_extensions/lifecycle_environment.rb:22>
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIKatello::CommandExtensions::LifecycleEnvironment for *all* except *nothing* on HammerCLIKatello::Capsule::Content::RemoveLifecycleEnvironmentCommand.
[DEBUG 2022-03-07T13:08:26 HammerCLIKatello::CommandExtensions::LifecycleEnvironment] Added predefined options for HammerCLIKatello::Capsule::Content::SyncCommand:
[DEBUG 2022-03-07T13:08:26 HammerCLIKatello::CommandExtensions::LifecycleEnvironment] Called option family block for HammerCLIKatello::Capsule::Content::SyncCommand:
        #<Proc:0x000056034e604698 /usr/share/gems/gems/hammer_cli_katello-1.3.1/lib/hammer_cli_katello/command_extensions/lifecycle_environment.rb:8>
[DEBUG 2022-03-07T13:08:26 HammerCLIKatello::CommandExtensions::LifecycleEnvironment] Called option family block for HammerCLIKatello::Capsule::Content::SyncCommand:
        #<Proc:0x000056034e6045d0 /usr/share/gems/gems/hammer_cli_katello-1.3.1/lib/hammer_cli_katello/command_extensions/lifecycle_environment.rb:22>
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIKatello::CommandExtensions::LifecycleEnvironment for *all* except *nothing* on HammerCLIKatello::Capsule::Content::SyncCommand.
[DEBUG 2022-03-07T13:08:26 HammerCLIKatello::CommandExtensions::LifecycleEnvironment] Added predefined options for HammerCLIKatello::Repository::ListCommand:
[DEBUG 2022-03-07T13:08:26 HammerCLIKatello::CommandExtensions::LifecycleEnvironment] Called option family block for HammerCLIKatello::Repository::ListCommand:
        #<Proc:0x000056034e604698 /usr/share/gems/gems/hammer_cli_katello-1.3.1/lib/hammer_cli_katello/command_extensions/lifecycle_environment.rb:8>
[DEBUG 2022-03-07T13:08:26 HammerCLIKatello::CommandExtensions::LifecycleEnvironment] Called option family block for HammerCLIKatello::Repository::ListCommand:
        #<Proc:0x000056034e6045d0 /usr/share/gems/gems/hammer_cli_katello-1.3.1/lib/hammer_cli_katello/command_extensions/lifecycle_environment.rb:22>
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIKatello::CommandExtensions::LifecycleEnvironment for *all* except *nothing* on HammerCLIKatello::Repository::ListCommand.
[ INFO 2022-03-07T13:08:26 HammerCLI::MainCommand] subcommand organization (HammerCLIForeman::Organization) was removed.
[ INFO 2022-03-07T13:08:26 HammerCLI::MainCommand] subcommand organization (HammerCLIKatello::Organization) was created.
[DEBUG 2022-03-07T13:08:26 HammerCLIKatello::CommandExtensions::LifecycleEnvironment] Added predefined options for HammerCLIKatello::HostErrata::ListCommand:
[DEBUG 2022-03-07T13:08:26 HammerCLIKatello::CommandExtensions::LifecycleEnvironment] Called option family block for HammerCLIKatello::HostErrata::ListCommand:
        #<Proc:0x000056034e604698 /usr/share/gems/gems/hammer_cli_katello-1.3.1/lib/hammer_cli_katello/command_extensions/lifecycle_environment.rb:8>
[DEBUG 2022-03-07T13:08:26 HammerCLIKatello::CommandExtensions::LifecycleEnvironment] Called option family block for HammerCLIKatello::HostErrata::ListCommand:
        #<Proc:0x000056034e6045d0 /usr/share/gems/gems/hammer_cli_katello-1.3.1/lib/hammer_cli_katello/command_extensions/lifecycle_environment.rb:22>
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIKatello::CommandExtensions::LifecycleEnvironment for *all* except *nothing* on HammerCLIKatello::HostErrata::ListCommand.
[DEBUG 2022-03-07T13:08:26 HammerCLIKatello::CommandExtensions::LifecycleEnvironment] Added predefined options for HammerCLIKatello::HostSubscription::CreateCommand:
[DEBUG 2022-03-07T13:08:26 HammerCLIKatello::CommandExtensions::LifecycleEnvironment] Called option family block for HammerCLIKatello::HostSubscription::CreateCommand:
        #<Proc:0x000056034e604698 /usr/share/gems/gems/hammer_cli_katello-1.3.1/lib/hammer_cli_katello/command_extensions/lifecycle_environment.rb:8>
[DEBUG 2022-03-07T13:08:26 HammerCLIKatello::CommandExtensions::LifecycleEnvironment] Called option family block for HammerCLIKatello::HostSubscription::CreateCommand:
        #<Proc:0x000056034e6045d0 /usr/share/gems/gems/hammer_cli_katello-1.3.1/lib/hammer_cli_katello/command_extensions/lifecycle_environment.rb:22>
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIKatello::CommandExtensions::LifecycleEnvironment for *all* except *nothing* on HammerCLIKatello::HostSubscription::CreateCommand.
[DEBUG 2022-03-07T13:08:26 HammerCLIKatello::CommandExtensions::ContentSource] Added predefined options for HammerCLIForeman::Host::CreateCommand:
[DEBUG 2022-03-07T13:08:26 HammerCLIKatello::CommandExtensions::ContentSource] Called option family block for HammerCLIForeman::Host::CreateCommand:
        #<Proc:0x000056034e6259b0 /usr/share/gems/gems/hammer_cli_katello-1.3.1/lib/hammer_cli_katello/command_extensions/content_source.rb:4>
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIKatello::CommandExtensions::ContentSource for *all* except *nothing* on HammerCLIForeman::Host::CreateCommand.
[DEBUG 2022-03-07T13:08:26 HammerCLIKatello::CommandExtensions::KickstartRepository] Added predefined options for HammerCLIForeman::Host::CreateCommand:
[DEBUG 2022-03-07T13:08:26 HammerCLIKatello::CommandExtensions::KickstartRepository] Called option family block for HammerCLIForeman::Host::CreateCommand:
        #<Proc:0x000056034e63ebe0 /usr/share/gems/gems/hammer_cli_katello-1.3.1/lib/hammer_cli_katello/command_extensions/kickstart_repository.rb:4>
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIKatello::CommandExtensions::KickstartRepository for *all* except *nothing* on HammerCLIForeman::Host::CreateCommand.
[DEBUG 2022-03-07T13:08:26 HammerCLIKatello::CommandExtensions::ContentSource] Added predefined options for HammerCLIForeman::Host::UpdateCommand:
[DEBUG 2022-03-07T13:08:26 HammerCLIKatello::CommandExtensions::ContentSource] Called option family block for HammerCLIForeman::Host::UpdateCommand:
        #<Proc:0x000056034e6259b0 /usr/share/gems/gems/hammer_cli_katello-1.3.1/lib/hammer_cli_katello/command_extensions/content_source.rb:4>
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIKatello::CommandExtensions::ContentSource for *all* except *nothing* on HammerCLIForeman::Host::UpdateCommand.
[DEBUG 2022-03-07T13:08:26 HammerCLIKatello::CommandExtensions::KickstartRepository] Added predefined options for HammerCLIForeman::Host::UpdateCommand:
[DEBUG 2022-03-07T13:08:26 HammerCLIKatello::CommandExtensions::KickstartRepository] Called option family block for HammerCLIForeman::Host::UpdateCommand:
        #<Proc:0x000056034e63ebe0 /usr/share/gems/gems/hammer_cli_katello-1.3.1/lib/hammer_cli_katello/command_extensions/kickstart_repository.rb:4>
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIKatello::CommandExtensions::KickstartRepository for *all* except *nothing* on HammerCLIForeman::Host::UpdateCommand.
[DEBUG 2022-03-07T13:08:26 HammerCLIKatello::CommandExtensions::ContentSource] Added predefined options for HammerCLIForeman::Hostgroup::CreateCommand:
[DEBUG 2022-03-07T13:08:26 HammerCLIKatello::CommandExtensions::ContentSource] Called option family block for HammerCLIForeman::Hostgroup::CreateCommand:
        #<Proc:0x000056034e6259b0 /usr/share/gems/gems/hammer_cli_katello-1.3.1/lib/hammer_cli_katello/command_extensions/content_source.rb:4>
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIKatello::CommandExtensions::ContentSource for *all* except *nothing* on HammerCLIForeman::Hostgroup::CreateCommand.
[DEBUG 2022-03-07T13:08:26 HammerCLIKatello::CommandExtensions::KickstartRepository] Added predefined options for HammerCLIForeman::Hostgroup::CreateCommand:
[DEBUG 2022-03-07T13:08:26 HammerCLIKatello::CommandExtensions::KickstartRepository] Called option family block for HammerCLIForeman::Hostgroup::CreateCommand:
        #<Proc:0x000056034e63ebe0 /usr/share/gems/gems/hammer_cli_katello-1.3.1/lib/hammer_cli_katello/command_extensions/kickstart_repository.rb:4>
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIKatello::CommandExtensions::KickstartRepository for *all* except *nothing* on HammerCLIForeman::Hostgroup::CreateCommand.
[DEBUG 2022-03-07T13:08:26 HammerCLIKatello::CommandExtensions::ContentSource] Added predefined options for HammerCLIForeman::Hostgroup::UpdateCommand:
[DEBUG 2022-03-07T13:08:26 HammerCLIKatello::CommandExtensions::ContentSource] Called option family block for HammerCLIForeman::Hostgroup::UpdateCommand:
        #<Proc:0x000056034e6259b0 /usr/share/gems/gems/hammer_cli_katello-1.3.1/lib/hammer_cli_katello/command_extensions/content_source.rb:4>
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIKatello::CommandExtensions::ContentSource for *all* except *nothing* on HammerCLIForeman::Hostgroup::UpdateCommand.
[DEBUG 2022-03-07T13:08:26 HammerCLIKatello::CommandExtensions::KickstartRepository] Added predefined options for HammerCLIForeman::Hostgroup::UpdateCommand:
[DEBUG 2022-03-07T13:08:26 HammerCLIKatello::CommandExtensions::KickstartRepository] Called option family block for HammerCLIForeman::Hostgroup::UpdateCommand:
        #<Proc:0x000056034e63ebe0 /usr/share/gems/gems/hammer_cli_katello-1.3.1/lib/hammer_cli_katello/command_extensions/kickstart_repository.rb:4>
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIKatello::CommandExtensions::KickstartRepository for *all* except *nothing* on HammerCLIForeman::Hostgroup::UpdateCommand.
[DEBUG 2022-03-07T13:08:26 HammerCLIForeman::CommandExtensions::Ping] Added predefined options for HammerCLIForeman::PingCommand::ForemanCommand:
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIForeman::CommandExtensions::Ping for *all* except *nothing* on HammerCLIForeman::PingCommand::ForemanCommand.
[DEBUG 2022-03-07T13:08:26 HammerCLIKatello::CommandExtensions::Ping] Added predefined options for HammerCLIForeman::PingCommand::ForemanCommand:
[DEBUG 2022-03-07T13:08:26 HammerCLIKatello::CommandExtensions::Ping] Called block for HammerCLIForeman::PingCommand::ForemanCommand output definition:
        #<Proc:0x000056034e627cd8 /usr/share/gems/gems/hammer_cli_katello-1.3.1/lib/hammer_cli_katello/command_extensions/ping.rb:13>
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIKatello::CommandExtensions::Ping for *all* except *nothing* on HammerCLIForeman::PingCommand::ForemanCommand.
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIForeman::CommandExtensions::Ping for [:data] only on HammerCLIForeman::StatusCommand::ForemanCommand.
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIForeman::CommandExtensions::Status for [:data] only on HammerCLIForeman::StatusCommand::ForemanCommand.
[DEBUG 2022-03-07T13:08:26 HammerCLIKatello::CommandExtensions::Ping] Added predefined options for HammerCLIForeman::StatusCommand::ForemanCommand:
[DEBUG 2022-03-07T13:08:26 HammerCLIKatello::CommandExtensions::Ping] Called block for HammerCLIForeman::StatusCommand::ForemanCommand output definition:
        #<Proc:0x000056034e627cd8 /usr/share/gems/gems/hammer_cli_katello-1.3.1/lib/hammer_cli_katello/command_extensions/ping.rb:13>
[ INFO 2022-03-07T13:08:26 Extensions] Applied HammerCLIKatello::CommandExtensions::Ping for *all* except *nothing* on HammerCLIForeman::StatusCommand::ForemanCommand.
[ INFO 2022-03-07T13:08:26 Modules] Extension module hammer_cli_katello (1.3.1) loaded.
[DEBUG 2022-03-07T13:08:26 Init] Using locale 'en'
[DEBUG 2022-03-07T13:08:26 Init] 'mo' files for locale domain 'hammer-cli' loaded from '/usr/share/gems/gems/hammer_cli-3.1.0/locale'
[DEBUG 2022-03-07T13:08:26 Init] 'mo' files for locale domain 'hammer-cli-foreman' loaded from '/usr/share/gems/gems/hammer_cli_foreman-3.1.0/locale'
[DEBUG 2022-03-07T13:08:26 Init] 'mo' files for locale domain 'hammer-cli-katello' loaded from '/usr/share/gems/gems/hammer_cli_katello-1.3.1/locale'
[ INFO 2022-03-07T13:08:26 HammerCLI::MainCommand] Called with options: {"option_debug"=>true}
[DEBUG 2022-03-07T13:08:26 Exception] Using exception handler HammerCLI::ExceptionHandler#handle_help_wanted
[root@ingbtcpic6vl324 ~]# ls
anaconda-ks.cfg  COT-key-cert.pem  hammer.txt  ivanti  LinuxOS  sidprojects  ssl-build  testserver.yml
[root@ingbtcpic6vl324 ~]# cat hammer.txt
Usage:
    hammer [OPTIONS] SUBCOMMAND [ARG] ...

Parameters:
 SUBCOMMAND                    Subcommand
 [ARG] ...                     Subcommand arguments

Subcommands:
 activation-key                Manipulate activation keys
 architecture                  Manipulate architectures
 audit                         Search audit trails.
 auth                          Foreman connection login/logout
 auth-source                   Manipulate auth sources
 bookmark                      Manage bookmarks
 capsule                       Manipulate capsule
 compute-profile               Manipulate compute profiles
 compute-resource              Manipulate compute resources
 config-group                  Manage Foreman config groups
 config-report                 Browse and read reports
 content-credentials           Manipulate content credentials on the server
 content-export                Prepare content for export to a disconnected Katello
 content-import                Import content from an upstream archive.
 content-units                 Manipulate content units
 content-view                  Manipulate content views
 deb-package                   Manipulate deb packages
 defaults                      Defaults management
 discovery                     Manipulate discovered hosts.
 discovery-rule                Manipulate discovered rules.
 docker                        Manipulate docker content
 domain                        Manipulate domains
 erratum                       Manipulate errata
 fact                          Search facts
 file                          Manipulate files
 filter                        Manage permission filters
 foreign-input-set             Manage foreign input sets
 full-help                     Print help for all hammer commands
 global-parameter              Manipulate global parameters
 host                          Manipulate hosts
 host-collection               Manipulate host collections
 host-registration             Host Registration
 hostgroup                     Manipulate hostgroups
 http-proxy                    Manipulate http proxies
 job-invocation                Manage job invocations
 job-template                  Manage job templates
 lifecycle-environment         Manipulate lifecycle_environments on the server
 location                      Manipulate locations
 mail-notification             Manage mail notifications
 medium                        Manipulate installation media
 model                         Manipulate hardware models
 module-stream                 View Module Streams
 organization                  Manipulate organizations
 os                            Manipulate operating system
 package                       Manipulate packages
 package-group                 Manipulate package groups
 partition-table               Manipulate partition tables
 ping                          Get the status of the server and/or it's subcomponents
 prebuild-bash-completion      Prepare map of options and subcommands for Bash completion
 product                       Manipulate products
 proxy                         Manipulate smart proxies
 puppet-class                  Manage Foreman Puppet classes
 puppet-environment            Manage Foreman Puppet environments
 realm                         Manipulate realms
 recurring-logic               Recurring logic related actions
 remote-execution-feature      Manage remote execution features
 report                        Browse and read reports
 report-template               Manipulate report templates
 repository                    Manipulate repositories
 repository-set                Manipulate repository sets on the server
 role                          Manage user roles
 sc-param                      Manage Foreman Puppet smart class parameters
 settings                      Change server settings
 shell                         Interactive shell
 simple-content-access         Simple content access commands
 srpm                          Manipulate source RPMs
 status                        Get the complete status of the server and/or it's subcomponents
 subnet                        Manipulate subnets
 subscription                  Manipulate subscriptions
 sync-plan                     Manipulate sync plans
 task                          Tasks related actions.
 template                      Manipulate provisioning templates
 template-input                Manage template inputs
 user                          Manipulate users
 user-group                    Manage user groups

Options:
 --[no-]use-defaults           Enable/disable stored defaults. Enabled by default
 --autocomplete VALUE          Get list of possible endings
 --csv                         Output as CSV (same as --output=csv)
 --csv-separator VALUE         Character to separate the values
 --fetch-ca-cert VALUE         Fetch CA certificate from server and exit
 --interactive BOOLEAN         Explicitly turn interactive mode on/off
 --no-headers                  Hide headers from output
 --output ENUM                 Set output format
                               Possible value(s): 'base', 'table', 'silent', 'csv', 'yaml', 'json'
 --output-file VALUE           Path to custom output file
 --show-ids                    Show ids of associated resources
 --ssl-ca-file VALUE           Configure the file containing the CA certificates
 --ssl-ca-path VALUE           Configure the directory containing the CA certificates
 --ssl-client-cert VALUE       Configure the client's public certificate
 --ssl-client-key VALUE        Configure the client's private key
 --ssl-with-basic-auth         Use standard authentication in addition to client certificate authentication
 --verify-ssl BOOLEAN          Configure SSL verification of remote system
 --version                     Show version
 -c, --config VALUE            Path to custom config file
 -d, --debug                   Show debugging output
 -h, --help                    Print help
 -p, --password VALUE          Password to access the remote system
 -q, --quiet                   Completely silent
 -r, --reload-cache            Force reload of Apipie cache
 -s, --server VALUE            Remote system address
 -u, --username VALUE          Username to access the remote system
 -v, --[no-]verbose            Be verbose (or not). True by default

Option details:
  Here you can find option types and the value an option can accept:

  BOOLEAN             One of true/false, yes/no, 1/0
  DATETIME            Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
  ENUM                Possible values are described in the option's description
  FILE                Path to a file
  KEY_VALUE_LIST      Comma-separated list of key=value.
                      JSON is acceptable and preferred way for such parameters
  LIST                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                      JSON is acceptable and preferred way for such parameters
  MULTIENUM           Any combination of possible values described in the option's description
  NUMBER              Numeric value. Integer
  SCHEMA              Comma separated list of values defined by a schema.
                      JSON is acceptable and preferred way for such parameters
  VALUE               Value described in the option's description. Mostly simple string

I think it tries to tell you (albeit poorly) that you can’t create a filter rule without actually telling it what to filter for.

Did you want to filter for the Core package group? How did you create the filter itself?

Can you paste the output of hammer content-view filter info --name 'package filter 1' --organization COT --content-view 'Alma 8.4 Content View_local_iso'?

Here is the output @evgeni

@evgeni I created filter using this command. And yes I want to filter it for Core.

hammer content-view filter create --organization COT --content-view 'Alma 8.4 Content View_local_iso' --name "package filter 1" --type package_group

Yeah, that needs the --uuid flag to filter rule create, --name won’t work :frowning:

Can you please tell me how to get the uuid? Or Is there a single hammer command to create a filter and add a rule?

hammer package-group list --organization COT --content-view 'Alma 8.4 Content View_local_iso' should give you the list of all groups in that CV. you probably can add --search 'name=Core' or something to speed it up.

And no, there is no single command.

So, we have to first get the uuid from the above command and feed into hammer create rule. Correct?

That’s how I understand it.