Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
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:
Always
Steps to Reproduce:
________________________________________________________
hammer> product update --help
Usage:
product update [OPTIONS]
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
hammer>
________________________________________________________
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:
Verified:
Verified with:
- Satellite 6.7.0 snap 9
- tfm-rubygem-hammer_cli_katello-0.20.2.1-1.el7sat.noarch
Test steps:
- Create few products with repositories.
- Use "hammer product update-proxy" command to assign http-proxy to products.
Observations:
- Able to assign Http Proxy to products.
hammer> product update-proxy --help
Usage:
product update-proxy [OPTIONS]
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.
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-2020:1454
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: Always Steps to Reproduce: ________________________________________________________ hammer> product update --help Usage: product update [OPTIONS] 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 hammer> ________________________________________________________ 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: