s390x: autopkgtest failure caused by big-endian

Bug #1973158 reported by Olivier Gayot
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libcloud (Debian)
Fix Released
Unknown
libcloud (Ubuntu)
Fix Released
Undecided
Olivier Gayot

Bug Description

Autopkgtest fails on upstream version 3.4.1 due to endianness used on s390x.

        chan.recv.side_effect = ['🤦'.encode('utf-32'), 'a', 'b']

        stdout = client._consume_stdout(chan).getvalue()
> self.assertEqual('\x00\x00&\x01\x00ab', stdout)
E AssertionError: '\x00\x00&\x01\x00ab' != '\x00\x00\x00\x01&ab'
E - ��&�ab
E ? --
E + ���&ab
E ? ++

test/compute/test_ssh_client.py:563: AssertionError

Tags: patch
Olivier Gayot (ogayot)
Changed in libcloud (Ubuntu):
assignee: nobody → Olivier Gayot (ogayot)
Olivier Gayot (ogayot)
summary: - s390x: autopkgfailure caused by big-endian
+ s390x: autopkgtest failure caused by big-endian
Revision history for this message
Olivier Gayot (ogayot) wrote :

Uploading debdiff. Autopkgtest succeeded locally on s390x.

Patches sent upstream and merged. Thanks @tomaz-muraus for being so responsive to PRs on Github!

Patches also forwarded to Debian.

Changed in libcloud (Ubuntu):
status: New → Confirmed
Revision history for this message
Lukas Märdian (slyon) wrote :

Thank you! LGTM and matches the upstream fix.

Changed in libcloud (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "1-3.4.1-2ubuntu1__3.4.1-2ubuntu2.debdiff" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
Changed in libcloud (Debian):
status: Unknown → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libcloud - 3.4.1-2ubuntu2

---------------
libcloud (3.4.1-2ubuntu2) kinetic; urgency=medium

  * Fix autopkgtest failure on s390x (big-endian) (LP: #1973158)

 -- Olivier Gayot <email address hidden> Wed, 11 May 2022 15:51:43 +0200

Changed in libcloud (Ubuntu):
status: In Progress → Fix Released
Changed in libcloud (Debian):
status: New → Fix Released
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.