Univention Bugzilla – Bug 35074
The 'ipRange' cannot be removed for existing networks
Last modified: 2017-07-26 14:39:14 CEST
Cannot remove the IP address range for existing network, neither via UMC nor via UDM command line tool: root@backup11:~# udm networks/network modify --dn cn=test_net,cn=networks,dc=dgalkin,dc=dev --remove ipRange="10.200.25.30 10.200.25.31" LDAP Error: No such attribute: modify/delete: univentionIpRange: no such attribute root@backup11:~# tail /var/log/univention/directory-manager-cmd.log dn=object.modify() File "/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py", line 345, in modify return self._modify(modify_childs,ignore_license=ignore_license) File "/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py", line 919, in _modify self.lo.modify(self.dn, ml, ignore_license=ignore_license) File "/usr/lib/pymodules/python2.6/univention/admin/uldap.py", line 419, in modify raise univention.admin.uexceptions.ldapError, _err2str(msg) ldapError: No such attribute: modify/delete: univentionIpRange: no such attribute The problem seems to be that deletion attempt is made twice (/var/log/univention/directory-manager-cmd.log): 18.05.14 06:42:12.236 LDAP ( INFO ) : uldap.search filter=(&(|(objectClass=univentionDomainController)(objectClass=univentionMemberServer))(univentionService=S4 Connector)) base= scope=sub attr=['aRecord'] unique=0 required=0 timeout=-1 sizelimit=0 18.05.14 06:42:12.268 ADMIN ( INFO ) : old Range: [['10.200.25.30', '10.200.25.31']] 18.05.14 06:42:12.268 LDAP ( ALL ) : mod dn=cn=test_net,cn=networks,dc=dgalkin,dc=dev ml=[('univentionIpRange', ['10.200.25.30 10.200.25.31'], ''), ('univentionIpRange', ['10.200.25.30 10.200.25.31'], []), ('univentionNextIp', ['10.200.25.30'], '10.200.25.1')] 18.05.14 06:42:12.268 LDAP ( INFO ) : uldap.modify cn=test_net,cn=networks,dc=dgalkin,dc=dev 18.05.14 06:42:12.268 LDAP ( WARN ) : PMH ml=[(1, 'univentionIpRange', ['10.200.25.30 10.200.25.31']), (1, 'univentionIpRange', ['10.200.25.30 10.200.25.31']), (2, 'univentionNextIp', '10.200.25.1')] 18.05.14 06:42:12.741 LDAP ( ALL ) : mod dn=cn=test_net,cn=networks,dc=dgalkin,dc=dev err={'info': 'modify/delete: univentionIpRange: no such attribute', 'desc': 'No such attribute'} changes=[('univentionIpRange', ['10.200.25.30 10.200.25.31'], ''), ('univentionIpRange', ['10.200.25.30 10.200.25.31'], []), ('univentionNextIp', ['10.200.25.30'], '10.200.25.1')] 18.05.14 06:42:12.747 ADMIN ( WARN ) : Traceback (most recent call last): File "/usr/lib/pymodules/python2.6/univention/admincli/admin.py", line 393, in doit out=_doit(arglist) File "/usr/lib/pymodules/python2.6/univention/admincli/admin.py", line 980, in _doit dn=object.modify() File "/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py", line 345, in modify return self._modify(modify_childs,ignore_license=ignore_license) File "/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py", line 919, in _modify self.lo.modify(self.dn, ml, ignore_license=ignore_license) File "/usr/lib/pymodules/python2.6/univention/admin/uldap.py", line 419, in modify raise univention.admin.uexceptions.ldapError, _err2str(msg) ldapError: No such attribute: modify/delete: univentionIpRange: no such attribute
Created attachment 5939 [details] UMC screenschoot, removing network ip range
Created attachment 8735 [details] directory-manager-cmd.log Seen again during pre-release testing for UCS 4.2.
I added a test case with SKIP flag: ucs-test (7.0.22-24): r81052 | Bug #35074: add 11_remove_iprange_from_network
Created attachment 9014 [details] patch The problem is that the attribute is part of the mapping and also set in _ldap_modlist manually.
univention-directory-manager-modules (12.0.17-83): r81099 | Bug #35074: removing a ipRange property from a networks/network object is possible again univention-directory-manager-modules.yaml: r81105 | YAML Bug #36631, Bug #35074, Bug #25187, Bug #25189 ucs-test (7.0.22-26): r81116 | Bug #35074: enable test script
OK ipRange can be removed YAML OK -> verified
<http://errata.software-univention.de/ucs/4.2/115.html>