[Bug 2156199] Re: [SRU] swift on resolute version 2.37.1-0ubuntu2 FTBFS

Felipe Reyes 2156199 at bugs.launchpad.net
Thu Sep 3 00:16:41 UTC 2026


Attaching patch to fix FTBFS for swift on stonking

** Patch added: "lp2156199_stonking_v2.debdiff"
   https://bugs.launchpad.net/ubuntu/+source/swift/+bug/2156199/+attachment/5997103/+files/lp2156199_stonking_v2.debdiff

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to swift in Ubuntu.
https://bugs.launchpad.net/bugs/2156199

Title:
  [SRU] swift on resolute version 2.37.1-0ubuntu2 FTBFS

Status in swift package in Ubuntu:
  In Progress
Status in swift source package in Resolute:
  In Progress
Status in swift source package in Stonking:
  In Progress

Bug description:
  [Impact]
  swift 2.37.1-0ubuntu2 fails to build from source on resolute due to
  three unit test failures, blocking any future update of the package.
  This upload fixes the build; all changes are confined to the test
  suite, no production code is modified.

  The update contains the following package updates:

   * swift 2.37.1-0ubuntu2.1

  [Test Case]
  The following SRU process was followed:
  https://documentation.ubuntu.com/sru/en/latest/reference/exception-OpenStack-Updates

  In order to avoid regression of existing consumers, the OpenStack team
  will run their continuous integration test against the packages that
  are in -proposed. A successful run of all available tests will be
  required before the proposed packages can be let into -updates.

  The OpenStack team will be in charge of attaching the output summary
  of the executed tests. The OpenStack team members will not mark
  'verification-done' until this has happened.

  [Regression Potential]
  In order to mitigate the regression potential, the results of the
  aforementioned tests are attached to this bug. Both changes are
  patches to unit tests only; the built binaries are functionally
  identical to 2.37.1-0ubuntu2.

  [Discussion]
  Two test-only changes:
   * d/p/fix-writing-non-ascii-in-headers-in-tests.patch synced from
     Debian 2.37.1-5: Ubuntu's stale copy collapsed two non-ASCII
     object metadata headers into one, failing two proxy-server tests
     on Python 3.14.
   * d/p/fix-reconstructor-test-conn-timeout-flake.patch (new): the
     reconstruct_fa insufficient-frag tests assert exact logged error
     lines, but the default 0.5s conn_timeout measures wall-clock time
     and can expire under scheduler stalls on loaded machines, logging
     a spurious ConnectionTimeout error.
  Note: Launchpad builders skip the affected tests (no >4KB xattr
  support), so the failures only reproduce in local builds; a
  reproduction report is attached. Proof builds:
  https://launchpad.net/~mylesjp/+archive/ubuntu/swift-lp2156199-v2

  
  =============================================================================
  Original Bug Report
  =============================================================================

  [ Impact ]

   * Not able to build packages for swift for stonking and resolute

  [ Test Plan ]

   * Run unit tests

    pull-lp-source --download-only swift resolute
    dpkg-source -x swift_2.37.1-0ubuntu2.dsc
    cd swift-2.37.1
    quilt push -a
    tox -e py3

  [ Where problems could occur ]

   * There are 2 changes - 1st patch dropped existing patch since its
  already part of ubuntu package and 2nd patch fixes test failures which
  is fixed in upstream.

   * Both changes are in unit tests and should not affect any production
  code.

  [ Other Info ]

   * None

  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

  Hello,

  When trying to build swift (2.37.1-0ubuntu2) on resolute from source I
  faced some errors on the test suite:

  ```
  FAILED test/unit/obj/test_reconstructor.py::TestReconstructFragmentArchiveECDuplicationFactor::test_reconstruct_fa_no_quarantine_more_than_threshold_frags - AssertionError: 2 != 3 : ['Trying to GET 10.0.0.22:1022/sdw/0/a/c/o policy#0: ConnectionTimeout (0.5s)', 'Unable to get enough responses (2/10 from 2 ok responses) to reconstruct non-durable 10.0.0.1:1001/sdb/0/a/c/o policy#0 frag#1 with ETag f0510d5479985e9523dc1688b0bc7d63 and timestamp 1781023305.00000', 'Unable to get enough responses (1 x unknown, 24 x 404 error responses) to reconstruct non-durable 10.0.0.1:1001/sdb/0/a/c/o policy#0 frag#1']
  FAILED test/unit/proxy/test_mem_server.py::TestReplicatedObjectController::test_PUT_message_length_using_both_with_crazy_meta - AssertionError: b'X-Object-Meta-?: \xf0\x9f\x91\x8d' not found in [b'HTTP/1.1 200 OK', b'Content-Type: message/rfc822', b'X-Object-Meta-?: \xf0\x9f\x91\x8d,\xe2\x98\x85', b'Etag: e689f443a0bda0ec5aa99bc4a26e3ec1', b'Last-Modified: Tue, 09 Jun 2026 16:43:28 GMT', b'X-Timestamp: 1781023407.45024', b'X-Backend-Timestamp: 1781023407.45024', b'X-Backend-Data-Timestamp: 1781023407.45024', b'X-Backend-Durable-Timestamp: 1781023407.45024', b'Accept-Ranges: bytes', b'Content-Length: 33', b'Date: Tue, 09 Jun 2026 16:43:27 GMT', b'Connection: close', b'', b'']
  FAILED test/unit/proxy/test_server.py::TestReplicatedObjectController::test_PUT_message_length_using_both_with_crazy_meta - AssertionError: b'X-Object-Meta-?: \xf0\x9f\x91\x8d' not found in [b'HTTP/1.1 200 OK', b'Content-Type: message/rfc822', b'X-Object-Meta-?: \xf0\x9f\x91\x8d,\xe2\x98\x85', b'Etag: e689f443a0bda0ec5aa99bc4a26e3ec1', b'Last-Modified: Tue, 09 Jun 2026 16:43:58 GMT', b'X-Timestamp: 1781023437.84664', b'X-Backend-Timestamp: 1781023437.84664', b'X-Backend-Data-Timestamp: 1781023437.84664', b'X-Backend-Durable-Timestamp: 1781023437.84664', b'Accept-Ranges: bytes', b'Content-Length: 33', b'Date: Tue, 09 Jun 2026 16:43:57 GMT', b'Connection: close', b'', b'']
  ```

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/swift/+bug/2156199/+subscriptions




More information about the Ubuntu-openstack-bugs mailing list