Swift role does not deploy multi-policies ring files

Bug #1844752 reported by Alexis Deberg
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
Fix Released
Medium
Alexis Deberg
Train
Fix Released
Medium
Alexis Deberg

Bug Description

Hello,

As of latest commit in master branch (3522d235bd13cf) the swift roles deploys the policies using a hardcoded list of ring files which prevents the deployment of a multi-policies cluster.

The hardcoded list is present in the following tasks:

- precheck.yml at https://opendev.org/openstack/kolla-ansible/src/commit/3522d235bd13cf689a3a3762d83fa190836f0572/ansible/roles/swift/tasks/precheck.yml#L104

- config.yml at https://opendev.org/openstack/kolla-ansible/src/commit/3522d235bd13cf689a3a3762d83fa190836f0572/ansible/roles/swift/tasks/config.yml#L186

A simple patch would be to use a variable that could be overwritten (but not named swift_ring_files which is already used in precheck.yml at https://opendev.org/openstack/kolla-ansible/src/commit/3522d235bd13cf689a3a3762d83fa190836f0572/ansible/roles/swift/tasks/precheck.yml#L103).

Unfortunately I'm not sure of the workflow to submit a patch but feel free to point me the right direction to do so.

Revision history for this message
Mark Goddard (mgoddard) wrote :

Hi Alexis, thanks for your bug report. It makes sense to me. It's quite a long doc, but here's the developer workflow: https://docs.openstack.org/infra/manual/developers.html. Feel free to ask for help on #openstack-kolla.

Changed in kolla-ansible:
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (master)

Fix proposed to branch: master
Review: https://review.opendev.org/683433

Changed in kolla-ansible:
assignee: nobody → Alexis Deberg (adeberg)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (master)

Reviewed: https://review.opendev.org/683433
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=0adbbb268e4f4c0c422fd6ac069dd202c1fefd05
Submitter: Zuul
Branch: master

commit 0adbbb268e4f4c0c422fd6ac069dd202c1fefd05
Author: Alexis Deberg <email address hidden>
Date: Fri Sep 20 11:46:36 2019 -0400

    Swift: add swift_extra_ring_files variable to handle multi-policies deployment

    The current tasks only use a hardcoded list deploying only the required files.
    When using multiple custom policies, additionnal object-*.builder and
    object*.gz files are to be deployed as well.
    This adds a new default-empty variable that can be overridden when needed

    Change-Id: I29c8e349c7cc83e3a2e01ff702d235a0cd97340e
    Closes-Bug: #1844752

Changed in kolla-ansible:
status: In Progress → Fix Released
Revision history for this message
Alexis Deberg (adeberg) wrote :

Looks like I forgot to update the config.json files and the files are not correctly copied inside the container.
Should I open a new distinct bug/commit or continue using this reference ?

Revision history for this message
Mark Goddard (mgoddard) wrote :

You can use this one if the fix is merged before the Train release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to kolla-ansible (master)

Related fix proposed to branch: master
Review: https://review.opendev.org/691014

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to kolla-ansible (master)

Reviewed: https://review.opendev.org/691014
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=5f4c71ee0f2b1c50675ab4241db89e81a3c27d86
Submitter: Zuul
Branch: master

commit 5f4c71ee0f2b1c50675ab4241db89e81a3c27d86
Author: Alexis Deberg <email address hidden>
Date: Thu Oct 24 12:24:27 2019 -0400

    Update swift templates to support swift_extra_ring_files

    Change-Id: Ie594f6cdbe332d64d3461d84da730111d0db5cf1
    Related-Bug: #1844752

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 9.0.0.0rc1

This issue was fixed in the openstack/kolla-ansible 9.0.0.0rc1 release candidate.

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.