Bug 42382

Summary: Determination of policy types is indeterministic
Product: Z_Univention Corporate Client (UCC) Reporter: Erik Damrose <damrose>
Component: GeneralAssignee: Erik Damrose <damrose>
Status: CLOSED FIXED QA Contact: Felix Botner <botner>
Severity: normal    
Priority: P5 CC: gohmann, grandjean, schwardt, stoeckigt, walkenhorst
Version: UCC 1.0   
Target Milestone: UCC 1.0-errata   
Hardware: Other   
OS: Linux   
What kind of report is it?: Bug Report What type of bug is this?: 6: Setup Problem: Issue for the setup process
Who will be affected by this bug?: 3: Will affect average number of installed domains How will those affected feel about the bug?: 4: A User would return the product
User Pain: 0.411 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:

Description Erik Damrose univentionstaff 2016-09-14 11:01:44 CEST
+++ This bug was initially created as a clone of Bug #42372 +++

Also release fix for UCC 1

+++ This bug was initially created as a clone of Bug #41641 +++

UCS 4.1-2e204, UCS@School 4.1 r2 v1, UCC 2.1 r2.

There are 2 DHCP routing policies defined after setting up a school-singlemaster + installing UCC:

dn: cn=ucc-dhcp-gateway,cn=routing,cn=dhcp,cn=policies,$ldap_base
objectClass: univentionPolicyDhcpRouting
objectClass: top
objectClass: univentionPolicy
objectClass: univentionObject
univentionObjectType: policies/dhcp_routing
univentionDhcpRouters: 10.200.29.1
cn: ucc-dhcp-gateway

dn: cn=default-settings,cn=routing,cn=dhcp,cn=policies,$ldap_base
objectClass: top
objectClass: univentionPolicy
objectClass: univentionPolicyDhcpRouting
objectClass: univentionObject
univentionObjectType: policies/dhcp_routing
cn: default-settings
univentionDhcpRouters: 10.200.29.1

If the ucc-dhcp-gateway policy is assigned to cn=myschool,cn=dhcp,ou=myschool,$ldap_base, it is not evaluated by dhcpd. If cn=default-settings is assigned, dhcpd will set the option.

======================================================================

This also applies to UCC (since 2.x?)
related Ticket#2016090221000367
Comment 1 Erik Damrose univentionstaff 2016-11-14 14:28:06 CET
r16879 backport, univention-policy 5.0.9-4.139.201611141357
r74406 yaml
Comment 2 Felix Botner univentionstaff 2016-11-15 11:57:47 CET
OK - update
OK - univention-policy-result
OK - YAML
Comment 3 Janek Walkenhorst univentionstaff 2016-11-15 17:11:30 CET
<https://errata.software-univention.de/ucc/1.0/54.html>