Bug 783276
Summary: | host-add does not accept IPv6 addresses | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Dmitri Pal <dpal> |
Component: | ipa | Assignee: | Rob Crittenden <rcritten> |
Status: | CLOSED ERRATA | QA Contact: | IDM QE LIST <seceng-idm-qe-list> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.3 | CC: | aakkiang, jgalipea, mkosek |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | ipa-2.2.0-1.el6 | Doc Type: | Bug Fix |
Doc Text: |
No documentation needed.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2012-06-20 13:30:41 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Dmitri Pal
2012-01-19 20:27:04 UTC
I found out that the command was right, it just gave a confusing error message. Address fe80::2 is link-local and thus couldn't be added as a host address. Address 2001::beef:1 worked fine. Upstream fix just fixed the error message to explain the error: master: https://fedorahosted.org/freeipa/changeset/ae2e49a22277a17269833ec13fa657fdc2547b36 ipa-2-2: https://fedorahosted.org/freeipa/changeset/64cf8a467c7d26b441f326f8435a2cdbe25dfd06 Verified. Version :: ipa-server-2.2.0-4.el6.x86_64 Automation test results on IPv4 and IPv6 compatible host: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: ipa-host-cli-87: Add host with IPv6 address DNS Record --no-reverse :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: IPv6 address = 2620:52:0:41c9:5054:ff:fea8:b669 :: [ LOG ] :: New IPv6 address = 2620:52:0:41c9:ffff:ff:fea8:b669 :: [ LOG ] :: ipa host-add --ip-address=2620:52:0:41c9:ffff:ff:fea8:b669 --no-reverse mytestIPv6host.testrelm.com :: [ PASS ] :: Adding host with IPv6 Address 2620:52:0:41c9:ffff:ff:fea8:b669 and no reverse entry :: [ LOG ] :: Host name is as expected. :: [ LOG ] :: Principal name is as expected. :: [ PASS ] :: Verifying host was added. :: [ PASS ] :: Checking for forward DNS entry :: [ PASS ] :: File '/tmp/tmp.D80vGINw3e/forward_dns.out' should contain 'AAAA record: 2620:52:0:41c9:ffff:ff:fea8:b669' :: [ PASS ] :: cleanup - delete mytestIPv6host.testrelm.com :: [ PASS ] :: Checking for forward DNS entry :: [ PASS ] :: File '/tmp/tmp.D80vGINw3e/forward_dns_notexists.out' should not contain 'AAAA record: 2620:52:0:41c9:ffff:ff:fea8:b669' :: [ LOG ] :: Duration: 13s :: [ LOG ] :: Assertions: 7 good, 0 bad :: [ PASS ] :: RESULT: ipa-host-cli-87: Add host with IPv6 address DNS Record --no-reverse :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: ipa-host-cli-88: Add host with IPv6 address and DNS Record :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: IPv6 address = 2620:52:0:41c9:5054:ff:fea8:b669 :: [ LOG ] :: IPv6 address is 2620:52:0:41c9:5054:ff:fea8:b669 :: [ LOG ] :: Reverse zone: 9.c.1.4.0.0.0.0.2.5.0.0.0.2.6.2.ip6.arpa. :: [ LOG ] :: Reverse Zone: 9.c.1.4.0.0.0.0.2.5.0.0.0.2.6.2.ip6.arpa. :: [ LOG ] :: dnszone 9.c.1.4.0.0.0.0.2.5.0.0.0.2.6.2.ip6.arpa. exists. :: [ LOG ] :: EXECUTING: ipa host-add --ip-address=2620:52:0:41c9:ffff:ff:fea8:b669 mytestIPv6host.testrelm.com :: [ PASS ] :: Adding host with IPv6 Address 2620:52:0:41c9:ffff:ff:fea8:b669 :: [ LOG ] :: Host name is as expected. :: [ LOG ] :: Principal name is as expected. :: [ PASS ] :: Verifying host was added with IP Address. :: [ PASS ] :: Checking for forward DNS entry :: [ PASS ] :: File '/tmp/tmp.D80vGINw3e/forward_dns_2.out' should contain 'AAAA record: 2620:52:0:41c9:ffff:ff:fea8:b669' :: [ LOG ] :: Final digit. :: [ LOG ] :: ipa dnsrecord-find 9.c.1.4.0.0.0.0.2.5.0.0.0.2.6.2.ip6.arpa. 9.6.6.b.8.a.e.f.f.f.0.0.f.f.f.f :: [ PASS ] :: Checking for reverse DNS entry :: [ LOG ] :: Duration: 13s :: [ LOG ] :: Assertions: 5 good, 0 bad :: [ PASS ] :: RESULT: ipa-host-cli-88: Add host with IPv6 address and DNS Record :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: ipa-host-cli-89: Delete host without deleting DNS Record :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: IPv6 address is 2620:52:0:41c9:5054:ff:fea8:b669 :: [ LOG ] :: Reverse zone: 9.c.1.4.0.0.0.0.2.5.0.0.0.2.6.2.ip6.arpa. :: [ LOG ] :: Host mytestIPv6host.testrelm.com deleted successfully. :: [ PASS ] :: Deleting host without deleting DNS entries :: [ PASS ] :: Checking for forward DNS entry :: [ PASS ] :: File '/tmp/tmp.D80vGINw3e/forward_dns_3.out' should contain 'AAAA record: 2620:52:0:41c9:ffff:ff:fea8:b669' :: [ LOG ] :: Final digit. :: [ PASS ] :: Checking for reverse DNS entry :: [ LOG ] :: Duration: 6s :: [ LOG ] :: Assertions: 4 good, 0 bad :: [ PASS ] :: RESULT: ipa-host-cli-89: Delete host without deleting DNS Record :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: ipa-host-cli-90: Add host without force option - DNS Record Exists :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: IPv6 address is 2620:52:0:41c9:5054:ff:fea8:b669 :: [ LOG ] :: Reverse zone: 9.c.1.4.0.0.0.0.2.5.0.0.0.2.6.2.ip6.arpa. :: [ LOG ] :: EXECUTING: ipa host-add mytestIPv6host.testrelm.com :: [ PASS ] :: Add host DNS entries exist :: [ LOG ] :: Host name is as expected. :: [ LOG ] :: Principal name is as expected. :: [ PASS ] :: Verifying host was added when DNS records exist. :: [ PASS ] :: Checking for forward DNS entry :: [ PASS ] :: File '/tmp/tmp.D80vGINw3e/forward_dns_4.out' should contain 'AAAA record: 2620:52:0:41c9:ffff:ff:fea8:b669' :: [ LOG ] :: Final digit. :: [ PASS ] :: Checking for reverse DNS entry :: [ LOG ] :: Host mytestIPv6host.testrelm.com deleted successfully. :: [ PASS ] :: Deleting host without deleting DNS entries :: [ PASS ] :: Checking for forward DNS entry :: [ PASS ] :: File '/tmp/tmp.D80vGINw3e/forward_dns_41.out' should contain 'AAAA record: 2620:52:0:41c9:ffff:ff:fea8:b669' :: [ LOG ] :: Duration: 15s :: [ LOG ] :: Assertions: 8 good, 0 bad :: [ PASS ] :: RESULT: ipa-host-cli-90: Add host without force option - DNS Record Exists :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: ipa-host-cli-91: Add host with force option - DNS Record Exists :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: IPv6 address is 2620:52:0:41c9:5054:ff:fea8:b669 :: [ LOG ] :: Reverse zone: 9.c.1.4.0.0.0.0.2.5.0.0.0.2.6.2.ip6.arpa. :: [ LOG ] :: EXECUTING: ipa host-add mytestIPv6host.testrelm.com --force :: [ PASS ] :: Add host DNS entries exist :: [ LOG ] :: Host name is as expected. :: [ LOG ] :: Principal name is as expected. :: [ PASS ] :: Verifying host was added when DNS records exist. :: [ PASS ] :: Checking for forward DNS entry :: [ PASS ] :: File '/tmp/tmp.D80vGINw3e/forward_dns_5.out' should contain 'AAAA record: 2620:52:0:41c9:ffff:ff:fea8:b669' :: [ LOG ] :: Final digit. :: [ PASS ] :: Checking for reverse DNS entry :: [ LOG ] :: Duration: 11s :: [ LOG ] :: Assertions: 5 good, 0 bad :: [ PASS ] :: RESULT: ipa-host-cli-91: Add host with force option - DNS Record Exists :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: ipa-host-cli-92: Delete Host and Update DNS :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: IPv6 address is 2620:52:0:41c9:5054:ff:fea8:b669 :: [ LOG ] :: Reverse zone: 9.c.1.4.0.0.0.0.2.5.0.0.0.2.6.2.ip6.arpa. :: [ PASS ] :: Delete host and update DNS :: [ LOG ] :: WARNING: Failed to find host. :: [ PASS ] :: Verifying host was deleted. :: [ PASS ] :: Checking for forward DNS entry :: [ PASS ] :: Running 'ipa dnsrecord-find testrelm.com mytestIPv6host > /tmp/tmp.D80vGINw3e/forward_dns_6.out' :: [ PASS ] :: File '/tmp/tmp.D80vGINw3e/forward_dns_6.out' should not contain 'AAAA record: 2620:52:0:41c9:ffff:ff:fea8:b669' :: [ LOG ] :: Final digit. :: [ PASS ] :: Checking for reverse DNS entry :: [ PASS ] :: cleanup - delete dnszone :: [ LOG ] :: Duration: 13s :: [ LOG ] :: Assertions: 7 good, 0 bad :: [ PASS ] :: RESULT: ipa-host-cli-92: Delete Host and Update DNS :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: ipa-host-cli-93: Negative - Add host with invalid IPv6 address :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: EXECUTING: ipa host-add --ip-address=some:ipv6addr mytestIPv6host.testrelm.com :: [ LOG ] :: Executing: ipa host-add --ip-address=some:ipv6addr mytestIPv6host.testrelm.com :: [ LOG ] :: "ipa host-add --ip-address=some:ipv6addr mytestIPv6host.testrelm.com" failed as expected. :: [ PASS ] :: Error message as expected: ipa: ERROR: invalid 'ip_address': failed to detect a valid IP address from u'some:ipv6addr' :: [ PASS ] :: Verify expected error message. :: [ LOG ] :: Duration: 2s :: [ LOG ] :: Assertions: 2 good, 0 bad :: [ PASS ] :: RESULT: ipa-host-cli-93: Negative - Add host with invalid IPv6 address Automation test results on IPv6 only host: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: ipa-host-cli-87: Add host with IPv6 address DNS Record --no-reverse :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: IPv6 address = 2620:52:0:41c9:5054:ff:fea8:b669 :: [ LOG ] :: New IPv6 address = 2620:52:0:41c9:ffff:ff:fea8:b669 :: [ LOG ] :: ipa host-add --ip-address=2620:52:0:41c9:ffff:ff:fea8:b669 --no-reverse mytestIPv6host.testrelm.com :: [ PASS ] :: Adding host with IPv6 Address 2620:52:0:41c9:ffff:ff:fea8:b669 and no reverse entry :: [ LOG ] :: Host name is as expected. :: [ LOG ] :: Principal name is as expected. :: [ PASS ] :: Verifying host was added. :: [ PASS ] :: Checking for forward DNS entry :: [ PASS ] :: File '/tmp/tmp.OsGJEVf9Lk/forward_dns.out' should contain 'AAAA record: 2620:52:0:41c9:ffff:ff:fea8:b669' :: [ PASS ] :: cleanup - delete mytestIPv6host.testrelm.com :: [ PASS ] :: Checking for forward DNS entry :: [ PASS ] :: File '/tmp/tmp.OsGJEVf9Lk/forward_dns_notexists.out' should not contain 'AAAA record: 2620:52:0:41c9:ffff:ff:fea8:b669' :: [ LOG ] :: Duration: 14s :: [ LOG ] :: Assertions: 7 good, 0 bad :: [ PASS ] :: RESULT: ipa-host-cli-87: Add host with IPv6 address DNS Record --no-reverse :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: ipa-host-cli-88: Add host with IPv6 address and DNS Record :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: IPv6 address = 2620:52:0:41c9:5054:ff:fea8:b669 :: [ LOG ] :: IPv6 address is 2620:52:0:41c9:5054:ff:fea8:b669 :: [ LOG ] :: Reverse zone: 9.c.1.4.0.0.0.0.2.5.0.0.0.2.6.2.ip6.arpa. :: [ LOG ] :: Reverse Zone: 9.c.1.4.0.0.0.0.2.5.0.0.0.2.6.2.ip6.arpa. :: [ LOG ] :: dnszone 9.c.1.4.0.0.0.0.2.5.0.0.0.2.6.2.ip6.arpa. exists. :: [ LOG ] :: EXECUTING: ipa host-add --ip-address=2620:52:0:41c9:ffff:ff:fea8:b669 mytestIPv6host.testrelm.com :: [ PASS ] :: Adding host with IPv6 Address 2620:52:0:41c9:ffff:ff:fea8:b669 :: [ LOG ] :: Host name is as expected. :: [ LOG ] :: Principal name is as expected. :: [ PASS ] :: Verifying host was added with IP Address. :: [ PASS ] :: Checking for forward DNS entry :: [ PASS ] :: File '/tmp/tmp.OsGJEVf9Lk/forward_dns_2.out' should contain 'AAAA record: 2620:52:0:41c9:ffff:ff:fea8:b669' :: [ LOG ] :: Final digit. :: [ LOG ] :: ipa dnsrecord-find 9.c.1.4.0.0.0.0.2.5.0.0.0.2.6.2.ip6.arpa. 9.6.6.b.8.a.e.f.f.f.0.0.f.f.f.f :: [ PASS ] :: Checking for reverse DNS entry :: [ LOG ] :: Duration: 13s :: [ LOG ] :: Assertions: 5 good, 0 bad :: [ PASS ] :: RESULT: ipa-host-cli-88: Add host with IPv6 address and DNS Record :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: ipa-host-cli-89: Delete host without deleting DNS Record :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: IPv6 address is 2620:52:0:41c9:5054:ff:fea8:b669 :: [ LOG ] :: Reverse zone: 9.c.1.4.0.0.0.0.2.5.0.0.0.2.6.2.ip6.arpa. :: [ LOG ] :: Host mytestIPv6host.testrelm.com deleted successfully. :: [ PASS ] :: Deleting host without deleting DNS entries :: [ PASS ] :: Checking for forward DNS entry :: [ PASS ] :: File '/tmp/tmp.OsGJEVf9Lk/forward_dns_3.out' should contain 'AAAA record: 2620:52:0:41c9:ffff:ff:fea8:b669' :: [ LOG ] :: Final digit. :: [ PASS ] :: Checking for reverse DNS entry :: [ LOG ] :: Duration: 6s :: [ LOG ] :: Assertions: 4 good, 0 bad :: [ PASS ] :: RESULT: ipa-host-cli-89: Delete host without deleting DNS Record :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: ipa-host-cli-90: Add host without force option - DNS Record Exists :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: IPv6 address is 2620:52:0:41c9:5054:ff:fea8:b669 :: [ LOG ] :: Reverse zone: 9.c.1.4.0.0.0.0.2.5.0.0.0.2.6.2.ip6.arpa. :: [ LOG ] :: EXECUTING: ipa host-add mytestIPv6host.testrelm.com :: [ PASS ] :: Add host DNS entries exist :: [ LOG ] :: Host name is as expected. :: [ LOG ] :: Principal name is as expected. :: [ PASS ] :: Verifying host was added when DNS records exist. :: [ PASS ] :: Checking for forward DNS entry :: [ PASS ] :: File '/tmp/tmp.OsGJEVf9Lk/forward_dns_4.out' should contain 'AAAA record: 2620:52:0:41c9:ffff:ff:fea8:b669' :: [ LOG ] :: Final digit. :: [ PASS ] :: Checking for reverse DNS entry :: [ LOG ] :: Host mytestIPv6host.testrelm.com deleted successfully. :: [ PASS ] :: Deleting host without deleting DNS entries :: [ PASS ] :: Checking for forward DNS entry :: [ PASS ] :: File '/tmp/tmp.OsGJEVf9Lk/forward_dns_41.out' should contain 'AAAA record: 2620:52:0:41c9:ffff:ff:fea8:b669' :: [ LOG ] :: Duration: 16s :: [ LOG ] :: Assertions: 8 good, 0 bad :: [ PASS ] :: RESULT: ipa-host-cli-90: Add host without force option - DNS Record Exists :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: ipa-host-cli-91: Add host with force option - DNS Record Exists :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: IPv6 address is 2620:52:0:41c9:5054:ff:fea8:b669 :: [ LOG ] :: Reverse zone: 9.c.1.4.0.0.0.0.2.5.0.0.0.2.6.2.ip6.arpa. :: [ LOG ] :: EXECUTING: ipa host-add mytestIPv6host.testrelm.com --force :: [ PASS ] :: Add host DNS entries exist :: [ LOG ] :: Host name is as expected. :: [ LOG ] :: Principal name is as expected. :: [ PASS ] :: Verifying host was added when DNS records exist. :: [ PASS ] :: Checking for forward DNS entry :: [ PASS ] :: File '/tmp/tmp.OsGJEVf9Lk/forward_dns_5.out' should contain 'AAAA record: 2620:52:0:41c9:ffff:ff:fea8:b669' :: [ LOG ] :: Final digit. :: [ PASS ] :: Checking for reverse DNS entry :: [ LOG ] :: Duration: 11s :: [ LOG ] :: Assertions: 5 good, 0 bad :: [ PASS ] :: RESULT: ipa-host-cli-91: Add host with force option - DNS Record Exists :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: ipa-host-cli-92: Delete Host and Update DNS :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: IPv6 address is 2620:52:0:41c9:5054:ff:fea8:b669 :: [ LOG ] :: Reverse zone: 9.c.1.4.0.0.0.0.2.5.0.0.0.2.6.2.ip6.arpa. :: [ PASS ] :: Delete host and update DNS :: [ LOG ] :: WARNING: Failed to find host. :: [ PASS ] :: Verifying host was deleted. :: [ PASS ] :: Checking for forward DNS entry :: [ PASS ] :: Running 'ipa dnsrecord-find testrelm.com mytestIPv6host > /tmp/tmp.OsGJEVf9Lk/forward_dns_6.out' :: [ PASS ] :: File '/tmp/tmp.OsGJEVf9Lk/forward_dns_6.out' should not contain 'AAAA record: 2620:52:0:41c9:ffff:ff:fea8:b669' :: [ LOG ] :: Final digit. :: [ PASS ] :: Checking for reverse DNS entry :: [ PASS ] :: cleanup - delete dnszone :: [ LOG ] :: Duration: 13s :: [ LOG ] :: Assertions: 7 good, 0 bad :: [ PASS ] :: RESULT: ipa-host-cli-92: Delete Host and Update DNS :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: ipa-host-cli-93: Negative - Add host with invalid IPv6 address :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: EXECUTING: ipa host-add --ip-address=some:ipv6addr mytestIPv6host.testrelm.com :: [ LOG ] :: Executing: ipa host-add --ip-address=some:ipv6addr mytestIPv6host.testrelm.com :: [ LOG ] :: "ipa host-add --ip-address=some:ipv6addr mytestIPv6host.testrelm.com" failed as expected. :: [ PASS ] :: Error message as expected: ipa: ERROR: invalid 'ip_address': failed to detect a valid IP address from u'some:ipv6addr' :: [ PASS ] :: Verify expected error message. :: [ LOG ] :: Duration: 2s :: [ LOG ] :: Assertions: 2 good, 0 bad :: [ PASS ] :: RESULT: ipa-host-cli-93: Negative - Add host with invalid IPv6 address Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: No documentation needed. 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. http://rhn.redhat.com/errata/RHBA-2012-0819.html |