| Summary: | Provide hammer option to add/update "discovery proxy" into the subnet. | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Ranjan Kumar <rankumar> | ||||||||||
| Component: | Discovery Plugin | Assignee: | orabin | ||||||||||
| Status: | CLOSED ERRATA | QA Contact: | Katello QA List <katello-qa-list> | ||||||||||
| Severity: | medium | Docs Contact: | |||||||||||
| Priority: | medium | ||||||||||||
| Version: | 6.1.8 | CC: | baptiste.agasse, bkearney, dlobatog, jcallaha, jkrocil, lzap, nshaik, orabin, tstrachota | ||||||||||
| Target Milestone: | Unspecified | Keywords: | Triaged | ||||||||||
| Target Release: | Unused | ||||||||||||
| Hardware: | All | ||||||||||||
| OS: | All | ||||||||||||
| Whiteboard: | |||||||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||||||
| Doc Text: | Story Points: | --- | |||||||||||
| Clone Of: | Environment: | ||||||||||||
| Last Closed: | 2018-02-21 16:49:54 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: | |||||||||||
| Attachments: |
|
||||||||||||
Moving 6.2 bugs out to sat-backlog. Just hit this issue when setting up a Satellite 6 instance so issue is still present in v6.1.9, just fyi. [root@cfmeqe-satellite-6 ~]# rpm -qa | grep katello ruby193-rubygem-katello-2.2.0.92-1.el7sat.noarch katello-certs-tools-2.2.1-1.el7sat.noarch katello-server-ca-1.0-1.noarch katello-service-2.2.0.19-1.el7sat.noarch katello-2.2.0.19-1.el7sat.noarch rubygem-hammer_cli_katello-0.0.7.21-1.el7sat.noarch pulp-katello-0.5-1.el7sat.noarch katello-common-2.2.0.19-1.el7sat.noarch katello-installer-2.3.25-1.el7sat.noarch katello-debug-2.2.0.19-1.el7sat.noarch katello-installer-base-2.3.25-1.el7sat.noarch katello-default-ca-1.0-1.noarch A possibility to add a remote execution proxy to a subnet via hammer would be also nice. Upstream bug assigned to orabin Created attachment 1288225 [details]
subnets_controller.rb.patch
Created attachment 1288226 [details]
main.json.rabl.patch
Created attachment 1288227 [details]
models-subnet.rb.patch
Created attachment 1288228 [details]
hammer-cli-foreman-subnet.rb.patch
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/19948 has been resolved. Verified.
Version tested:
tfm-rubygem-hammer_cli_foreman_discovery 1.0.0-1.el7sat
tfm-rubygem-hammer_cli 0.10.2-1.el7sat
[root@hp-ml370g6-01 ~]# hammer subnet update --help
Usage:
hammer subnet update [OPTIONS]
Options:
--boot-mode BOOT_MODE Default boot mode for interfaces assigned to this subnet, valid values are
“Static”, “DHCP”
--dhcp-id DHCP_ID DHCP Capsule ID to use within this subnet
--discovery-id DISCOVERY_ID ID of Discovery Capsule to use within this subnet for managing connection
to discovered hosts
--dns-id DNS_ID DNS Capsule ID to use within this subnet
--dns-primary DNS_PRIMARY Primary DNS for this subnet
--dns-secondary DNS_SECONDARY Secondary DNS for this subnet
--domain-ids DOMAIN_IDS Domains in which this subnet is part
Comma separated list of values. Values containing comma should be double quoted
--domains DOMAIN_NAMES Comma separated list of values. Values containing comma should be double quoted
--from FROM Starting IP Address for IP auto suggestion
--gateway GATEWAY Primary DNS for this subnet
--id ID Subnet numeric identifier
--ipam IPAM IP Address auto suggestion mode for this subnet, valid values are “DHCP”,
“Internal DB”, “None”
--location-ids LOCATION_IDS REPLACE locations with given ids
Comma separated list of values. Values containing comma should be double quoted
--locations LOCATION_NAMES Comma separated list of values. Values containing comma should be double quoted
--mask MASK Netmask for this subnet
--name NAME Subnet name
--network NETWORK Subnet network
--network-type NETWORK_TYPE Type or protocol, IPv4 or IPv6, defaults to IPv4
Possible value(s): 'IPv4', 'IPv6'
--new-name NEW_NAME Subnet name
--organization-ids ORGANIZATION_IDS REPLACE organizations with given ids.
Comma separated list of values. Values containing comma should be double quoted
--organizations ORGANIZATION_NAMES Comma separated list of values. Values containing comma should be double quoted
--subnet-parameters-attributes SUBNET_PARAMETERS_ATTRIBUTES Array of parameters (name, value)
Comma separated list of values. Values containing comma should be double quoted
--tftp-id TFTP_ID TFTP Capsule ID to use within this subnet
--to TO Ending IP Address for IP auto suggestion
--vlanid VLANID VLAN ID for this subnet
-h, --help print help
[root@hp-ml370g6-01 ~]#
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-2018:0336 |
Description of problem: Currently there is no option to add/update subnet "discover proxy" using hammer command. Version-Release number of selected component (if applicable): 6.1.8 How reproducible: As per below help command there is not option to set "discover proxy" into subnet hammer subnet update --help Usage: hammer subnet update [OPTIONS] Options: --boot-mode BOOT_MODE Default boot mode for interfaces assigned to this subnet, valid values are "Static", "DHCP" --dhcp-id DHCP_ID DHCP Proxy to use within this subnet --dns-id DNS_ID DNS Proxy to use within this subnet --dns-primary DNS_PRIMARY Primary DNS for this subnet --dns-secondary DNS_SECONDARY Secondary DNS for this subnet --domain-ids DOMAIN_IDS Numerical ID or domain name Comma separated list of values. --domains DOMAIN_NAMES Comma separated list of values. --from FROM Starting IP Address for IP auto suggestion --gateway GATEWAY Primary DNS for this subnet --id ID Subnet numeric identifier --ipam IPAM IP Address auto suggestion mode for this subnet, valid values are "DHCP", "Internal DB", "None" --location-ids LOCATION_IDS Comma separated list of values. --locations LOCATION_NAMES Comma separated list of values. --mask MASK Netmask for this subnet --name NAME Subnet name --network NETWORK Subnet network --new-name NEW_NAME Subnet name --organization-ids ORGANIZATION_IDS organization ID Comma separated list of values. --organizations ORGANIZATION_NAMES Comma separated list of values. --tftp-id TFTP_ID TFTP Proxy to use within this subnet --to TO Ending IP Address for IP auto suggestion --vlanid VLANID VLAN ID for this subnet -h, --help print help Actual results: There must be a option to add discover proxy into subnet.