Bug 37614 - DHCP default routing policy linked to ldap base at rejoin
DHCP default routing policy linked to ldap base at rejoin
Product: UCS
Classification: Unclassified
Component: DHCP
UCS 4.0
Other Linux
: P5 normal (vote)
: UCS 4.0-2-errata
Assigned To: Philipp Hahn
Janek Walkenhorst
Depends on:
Blocks: 39238
  Show dependency treegraph
Reported: 2015-01-26 09:21 CET by Tim Petersen
Modified: 2015-08-20 11:31 CEST (History)
3 users (show)

See Also:
What kind of report is it?: ---
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:


Note You need to log in before you can comment on or make changes to this bug.
Description Tim Petersen univentionstaff 2015-01-26 09:21:51 CET
The default dhcp routing policy is linked to the ldap base at rejoin. This is possibly unwished and destroys functionality (for example if using routing policies for subnets and ip-managed clients underneath the service).

-> 25univention-dhcp.inst:
old=$(univention-directory-manager policies/dhcp_routing list "$@" --filter cn=default-settings | sed -ne 's|.*routers: ||p')
if [ -z "$old" -a -n "$gateway" ]; then
    univention-directory-manager policies/dhcp_routing modify "$@" --ignore_exists \
        --dn "cn=default-settings,cn=routing,cn=dhcp,cn=policies,$ldap_base" \
        --set name=default-settings \
        --set routers="$gateway" || die
Comment 1 Janis Meybohm univentionstaff 2015-07-03 15:34:47 CEST
Reported again Ticket#2015070221000354
Comment 2 Philipp Hahn univentionstaff 2015-07-08 11:44:47 CEST
(In reply to Tim Petersen from comment #0)
> The default dhcp routing policy is linked to the ldap base at rejoin.
> -> 25univention-dhcp.inst:
>     univention-directory-manager policies/dhcp_routing modify "$@"

The cited code only modifies the existing policy, but does not reference it.
This was done in the base.ldif, which is only imported once when the DC master is installed.

Nether the less setting the default gateway always happens when a DHCP server is joined AND the router has been deleted. The options for removing the default router are:
- deleted the default policy completely (leads to Bug #38822)
- Remove the referenced from the LDAP base.

r61862 | Bug #38584,Bug #37614,Bug #38822: DHCP policies
 The code was changed to set the router in the default policy only once when the first (shared) subnet is created. If multiple subnets exist, the policy is not touched.

Package: univention-dhcp
Version: 9.0.0-3.521.201507081110
Branch: ucs_4.0-0
Scope: errata4.0-2

r61863 | Bug #38584,Bug #37614,Bug #38822: DHCP policies YAML
Comment 3 Janek Walkenhorst univentionstaff 2015-08-04 20:54:57 CEST
Tests: OK
Advisory: OK
Code review: OK
Comment 4 Janek Walkenhorst univentionstaff 2015-08-06 17:48:01 CEST