[Freeipa-devel] [PATCH 0029-0046, 0047] Internationalized domain names in DNS plugin

Martin Kosek mkosek at redhat.com
Mon May 26 08:33:47 UTC 2014


On 05/21/2014 06:23 PM, Martin Basti wrote:
> Updated patches attached
> 
> Patch 33 removed.
> 
> Patches should be applied in order: 0029-0032, 0034-0040, 0047,
> 0041-0042, 0045-0046

FYI, I just did an upgrade from 3.3.5 to 4.0 with these patches applied and
this is what I got:

# rpm -Uvh --force ~/freeipa-master/dist/rpms/freeipa-*Preparing...
              ################################# [100%]
Updating / installing...
   1:freeipa-python-3.3.90GITd4dd8c4-0################################# [  7%]
   2:freeipa-client-3.3.90GITd4dd8c4-0################################# [ 13%]
Could not load host key: /etc/ssh/ssh_host_dsa_key
   3:freeipa-admintools-3.3.90GITd4dd8################################# [ 20%]
   4:freeipa-server-3.3.90GITd4dd8c4-0################################# [ 27%]
   5:freeipa-server-trust-ad-3.3.90GIT################################# [ 33%]
   6:freeipa-server-foreman-smartproxy################################# [ 40%]
   7:freeipa-tests-3.3.90GITd4dd8c4-0.################################# [ 47%]
   8:freeipa-debuginfo-3.3.90GITd4dd8c################################# [ 53%]
Cleaning up / removing...
   9:freeipa-tests-3.3.5-1.fc20       ################################# [ 60%]
  10:freeipa-debuginfo-3.3.5-1.fc20   ################################# [ 67%]
  11:freeipa-server-trust-ad-3.3.5-1.f################################# [ 73%]
  12:freeipa-server-3.3.5-1.fc20      ################################# [ 80%]
  13:freeipa-admintools-3.3.5-1.fc20  ################################# [ 87%]
  14:freeipa-client-3.3.5-1.fc20      ################################# [ 93%]
  15:freeipa-python-3.3.5-1.fc20      ################################# [100%]
Upgrade failed with list.remove(x): x not in list
IPA upgrade failed.
Unexpected error
AttributeError: 'DNSName' object has no attribute 'endswith'


ipaupgrade.log:

2014-05-26T08:32:28Z DEBUG Created connection context.ldap2
2014-05-26T08:32:28Z DEBUG raw: dns_is_enabled()
2014-05-26T08:32:28Z DEBUG dns_is_enabled()
2014-05-26T08:32:28Z DEBUG retrieving schema for SchemaCache
url=ldapi://%2fvar%2frun%2fslapd-MKOSEK-FEDORA20-TEST.socket
conn=<ldap.ldapobject.SimpleLDAPObject instance at 0x3dc7d40>
2014-05-26T08:32:28Z DEBUG Loading StateFile from
'/var/lib/ipa/sysrestore/sysrestore.state'
2014-05-26T08:32:28Z DEBUG Loading Index file from
'/var/lib/ipa/sysrestore/sysrestore.index'
2014-05-26T08:32:28Z DEBUG raw: dnsrecord_find(u'mkosek-fedora20.test', u'ipa-ca')
2014-05-26T08:32:28Z DEBUG dnsrecord_find(<DNS name mkosek-fedora20.test.>,
u'ipa-ca', structured=False, all=False, raw=False, pkey_only=False)
2014-05-26T08:32:28Z DEBUG   File
"/usr/lib/python2.7/site-packages/ipaserver/install/installutils.py", line 638,
in run_script
    return_value = main_function()

  File "/usr/sbin/ipa-upgradeconfig", line 1113, in main
    add_ca_dns_records()

  File "/usr/sbin/ipa-upgradeconfig", line 809, in add_ca_dns_records
    bind.convert_ipa_ca_cnames(api.env.domain)

  File "/usr/lib/python2.7/site-packages/ipaserver/install/bindinstance.py",
line 853, in convert_ipa_ca_cnames
    cnames = get_rr(domain_name, IPA_CA_RECORD, "CNAME")

  File "/usr/lib/python2.7/site-packages/ipaserver/install/bindinstance.py",
line 369, in get_rr
    ret = api.Command.dnsrecord_find(unicode(zone), unicode(name))

  File "/usr/lib/python2.7/site-packages/ipalib/frontend.py", line 436, in __call__
    ret = self.run(*args, **options)

  File "/usr/lib/python2.7/site-packages/ipalib/frontend.py", line 752, in run
    result = self.execute(*args, **options)

  File "/usr/lib/python2.7/site-packages/ipalib/plugins/baseldap.py", line
1869, in execute
    base_dn = self.api.Object[self.obj.parent_object].get_dn(*args[:-1])

  File "/usr/lib/python2.7/site-packages/ipalib/plugins/dns.py", line 1714, in
get_dn
    if zone.endswith(u'.'):

2014-05-26T08:32:28Z DEBUG The ipa-upgradeconfig command failed, exception:
AttributeError: 'DNSName' object has no attribute 'endswith'

Martin




More information about the Freeipa-devel mailing list