Comment 6 for bug 1707630

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible-repo_build (stable/newton)

Reviewed: https://review.openstack.org/492928
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible-repo_build/commit/?id=aba8910567a5cdb364bbe2612a9f6f2382414274
Submitter: Jenkins
Branch: stable/newton

commit aba8910567a5cdb364bbe2612a9f6f2382414274
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
    -----
    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/.

    See this blog post:
    http://www.schwertly.com/2013/07/forcing-rsync-to-create-a-remote-path-using-rsync-path/
    or the man pages of "rsync":
    https://linux.die.net/man/1/rsync

    [1] https://bugs.launchpad.net/openstack-ansible/+bug/1707630

    Change-Id: I947ffc815e1574fe533d2a9ca6df6b2a991cff24
    Closes-Bug: #1707630
    (cherry picked from commit 18b165c5dcebd7b1691fc00d76d097d002111fe4)