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 1670092 - Remove for Hammer CSV
Summary: Remove for Hammer CSV
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Packaging
Version: 6.5.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: 6.6.0
Assignee: Evgeni Golov
QA Contact: vijsingh
URL:
Whiteboard:
: 1746463 (view as bug list)
Depends On: 1670090
Blocks: 1716613
TreeView+ depends on / blocked
 
Reported: 2019-01-28 14:54 UTC by Bryan Kearney
Modified: 2019-10-22 19:50 UTC (History)
12 users (show)

Fixed In Version: satellite-6.6.0-3.beta
Doc Type: Deprecated Functionality
Doc Text:
In Red Hat Satellite 6.6, the "hammer csv" command for importing or exporting resources has been removed. You can still use the "hammer --csv" command to generate formatted output only.
Clone Of: 1670090
Environment:
Last Closed: 2019-10-22 19:50:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Comment 1 Bryan Kearney 2019-01-28 14:55:45 UTC
This feature was deprecated in 6.5, it should be removed in 6.6.

Comment 4 Sachin Ghai 2019-05-20 08:47:41 UTC
Assigning this bz to Vijay as he has worked on 6.5 bug where we set the deprecating warning with hammer csv.

Comment 5 vijsingh 2019-06-20 06:47:44 UTC
ON_QA Verified

@Satellite 6.6.0 snap 7.0


[root@sat6 ~]# rpm -qa|grep -i csv
[root@sat6 ~]# 
[root@sat6 ~]# rpm -qa satellite
satellite-6.6.0-5.beta.el7sat.noarch
[root@sat6 ~]# 
[root@sat6 ~]# hammer csv
Error: No such sub-command 'csv'.

See: 'hammer --help'.
[root@sat6 ~]# hammer --help
Usage:
    hammer [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 activation-key                Manipulate activation keys
 admin                         Administrative server-side tasks
 ansible                       Manage foreman ansible
 architecture                  Manipulate architectures
 arf-report                    Manipulate compliance reports
 audit                         Search audit trails.
 auth                          Foreman connection login/logout
 auth-source                   Manipulate auth sources
 bootdisk                      Download boot disks
 capsule                       Manipulate capsule
 compute-profile               Manipulate compute profiles
 compute-resource              Manipulate compute resources
 config-group                  Manipulate config groups
 config-report                 Browse and read reports
 content-view                  Manipulate content views
 defaults                      Defaults management
 discovery                     Manipulate discovered hosts.
 discovery-rule                Manipulate discovered rules.
 docker                        Manipulate docker content
 domain                        Manipulate domains
 environment                   Manipulate environments
 erratum                       Manipulate errata
 export-templates              Export templates to a git repo or a directory on the server
 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
 gpg                           Manipulate GPG Key actions on the server
 host                          Manipulate hosts
 host-collection               Manipulate host collections
 hostgroup                     Manipulate hostgroups
 import-templates              Import templates from a git repo or a directory on the server
 job-invocation                Manage job invocations
 job-template                  Manage job templates
 lifecycle-environment         Manipulate lifecycle_environments on the server
 location                      Manipulate locations
 medium                        Manipulate installation media
 model                         Manipulate hardware models
 module-stream                 View Module Streams
 organization                  Manipulate organizations
 os                            Manipulate operating system
 ostree-branch                 Manipulate ostree branches
 package                       Manipulate packages
 package-group                 Manipulate package groups
 partition-table               Manipulate partition tables
 ping                          Get the status of the server
 policy                        Manipulate policies
 product                       Manipulate products
 proxy                         Manipulate smart proxies
 puppet-class                  Search puppet modules
 puppet-module                 View Puppet Module details
 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                      Manipulate smart class parameters
 scap-content                  Manipulate SCAP contents
 settings                      Change server settings
 shell                         Interactive shell
 smart-variable                Manipulate smart variables
 subnet                        Manipulate subnets
 subscription                  Manipulate subscriptions
 sync-plan                     Manipulate sync plans
 tailoring-file                Manipulate Tailoring files
 task                          Tasks related actions.
 template                      Manipulate config templates
 template-input                Manage template inputs
 user                          Manipulate users
 user-group                    Manage user groups
 virt-who-config               Manage Virt Who configurations

Options:
 --[no-]use-defaults           Enable/disable stored defaults. Enabled by default
 --autocomplete LINE           Get list of possible endings
 --csv                         Output as CSV (same as --output=csv)
 --csv-separator SEPARATOR     Character to separate the values
 --fetch-ca-cert SERVER        Fetch CA certificate from server and exit
 --interactive INTERACTIVE     Explicitly turn interactive mode on/off
                               One of true/false, yes/no, 1/0.
 --no-headers                  Hide headers from output
 --output ADAPTER              Set output format. One of [base, table, silent, csv, yaml, json]
 --output-file OUTPUT_FILE     Path to custom output file
 --show-ids                    Show ids of associated resources
 --ssl-ca-file CA_FILE         Configure the file containing the CA certificates
 --ssl-ca-path CA_PATH         Configure the directory containing the CA certificates
 --ssl-client-cert CERT_FILE   Configure the client's public certificate
 --ssl-client-key KEY_FILE     Configure the client's private key
 --ssl-with-basic-auth         Use standard authentication in addition to client certificate authentication
 --verify-ssl VERIFY_SSL       Configure SSL verification of remote system
                               One of true/false, yes/no, 1/0.
 --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
 -q, --quiet                   Completely silent
 -r, --reload-cache            Force reload of Apipie cache
 -s, --server SERVER           Remote system address
 -u, --username USERNAME       Username to access the remote system
 -v, --[no-]verbose            Be verbose (or not). True by default
[root@sat6 ~]#

Comment 7 Justin Sherrill 2019-09-09 13:43:42 UTC
*** Bug 1746463 has been marked as a duplicate of this bug. ***

Comment 8 Bryan Kearney 2019-10-22 19:50:04 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/RHSA-2019:3172


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