Univention Bugzilla – Bug 31426
univention-repository-update overwrites repository/mirror/server
Last modified: 2013-08-28 13:41:36 CEST
UCS 3.1-1 I have crated a local repository on an UCS DC-Master via: univention-repository-create -i /tmp/UCS_3.1-1-amd64.iso After that, I followed the shown instructions to create and bind policies for ucr (secure apt) and repository: udm policies/repositoryserver create --position "cn=repository,cn=update,cn=policies,dc=s4lish,dc=qa" --set name="master repository" --set repositoryServer="master.s4lish.qa" udm policies/registry create --position "cn=config-registry,cn=policies,dc=s4lish,dc=qa" --set name="global settings" --set registry="update/secure no" udm container/dc modify --dn "dc=s4lish,dc=qa" --policy-reference "cn=global settings,cn=config-registry,cn=policies,dc=s4lish,dc=qa" --policy-reference "cn=master repository,cn=repository,cn=update,cn=policies,dc=s4lish,dc=qa" Next, "univention-repository-update net" should be called. The first run failed because of a problem with the ucc component repository server, so I disabled localmirror for that component (repository/online/component/ucc_20130218/localmirror: false). Next run of "univention-repository-update net" showed an error to me: Error: The local server is configured as mirror source server (repository/mirror/server) Indeed, repository/mirror/server was set to $(hostname -f) - don't know why. I changed that (ucr set repository/mirror/server=univention-repository.knut.univention.de) and restartet "univention-repository-update net". After that was finished, repository/mirror/server was reset to $(hostname -f). It looks like every call of "univention-repository-update net" resets this variable which I think is not intended in any case...
(In reply to Janis Meybohm from comment #0) > udm policies/repositoryserver create ... > --set repositoryServer="master.s4lish.qa" ... > udm container/dc modify > --dn "dc=s4lish,dc=qa" ... > --policy-reference "cn=master repository,cn=repository,cn=update,cn=policies,dc=s4lish,dc=qa" > Indeed, repository/mirror/server was set to $(hostname -f) - don't know why. Because the policy created above forces that! The code was changed to no longer set repo/mirror/server=$self on the the local repo server itself. 3.2: svn42278, univention-updater_9.0.4-2.1185.201307110813 ChangeLog-3.2: svn42279 \item On a local repository server a repository policy no longer sets the source server to itself (\ucsBug{31426}). 3.1-1: svn42280, univention-updater_8.0.78-6.1186.201307110827 2013-07-10-univention-updater.yaml svn42282
3.2: svn42284, univention-updater_9.0.4-3.1187.201307110851 3.1: svn42285, 8.0.78-7.1188.201307110854 2013-07-10-univention-updater.yaml svn42287
Problem could be reproduced. Test uupdate to errata version: not applicable, the wrong entries have to be changed manually to enable updating. -> OK With 3.1-errata and 3.2: A local repository server does not set its hostname as repository/mirror/server: OK YAML: Minor fixes in capitalization: OK Changelog 3.2: OK -> Verified
http://errata.univention.de/ucs/3.1/172.html