Sync between repo containers not working

Bug #1704936 reported by Andreas Scheuring
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Fix Released
Undecided
Andreas Scheuring

Bug Description

The repo container sync is not working as the rsync command is copying some contents into the wrong directory [1].

The target of the sync is always "/var/www/repo". The source is determined along some variables. But this destination is not correct for most of them:

pools directory
---------------

rsync-source: /var/www/repo/pools/ubuntu-16.04-s390x
rsync-target: /var/www/repo

-> rsync creates the directory: /var/www/repo/ubuntu-16.04-s390x

-> But it should be: /var/www/repo/pools/ubuntu-16.04-s390x

This issue causes the wheel build on the repo master to fail, as symlinks in the "links" and "os-releases" directories point to not existing packages (to /var/www/repo/pools/ubuntu-16.04-s390x/package)

venv directory
--------------

rsync-source: /var/www/repo/venvs/15.1.2/ubuntu-16.04-s390x
rsync-target: /var/www/repo

-> rsync creates the directory: /var/www/repo/ubuntu-16.04-s390x

-> But it should be: /var/www/repo/venvs/15.1.2/ubuntu-16.04-s390x

os-releases directory
---------------------

rsync-source: /var/www/repo/os-releases/15.1.2/ubuntu-16.04-s390x
rsync-target: /var/www/repo

-> rsync creates the directory: /var/www/repo/ubuntu-16.04-s390x

-> But it should be: /var/www/repo/os-releases/15.1.2/ubuntu-16.04-s390x

[1] https://github.com/openstack/openstack-ansible-repo_build/blob/master/tasks/repo_package_sync.yml

summary: - Sync between repo containers not working
+ Sync between repo containers syncs pools dir wrong
description: updated
summary: - Sync between repo containers syncs pools dir wrong
+ Sync between repo containers not working
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible-repo_build (master)

Fix proposed to branch: master
Review: https://review.openstack.org/484655

Changed in openstack-ansible:
assignee: nobody → Andreas Scheuring (andreas-scheuring)
status: New → In Progress
Changed in openstack-ansible:
assignee: Andreas Scheuring (andreas-scheuring) → Jesse Pretorius (jesse-pretorius)
Changed in openstack-ansible:
assignee: Jesse Pretorius (jesse-pretorius) → Andreas Scheuring (andreas-scheuring)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible-repo_build (master)

Reviewed: https://review.openstack.org/484655
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible-repo_build/commit/?id=e4c5ab4c6ebf33267d4a4cdf7ecff35465899167
Submitter: Jenkins
Branch: master

commit e4c5ab4c6ebf33267d4a4cdf7ecff35465899167
Author: Andreas Scheuring <email address hidden>
Date: Tue Jul 18 09:06:06 2017 +0200

    Sync repos to correct location on repo master

    The repo container sync task synchronises the following directory 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 }}

    Change-Id: I9e5902ec91afbb2805663eb5678fc9b2b31f23b2
    Closes-Bug: #1704936

Changed in openstack-ansible:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible-repo_build (stable/ocata)

Fix proposed to branch: stable/ocata
Review: https://review.openstack.org/485631

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

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/485632

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

Reviewed: https://review.openstack.org/485631
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible-repo_build/commit/?id=a23424eb088715a690b8238ad7e36963fcb39ab2
Submitter: Jenkins
Branch: stable/ocata

commit a23424eb088715a690b8238ad7e36963fcb39ab2
Author: Andreas Scheuring <email address hidden>
Date: Tue Jul 18 09:06:06 2017 +0200

    Sync repos to correct location on repo master

    The repo container sync task synchronises the following directory 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 }}

    Change-Id: I9e5902ec91afbb2805663eb5678fc9b2b31f23b2
    Closes-Bug: #1704936
    (cherry picked from commit e4c5ab4c6ebf33267d4a4cdf7ecff35465899167)

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

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

commit 1c02e7906898c85a5469f4b053895e22e3cfdcac
Author: Andreas Scheuring <email address hidden>
Date: Tue Jul 18 09:06:06 2017 +0200

    Sync repos to correct location on repo master

    The repo container sync task synchronises the following directory 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 }}

    Change-Id: I9e5902ec91afbb2805663eb5678fc9b2b31f23b2
    Closes-Bug: #1704936
    (cherry picked from commit e4c5ab4c6ebf33267d4a4cdf7ecff35465899167)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible-repo_build 16.0.0.0b3

This issue was fixed in the openstack/openstack-ansible-repo_build 16.0.0.0b3 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible-repo_build (master)

Fix proposed to branch: master
Review: https://review.openstack.org/489188

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible-repo_build 15.1.8

This issue was fixed in the openstack/openstack-ansible-repo_build 15.1.8 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible-repo_build 14.2.8

This issue was fixed in the openstack/openstack-ansible-repo_build 14.2.8 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.