Swift: reconfigure task fails when swift_has_replication_network is false

Bug #1849189 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

The variable swift_has_replication_network is defined in defaults/main.yaml at
https://opendev.org/openstack/kolla-ansible/src/branch/master/ansible/roles/swift/defaults/main.yml#L72

If it evaluates to "true", then the following swift containers are started by the start.yml task:
- swift_account_replication_server
- swift_container_replication_server
- swift_object_replication_server

However, if it evaluates to "false", the mentioned containers are never started.

Then, the reconfigure task will fail when trying to get the state of the missing containers.

I believe in the reconfigure task, previously listed containers should be appended to the list only if swift_has_replication_network evaluates to true.

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/689882

Changed in kolla-ansible:
assignee: nobody → Alexis Deberg (adeberg)
status: New → In Progress
Mark Goddard (mgoddard)
Changed in kolla-ansible:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (master)

Reviewed: https://review.opendev.org/689882
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=9622ab96937dccea2f5b0d97ffc674ce10359cb7
Submitter: Zuul
Branch: master

commit 9622ab96937dccea2f5b0d97ffc674ce10359cb7
Author: Alexis Deberg <email address hidden>
Date: Mon Oct 21 17:46:35 2019 -0400

    Swift: compute the list of containers dynamically in the reconfigure task

    If swift_has_replication_network is false some containers do not exist on the
    target node.
    This commit adds steps to compute the final list of containers to act on.

    Change-Id: I12f8de53724c3f24832df83597f36f9614af8e75
    Closes-Bug: #1849189

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

Fix proposed to branch: stable/stein
Review: https://review.opendev.org/693022

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

Reviewed: https://review.opendev.org/693022
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=f126ef93b3e5ff639a794b2a351559f6a9440cf9
Submitter: Zuul
Branch: stable/stein

commit f126ef93b3e5ff639a794b2a351559f6a9440cf9
Author: Alexis Deberg <email address hidden>
Date: Mon Oct 21 17:46:35 2019 -0400

    Swift: compute the list of containers dynamically in the reconfigure task

    If swift_has_replication_network is false some containers do not exist on the
    target node.
    This commit adds steps to compute the final list of containers to act on.

    Change-Id: I12f8de53724c3f24832df83597f36f9614af8e75
    Closes-Bug: #1849189
    (cherry picked from commit 9622ab96937dccea2f5b0d97ffc674ce10359cb7)

tags: added: in-stable-stein
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.

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

This issue was fixed in the openstack/kolla-ansible 8.1.0 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.