Bug 45093 - Missing dependency univention-register-network-address -> umc-command
Missing dependency univention-register-network-address -> umc-command
Status: RESOLVED DUPLICATE of bug 42128
Product: UCS
Classification: Unclassified
Component: Network
UCS 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-07-28 13:09 CEST by Philipp Hahn
Modified: 2020-07-06 11:54 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 1: Nuisance – not a big deal but noticeable
User Pain: 0.017
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 Philipp Hahn univentionstaff 2017-07-28 13:09:52 CEST
/etc/network/if-up.d/90_dns_update → /usr/sbin/univention-register-network-address → /usr/sbin/umc-command

but the univention-manegement-console* packages can be uninstalled which also removed the umc-command executable. Afterwards each DHCP release renewal dumps a stack trace:

# /usr/sbin/univention-register-network-address 
Traceback (most recent call last):
  File "/usr/sbin/univention-register-network-address", line 77, in <module>
    if not register_iface(configRegistry, iface, options.verbose):
  File "/usr/sbin/univention-register-network-address", line 43, in register_iface
    p1 = subprocess.Popen(['/usr/sbin/umc-command', '-U', '%s$' % configRegistry.get('hostname'), '-y', '/etc/machine.secret', '-s', configRegistry.get('ldap/master'), 'ip/change', '-o' ,'ip=%s' % configRegistry.get('interfaces/%s/address' % iface), '-o', 'oldip=%s' % configRegistry.get('interfaces/%s/fallback/address' % iface), '-o', 'netmask=%s' % configRegistry.get('interfaces/%s/netmask' % iface), '-o',  'role=%s' % configRegistry.get('server/role')], shell=False, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1259, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

# dpkg -S /usr/sbin/umc-command 
univention-management-console-server: /usr/sbin/umc-command
# dpkg -S /usr/sbin/univention-register-network-address 
univention-network-common: /usr/sbin/univention-register-network-address


# apt-cache show --no-all-versions  show univention-network-common
Package: univention-network-common
Version: 8.0.1-1.112.201511032329
Suggests: univention-management-console-server


The tool should fail gracefully if the package is missing.
Please don't add a hard dependency as I don't want UMC.
Comment 1 Florian Best univentionstaff 2017-07-28 13:20:12 CEST
Would be obsolete by Bug #42128
Comment 2 Florian Best univentionstaff 2020-07-06 11:54:22 CEST
Obsolete by Bug #42128.

*** This bug has been marked as a duplicate of bug 42128 ***