Project

General

Profile

Actions

Bug #51772

closed
CB

tempest failures: test_create_container_with_remove_metadata_key/value

Bug #51772: tempest failures: test_create_container_with_remove_metadata_key/value

Added by Casey Bodley over 5 years ago. Updated 3 months ago.

Status:
Resolved
Priority:
High
Assignee:
-
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
quincy reef
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v18.0.0-7482-gac7e285fb4
Released In:
v19.2.0~1182
Upkeep Timestamp:
2026-08-28T01:33:45+00:00

Description

http://qa-proxy.ceph.com/teuthology/cbodley-2021-07-21_12:55:41-rgw-wip-cbodley-testing-distro-basic-smithi/6283943/teuthology.log

-07-21T13:40:18.662 INFO:teuthology.orchestra.run.smithi153.stdout:==============================
2021-07-21T13:40:18.662 INFO:teuthology.orchestra.run.smithi153.stdout:Failed 2 tests - output below:
2021-07-21T13:40:18.662 INFO:teuthology.orchestra.run.smithi153.stdout:==============================
2021-07-21T13:40:18.662 INFO:teuthology.orchestra.run.smithi153.stdout:
2021-07-21T13:40:18.663 INFO:teuthology.orchestra.run.smithi153.stdout:tempest.api.object_storage.test_container_services.ContainerTest.test_create_container_with_remove_metadata_key[id-24d16451-1c0c-4e4f-b59c-9840a3aba40e]
2021-07-21T13:40:18.663 INFO:teuthology.orchestra.run.smithi153.stdout:--------------------------------------------------------------------------------------------------------------------------------------------------------
2021-07-21T13:40:18.663 INFO:teuthology.orchestra.run.smithi153.stdout:
2021-07-21T13:40:18.663 INFO:teuthology.orchestra.run.smithi153.stdout:Captured traceback:
2021-07-21T13:40:18.664 INFO:teuthology.orchestra.run.smithi153.stdout:~~~~~~~~~~~~~~~~~~~
2021-07-21T13:40:18.664 INFO:teuthology.orchestra.run.smithi153.stdout:    Traceback (most recent call last):
2021-07-21T13:40:18.664 INFO:teuthology.orchestra.run.smithi153.stdout:
2021-07-21T13:40:18.664 INFO:teuthology.orchestra.run.smithi153.stdout:      File "/home/ubuntu/cephtest/tempest/tempest/api/object_storage/test_container_services.py", line 96, in test_create_container_with_remove_metadata_key
2021-07-21T13:40:18.664 INFO:teuthology.orchestra.run.smithi153.stdout:    self.assertNotIn('x-container-meta-test-container-meta', resp)
2021-07-21T13:40:18.665 INFO:teuthology.orchestra.run.smithi153.stdout:
2021-07-21T13:40:18.665 INFO:teuthology.orchestra.run.smithi153.stdout:      File "/home/ubuntu/cephtest/tempest/.tox/venv/lib/python3.8/site-packages/testtools/testcase.py", line 459, in assertNotIn
2021-07-21T13:40:18.665 INFO:teuthology.orchestra.run.smithi153.stdout:    self.assertThat(haystack, matcher, message)
2021-07-21T13:40:18.665 INFO:teuthology.orchestra.run.smithi153.stdout:
2021-07-21T13:40:18.666 INFO:teuthology.orchestra.run.smithi153.stdout:      File "/home/ubuntu/cephtest/tempest/.tox/venv/lib/python3.8/site-packages/testtools/testcase.py", line 502, in assertThat
2021-07-21T13:40:18.666 INFO:teuthology.orchestra.run.smithi153.stdout:    raise mismatch_error
2021-07-21T13:40:18.666 INFO:teuthology.orchestra.run.smithi153.stdout:
2021-07-21T13:40:18.666 INFO:teuthology.orchestra.run.smithi153.stdout:    testtools.matchers._impl.MismatchError: {'x-timestamp': '1626874756.84543', 'x-container-object-count': '0', 'x-container-bytes-used': '0', 'x-container-bytes-used-actual': '0', 'x-storage-policy': 'default-placement', 'x-storage-class': 'STANDARD', 'x-container-meta-test-container-meta': 'Meta1', 'last-modified': 'Wed, 21 Jul 2021 13:39:16 GMT', 'x-trans-id': 'tx0000000000000000000b2-0060f82384-106d-default', 'x-openstack-request-id': 'tx0000000000000000000b2-0060f82384-106d-default', 'accept-ranges': 'bytes', 'content-type': 'application/json; charset=utf-8', 'date': 'Wed, 21 Jul 2021 13:39:16 GMT', 'connection': 'close', 'status': '204', 'content-location': 'http://smithi153.front.sepia.ceph.com:80/v1/KEY_8cb76cf6d10441e48b75364589ff0167/tempest-TestContainer-1556313146'} matches Contains('x-container-meta-test-container-meta')
2021-07-21T13:40:18.667 INFO:teuthology.orchestra.run.smithi153.stdout:
2021-07-21T13:40:18.667 INFO:teuthology.orchestra.run.smithi153.stdout:
2021-07-21T13:40:18.667 INFO:teuthology.orchestra.run.smithi153.stdout:Captured pythonlogging:
2021-07-21T13:40:18.667 INFO:teuthology.orchestra.run.smithi153.stdout:~~~~~~~~~~~~~~~~~~~~~~~
2021-07-21T13:40:18.668 INFO:teuthology.orchestra.run.smithi153.stdout:    2021-07-21 13:39:16,861 29484 INFO     [tempest.lib.common.rest_client] Request (ContainerTest:test_create_container_with_remove_metadata_key): 201 PUT http://smithi153.front.sepia.ceph.com:80/v1/KEY_8cb76cf6d10441e48b75364589ff0167/tempest-TestContainer-1556313146 0.018s
2021-07-21T13:40:18.668 INFO:teuthology.orchestra.run.smithi153.stdout:2021-07-21 13:39:16,866 29484 INFO     [tempest.lib.common.rest_client] Request (ContainerTest:test_create_container_with_remove_metadata_key): 202 PUT http://smithi153.front.sepia.ceph.com:80/v1/KEY_8cb76cf6d10441e48b75364589ff0167/tempest-TestContainer-1556313146 0.004s
2021-07-21T13:40:18.668 INFO:teuthology.orchestra.run.smithi153.stdout:2021-07-21 13:39:16,869 29484 INFO     [tempest.lib.common.rest_client] Request (ContainerTest:test_create_container_with_remove_metadata_key): 204 HEAD http://smithi153.front.sepia.ceph.com:80/v1/KEY_8cb76cf6d10441e48b75364589ff0167/tempest-TestContainer-1556313146 0.003s
2021-07-21T13:40:18.668 INFO:teuthology.orchestra.run.smithi153.stdout:2021-07-21 13:39:16,872 29484 INFO     [tempest.lib.common.rest_client] Request (ContainerTest:tearDown): 404 GET http://smithi153.front.sepia.ceph.com:80/v1/KEY_8cb76cf6d10441e48b75364589ff0167/tempest-TestContainer-178509779?&limit=9999&format=json 0.001s
2021-07-21T13:40:18.669 INFO:teuthology.orchestra.run.smithi153.stdout:2021-07-21 13:39:16,874 29484 INFO     [tempest.lib.common.rest_client] Request (ContainerTest:tearDown): 404 GET http://smithi153.front.sepia.ceph.com:80/v1/KEY_8cb76cf6d10441e48b75364589ff0167/tempest-TestContainer-2102572251?&limit=9999&format=json 0.001s
2021-07-21T13:40:18.669 INFO:teuthology.orchestra.run.smithi153.stdout:2021-07-21 13:39:16,876 29484 INFO     [tempest.lib.common.rest_client] Request (ContainerTest:tearDown): 404 GET http://smithi153.front.sepia.ceph.com:80/v1/KEY_8cb76cf6d10441e48b75364589ff0167/tempest-TestContainer-2132824886?&limit=9999&format=json 0.001s
2021-07-21T13:40:18.669 INFO:teuthology.orchestra.run.smithi153.stdout:2021-07-21 13:39:16,878 29484 INFO     [tempest.lib.common.rest_client] Request (ContainerTest:tearDown): 404 GET http://smithi153.front.sepia.ceph.com:80/v1/KEY_8cb76cf6d10441e48b75364589ff0167/tempest-TestContainer-1999964905?&limit=9999&format=json 0.002s
2021-07-21T13:40:18.669 INFO:teuthology.orchestra.run.smithi153.stdout:2021-07-21 13:39:16,883 29484 INFO     [tempest.lib.common.rest_client] Request (ContainerTest:tearDown): 200 GET http://smithi153.front.sepia.ceph.com:80/v1/KEY_8cb76cf6d10441e48b75364589ff0167/tempest-TestContainer-1556313146?&limit=9999&format=json 0.004s
2021-07-21T13:40:18.669 INFO:teuthology.orchestra.run.smithi153.stdout:2021-07-21 13:39:18,928 29484 INFO     [tempest.lib.common.rest_client] Request (ContainerTest:tearDown): 204 DELETE http://smithi153.front.sepia.ceph.com:80/v1/KEY_8cb76cf6d10441e48b75364589ff0167/tempest-TestContainer-1556313146 0.043s
2021-07-21T13:40:18.670 INFO:teuthology.orchestra.run.smithi153.stdout:
2021-07-21T13:40:18.670 INFO:teuthology.orchestra.run.smithi153.stdout:
2021-07-21T13:40:18.670 INFO:teuthology.orchestra.run.smithi153.stdout:tempest.api.object_storage.test_container_services.ContainerTest.test_create_container_with_remove_metadata_value[id-8a21ebad-a5c7-4e29-b428-384edc8cd156]
2021-07-21T13:40:18.670 INFO:teuthology.orchestra.run.smithi153.stdout:----------------------------------------------------------------------------------------------------------------------------------------------------------
2021-07-21T13:40:18.671 INFO:teuthology.orchestra.run.smithi153.stdout:
2021-07-21T13:40:18.671 INFO:teuthology.orchestra.run.smithi153.stdout:Captured traceback:
2021-07-21T13:40:18.671 INFO:teuthology.orchestra.run.smithi153.stdout:~~~~~~~~~~~~~~~~~~~
2021-07-21T13:40:18.671 INFO:teuthology.orchestra.run.smithi153.stdout:    Traceback (most recent call last):
2021-07-21T13:40:18.672 INFO:teuthology.orchestra.run.smithi153.stdout:
2021-07-21T13:40:18.672 INFO:teuthology.orchestra.run.smithi153.stdout:      File "/home/ubuntu/cephtest/tempest/tempest/api/object_storage/test_container_services.py", line 113, in test_create_container_with_remove_metadata_value
2021-07-21T13:40:18.672 INFO:teuthology.orchestra.run.smithi153.stdout:    self.assertNotIn('x-container-meta-test-container-meta', resp)
2021-07-21T13:40:18.672 INFO:teuthology.orchestra.run.smithi153.stdout:
2021-07-21T13:40:18.672 INFO:teuthology.orchestra.run.smithi153.stdout:      File "/home/ubuntu/cephtest/tempest/.tox/venv/lib/python3.8/site-packages/testtools/testcase.py", line 459, in assertNotIn
2021-07-21T13:40:18.673 INFO:teuthology.orchestra.run.smithi153.stdout:    self.assertThat(haystack, matcher, message)
2021-07-21T13:40:18.673 INFO:teuthology.orchestra.run.smithi153.stdout:
2021-07-21T13:40:18.673 INFO:teuthology.orchestra.run.smithi153.stdout:      File "/home/ubuntu/cephtest/tempest/.tox/venv/lib/python3.8/site-packages/testtools/testcase.py", line 502, in assertThat
2021-07-21T13:40:18.673 INFO:teuthology.orchestra.run.smithi153.stdout:    raise mismatch_error
2021-07-21T13:40:18.674 INFO:teuthology.orchestra.run.smithi153.stdout:
2021-07-21T13:40:18.674 INFO:teuthology.orchestra.run.smithi153.stdout:    testtools.matchers._impl.MismatchError: {'x-timestamp': '1626874758.93217', 'x-container-object-count': '0', 'x-container-bytes-used': '0', 'x-container-bytes-used-actual': '0', 'x-storage-policy': 'default-placement', 'x-storage-class': 'STANDARD', 'x-container-meta-test-container-meta': 'Meta1', 'last-modified': 'Wed, 21 Jul 2021 13:39:18 GMT', 'x-trans-id': 'tx0000000000000000000c1-0060f82386-106d-default', 'x-openstack-request-id': 'tx0000000000000000000c1-0060f82386-106d-default', 'accept-ranges': 'bytes', 'content-type': 'application/json; charset=utf-8', 'date': 'Wed, 21 Jul 2021 13:39:18 GMT', 'connection': 'close', 'status': '204', 'content-location': 'http://smithi153.front.sepia.ceph.com:80/v1/KEY_8cb76cf6d10441e48b75364589ff0167/tempest-TestContainer-1144146550'} matches Contains('x-container-meta-test-container-meta')
2021-07-21T13:40:18.674 INFO:teuthology.orchestra.run.smithi153.stdout:
2021-07-21T13:40:18.674 INFO:teuthology.orchestra.run.smithi153.stdout:
2021-07-21T13:40:18.675 INFO:teuthology.orchestra.run.smithi153.stdout:Captured pythonlogging:
2021-07-21T13:40:18.675 INFO:teuthology.orchestra.run.smithi153.stdout:~~~~~~~~~~~~~~~~~~~~~~~
2021-07-21T13:40:18.675 INFO:teuthology.orchestra.run.smithi153.stdout:    2021-07-21 13:39:18,942 29484 INFO     [tempest.lib.common.rest_client] Request (ContainerTest:test_create_container_with_remove_metadata_value): 201 PUT http://smithi153.front.sepia.ceph.com:80/v1/KEY_8cb76cf6d10441e48b75364589ff0167/tempest-TestContainer-1144146550 0.012s
2021-07-21T13:40:18.675 INFO:teuthology.orchestra.run.smithi153.stdout:2021-07-21 13:39:18,946 29484 INFO     [tempest.lib.common.rest_client] Request (ContainerTest:test_create_container_with_remove_metadata_value): 202 PUT http://smithi153.front.sepia.ceph.com:80/v1/KEY_8cb76cf6d10441e48b75364589ff0167/tempest-TestContainer-1144146550 0.003s
2021-07-21T13:40:18.675 INFO:teuthology.orchestra.run.smithi153.stdout:2021-07-21 13:39:18,949 29484 INFO     [tempest.lib.common.rest_client] Request (ContainerTest:test_create_container_with_remove_metadata_value): 204 HEAD http://smithi153.front.sepia.ceph.com:80/v1/KEY_8cb76cf6d10441e48b75364589ff0167/tempest-TestContainer-1144146550 0.003s
2021-07-21T13:40:18.676 INFO:teuthology.orchestra.run.smithi153.stdout:2021-07-21 13:39:18,951 29484 INFO     [tempest.lib.common.rest_client] Request (ContainerTest:tearDown): 404 GET http://smithi153.front.sepia.ceph.com:80/v1/KEY_8cb76cf6d10441e48b75364589ff0167/tempest-TestContainer-178509779?&limit=9999&format=json 0.001s
2021-07-21T13:40:18.676 INFO:teuthology.orchestra.run.smithi153.stdout:2021-07-21 13:39:18,952 29484 INFO     [tempest.lib.common.rest_client] Request (ContainerTest:tearDown): 404 GET http://smithi153.front.sepia.ceph.com:80/v1/KEY_8cb76cf6d10441e48b75364589ff0167/tempest-TestContainer-2102572251?&limit=9999&format=json 0.001s
2021-07-21T13:40:18.676 INFO:teuthology.orchestra.run.smithi153.stdout:2021-07-21 13:39:18,954 29484 INFO     [tempest.lib.common.rest_client] Request (ContainerTest:tearDown): 404 GET http://smithi153.front.sepia.ceph.com:80/v1/KEY_8cb76cf6d10441e48b75364589ff0167/tempest-TestContainer-2132824886?&limit=9999&format=json 0.001s
2021-07-21T13:40:18.676 INFO:teuthology.orchestra.run.smithi153.stdout:2021-07-21 13:39:18,955 29484 INFO     [tempest.lib.common.rest_client] Request (ContainerTest:tearDown): 404 GET http://smithi153.front.sepia.ceph.com:80/v1/KEY_8cb76cf6d10441e48b75364589ff0167/tempest-TestContainer-1999964905?&limit=9999&format=json 0.001s
2021-07-21T13:40:18.677 INFO:teuthology.orchestra.run.smithi153.stdout:2021-07-21 13:39:18,957 29484 INFO     [tempest.lib.common.rest_client] Request (ContainerTest:tearDown): 404 GET http://smithi153.front.sepia.ceph.com:80/v1/KEY_8cb76cf6d10441e48b75364589ff0167/tempest-TestContainer-1556313146?&limit=9999&format=json 0.002s
2021-07-21T13:40:18.677 INFO:teuthology.orchestra.run.smithi153.stdout:2021-07-21 13:39:18,961 29484 INFO     [tempest.lib.common.rest_client] Request (ContainerTest:tearDown): 200 GET http://smithi153.front.sepia.ceph.com:80/v1/KEY_8cb76cf6d10441e48b75364589ff0167/tempest-TestContainer-1144146550?&limit=9999&format=json 0.004s
2021-07-21T13:40:18.677 INFO:teuthology.orchestra.run.smithi153.stdout:2021-07-21 13:39:21,025 29484 INFO     [tempest.lib.common.rest_client] Request (ContainerTest:tearDown): 204 DELETE http://smithi153.front.sepia.ceph.com:80/v1/KEY_8cb76cf6d10441e48b75364589ff0167/tempest-TestContainer-1144146550 0.061s

Related issues 4 (1 open — 3 closed)

Related to rgw - Bug #48716: aws-s3 incompatibility related metadataResolvedIlsoo Byun

Actions
Related to cleanup - Tasks #57646: stop mangling request header namesNew

Actions
Copied to rgw - Backport #63620: quincy: tempest failures: test_create_container_with_remove_metadata_key/valueRejected

Actions
Copied to rgw - Backport #63621: reef: tempest failures: test_create_container_with_remove_metadata_key/valueRejected

Actions

CB Updated by Casey Bodley over 5 years ago Actions #1

  • Priority changed from High to Urgent

CB Updated by Casey Bodley about 5 years ago Actions #2

  • Assignee set to J. Eric Ivancich

CB Updated by Casey Bodley almost 5 years ago Actions #3

reproduced against a vstart cluster with python-swiftclient installed

1. create a container

swift -U test:tester -K testing -A http://localhost:8000/auth/1.0 post bucket

2. add container metadata

swift -U test:tester -K testing -A http://localhost:8000/auth/1.0 post bucket -H X-Container-Meta-test_container_meta:Meta1

3. remove container metadata

swift -U test:tester -K testing -A http://localhost:8000/auth/1.0 post bucket -H X-Remove-Container-Meta-test_container_meta:Meta1

4. stat container (shows that "Meta Test-Container-Meta: Meta1" was not removed)

$ swift -U test:tester -K testing -A http://localhost:8000/auth/1.0 stat bucket
                      Account: v1
                    Container: bucket
                      Objects: 0
                        Bytes: 0
                     Read ACL:
                    Write ACL:
                      Sync To:
                     Sync Key:
     Meta Test-Container-Meta: Meta1
                  X-Timestamp: 1642101585.25084
X-Container-Bytes-Used-Actual: 0
             X-Storage-Policy: default-placement
              X-Storage-Class: STANDARD
                Last-Modified: Thu, 13 Jan 2022 19:24:21 GMT
                   X-Trans-Id: tx00000ebfa17acb06be18c-0061e07c67-1027-default
       X-Openstack-Request-Id: tx00000ebfa17acb06be18c-0061e07c67-1027-default
                Accept-Ranges: bytes
                 Content-Type: text/plain; charset=utf-8
                   Connection: Keep-Alive

this isn't exactly the same reproducer as the tempest test - 'swift post bucket' is calling the RGWPutMetadataBucket op, while tempest is calling RGWCreateBucket - but i'm guessing that the root cause is the same:

when we add the container metadata, rgw_get_request_metadata() converts the metadata header "X-Container-Meta-test_container_meta" into the xattr name "user.rgw.x-amz-meta-test_container_meta"

when we remove the container metadata, get_rmattrs_from_headers() processes the "X-Remove-Container-Meta-test_container_meta" header name with an extra call to lowercase_dash_http_attr(), and adds the string "user.rgw.x-amz-meta-test-container-meta" to the rmattr_names set

so we're storing the xattr as "user.rgw.x-amz-meta-test_container_meta",
and trying to remove the xattr "user.rgw.x-amz-meta-test-container-meta"

tempest also has test cases for removal of metadata on accounts and objects, but those tests pass because their metadata names use dashes instead of underscores

CB Updated by Casey Bodley almost 5 years ago Actions #4

  • Related to Bug #48716: aws-s3 incompatibility related metadata added

CB Updated by Casey Bodley almost 5 years ago Actions #5

ok, turns out the underscore fix for s3 user metadata in https://github.com/ceph/ceph/pull/38737 broke the underscores in swift user metadata. with that commit reverted, the swift container metadata can be removed just fine

CB Updated by Casey Bodley almost 5 years ago Actions #6

  • Status changed from New to Fix Under Review
  • Pull request ID set to 44599

JI Updated by J. Eric Ivancich almost 5 years ago Actions #7

Awesome, Casey. Another well-earned notch in the "urgent tracker" belt for you!

JI Updated by J. Eric Ivancich almost 5 years ago Actions #8

  • Assignee changed from J. Eric Ivancich to Casey Bodley

CB Updated by Casey Bodley almost 5 years ago Actions #9

  • Status changed from Fix Under Review to In Progress

failed qa, moved back to In Progress

CB Updated by Casey Bodley about 4 years ago Actions #11

  • Priority changed from Urgent to High

CB Updated by Casey Bodley about 4 years ago Actions #12

  • Related to Tasks #57646: stop mangling request header names added

CB Updated by Casey Bodley about 4 years ago Actions #13

  • Status changed from In Progress to New
  • Assignee deleted (Casey Bodley)

CB Updated by Casey Bodley about 4 years ago Actions #14

  • Status changed from New to Triaged

CB Updated by Casey Bodley over 3 years ago Actions #15

  • Status changed from Triaged to Fix Under Review
  • Pull request ID changed from 44599 to 50790

JZ Updated by Jane Zhu over 3 years ago Actions #16

I submitted a PR which seems to have fixed this issue.
https://github.com/ceph/ceph/pull/50790

Here are the tests I've done against a vstart.

$ swift -U test:tester -K testing -A http://localhost:8000/auth/1.0 post bucket
$ swift -U test:tester -K testing -A http://localhost:8000/auth/1.0 post bucket -H X-Container-Meta-test_container_meta1:Meta1
$ swift -U test:tester -K testing -A http://localhost:8000/auth/1.0 post bucket -H X-Container-Meta-test-container-meta2:Meta2
$ swift -U test:tester -K testing -A http://localhost:8000/auth/1.0 stat bucket
...
    Meta Test-Container-Meta2: Meta2
    Meta Test_Container_Meta1: Meta1
...

$ swift -U test:tester -K testing -A http://localhost:8000/auth/1.0 post bucket -H X-Remove-Container-Meta-test_container_meta1:Meta1
$ swift -U test:tester -K testing -A http://localhost:8000/auth/1.0 post bucket -H X-Remove-Container-Meta-test-container-meta2:Meta2
$ swift -U test:tester -K testing -A http://localhost:8000/auth/1.0 stat bucket
...
(both Test-Container-Meta2 and Meta Test_Container_Meta1 have been deleted)
...

I also verified the s3, and it was working fine as well.

CB Updated by Casey Bodley over 3 years ago Actions #17

  • Assignee set to Ali Maredia

CB Updated by Casey Bodley about 3 years ago Actions #18

  • Backport set to quincy reef

CB Updated by Casey Bodley about 3 years ago Actions #19

  • Status changed from Fix Under Review to Pending Backport

UB Updated by Upkeep Bot about 3 years ago Actions #20

  • Copied to Backport #63620: quincy: tempest failures: test_create_container_with_remove_metadata_key/value added

UB Updated by Upkeep Bot about 3 years ago Actions #21

  • Copied to Backport #63621: reef: tempest failures: test_create_container_with_remove_metadata_key/value added

CB Updated by Casey Bodley over 2 years ago Actions #23

  • Assignee deleted (Ali Maredia)

UB Updated by Upkeep Bot over 2 years ago Actions #24

  • Tags (freeform) set to backport_processed

UB Updated by Upkeep Bot over 1 year ago Actions #25

  • Merge Commit set to ac7e285fb4bcb0cc4ef7a3be9af96b99da9d251b
  • Fixed In set to v18.0.0-7482-gac7e285fb4b
  • Released In set to v19.2.0~1182
  • Upkeep Timestamp set to 2025-07-09T17:11:23+00:00

UB Updated by Upkeep Bot over 1 year ago Actions #26

  • Fixed In changed from v18.0.0-7482-gac7e285fb4b to v18.0.0-7482-gac7e285fb4
  • Upkeep Timestamp changed from 2025-07-09T17:11:23+00:00 to 2025-07-14T20:44:01+00:00

AE Updated by Adam Emerson 4 months ago Actions #27

  • Status changed from Pending Backport to Resolved

UB Updated by Upkeep Bot 3 months ago Actions #28

  • Tags (freeform) deleted (backport_processed)
  • Upkeep Timestamp changed from 2025-07-14T20:44:01+00:00 to 2026-08-28T01:33:45+00:00
Actions

Also available in: PDF Atom