The repo container sync task synchronises the following directories to a
wrong location.
pools
-----
Wrongly created dir on target: /var/www/repo/{{ repo_build_os_distro_version }}
Fixed dir on target: /var/www/repo/pools/{{ repo_build_os_distro_version }}
As the links and other directories are synced successfuly, they point
to invalid locations which will cause the repo build on the existing
repo master to fail.
venvs
-----
Wrongly created dir on target: /var/www/repo/{{ repo_build_os_distro_version }}
Fixed dir on target: /var/www/repo/venvs/{{ repo_build_release_tag }}/{{ repo_build_os_distro_version }}
os-releases
-----------
Wrongly created dir on target: /var/www/repo/{{ repo_build_os_distro_version }}
Fixed dir on target: /var/www/repo/os-releases/{{ repo_build_release_tag }}/{{ repo_build_os_distro_version }}
The patch achieves this by creating the directory befor rsync starts.
Using rsyncs relative option and synchronizing to the remotes root
/ dir does not work due to permissions on /var/.
Reviewed: https:/ /review. openstack. org/492928 /git.openstack. org/cgit/ openstack/ openstack- ansible- repo_build/ commit/ ?id=aba8910567a 5cdb364bbe2612a 9f6f2382414274
Committed: https:/
Submitter: Jenkins
Branch: stable/newton
commit aba8910567a5cdb 364bbe2612a9f6f 2382414274
Author: Andreas Scheuring <email address hidden>
Date: Mon Jul 31 13:35:35 2017 +0200
Sync repos to correct location on repo master
The repo container sync task synchronises the following directories to a
wrong location.
pools os_distro_ version }} repo/pools/ {{ repo_build_ os_distro_ version }}
-----
Wrongly created dir on target: /var/www/repo/{{ repo_build_
Fixed dir on target: /var/www/
As the links and other directories are synced successfuly, they point
to invalid locations which will cause the repo build on the existing
repo master to fail.
venvs os_distro_ version }} repo/venvs/ {{ repo_build_ release_ tag }}/{{ repo_build_ os_distro_ version }}
-----
Wrongly created dir on target: /var/www/repo/{{ repo_build_
Fixed dir on target: /var/www/
os-releases os_distro_ version }} repo/os- releases/ {{ repo_build_ release_ tag }}/{{ repo_build_ os_distro_ version }}
-----------
Wrongly created dir on target: /var/www/repo/{{ repo_build_
Fixed dir on target: /var/www/
The patch achieves this by creating the directory befor rsync starts.
Using rsyncs relative option and synchronizing to the remotes root
/ dir does not work due to permissions on /var/.
See this blog post: www.schwertly. com/2013/ 07/forcing- rsync-to- create- a-remote- path-using- rsync-path/ /linux. die.net/ man/1/rsync
http://
or the man pages of "rsync":
https:/
[1] https:/ /bugs.launchpad .net/openstack- ansible/ +bug/1707630
Change-Id: I947ffc815e1574 fe533d2a9ca6df6 b2a991cff24 1691fc00d76d097 d002111fe4)
Closes-Bug: #1707630
(cherry picked from commit 18b165c5dcebd7b