Tempest failing on max_meta_* fields when testing RGW

Bug #1950486 reported by Francesco Pantano
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Medium
Francesco Pantano

Bug Description

After deploying an overcloud, Tempest is reporting 3 failed tests that are related to Swift, after some Swift tests have passed before these 3.

The failures suggest variable value errors, such as:

"/usr/lib/python3.6/site-packages/tempest/api/object_storage/test_container_services_negative.py", line 98, in test_create_container_metadata_exceeds_overall_metadata_count
    max_count = self.constraints['max_meta_count']
KeyError: 'max_meta_count'

"/usr/lib/python3.6/site-packages/tempest/api/object_storage/test_container_services_negative.py", line 63, in test_create_container_metadata_name_exceeds_max_length
    max_length = self.constraints['max_meta_name_length']
KeyError: 'max_meta_name_length'

"/usr/lib/python3.6/site-packages/tempest/api/object_storage/test_container_services_negative.py", line 81, in test_create_container_metadata_value_exceeds_max_length
    max_length = self.constraints['max_meta_value_length']
KeyError: 'max_meta_value_length'

Changed in tripleo:
assignee: nobody → Francesco Pantano (fmount)
status: New → In Progress
Changed in tripleo:
importance: Undecided → Medium
milestone: none → xena-rc1
milestone: xena-rc1 → yoga-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (master)

Reviewed: https://review.opendev.org/c/openstack/tripleo-heat-templates/+/817395
Committed: https://opendev.org/openstack/tripleo-heat-templates/commit/632afe18c061061fb1f69d8fe522bfdcc2724d4d
Submitter: "Zuul (22348)"
Branch: master

commit 632afe18c061061fb1f69d8fe522bfdcc2724d4d
Author: Francesco Pantano <email address hidden>
Date: Wed Nov 10 13:21:55 2021 +0100

    Add rgw max attributes constraints

    When the swift /info endpoint is queried, Tempest fails checking the
    following missing keys:

    1. max_meta_count
    2. max_meta_name_length
    3. max_meta_value_length

    Those keys are not present because the related rgw settings are missing,
    and as per [1], nothing is generated if the rgw_max_* are not set.
    This patch is a workaround, on the TripleO side, to provide the missing
    keys to the cluster.

    [1] https://github.com/ceph/ceph/blob/master/src/rgw/rgw_rest_swift.cc#L1883-L1900

    Closes-Bug: #1950486
    Change-Id: I0b199e47cce9dc72490110105f6a4ff94f90934d

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (stable/wallaby)

Fix proposed to branch: stable/wallaby
Review: https://review.opendev.org/c/openstack/tripleo-heat-templates/+/817534

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (stable/wallaby)

Reviewed: https://review.opendev.org/c/openstack/tripleo-heat-templates/+/817534
Committed: https://opendev.org/openstack/tripleo-heat-templates/commit/70de86859e105d929d2828b36e027706db0a9f7f
Submitter: "Zuul (22348)"
Branch: stable/wallaby

commit 70de86859e105d929d2828b36e027706db0a9f7f
Author: Francesco Pantano <email address hidden>
Date: Wed Nov 10 13:21:55 2021 +0100

    Add rgw max attributes constraints

    When the swift /info endpoint is queried, Tempest fails checking the
    following missing keys:

    1. max_meta_count
    2. max_meta_name_length
    3. max_meta_value_length

    Those keys are not present because the related rgw settings are missing,
    and as per [1], nothing is generated if the rgw_max_* are not set.
    This patch is a workaround, on the TripleO side, to provide the missing
    keys to the cluster.

    [1] https://github.com/ceph/ceph/blob/master/src/rgw/rgw_rest_swift.cc#L1883-L1900

    Closes-Bug: #1950486
    Change-Id: I0b199e47cce9dc72490110105f6a4ff94f90934d
    (cherry picked from commit 632afe18c061061fb1f69d8fe522bfdcc2724d4d)

tags: added: in-stable-wallaby
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 16.0.0

This issue was fixed in the openstack/tripleo-heat-templates 16.0.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.