swift read_affinity setting seems to be ignored

Bug #1480581 reported by Steve Lewis on 2015-08-01
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-ansible
High
Steve Lewis
Kilo
High
Steve Lewis
Trunk
High
Steve Lewis

Bug Description

From the proxy-error.log file located in the swift container:

Aug 1 17:01:45 swift-r1_swift_proxy_container-a90dfdee proxy-server: sorting_method is set to 'shuffle', not 'affinity'; read_affinity setting will have no effect.

This seems to suggest we need to add support for the sorting_method to be specified as documented at http://docs.openstack.org/kilo/config-reference/content/proxy-server-conf.html

Changed in openstack-ansible:
assignee: nobody → Steve Lewis (steve-lewis)
status: New → In Progress
importance: Undecided → High

Reviewed: https://review.openstack.org/208817
Committed: https://git.openstack.org/cgit/stackforge/os-ansible-deployment/commit/?id=39b0e5d4438624a6a981c3ae4606b7ce200cbe28
Submitter: Jenkins
Branch: master

commit 39b0e5d4438624a6a981c3ae4606b7ce200cbe28
Author: Steve Lewis <email address hidden>
Date: Mon Aug 3 22:56:24 2015 -0700

    Add sorting_method to swift proxy config as needed

    When read_affinity is used and sorting_method is not used warnings
    are generated in the swift proxy log indicating that the
    read_affinity is not being respected. When read_affinity is specified
    this change sets the sorting_method to affinity automatically, and
    otherwise uses a configured value which defaults to shuffle.

    Note that write_affinity does not respect sorting_method and follows
    a different code path and does not issue warnings in logs when used
    without sorting_method.

    Closes-bug: 1480581
    Co-Authored-By: Andy McCrae <email address hidden>
    Change-Id: I3cab89c95f288b4a59f4dd3c7360daca7a4f47bf

Changed in openstack-ansible:
status: In Progress → Fix Committed

Reviewed: https://review.openstack.org/220260
Committed: https://git.openstack.org/cgit/stackforge/os-ansible-deployment/commit/?id=76137056a4ea80ab00265f67aaebec0b0815c082
Submitter: Jenkins
Branch: kilo

commit 76137056a4ea80ab00265f67aaebec0b0815c082
Author: Steve Lewis <email address hidden>
Date: Mon Aug 3 22:56:24 2015 -0700

    Add sorting_method to swift proxy config as needed

    When read_affinity is used and sorting_method is not used warnings
    are generated in the swift proxy log indicating that the
    read_affinity is not being respected. When read_affinity is specified
    this change sets the sorting_method to affinity automatically, and
    otherwise uses a configured value which defaults to shuffle.

    Note that write_affinity does not respect sorting_method and follows
    a different code path and does not issue warnings in logs when used
    without sorting_method.

    Closes-bug: 1480581
    Co-Authored-By: Andy McCrae <email address hidden>
    Change-Id: I3cab89c95f288b4a59f4dd3c7360daca7a4f47bf
    (cherry picked from commit 39b0e5d4438624a6a981c3ae4606b7ce200cbe28)

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

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

Other bug subscribers