[Freeipa-devel] [PATCH] Proper fix for ticket 5306

Oleg Fayans ofayans at redhat.com
Tue Sep 29 07:12:32 UTC 2015


Hi all,

On 09/23/2015 09:13 AM, Petr Spacek wrote:
> On 22.9.2015 10:42, Oleg Fayans wrote:
>> +++ b/ipatests/test_integration/tasks.py
>> @@ -58,6 +58,14 @@ def check_arguments_are(slice, instanceof):
>>           return wrapped
>>       return wrapper
>>
>> +def prepare_reverse_zone(host, ip):
>> +    nums = ip.split('.')[:-1]
>> +    zone = ".".join(reversed(nums)) + ".in-addr.arpa."
>> +    host.run_command(["ipa",
>> +                      "dnszone-add",
>> +                      zone,
>> +                      "--name-from-ip=%s" % ip], raiseonerr=False)
>> +
>
> NACK:
> - this will break IPv6-only hosts
> - you should use DNSName class or other functions from python-dns for DNS name
> manipulation
>
> I hope this helps.

Thanks, it did :)
Used a ipalib.util get_reverse_zone_default function that does just 
that: creates a reverse zone name.

-- 
Oleg Fayans
Quality Engineer
FreeIPA team
RedHat.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-ofayans-0007.1-Added-a-proper-workaround-for-dnssec-test-failures.patch
Type: text/x-patch
Size: 2894 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20150929/9ca457b2/attachment.bin>


More information about the Freeipa-devel mailing list