Red Hat Bugzilla – Bug 1110383
hammer cli associates DNSproxy to subnet & domain even when sat6/capsule is not configured for DNSproxy
Last modified: 2016-07-27 05:09:27 EDT
Description of problem: hammer cli allows association of DNS proxy to subnet and domain even when the sat6/capsule is not configured to support the DNS with katello-installer. Version-Release number of selected component (if applicable): sat6-snap9-c2 How reproducible: always Steps to Reproduce: 1. configure the sat6box's capsule without DNS support [this would be desirable when DNS is being handled by IPA server - while working with REALM Integration.] 2. Try creating a subnet and domain with the below command, hammer domain create --name "$DOMAIN" --dns-id "$PROXY_ID" hammer subnet create --name "$SUBNET_NAME" --network "$SUBNET_IP" --mask "$SUBNET_MASK" --dns-id "$PROXY_ID" --dhcp-id "$PROXY_ID" --tftp-id "$PROXY_ID" --domain-ids "$DOMAIN_ID" Actual results: subnet and domain creation accepts the --dns-id even when DNSproxy is not configured via the katello-installer Expected results: subnet and domain creation should not accept the --dns-id when DNSproxy is not configured via the katello-installer Additional info:
[root@xxxx provision]# hammer capsule info --name xxxx.redhat.com Id: 1 Name: dhcp207-235.lab.eng.pnq.redhat.com URL: https://xxx.redhat.com:9090 Features: TFTP, DHCP, Puppet, Puppet CA Created at: 2014/06/16 20:31:43 Updated at: 2014/06/16 20:31:43 Note, the features above, DNS does not exist. but still we can associate DNSproxy to the subnet and domain. hammer subnet create --name libvirt --network 192.168.100.0 --mask 255.255.255.0 --dns-id 1 --dhcp-id 1 --tftp-id 1 --domain-ids 2 Subnet created [root@xxxx provision]# hammer subnet info --name libvirt Id: 1 Name: libvirt Network: 192.168.100.0 Mask: 255.255.255.0 Priority: DNS: xxxx.redhat.com (https://xxxx.redhat.com:9090) Primary DNS: Secondary DNS: TFTP: xxxx.redhat.com (https://xxx.redhat.com:9090) DHCP: xxxx.redhat.com (https://xxx.redhat.com:9090) VLAN ID: Gateway: From: To: Domains: katellolabs.org
related to http://projects.theforeman.org/issues/6240
also related to http://projects.theforeman.org/issues/6241
Upstream bug component is Capsule
Moving to POST since upstream bug http://projects.theforeman.org/issues/6241 has been closed ------------- Ondřej Pražák Applied in changeset commit:4693fe5f86d75a3fbcc37596e7171594ebca6384.
[xyz@abc ~]# hammer subnet create --name libvirt --network x.x.x.x --mask 255.255.255.0 --dns-id 1 --dhcp-id 1 --domain-ids 1 [Foreman] Password for admin: Could not create the subnet: Dns does not have the DNS feature [xyz@abc ~]# hammer domain create --name abc.redhat.com --dns-id 1 [Foreman] Password for admin: Could not create the domain: DNS domain has already been taken Dns does not have the DNS feature VERIFIED with sat62-snap6.1
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-2016:1501