Bug 53793 - dns/ptr_record: AttributeError: 'NoneType' object has no attribute 'info'
dns/ptr_record: AttributeError: 'NoneType' object has no attribute 'info'
Status: NEW
Product: UCS
Classification: Unclassified
Component: UMC - DNS
UCS 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-09-15 21:42 CEST by Florian Best
Modified: 2021-09-15 21:42 CEST (History)
0 users

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2021-09-15 21:42:19 CEST
With no --superordinate given:

# udm dns/ptr_record create  --set address=157 --set ip=15.228.144.169 --append ptr_record=ezrmf.jdqfk
Traceback (most recent call last):
  File "/usr/share/univention-directory-manager-tools/univention-cli-server", line 213, in doit
    output = univention.admincli.admin.doit(arglist)
  File "/usr/lib/python3/dist-packages/univention/admincli/admin.py", line 380, in doit
    out = _doit(arglist)
  File "/usr/lib/python3/dist-packages/univention/admincli/admin.py", line 650, in _doit
    out.extend(cli.create(input, append, ignore_exists, parsed_options, parsed_append_options, parsed_remove_options, policy_reference))
  File "/usr/lib/python3/dist-packages/univention/admincli/admin.py", line 678, in create
    return self._create(self.module_name, self.module, self.dn, self.lo, self.position, self.superordinate, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/univention/admincli/admin.py", line 731, in _create
    dn = object.create()
  File "/usr/lib/python3/dist-packages/univention/admin/handlers/__init__.py", line 541, in create
    self.ready()
  File "/usr/lib/python3/dist-packages/univention/admin/handlers/dns/ptr_record.py", line 183, in ready
    self.info['address'] = calc_rev(new_ip, self.superordinate.info['subnet'])
AttributeError: 'NoneType' object has no attribute 'info'