Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1176496 - CLI Hammer version command is failing
Summary: CLI Hammer version command is failing
Keywords:
Status: CLOSED DUPLICATE of bug 1192113
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer
Version: Nightly
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: Unspecified
Assignee: Katello Bug Bin
QA Contact: Tazim Kolhar
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-12-22 06:36 UTC by Tazim Kolhar
Modified: 2017-02-23 20:42 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-13 12:50:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Tazim Kolhar 2014-12-22 06:36:05 UTC
Description of problem:
CLI Hammer version command is failing

Version-Release number of selected component (if applicable):
# rpm -q foreman
foreman-1.8.0-0.develop.201412181705git9e844ba.el7.noarch


How reproducible:
everytime

Steps to Reproduce:
1.# hammer --help
Usage:
    hammer [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 activation-key                Manipulate activation keys.
 architecture                  Manipulate architectures.
 auth                          Foreman connection login/logout.
 auth-source                   Manipulate auth sources.
 bootdisk                      Download boot disks
 capsule                       Manipulate capsule
 compute-resource              Manipulate compute resources.
 content-host                  Manipulate content hosts on the server
 content-view                  Manipulate content views.
 docker                        Manipulate docker content
 domain                        Manipulate domains.
 environment                   Manipulate environments.
 erratum                       Manipulate errata
 fact                          Search facts.
 filter                        Manage permission filters.
 global-parameter              Manipulate global parameters.
 gpg                           Manipulate GPG Key actions on the server
 host                          Manipulate hosts.
 host-collection               Manipulate host collections
 hostgroup                     Manipulate hostgroups.
 import                        Import data exported from a Red Hat Satellite 5 instance
 lifecycle-environment         Manipulate lifecycle_environments on the server
 location                      Manipulate locations.
 medium                        Manipulate installation media.
 model                         Manipulate hardware models.
 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
 product                       Manipulate products.
 proxy                         Manipulate smart proxies.
 puppet-class                  Search puppet modules.
 puppet-module                 View Puppet Module details.
 report                        Browse and read reports.
 repository                    Manipulate repositories
 repository-set                Manipulate repository sets on the server
 role                          Manage user roles.
 sc-param                      Manipulate smart class parameters.
 shell                         Interactive shell
 subnet                        Manipulate subnets.
 subscription                  Manipulate subscriptions.
 sync-plan                     Manipulate sync plans
 task                          Tasks related actions.
 template                      Manipulate config templates.
 user                          Manipulate users.
 user-group                    Manage user groups.

Options:
 --autocomplete LINE           Get list of possible endings
 --csv                         Output as CSV (same as --output=csv)
 --csv-separator SEPARATOR     Character to separate the values
 --interactive INTERACTIVE     Explicitly turn interactive mode on/off
                               One of true/false, yes/no, 1/0.
 --output ADAPTER              Set output format. One of [base, table, silent, csv, yaml, json]
 --show-ids                    Show ids of associated resources
 --version                     show version
 -c, --config CFG_FILE         path to custom config file
 -d, --debug                   show debugging output
 -h, --help                    print help
 -p, --password PASSWORD       password to access the remote system
 -r, --reload-cache            force reload of Apipie cache
 -s, --server SERVER           remote system address
 -u, --username USERNAME       username to access the remote system
 -v, --verbose                 be verbose

2.# hammer --version
hammer (0.1.4)
 * hammer_cli_foreman (0.1.4)
Error: undefined method `version' for HammerCLIForemanBootdisk:Module

3.

Actual results:
Hammer version command is failing

Expected results:
hammer version should work as expected

Additional info:

please let know if foreman-debug is needed and also the system details

Comment 1 RHEL Program Management 2014-12-22 06:54:22 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 3 Lukas Zapletal 2015-03-13 12:50:07 UTC

*** This bug has been marked as a duplicate of bug 1192113 ***


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