Bug 1138553 - Hammer Cli role info command missing
Summary: Hammer Cli role info command missing
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: Unspecified
Assignee: orabin
QA Contact: Corey Welton
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-05 07:29 UTC by Tazim Kolhar
Modified: 2021-07-22 07:19 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-27 11:18:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 7412 0 Low Closed Hammer Cli role info command missing 2020-06-09 11:49:34 UTC

Description Tazim Kolhar 2014-09-05 07:29:06 UTC
Description of problem:
role info command missing

Version-Release number of selected component (if applicable):
foreman-gce-1.6.0.44-1.el7sat.noarch
rubygem-hammer_cli_foreman-0.1.1-16.el7sat.noarch
foreman-selinux-1.6.0.14-1.el7sat.noarch
ruby193-rubygem-foreman_hooks-0.3.5-2.el7sat.noarch
ruby193-rubygem-foreman_discovery-1.3.0-2.el7sat.noarch
foreman-ovirt-1.6.0.44-1.el7sat.noarch
ruby193-rubygem-foreman-redhat_access-0.0.4-2.el7sat.noarch
rubygem-hammer_cli_foreman_tasks-0.0.3-3.el7sat.noarch
qe-sat6-rhel7.usersys.redhat.com-foreman-client-1.0-1.noarch
foreman-compute-1.6.0.44-1.el7sat.noarch
ruby193-rubygem-foreman-tasks-0.6.9-1.1.el7sat.noarch
ruby193-rubygem-foreman_bootdisk-2.0.5-2.el7sat.noarch
foreman-libvirt-1.6.0.44-1.el7sat.noarch
foreman-proxy-1.6.0.30-1.el7sat.noarch
foreman-1.6.0.44-1.el7sat.noarch
foreman-vmware-1.6.0.44-1.el7sat.noarch
foreman-postgresql-1.6.0.44-1.el7sat.noarch
qe-sat6-rhel7.usersys.redhat.com-foreman-proxy-1.0-1.noarch


How reproducible:
everytime

Steps to Reproduce:
1.hammer -v -u admin -p ***  role info --id='47'
Exception] Error: No such sub-command 'info'

See: 'hammer role --help'
Error: No such sub-command 'info'

See: 'hammer role --help'
[ERROR 2014-09-05 03:21:05 Exception] 

Clamp::UsageError (No such sub-command 'info'):
    /usr/share/gems/gems/clamp-0.6.2/lib/clamp/subcommand/execution.rb:28:in `find_subcommand_class'
    /usr/share/gems/gems/clamp-0.6.2/lib/clamp/subcommand/execution.rb:17:in `instatiate_subcommand'
    /usr/share/gems/gems/clamp-0.6.2/lib/clamp/subcommand/execution.rb:10:in `execute'
    /usr/share/gems/gems/clamp-0.6.2/lib/clamp/command.rb:67:in `run'
    /usr/share/gems/gems/hammer_cli-0.1.1/lib/hammer_cli/abstract.rb:22:in `run'
    /usr/share/gems/gems/clamp-0.6.2/lib/clamp/subcommand/execution.rb:11:in `execute'
    /usr/share/gems/gems/clamp-0.6.2/lib/clamp/command.rb:67:in `run'
    /usr/share/gems/gems/hammer_cli-0.1.1/lib/hammer_cli/abstract.rb:22:in `run'
    /usr/share/gems/gems/clamp-0.6.2/lib/clamp/command.rb:125:in `run'
    /usr/share/gems/gems/hammer_cli-0.1.1/bin/hammer:102:in `<top (required)>'
    /usr/bin/hammer:23:in `load'
    /usr/bin/hammer:23:in `<main>'

2.
3.

Actual results:
role info not found

Expected results:
role info gives appropriate information

Additional info:

Comment 1 RHEL Program Management 2014-09-05 07:42:59 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 4 Dominic Cleal 2014-09-11 13:44:32 UTC
Created redmine issue http://projects.theforeman.org/issues/7412 from this bug

Comment 6 Bryan Kearney 2015-12-06 15:04:54 UTC
Upstream bug assigned to orabin

Comment 7 Bryan Kearney 2015-12-14 09:02:43 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/7412 has been closed
-------------
Ori Rabin
Applied in changeset commit:hammer-cli-foreman|216cdd2fdae17d5b8775911f673e173aa68fd3e8.

Comment 10 Tazim Kolhar 2016-03-22 09:11:22 UTC
VERIFIED:
# rpm -qa | grep foreman
tfm-rubygem-foreman_gutterball-0.0.1-6.el7sat.noarch
ibm-x3550m3-09.lab.eng.brq.redhat.com-foreman-proxy-1.0-1.noarch
foreman-selinux-1.11.0-1.el7sat.noarch
tfm-rubygem-foreman_theme_satellite-0.1.2-1.el7sat.noarch
tfm-rubygem-hammer_cli_foreman-0.5.1.2-1.el7sat.noarch
tfm-rubygem-foreman_openscap-0.5.3.0-1.el7sat.noarch
ibm-x3550m3-09.lab.eng.brq.redhat.com-foreman-client-1.0-1.noarch
tfm-rubygem-hammer_cli_foreman_tasks-0.0.10-2.el7sat.noarch
foreman-compute-1.11.0.6-1.el7sat.noarch
tfm-rubygem-foreman_bootdisk-6.1.0-1.el7sat.noarch
foreman-gce-1.11.0.6-1.el7sat.noarch
foreman-postgresql-1.11.0.6-1.el7sat.noarch
foreman-proxy-1.11.0.1-1.el7sat.noarch
foreman-installer-1.11.0.0-1.el7sat.noarch
tfm-rubygem-foreman-tasks-0.7.14.1-1.el7sat.noarch
foreman-vmware-1.11.0.6-1.el7sat.noarch
foreman-debug-1.11.0.6-1.el7sat.noarch
tfm-rubygem-foreman_hooks-0.3.9-2.el7sat.noarch
foreman-discovery-image-3.0.5-3.el7sat.noarch
tfm-rubygem-hammer_cli_foreman_bootdisk-0.1.3-4.el7sat.noarch
foreman-1.11.0.6-1.el7sat.noarch
foreman-ovirt-1.11.0.6-1.el7sat.noarch
foreman-libvirt-1.11.0.6-1.el7sat.noarch
tfm-rubygem-foreman_discovery-5.0.0.1-1.el7sat.noarch
foreman-installer-katello-3.0.0.3-1.el7sat.noarch
tfm-rubygem-hammer_cli_foreman_docker-0.0.3-5.el7sat.noarch
tfm-rubygem-foreman_docker-2.0.1-1.el7sat.noarch
tfm-rubygem-foreman-redhat_access-1.0.1-1.el7sat.noarch
ibm-x3550m3-09.lab.eng.brq.redhat.com-foreman-proxy-client-1.0-1.noarch
puppet-foreman_scap_client-0.3.3-10.el7sat.noarch
tfm-rubygem-foreman_remote_execution-0.3.0.1-1.el7sat.noarch



Steps:
# hammer -v -d role info --name test_role
[ INFO 2016-03-22 10:07:17 Init] Initialization of Hammer CLI (0.5.1.3) has started...
[DEBUG 2016-03-22 10:07:17 Init] Running at ruby 2.2.2-p95
[ INFO 2016-03-22 10:07:17 Init] Configuration from the file /etc/hammer/cli_config.yml has been loaded
[ INFO 2016-03-22 10:07:17 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman.yml has been loaded
[ INFO 2016-03-22 10:07:17 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_bootdisk.yml has been loaded
[ INFO 2016-03-22 10:07:17 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_docker.yml has been loaded
[ INFO 2016-03-22 10:07:17 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_tasks.yml has been loaded
[ INFO 2016-03-22 10:07:17 Init] Configuration from the file /etc/hammer/cli.modules.d/gutterball.yml has been loaded
[ INFO 2016-03-22 10:07:17 Init] Configuration from the file /etc/hammer/cli.modules.d/import.yml has been loaded
[ INFO 2016-03-22 10:07:17 Init] Configuration from the file /etc/hammer/cli.modules.d/katello.yml has been loaded
[DEBUG 2016-03-22 10:07:17 Connection] Registered: foreman
[DEBUG 2016-03-22 10:07:17 API] Global headers: {
        :content_type => "application/json",
              :accept => "application/json;version=2",
    "Accept-Language" => "en"
}
[ INFO 2016-03-22 10:07:17 Modules] Extension module hammer_cli_foreman (0.5.1.2) loaded
[ INFO 2016-03-22 10:07:17 Modules] Extension module hammer_cli_foreman_bootdisk (0.1.3) loaded
[ INFO 2016-03-22 10:07:18 HammerCLI::MainCommand] subcommand organization (HammerCLIForeman::Organization) was removed.
[ INFO 2016-03-22 10:07:18 HammerCLI::MainCommand] subcommand organization (HammerCLIKatello::Organization) was created.
[ INFO 2016-03-22 10:07:18 Modules] Extension module hammer_cli_gutterball (1.0.1) loaded
[ INFO 2016-03-22 10:07:18 Modules] Extension module hammer_cli_import (0.10.23) loaded
[ INFO 2016-03-22 10:07:18 Modules] Extension module hammer_cli_katello (0.0.22.1) loaded
[DEBUG 2016-03-22 10:07:18 Init] Using locale 'en'
[DEBUG 2016-03-22 10:07:18 Init] 'mo' files for locale domain 'hammer-cli' loaded from '/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.5.1.3/locale'
[DEBUG 2016-03-22 10:07:18 Init] 'mo' files for locale domain 'hammer-cli-foreman' loaded from '/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman-0.5.1.2/locale'
[DEBUG 2016-03-22 10:07:18 Init] 'mo' files for locale domain 'hammer_cli_foreman_docker' loaded from '/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman_docker-0.0.3/locale'
[DEBUG 2016-03-22 10:07:18 Init] 'mo' files for locale domain 'hammer-cli-katello' loaded from '/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_katello-0.0.22.1/locale'
[ INFO 2016-03-22 10:07:18 HammerCLI::MainCommand] Called with options: {"option_verbose"=>true, "option_debug"=>true}
[ INFO 2016-03-22 10:07:18 HammerCLIForeman::Role] Called with options: {}
[ INFO 2016-03-22 10:07:18 HammerCLIForeman::Role::InfoCommand] Called with options: {"option_name"=>"test_role"}
[ INFO 2016-03-22 10:07:18 API] GET /api/roles
[DEBUG 2016-03-22 10:07:18 API] Params: {
    :search => "name = \"test_role\""
}
[DEBUG 2016-03-22 10:07:18 API] Headers: {
    :params => {
        :search => "name = \"test_role\""
    }
}
[Foreman] Password for admin: 
[DEBUG 2016-03-22 10:07:24 API] Response: {
       "total" => 22,
    "subtotal" => 1,
        "page" => 1,
    "per_page" => 20,
      "search" => "name = \"test_role\"",
        "sort" => {
           "by" => "name",
        "order" => "ASC"
    },
     "results" => [
        [0] {
            "builtin" => 0,
               "name" => "test_role",
                 "id" => 22
        }
    ]
}
[DEBUG 2016-03-22 10:07:24 API] Response headers: {
                      :date => "Tue, 22 Mar 2016 09:07:22 GMT",
                    :server => "Apache/2.4.6 (Red Hat Enterprise Linux)",
           :x_frame_options => "SAMEORIGIN",
          :x_xss_protection => "1; mode=block",
    :x_content_type_options => "nosniff",
           :foreman_version => "1.11.0.6",
       :foreman_api_version => "2",
           :apipie_checksum => "2efceeee3d57931285ce19cf58a7a96d",
             :cache_control => "max-age=0, private, must-revalidate",
              :x_request_id => "2f6ccc46-1d9c-439a-9835-25917787539f",
                 :x_runtime => "0.029948",
              :x_powered_by => "Phusion Passenger 4.0.18",
                :set_cookie => [
        [0] "_session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJTcyNDExYWU3Y2FhYTBmZjM2NzgwODAwNzhmODU5MDRmBjsAVEkiC2xvY2FsZQY7AEYiB2Vu--4b1be04e01703b81070c3d5987b3084c04315119; path=/; HttpOnly"
    ],
                      :etag => "\"baabf8fff3180ca3d4b3956eaf290c28-gzip\"",
                    :status => "200 OK",
                      :vary => "Accept-Encoding",
          :content_encoding => "gzip",
            :content_length => "156",
              :content_type => "application/json; charset=utf-8"
}
[ INFO 2016-03-22 10:07:24 API] GET /api/roles/22
[DEBUG 2016-03-22 10:07:24 API] Params: {}
[DEBUG 2016-03-22 10:07:24 API] Headers: {
    :params => {}
}
[DEBUG 2016-03-22 10:07:24 API] Response: {
    "builtin" => 0,
       "name" => "test_role",
         "id" => 22,
    "filters" => []
}
[DEBUG 2016-03-22 10:07:24 API] Response headers: {
                      :date => "Tue, 22 Mar 2016 09:07:24 GMT",
                    :server => "Apache/2.4.6 (Red Hat Enterprise Linux)",
           :x_frame_options => "SAMEORIGIN",
          :x_xss_protection => "1; mode=block",
    :x_content_type_options => "nosniff",
           :foreman_version => "1.11.0.6",
       :foreman_api_version => "2",
           :apipie_checksum => "2efceeee3d57931285ce19cf58a7a96d",
             :cache_control => "max-age=0, private, must-revalidate",
              :x_request_id => "71d41703-a184-4986-b9af-b85c757d8a81",
                 :x_runtime => "0.028792",
              :x_powered_by => "Phusion Passenger 4.0.18",
                :set_cookie => [
        [0] "_session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJTg3Yjg5ZjM1NjIxMjIxMzEzZGI5ZDExMjQ3ODE1YzIwBjsAVEkiC2xvY2FsZQY7AEYiB2Vu--b4359e39d6dd1ebab8c2a37f8627ed57e7dedfab; path=/; HttpOnly"
    ],
                      :etag => "\"ca6eaa6ec2bc3d6a959f2d7d68950662\"",
                    :status => "200 OK",
            :content_length => "53",
              :content_type => "application/json; charset=utf-8"
}
Id:      22
Name:    test_role
Builtin: No

Comment 15 Bryan Kearney 2016-07-27 11:18:09 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.