Bug 1774327

Summary: Unable to assign http_proxy to a product using hammer CLI
Product: Red Hat Satellite Reporter: vijsingh
Component: RepositoriesAssignee: Chris Roberts <chrobert>
Status: CLOSED ERRATA QA Contact: Jameer Pathan <jpathan>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.7.0CC: chrobert, pcreech
Target Milestone: 6.7.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: tfm-rubygem-hammer_cli_katello- Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-14 13:27:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1774324    

Description vijsingh 2019-11-20 03:00:00 UTC
Description of problem:

 Unable to assign http_proxy to a product using hammer CLI

Version-Release number of selected component (if applicable):

 Satellite 6.7.0 snap 2.0

How reproducible:


Steps to Reproduce:
hammer> product  update --help
     product update [OPTIONS]

 --description DESCRIPTION               Product description
 --gpg-key GPG_KEY_NAME                  Name to search by
 --gpg-key-id GPG_KEY_ID                 Gpg key numeric identifier
 --id ID                                 Product numeric identifier
 --name NAME                             Product name to search by
 --new-name NEW_NAME                     Product name
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization ID
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --ssl-ca-cert-id SSL_CA_CERT_ID         Idenifier of the SSL CA Cert
 --ssl-client-cert-id SSL_CLIENT_CERT_ID Identifier of the SSL Client Cert
 --ssl-client-key-id SSL_CLIENT_KEY_ID   Identifier of the SSL Client Key
 --sync-plan SYNC_PLAN_NAME              Sync plan name to search by
 --sync-plan-id SYNC_PLAN_ID             Sync plan numeric identifier
 -h, --help                              Print help


Actual results:

 Unable to assign http_proxy to a product using hammer CLI

Expected results:

 Should be able to assign http_proxy to a product using hammer CLI

Additional info:

Comment 4 Bryan Kearney 2019-12-12 17:04:44 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/28175 has been resolved.

Comment 6 Jameer Pathan 2020-01-21 05:56:21 UTC

Verified with:
- Satellite 6.7.0 snap 9
- tfm-rubygem-hammer_cli_katello-

Test steps:
- Create few products with repositories.
- Use "hammer product update-proxy" command to assign http-proxy to products.

- Able to assign Http Proxy to products.

hammer> product update-proxy --help
     product update-proxy [OPTIONS]

 --http-proxy HTTP_PROXY_NAME          Name to search by
 --http-proxy-id HTTP_PROXY_ID         Identifier of the HTTP Proxy
 --http-proxy-policy HTTP_PROXY_POLICY Policy for HTTP Proxy for content sync
                                       Possible value(s): 'global_default_http_proxy', 'none', 'use_selected_http_proxy'
 --ids IDS                             List of product ids
                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                       JSON is acceptable and preferred way for complex parameters
 -h, --help                            Print help

hammer> product update-proxy --ids 62,63 --http-proxy-policy global_default_http_proxy
Product proxy updated.

hammer> product update-proxy --ids 62,63 --http-proxy-policy use_selected_http_proxy --http-proxy-id 2
Product proxy updated.

Comment 9 errata-xmlrpc 2020-04-14 13:27:27 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.