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 1745724 - Hammer organization shows warning of deprecated option of environments
Summary: Hammer organization shows warning of deprecated option of environments
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer
Version: 6.6.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: 6.7.0
Assignee: Oleh Fedorenko
QA Contact: vijsingh
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-08-26 18:11 UTC by Steffen Froemer
Modified: 2023-09-07 20:28 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: Known Issue
Doc Text:
The `hammer organization` command shows a warning for deprecated options even when those options are not used. The command still works without issue; if you are not using the deprecated options you can ignore the warnings.
Clone Of:
Environment:
Last Closed: 2020-04-14 15:54:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 27778 0 Normal Closed Hammer organization shows warning of deprecated option of environments 2020-10-19 13:17:38 UTC
Red Hat Product Errata RHBA-2020:1455 0 None None None 2020-04-14 15:54:21 UTC

Description Steffen Froemer 2019-08-26 18:11:29 UTC
Description of problem:
Running comman `hammer organization` shows warning of deprecated environments feature

Version-Release number of selected component (if applicable):
tfm-rubygem-hammer_cli-0.17.1-2.el7sat.noarch

How reproducible:
always

Steps to Reproduce:
1. hammer organization >/dev/null
2.
3.

Actual results:
Warning: Option --environments is deprecated. Use --puppet-environments instead
Warning: Option --environment-ids is deprecated. Use --puppet-environment-ids instead

Expected results:
no warnings

Additional info:
# hammer environment >/dev/null
environment command is deprecated and will be removed in one of the future versions. Please use puppet-environment command instead.

Comment 3 Oleh Fedorenko 2019-09-04 11:56:22 UTC
Created redmine issue https://projects.theforeman.org/issues/27778 from this bug

Comment 5 Bryan Kearney 2019-09-30 12:01:50 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/27778 has been resolved.

Comment 6 vijsingh 2019-11-24 03:51:03 UTC
ON_QA Verified

@Satellite 6.7.0 snap 3.0

Steps/Observation:

 - `hammer organization` does not show warning of deprecated environments feature
 - warning shows only under help text for options '--environment/--environment-id'.

___________________________________________________________ 
[root@qe-sat6-feature-rhel7 ~]# hammer organization 
Usage:
    hammer organization [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 add-compute-resource          Associate a compute resource
 add-config-template           Associate a configuration template
 add-domain                    Associate a domain
 add-environment               Associate a Puppet environment
 add-hostgroup                 Associate a hostgroup
 add-location                  Associate a location
 add-medium                    Associate a medium
 add-smart-proxy               Associate a smart proxy
 add-subnet                    Associate a subnet
 add-user                      Associate an user
 create                        Create organization
 delete                        Delete an organization
 delete-parameter              Delete parameter for an organization
 info                          Show organization
 list                          List all organizations
 remove-compute-resource       Disassociate a compute resource
 remove-config-template        Disassociate a configuration template
 remove-domain                 Disassociate a domain
 remove-environment            Disassociate a Puppet environment
 remove-hostgroup              Disassociate a hostgroup
 remove-location               Disassociate a location
 remove-medium                 Disassociate a medium
 remove-smart-proxy            Disassociate a smart proxy
 remove-subnet                 Disassociate a subnet
 remove-user                   Disassociate an user
 set-parameter                 Create or update parameter for an organization
 update                        Update organization

Options:
 -h, --help                    Print help


[root@qe-sat6-feature-rhel7 ~]# hammer organization >/dev/null
[root@qe-sat6-feature-rhel7 ~]# 

[root@qe-sat6-feature-rhel7 ~]# hammer content-view version update --help
Usage:
    hammer content-view version update [OPTIONS]

Options:
 --content-view CONTENT_VIEW_NAME                    Content view name to search by
 --content-view-id CONTENT_VIEW_ID                   Content view numeric identifier
 --description DESCRIPTION                           The description for the content view version
 --environment ENVIRONMENT_NAME                      Lifecycle environment name to search by (--environment is deprecated: Use --lifecycle-environment instead)
 --environment-id ENVIRONMENT_ID                     (--environment-id is deprecated: Use --lifecycle-environment-id instead)
 --id ID                                             Content view version identifier
 --lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME  Lifecycle environment name to search by
 --lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID  
 --new-version NEW_VERSION                            
 --organization ORGANIZATION_NAME                    Organization name to search by
 --organization-id ORGANIZATION_ID                   Organization ID
 --organization-label ORGANIZATION_LABEL             Organization label to search by
 --version VERSION                                   Content view version number
 -h, --help                                          Print help


[root@qe-sat6-feature-rhel7 ~]# 

[root@qe-sat6-feature-rhel7 ~]# hammer host  update --help|grep 'environment'
 --environment ENVIRONMENT_NAME                                Environment name (--environment is deprecated: Use --puppet-environment instead)
 --environment-id ENVIRONMENT_ID                               (--environment-id is deprecated: Use --puppet-environment-id instead)


___________________________________________________________

Comment 9 errata-xmlrpc 2020-04-14 15:54: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-2020:1455


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