Skip to contentSkip to conversation

Misc fixes patches

GIT PULL Applied Daniel P. Berrangé 3 participants 11 messages Nov 23 – Dec 1 Crypto API

lore
Share & tools
lore
#1 lore raw

[PULL 5/6] docs: document 'unavailable' state is no longer output

In reply to Daniel P. Berrangé

The concept of unavailable trace events no longer exists so this enum entry was obsolete.

Fixes f5c576734881 ("trace: stop tracking static disabled state")
---
 docs/about/removed-features.rst | 8 ++++++++
 1 file changed, 8 insertions(+)
docs/about/removed-features.rst +8 -0
index 225841bd9bb..3a05891db2b 100644
@@ -802,6 +802,14 @@ The ability to instrument QEMU helper functions with vCPU-aware trace
 points was removed in 7.0.
 
 
+``unavailable`` state no longer reported for trace events (removed in 11.2)
+'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
+
+Trace events are now unconditionally built-in to all QEMU builds,
+so the concept of an 'unavailable' trace event no longer exists.
+The ``TraceEventState`` value ``unavailable`` can thus never
+be reported and has been removed from the schema.
+
 Human Monitor Protocol (HMP) commands
 -------------------------------------
 
Signature · 1 line
2.56.1
#2 lore raw

[PULL 1/6] crypto: avoid overwriting Error object erasing keyslot

In reply to Daniel P. Berrangé

When erasing a keyslot we deliberately ignore some errors and carry on trying to erase as much as possible. This results in overwriting Error objects and triggering an assertion. Don't pass in the &local_err, if errp is already set.

---
 crypto/block-luks.c | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)
crypto/block-luks.c +5 -6
index 0926ad28f0c..c6ac3b2e29b 100644
@@ -1148,14 +1148,12 @@ qcrypto_block_luks_erase_key(QCryptoBlock *block,
     slot->active = QCRYPTO_BLOCK_LUKS_KEY_SLOT_DISABLED;
 
     ret = qcrypto_block_luks_store_header(block, writefunc,
-                                          opaque, &local_err);
+                                          opaque, errp);
 
-    if (ret < 0) {
-        error_propagate(errp, local_err);
-    }
     /*
-     * Now try to erase the key material, even if the header
-     * update failed
+     * Note: errp may be non-NULL from this point onwards,
+     * as we carry trying to erase key material even in the
+     * face of errors
      */
     for (i = 0; i < QCRYPTO_BLOCK_LUKS_ERASE_ITERATIONS; i++) {
         if (qcrypto_random_bytes(garbagesplitkey,
@@ -1169,6 +1167,7 @@ qcrypto_block_luks_erase_key(QCryptoBlock *block,
             if (i > 0) {
                 return -1;
             }
+            local_err = NULL;
         }
         if (writefunc(block,
                       slot->key_offset_sector * QCRYPTO_BLOCK_LUKS_SECTOR_SIZE,
Signature · 1 line
2.56.1
#3 lore raw

[PULL 2/6] crypto: add newline in error hint messages

In reply to Daniel P. Berrangé

The error_append_hint() API contract requires messages to end with a newline character.

---
 crypto/block-luks.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
crypto/block-luks.c +4 -4
index c6ac3b2e29b..e98bf33bf9a 100644
@@ -1671,7 +1671,7 @@ qcrypto_block_luks_amend_add_keyslot(QCryptoBlock *block,
 
     if (qcrypto_block_luks_find_key(block, old_password, master_key,
                                     readfunc, opaque, errp) < 0) {
-        error_append_hint(errp, "Failed to retrieve the master key");
+        error_append_hint(errp, "Failed to retrieve the master key\n");
         return -1;
     }
 
@@ -1684,7 +1684,7 @@ qcrypto_block_luks_amend_add_keyslot(QCryptoBlock *block,
     /* Now set the new keyslots */
     if (qcrypto_block_luks_store_key(block, keyslot, new_password, master_key,
                                      iter_time, writefunc, opaque, errp)) {
-        error_append_hint(errp, "Failed to write to keyslot %i", keyslot);
+        error_append_hint(errp, "Failed to write to keyslot %i\n", keyslot);
         return -1;
     }
     return 0;
@@ -1782,7 +1782,7 @@ qcrypto_block_luks_amend_erase_keyslots(QCryptoBlock *block,
 
         if (qcrypto_block_luks_erase_key(block, keyslot,
                                          writefunc, opaque, errp)) {
-            error_append_hint(errp, "Failed to erase keyslot %i", keyslot);
+            error_append_hint(errp, "Failed to erase keyslot %i\n", keyslot);
             return -1;
         }
 
@@ -1835,7 +1835,7 @@ qcrypto_block_luks_amend_erase_keyslots(QCryptoBlock *block,
             }
             if (qcrypto_block_luks_erase_key(block, i, writefunc,
                 opaque, errp)) {
-                error_append_hint(errp, "Failed to erase keyslot %zu", i);
+                error_append_hint(errp, "Failed to erase keyslot %zu\n", i);
                 return -1;
             }
         }
Signature · 1 line
2.56.1
#4 lore raw

[PULL 3/6] tests/functional: update to newer sunxi kernel package

In reply to Daniel P. Berrangé

The version we currently reference has been deleted from the the apt.armbian.com host. 6.6.44 is the next oldest build that is available.

---
 tests/functional/arm/test_bpim2u.py     | 19 ++++++++++---------
 tests/functional/arm/test_cubieboard.py | 15 ++++++++-------
 tests/functional/arm/test_orangepi.py   | 19 ++++++++++---------
 tests/functional/arm/test_replay.py     | 12 ++++++------
 4 files changed, 34 insertions(+), 31 deletions(-)
tests/functional/arm/test_bpim2u.py +10 -9
index 9192a2fbec4..e6fd80ae9d0 100755
@@ -14,9 +14,10 @@
 class BananaPiMachine(LinuxKernelTest):
 
     ASSET_DEB = Asset(
-        ('https://apt.armbian.com/pool/main/l/linux-6.6.16/'
-         'linux-image-current-sunxi_24.2.1_armhf__6.6.16-Seb3e-D6b4a-P2359-Ce96bHfe66-HK01ba-V014b-B067e-R448a.deb'),
-        '3d968c15b121ede871dce49d13ee7644d6f74b6b121b84c9a40f51b0c80d6d22')
+        ('https://apt.armbian.com/pool/main/l/linux-6.6.44/'
+         'linux-image-current-sunxi_24.8.2_armhf__6.6.44-'
+         'S7213-D53de-P4ceb-C697eH5c21-HK01ba-V014b-B58e9-R448a.deb'),
+        'd960131bed01a8bf48882ff133a37826dfdce84138f9a82e0bea331ba795fe78')
 
     ASSET_INITRD = Asset(
         ('https://github.com/groeck/linux-build-test/raw/'
@@ -37,8 +38,8 @@ class BananaPiMachine(LinuxKernelTest):
     def test_arm_bpim2u(self):
         self.set_machine('bpim2u')
         kernel_path = self.archive_extract(
-            self.ASSET_DEB, member='boot/vmlinuz-6.6.16-current-sunxi')
-        dtb_path = ('usr/lib/linux-image-6.6.16-current-sunxi/'
+            self.ASSET_DEB, member='boot/vmlinuz-6.6.44-current-sunxi')
+        dtb_path = ('usr/lib/linux-image-6.6.44-current-sunxi/'
                     'sun8i-r40-bananapi-m2-ultra.dtb')
         dtb_path = self.archive_extract(self.ASSET_DEB, member=dtb_path)
 
@@ -56,8 +57,8 @@ def test_arm_bpim2u(self):
     def test_arm_bpim2u_initrd(self):
         self.set_machine('bpim2u')
         kernel_path = self.archive_extract(
-            self.ASSET_DEB, member='boot/vmlinuz-6.6.16-current-sunxi')
-        dtb_path = ('usr/lib/linux-image-6.6.16-current-sunxi/'
+            self.ASSET_DEB, member='boot/vmlinuz-6.6.44-current-sunxi')
+        dtb_path = ('usr/lib/linux-image-6.6.44-current-sunxi/'
                     'sun8i-r40-bananapi-m2-ultra.dtb')
         dtb_path = self.archive_extract(self.ASSET_DEB, member=dtb_path)
         initrd_path = self.uncompress(self.ASSET_INITRD)
@@ -89,8 +90,8 @@ def test_arm_bpim2u_gmac(self):
 
         deb_path = self.ASSET_DEB.fetch()
         kernel_path = self.archive_extract(
-            self.ASSET_DEB, member='boot/vmlinuz-6.6.16-current-sunxi')
-        dtb_path = ('usr/lib/linux-image-6.6.16-current-sunxi/'
+            self.ASSET_DEB, member='boot/vmlinuz-6.6.44-current-sunxi')
+        dtb_path = ('usr/lib/linux-image-6.6.44-current-sunxi/'
                     'sun8i-r40-bananapi-m2-ultra.dtb')
         dtb_path = self.archive_extract(self.ASSET_DEB, member=dtb_path)
         rootfs_path = self.uncompress(self.ASSET_ROOTFS)
tests/functional/arm/test_cubieboard.py +8 -7
index b536c2f77a0..eeafc26f90d 100755
@@ -13,9 +13,10 @@
 class CubieboardMachine(LinuxKernelTest):
 
     ASSET_DEB = Asset(
-        ('https://apt.armbian.com/pool/main/l/linux-6.6.16/'
-         'linux-image-current-sunxi_24.2.1_armhf__6.6.16-Seb3e-D6b4a-P2359-Ce96bHfe66-HK01ba-V014b-B067e-R448a.deb'),
-        '3d968c15b121ede871dce49d13ee7644d6f74b6b121b84c9a40f51b0c80d6d22')
+        ('https://apt.armbian.com/pool/main/l/linux-6.6.44/'
+         'linux-image-current-sunxi_24.8.2_armhf__6.6.44-'
+         'S7213-D53de-P4ceb-C697eH5c21-HK01ba-V014b-B58e9-R448a.deb'),
+        'd960131bed01a8bf48882ff133a37826dfdce84138f9a82e0bea331ba795fe78')
 
     ASSET_INITRD = Asset(
         ('https://github.com/groeck/linux-build-test/raw/'
@@ -37,8 +38,8 @@ class CubieboardMachine(LinuxKernelTest):
     def test_arm_cubieboard_initrd(self):
         self.set_machine('cubieboard')
         kernel_path = self.archive_extract(
-            self.ASSET_DEB, member='boot/vmlinuz-6.6.16-current-sunxi')
-        dtb_path = ('usr/lib/linux-image-6.6.16-current-sunxi/' +
+            self.ASSET_DEB, member='boot/vmlinuz-6.6.44-current-sunxi')
+        dtb_path = ('usr/lib/linux-image-6.6.44-current-sunxi/' +
                     'sun4i-a10-cubieboard.dtb')
         dtb_path = self.archive_extract(self.ASSET_DEB, member=dtb_path)
         initrd_path = self.uncompress(self.ASSET_INITRD)
@@ -68,8 +69,8 @@ def test_arm_cubieboard_initrd(self):
     def test_arm_cubieboard_sata(self):
         self.set_machine('cubieboard')
         kernel_path = self.archive_extract(
-            self.ASSET_DEB, member='boot/vmlinuz-6.6.16-current-sunxi')
-        dtb_path = ('usr/lib/linux-image-6.6.16-current-sunxi/' +
+            self.ASSET_DEB, member='boot/vmlinuz-6.6.44-current-sunxi')
+        dtb_path = ('usr/lib/linux-image-6.6.44-current-sunxi/' +
                     'sun4i-a10-cubieboard.dtb')
         dtb_path = self.archive_extract(self.ASSET_DEB, member=dtb_path)
 
tests/functional/arm/test_orangepi.py +10 -9
index 09780236553..c9cfdbd67aa 100755
@@ -16,9 +16,10 @@
 class OrangePiMachine(LinuxKernelTest):
 
     ASSET_DEB = Asset(
-        ('https://apt.armbian.com/pool/main/l/linux-6.6.16/'
-         'linux-image-current-sunxi_24.2.1_armhf__6.6.16-Seb3e-D6b4a-P2359-Ce96bHfe66-HK01ba-V014b-B067e-R448a.deb'),
-        '3d968c15b121ede871dce49d13ee7644d6f74b6b121b84c9a40f51b0c80d6d22')
+        ('https://apt.armbian.com/pool/main/l/linux-6.6.44/'
+         'linux-image-current-sunxi_24.8.2_armhf__6.6.44-'
+         'S7213-D53de-P4ceb-C697eH5c21-HK01ba-V014b-B58e9-R448a.deb'),
+        'd960131bed01a8bf48882ff133a37826dfdce84138f9a82e0bea331ba795fe78')
 
     ASSET_INITRD = Asset(
         ('https://github.com/groeck/linux-build-test/raw/'
@@ -49,8 +50,8 @@ class OrangePiMachine(LinuxKernelTest):
     def test_arm_orangepi(self):
         self.set_machine('orangepi-pc')
         kernel_path = self.archive_extract(
-            self.ASSET_DEB, member='boot/vmlinuz-6.6.16-current-sunxi')
-        dtb_path = ('usr/lib/linux-image-6.6.16-current-sunxi/' +
+            self.ASSET_DEB, member='boot/vmlinuz-6.6.44-current-sunxi')
+        dtb_path = ('usr/lib/linux-image-6.6.44-current-sunxi/' +
                     'sun8i-h3-orangepi-pc.dtb')
         dtb_path = self.archive_extract(self.ASSET_DEB, member=dtb_path)
 
@@ -68,8 +69,8 @@ def test_arm_orangepi(self):
     def test_arm_orangepi_initrd(self):
         self.set_machine('orangepi-pc')
         kernel_path = self.archive_extract(
-            self.ASSET_DEB, member='boot/vmlinuz-6.6.16-current-sunxi')
-        dtb_path = ('usr/lib/linux-image-6.6.16-current-sunxi/' +
+            self.ASSET_DEB, member='boot/vmlinuz-6.6.44-current-sunxi')
+        dtb_path = ('usr/lib/linux-image-6.6.44-current-sunxi/' +
                     'sun8i-h3-orangepi-pc.dtb')
         dtb_path = self.archive_extract(self.ASSET_DEB, member=dtb_path)
         initrd_path = self.uncompress(self.ASSET_INITRD)
@@ -99,8 +100,8 @@ def test_arm_orangepi_sd(self):
         self.set_machine('orangepi-pc')
         self.require_netdev('user')
         kernel_path = self.archive_extract(
-            self.ASSET_DEB, member='boot/vmlinuz-6.6.16-current-sunxi')
-        dtb_path = ('usr/lib/linux-image-6.6.16-current-sunxi/' +
+            self.ASSET_DEB, member='boot/vmlinuz-6.6.44-current-sunxi')
+        dtb_path = ('usr/lib/linux-image-6.6.44-current-sunxi/' +
                     'sun8i-h3-orangepi-pc.dtb')
         dtb_path = self.archive_extract(self.ASSET_DEB, member=dtb_path)
         rootfs_path = self.uncompress(self.ASSET_ROOTFS)
tests/functional/arm/test_replay.py +6 -6
index e002e6a2647..ee61f475930 100755
@@ -24,10 +24,10 @@ def test_virt(self):
         self.run_rr(kernel_path, kernel_command_line, console_pattern, shift=1)
 
     ASSET_CUBIE_KERNEL = Asset(
-        ('https://apt.armbian.com/pool/main/l/linux-6.6.16/'
-         'linux-image-current-sunxi_24.2.1_armhf_'
-         '_6.6.16-Seb3e-D6b4a-P2359-Ce96bHfe66-HK01ba-V014b-B067e-R448a.deb'),
-        '3d968c15b121ede871dce49d13ee7644d6f74b6b121b84c9a40f51b0c80d6d22')
+        ('https://apt.armbian.com/pool/main/l/linux-6.6.44/'
+         'linux-image-current-sunxi_24.8.2_armhf__6.6.44-'
+         'S7213-D53de-P4ceb-C697eH5c21-HK01ba-V014b-B58e9-R448a.deb'),
+        'd960131bed01a8bf48882ff133a37826dfdce84138f9a82e0bea331ba795fe78')
 
     ASSET_CUBIE_INITRD = Asset(
         ('https://github.com/groeck/linux-build-test/raw/'
@@ -37,9 +37,9 @@ def test_virt(self):
     def test_cubieboard(self):
         self.set_machine('cubieboard')
         kernel_path = self.archive_extract(self.ASSET_CUBIE_KERNEL,
-            member='boot/vmlinuz-6.6.16-current-sunxi')
+            member='boot/vmlinuz-6.6.44-current-sunxi')
         dtb_path = self.archive_extract(self.ASSET_CUBIE_KERNEL,
-            member='usr/lib/linux-image-6.6.16-current-sunxi/sun4i-a10-cubieboard.dtb')
+            member='usr/lib/linux-image-6.6.44-current-sunxi/sun4i-a10-cubieboard.dtb')
         initrd_path = self.uncompress(self.ASSET_CUBIE_INITRD)
 
         kernel_command_line = (self.KERNEL_COMMON_COMMAND_LINE +
Signature · 1 line
2.56.1
#0 lore raw

The following changes since commit d2f99dc8ddbd8922ae2550f9197a79304c17e692:

Merge tag 'linux-user-next-pull-request' of https://github.com/hdeller/qemu-hppa into staging (2026-11-23 07:29:14 -0800)

are available in the Git repository at:

https://gitlab.com/berrange/qemu tags/misc-fixes-pull-request

for you to fetch changes up to df235ec670000e277ed0490ea974494242c77a61:

qapi: correctly mark 'ignore-unavailable' deprecated (2026-11-23 16:55:20 +0000)

----------------------------------------------------------------
* Fix error handling when erasing keyslots in LUKS driver
* Fix URLs for sunxi kernels in functional tests
* Satisfy Anubis challenges when downloading assets in functional tests by setting Accept header
* Correctly deprecate 'ignore-unavailable' tracing QAPI

----------------------------------------------------------------

Daniel P. Berrangé (6):
crypto: avoid overwriting Error object erasing keyslot
crypto: add newline in error hint messages tests/functional: update to newer sunxi kernel package tests/functional: add Accept header when downloading assets
docs: document 'unavailable' state is no longer output
qapi: correctly mark 'ignore-unavailable' deprecated

 crypto/block-luks.c                     | 19 +++++++++----------
 docs/about/deprecated.rst               |  8 ++++++++
 docs/about/removed-features.rst         |  8 ++++++++
 qapi/trace.json                         | 10 ++++++++--
 tests/functional/arm/test_bpim2u.py     | 19 ++++++++++---------
 tests/functional/arm/test_cubieboard.py | 15 ++++++++-------
 tests/functional/arm/test_orangepi.py   | 19 ++++++++++---------
 tests/functional/arm/test_replay.py     | 12 ++++++------
 tests/functional/qemu_test/asset.py     | 11 ++++++++++-
 9 files changed, 77 insertions(+), 44 deletions(-)
Signature · 1 line
2.56.1
#8 lore raw

[PULL 6/6] qapi: correctly mark 'ignore-unavailable' deprecated

Follow the proper QAPI syntax for deprecations and mention it in the documentation.

---
 docs/about/deprecated.rst |  8 ++++++++
 qapi/trace.json           | 10 ++++++++--
 2 files changed, 16 insertions(+), 2 deletions(-)
docs/about/deprecated.rst +8 -0
index 3362dbf0acd..5ab329705b6 100644
@@ -182,6 +182,14 @@ execution.  This special treatment of ``"no"`` is deprecated.  Use an
 empty string instead.  In a future version, ``"no"`` will be treated as
 a plain file name.
 
+``ignore-unavailable`` in ``trace-event-set-state`` (since 11.2)
+''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
+
+Trace events are now unconditionally built-in to all QEMU builds,
+so the concept of an 'unavailable' trace event no longer exists.
+The ``ignore-unavailable`` parameter in ``trace-event-set-state``
+thus has no effect and should no longer be used.
+
 Human Machine Protocol (HMP) commands
 -------------------------------------
 
qapi/trace.json +8 -2
index 8533e378977..5792a436115 100644
@@ -67,10 +67,14 @@
 # @enable: Whether to enable tracing.
 #
 # @ignore-unavailable: Do not match unavailable events with @name.
-#      Deprecated: since 11.2
 #
 # Since: 2.2
 #
+# Features:
+#
+# @deprecated: @ignore-unavailable no longer has any effect
+#    (since 11.2)
+#
 # .. qmp-example::
 #
 #     -> { "execute": "trace-event-set-state",
@@ -78,4 +82,6 @@
 #     <- { "return": {} }
 ##
 { 'command': 'trace-event-set-state',
-  'data': {'name': 'str', 'enable': 'bool', '*ignore-unavailable': 'bool' } }
+  'data': {'name': 'str', 'enable': 'bool',
+           '*ignore-unavailable': { 'type': 'bool',
+                                    'features': ['deprecated'] } } }
Signature · 1 line
2.56.1
#9 lore raw

[PULL 4/6] tests/functional: add Accept header when downloading assets

In reply to Daniel P. Berrangé

elinux.org is currently triggering an Anubis challenge for requests to download assets. After comparing the headers that curl sends, it was narrowed down to the omission of an "Accept" header.

A missing "Accept" header is a rule that Anubis added a year ago which is known to hit python's urllib:

https://github.com/TecharoHQ/anubis/issues/1346

the bug indicates the rule was removed by default at that time, however, rules have evolved further since then and look like they are hitting our downloads. Adding the header is simple & harmless.

---
 tests/functional/qemu_test/asset.py | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
tests/functional/qemu_test/asset.py +10 -1
index 0abd89e0a38..ffa01aba2fb 100644
@@ -137,7 +137,16 @@ def _try_to_fetch(self, tmp_cache_file):
         for _retries in range(3):
             try:
                 with tmp_cache_file.open("xb") as dst:
-                    with urllib.request.urlopen(self.url) as resp:
+                    req = urllib.request.Request(
+                        self.url,
+                        headers={
+                            # Workaround Anubis challenge which some sites
+                            # trigger when Accept is missing:
+                            #  https://github.com/TecharoHQ/anubis/issues/1346
+                            "Accept": "*/*",
+                        }
+                    )
+                    with urllib.request.urlopen(req) as resp:
                         copyfileobj(resp, dst)
                         length_hdr = resp.getheader("Content-Length")
 
Signature · 1 line
2.56.1
#10 lore raw
In reply to Daniel P. Berrangé
Quoted 10 lines · Daniel P. Berrangé

The following changes since commit d2f99dc8ddbd8922ae2550f9197a79304c17e692:

   Merge tag 'linux-user-next-pull-request' ofhttps://github.com/hdeller/qemu-hppa into staging (2026-11-23 07:29:14 -0800)

are available in the Git repository at:

https://gitlab.com/berrange/qemu tags/misc-fixes-pull-request

for you to fetch changes up to df235ec670000e277ed0490ea974494242c77a61:

Quoted 8 lines
   qapi: correctly mark 'ignore-unavailable' deprecated (2026-11-23 16:55:20 +0000)

----------------------------------------------------------------
* Fix error handling when erasing keyslots in LUKS driver
* Fix URLs for sunxi kernels in functional tests
* Satisfy Anubis challenges when downloading assets in functional tests by setting Accept header
* Correctly deprecate 'ignore-unavailable' tracing QAPI

Applied, thanks.

r~

#5 lore raw

Re: [PULL 3/6] tests/functional: update to newer sunxi kernel package

In reply to Daniel P. Berrangé
Quoted 3 lines · Daniel P. Berrangé

The version we currently reference has been deleted from the the apt.armbian.com host. 6.6.44 is the next oldest build that is available.

This seems to be failing with 404 now - presumably the new image has also been deleted?  Can we ask the armbian project to "pin" some binaries?

Should we skip the tests until we find a more stable location?

Quoted 183 lines
---
  tests/functional/arm/test_bpim2u.py     | 19 ++++++++++---------
  tests/functional/arm/test_cubieboard.py | 15 ++++++++-------
  tests/functional/arm/test_orangepi.py   | 19 ++++++++++---------
  tests/functional/arm/test_replay.py     | 12 ++++++------
  4 files changed, 34 insertions(+), 31 deletions(-)
tests/functional/arm/test_bpim2u.py +10 -9
index 9192a2fbec4..e6fd80ae9d0 100755
@@ -14,9 +14,10 @@
  class BananaPiMachine(LinuxKernelTest):
 
      ASSET_DEB = Asset(
-        ('https://apt.armbian.com/pool/main/l/linux-6.6.16/'
-         'linux-image-current-sunxi_24.2.1_armhf__6.6.16-Seb3e-D6b4a-P2359-Ce96bHfe66-HK01ba-V014b-B067e-R448a.deb'),
-        '3d968c15b121ede871dce49d13ee7644d6f74b6b121b84c9a40f51b0c80d6d22')
+        ('https://apt.armbian.com/pool/main/l/linux-6.6.44/'
+         'linux-image-current-sunxi_24.8.2_armhf__6.6.44-'
+         'S7213-D53de-P4ceb-C697eH5c21-HK01ba-V014b-B58e9-R448a.deb'),
+        'd960131bed01a8bf48882ff133a37826dfdce84138f9a82e0bea331ba795fe78')
 
      ASSET_INITRD = Asset(
          ('https://github.com/groeck/linux-build-test/raw/'
@@ -37,8 +38,8 @@ class BananaPiMachine(LinuxKernelTest):
      def test_arm_bpim2u(self):
          self.set_machine('bpim2u')
          kernel_path = self.archive_extract(
-            self.ASSET_DEB, member='boot/vmlinuz-6.6.16-current-sunxi')
-        dtb_path = ('usr/lib/linux-image-6.6.16-current-sunxi/'
+            self.ASSET_DEB, member='boot/vmlinuz-6.6.44-current-sunxi')
+        dtb_path = ('usr/lib/linux-image-6.6.44-current-sunxi/'
                      'sun8i-r40-bananapi-m2-ultra.dtb')
          dtb_path = self.archive_extract(self.ASSET_DEB, member=dtb_path)
 
@@ -56,8 +57,8 @@ def test_arm_bpim2u(self):
      def test_arm_bpim2u_initrd(self):
          self.set_machine('bpim2u')
          kernel_path = self.archive_extract(
-            self.ASSET_DEB, member='boot/vmlinuz-6.6.16-current-sunxi')
-        dtb_path = ('usr/lib/linux-image-6.6.16-current-sunxi/'
+            self.ASSET_DEB, member='boot/vmlinuz-6.6.44-current-sunxi')
+        dtb_path = ('usr/lib/linux-image-6.6.44-current-sunxi/'
                      'sun8i-r40-bananapi-m2-ultra.dtb')
          dtb_path = self.archive_extract(self.ASSET_DEB, member=dtb_path)
          initrd_path = self.uncompress(self.ASSET_INITRD)
@@ -89,8 +90,8 @@ def test_arm_bpim2u_gmac(self):
 
          deb_path = self.ASSET_DEB.fetch()
          kernel_path = self.archive_extract(
-            self.ASSET_DEB, member='boot/vmlinuz-6.6.16-current-sunxi')
-        dtb_path = ('usr/lib/linux-image-6.6.16-current-sunxi/'
+            self.ASSET_DEB, member='boot/vmlinuz-6.6.44-current-sunxi')
+        dtb_path = ('usr/lib/linux-image-6.6.44-current-sunxi/'
                      'sun8i-r40-bananapi-m2-ultra.dtb')
          dtb_path = self.archive_extract(self.ASSET_DEB, member=dtb_path)
          rootfs_path = self.uncompress(self.ASSET_ROOTFS)
tests/functional/arm/test_cubieboard.py +8 -7
index b536c2f77a0..eeafc26f90d 100755
@@ -13,9 +13,10 @@
  class CubieboardMachine(LinuxKernelTest):
 
      ASSET_DEB = Asset(
-        ('https://apt.armbian.com/pool/main/l/linux-6.6.16/'
-         'linux-image-current-sunxi_24.2.1_armhf__6.6.16-Seb3e-D6b4a-P2359-Ce96bHfe66-HK01ba-V014b-B067e-R448a.deb'),
-        '3d968c15b121ede871dce49d13ee7644d6f74b6b121b84c9a40f51b0c80d6d22')
+        ('https://apt.armbian.com/pool/main/l/linux-6.6.44/'
+         'linux-image-current-sunxi_24.8.2_armhf__6.6.44-'
+         'S7213-D53de-P4ceb-C697eH5c21-HK01ba-V014b-B58e9-R448a.deb'),
+        'd960131bed01a8bf48882ff133a37826dfdce84138f9a82e0bea331ba795fe78')
 
      ASSET_INITRD = Asset(
          ('https://github.com/groeck/linux-build-test/raw/'
@@ -37,8 +38,8 @@ class CubieboardMachine(LinuxKernelTest):
      def test_arm_cubieboard_initrd(self):
          self.set_machine('cubieboard')
          kernel_path = self.archive_extract(
-            self.ASSET_DEB, member='boot/vmlinuz-6.6.16-current-sunxi')
-        dtb_path = ('usr/lib/linux-image-6.6.16-current-sunxi/' +
+            self.ASSET_DEB, member='boot/vmlinuz-6.6.44-current-sunxi')
+        dtb_path = ('usr/lib/linux-image-6.6.44-current-sunxi/' +
                      'sun4i-a10-cubieboard.dtb')
          dtb_path = self.archive_extract(self.ASSET_DEB, member=dtb_path)
          initrd_path = self.uncompress(self.ASSET_INITRD)
@@ -68,8 +69,8 @@ def test_arm_cubieboard_initrd(self):
      def test_arm_cubieboard_sata(self):
          self.set_machine('cubieboard')
          kernel_path = self.archive_extract(
-            self.ASSET_DEB, member='boot/vmlinuz-6.6.16-current-sunxi')
-        dtb_path = ('usr/lib/linux-image-6.6.16-current-sunxi/' +
+            self.ASSET_DEB, member='boot/vmlinuz-6.6.44-current-sunxi')
+        dtb_path = ('usr/lib/linux-image-6.6.44-current-sunxi/' +
                      'sun4i-a10-cubieboard.dtb')
          dtb_path = self.archive_extract(self.ASSET_DEB, member=dtb_path)
 
tests/functional/arm/test_orangepi.py +10 -9
index 09780236553..c9cfdbd67aa 100755
@@ -16,9 +16,10 @@
  class OrangePiMachine(LinuxKernelTest):
 
      ASSET_DEB = Asset(
-        ('https://apt.armbian.com/pool/main/l/linux-6.6.16/'
-         'linux-image-current-sunxi_24.2.1_armhf__6.6.16-Seb3e-D6b4a-P2359-Ce96bHfe66-HK01ba-V014b-B067e-R448a.deb'),
-        '3d968c15b121ede871dce49d13ee7644d6f74b6b121b84c9a40f51b0c80d6d22')
+        ('https://apt.armbian.com/pool/main/l/linux-6.6.44/'
+         'linux-image-current-sunxi_24.8.2_armhf__6.6.44-'
+         'S7213-D53de-P4ceb-C697eH5c21-HK01ba-V014b-B58e9-R448a.deb'),
+        'd960131bed01a8bf48882ff133a37826dfdce84138f9a82e0bea331ba795fe78')
 
      ASSET_INITRD = Asset(
          ('https://github.com/groeck/linux-build-test/raw/'
@@ -49,8 +50,8 @@ class OrangePiMachine(LinuxKernelTest):
      def test_arm_orangepi(self):
          self.set_machine('orangepi-pc')
          kernel_path = self.archive_extract(
-            self.ASSET_DEB, member='boot/vmlinuz-6.6.16-current-sunxi')
-        dtb_path = ('usr/lib/linux-image-6.6.16-current-sunxi/' +
+            self.ASSET_DEB, member='boot/vmlinuz-6.6.44-current-sunxi')
+        dtb_path = ('usr/lib/linux-image-6.6.44-current-sunxi/' +
                      'sun8i-h3-orangepi-pc.dtb')
          dtb_path = self.archive_extract(self.ASSET_DEB, member=dtb_path)
 
@@ -68,8 +69,8 @@ def test_arm_orangepi(self):
      def test_arm_orangepi_initrd(self):
          self.set_machine('orangepi-pc')
          kernel_path = self.archive_extract(
-            self.ASSET_DEB, member='boot/vmlinuz-6.6.16-current-sunxi')
-        dtb_path = ('usr/lib/linux-image-6.6.16-current-sunxi/' +
+            self.ASSET_DEB, member='boot/vmlinuz-6.6.44-current-sunxi')
+        dtb_path = ('usr/lib/linux-image-6.6.44-current-sunxi/' +
                      'sun8i-h3-orangepi-pc.dtb')
          dtb_path = self.archive_extract(self.ASSET_DEB, member=dtb_path)
          initrd_path = self.uncompress(self.ASSET_INITRD)
@@ -99,8 +100,8 @@ def test_arm_orangepi_sd(self):
          self.set_machine('orangepi-pc')
          self.require_netdev('user')
          kernel_path = self.archive_extract(
-            self.ASSET_DEB, member='boot/vmlinuz-6.6.16-current-sunxi')
-        dtb_path = ('usr/lib/linux-image-6.6.16-current-sunxi/' +
+            self.ASSET_DEB, member='boot/vmlinuz-6.6.44-current-sunxi')
+        dtb_path = ('usr/lib/linux-image-6.6.44-current-sunxi/' +
                      'sun8i-h3-orangepi-pc.dtb')
          dtb_path = self.archive_extract(self.ASSET_DEB, member=dtb_path)
          rootfs_path = self.uncompress(self.ASSET_ROOTFS)
tests/functional/arm/test_replay.py +6 -6
index e002e6a2647..ee61f475930 100755
@@ -24,10 +24,10 @@ def test_virt(self):
          self.run_rr(kernel_path, kernel_command_line, console_pattern, shift=1)
 
      ASSET_CUBIE_KERNEL = Asset(
-        ('https://apt.armbian.com/pool/main/l/linux-6.6.16/'
-         'linux-image-current-sunxi_24.2.1_armhf_'
-         '_6.6.16-Seb3e-D6b4a-P2359-Ce96bHfe66-HK01ba-V014b-B067e-R448a.deb'),
-        '3d968c15b121ede871dce49d13ee7644d6f74b6b121b84c9a40f51b0c80d6d22')
+        ('https://apt.armbian.com/pool/main/l/linux-6.6.44/'
+         'linux-image-current-sunxi_24.8.2_armhf__6.6.44-'
+         'S7213-D53de-P4ceb-C697eH5c21-HK01ba-V014b-B58e9-R448a.deb'),
+        'd960131bed01a8bf48882ff133a37826dfdce84138f9a82e0bea331ba795fe78')
 
      ASSET_CUBIE_INITRD = Asset(
          ('https://github.com/groeck/linux-build-test/raw/'
@@ -37,9 +37,9 @@ def test_virt(self):
      def test_cubieboard(self):
          self.set_machine('cubieboard')
          kernel_path = self.archive_extract(self.ASSET_CUBIE_KERNEL,
-            member='boot/vmlinuz-6.6.16-current-sunxi')
+            member='boot/vmlinuz-6.6.44-current-sunxi')
          dtb_path = self.archive_extract(self.ASSET_CUBIE_KERNEL,
-            member='usr/lib/linux-image-6.6.16-current-sunxi/sun4i-a10-cubieboard.dtb')
+            member='usr/lib/linux-image-6.6.44-current-sunxi/sun4i-a10-cubieboard.dtb')
          initrd_path = self.uncompress(self.ASSET_CUBIE_INITRD)
 
          kernel_command_line = (self.KERNEL_COMMON_COMMAND_LINE +
#6 lore raw

Re: [PULL 3/6] tests/functional: update to newer sunxi kernel package

Quoted 10 lines · Brian Cain
Quoted 3 lines · Daniel P. Berrangé

The version we currently reference has been deleted from the the apt.armbian.com host. 6.6.44 is the next oldest build that is available.

This seems to be failing with 404 now - presumably the new image has also been deleted?  Can we ask the armbian project to "pin" some binaries?

Should we skip the tests until we find a more stable location?

Not sure what the right way to handle it is.  But just in case it turns out we want to skip them - I sent a patch:

https://lore.kernel.org/qemu-devel/[email protected]/

Quoted 177 lines
Quoted 177 lines

---
  tests/functional/arm/test_bpim2u.py     | 19 ++++++++++--------- tests/functional/arm/test_cubieboard.py | 15 ++++++++------- tests/functional/arm/test_orangepi.py   | 19 ++++++++++--------- tests/functional/arm/test_replay.py     | 12 ++++++------

  4 files changed, 34 insertions(+), 31 deletions(-)
tests/functional/arm/test_bpim2u.py +0 -0
index 9192a2fbec4..e6fd80ae9d0 100755
@@ -14,9 +14,10 @@

  class BananaPiMachine(LinuxKernelTest):
        ASSET_DEB = Asset(
-        ('https://apt.armbian.com/pool/main/l/linux-6.6.16/'
- 'linux-image-current-sunxi_24.2.1_armhf__6.6.16-Seb3e-D6b4a-P2359-Ce96bHfe66-HK01ba-V014b-B067e-R448a.deb'),
- '3d968c15b121ede871dce49d13ee7644d6f74b6b121b84c9a40f51b0c80d6d22')
+        ('https://apt.armbian.com/pool/main/l/linux-6.6.44/'
+         'linux-image-current-sunxi_24.8.2_armhf__6.6.44-'
+ 'S7213-D53de-P4ceb-C697eH5c21-HK01ba-V014b-B58e9-R448a.deb'),
+ 'd960131bed01a8bf48882ff133a37826dfdce84138f9a82e0bea331ba795fe78')
        ASSET_INITRD = Asset(
          ('https://github.com/groeck/linux-build-test/raw/'

tests/functional/arm/test_bpim2u.py +0 -0
@@ -37,8 +38,8 @@ class BananaPiMachine(LinuxKernelTest):

      def test_arm_bpim2u(self):
          self.set_machine('bpim2u')
          kernel_path = self.archive_extract(
-            self.ASSET_DEB, member='boot/vmlinuz-6.6.16-current-sunxi') -        dtb_path = ('usr/lib/linux-image-6.6.16-current-sunxi/' +            self.ASSET_DEB, member='boot/vmlinuz-6.6.44-current-sunxi') +        dtb_path = ('usr/lib/linux-image-6.6.44-current-sunxi/' 'sun8i-r40-bananapi-m2-ultra.dtb') dtb_path = self.archive_extract(self.ASSET_DEB, member=dtb_path) @@ -56,8 +57,8 @@ def test_arm_bpim2u(self):
      def test_arm_bpim2u_initrd(self):
          self.set_machine('bpim2u')
          kernel_path = self.archive_extract(
-            self.ASSET_DEB, member='boot/vmlinuz-6.6.16-current-sunxi') -        dtb_path = ('usr/lib/linux-image-6.6.16-current-sunxi/' +            self.ASSET_DEB, member='boot/vmlinuz-6.6.44-current-sunxi') +        dtb_path = ('usr/lib/linux-image-6.6.44-current-sunxi/' 'sun8i-r40-bananapi-m2-ultra.dtb') dtb_path = self.archive_extract(self.ASSET_DEB, member=dtb_path) initrd_path = self.uncompress(self.ASSET_INITRD)

tests/functional/arm/test_bpim2u.py +0 -0
@@ -89,8 +90,8 @@ def test_arm_bpim2u_gmac(self):
             deb_path = self.ASSET_DEB.fetch()

          kernel_path = self.archive_extract(
-            self.ASSET_DEB, member='boot/vmlinuz-6.6.16-current-sunxi') -        dtb_path = ('usr/lib/linux-image-6.6.16-current-sunxi/' +            self.ASSET_DEB, member='boot/vmlinuz-6.6.44-current-sunxi') +        dtb_path = ('usr/lib/linux-image-6.6.44-current-sunxi/' 'sun8i-r40-bananapi-m2-ultra.dtb') dtb_path = self.archive_extract(self.ASSET_DEB, member=dtb_path) rootfs_path = self.uncompress(self.ASSET_ROOTFS)

tests/functional/arm/test_cubieboard.py +0 -0
index b536c2f77a0..eeafc26f90d 100755
@@ -13,9 +13,10 @@

  class CubieboardMachine(LinuxKernelTest):
        ASSET_DEB = Asset(
-        ('https://apt.armbian.com/pool/main/l/linux-6.6.16/'
- 'linux-image-current-sunxi_24.2.1_armhf__6.6.16-Seb3e-D6b4a-P2359-Ce96bHfe66-HK01ba-V014b-B067e-R448a.deb'),
- '3d968c15b121ede871dce49d13ee7644d6f74b6b121b84c9a40f51b0c80d6d22')
+        ('https://apt.armbian.com/pool/main/l/linux-6.6.44/'
+         'linux-image-current-sunxi_24.8.2_armhf__6.6.44-'
+ 'S7213-D53de-P4ceb-C697eH5c21-HK01ba-V014b-B58e9-R448a.deb'),
+ 'd960131bed01a8bf48882ff133a37826dfdce84138f9a82e0bea331ba795fe78')
        ASSET_INITRD = Asset(
          ('https://github.com/groeck/linux-build-test/raw/'

tests/functional/arm/test_cubieboard.py +0 -0
@@ -37,8 +38,8 @@ class CubieboardMachine(LinuxKernelTest):

      def test_arm_cubieboard_initrd(self):
          self.set_machine('cubieboard')
          kernel_path = self.archive_extract(
-            self.ASSET_DEB, member='boot/vmlinuz-6.6.16-current-sunxi') -        dtb_path = ('usr/lib/linux-image-6.6.16-current-sunxi/' + +            self.ASSET_DEB, member='boot/vmlinuz-6.6.44-current-sunxi') +        dtb_path = ('usr/lib/linux-image-6.6.44-current-sunxi/' + 'sun4i-a10-cubieboard.dtb')
          dtb_path = self.archive_extract(self.ASSET_DEB, member=dtb_path) initrd_path = self.uncompress(self.ASSET_INITRD)

tests/functional/arm/test_cubieboard.py +0 -0
@@ -68,8 +69,8 @@ def test_arm_cubieboard_initrd(self):

      def test_arm_cubieboard_sata(self):
          self.set_machine('cubieboard')
          kernel_path = self.archive_extract(
-            self.ASSET_DEB, member='boot/vmlinuz-6.6.16-current-sunxi')
-        dtb_path = ('usr/lib/linux-image-6.6.16-current-sunxi/' +
+            self.ASSET_DEB, member='boot/vmlinuz-6.6.44-current-sunxi')
+        dtb_path = ('usr/lib/linux-image-6.6.44-current-sunxi/' + 'sun4i-a10-cubieboard.dtb')
          dtb_path = self.archive_extract(self.ASSET_DEB, member=dtb_path) diff --git a/tests/functional/arm/test_orangepi.py b/tests/functional/arm/test_orangepi.py index 09780236553..c9cfdbd67aa 100755

tests/functional/arm/test_orangepi.py +0 -0
@@ -16,9 +16,10 @@

  class OrangePiMachine(LinuxKernelTest):
        ASSET_DEB = Asset(
-        ('https://apt.armbian.com/pool/main/l/linux-6.6.16/'
- 'linux-image-current-sunxi_24.2.1_armhf__6.6.16-Seb3e-D6b4a-P2359-Ce96bHfe66-HK01ba-V014b-B067e-R448a.deb'),
- '3d968c15b121ede871dce49d13ee7644d6f74b6b121b84c9a40f51b0c80d6d22')
+        ('https://apt.armbian.com/pool/main/l/linux-6.6.44/'
+         'linux-image-current-sunxi_24.8.2_armhf__6.6.44-'
+ 'S7213-D53de-P4ceb-C697eH5c21-HK01ba-V014b-B58e9-R448a.deb'),
+ 'd960131bed01a8bf48882ff133a37826dfdce84138f9a82e0bea331ba795fe78')
        ASSET_INITRD = Asset(
          ('https://github.com/groeck/linux-build-test/raw/'

tests/functional/arm/test_orangepi.py +0 -0
@@ -49,8 +50,8 @@ class OrangePiMachine(LinuxKernelTest):

      def test_arm_orangepi(self):
          self.set_machine('orangepi-pc')
          kernel_path = self.archive_extract(
-            self.ASSET_DEB, member='boot/vmlinuz-6.6.16-current-sunxi') -        dtb_path = ('usr/lib/linux-image-6.6.16-current-sunxi/' + +            self.ASSET_DEB, member='boot/vmlinuz-6.6.44-current-sunxi') +        dtb_path = ('usr/lib/linux-image-6.6.44-current-sunxi/' + 'sun8i-h3-orangepi-pc.dtb')
          dtb_path = self.archive_extract(self.ASSET_DEB, member=dtb_path) @@ -68,8 +69,8 @@ def test_arm_orangepi(self):
      def test_arm_orangepi_initrd(self):
          self.set_machine('orangepi-pc')
          kernel_path = self.archive_extract(
-            self.ASSET_DEB, member='boot/vmlinuz-6.6.16-current-sunxi') -        dtb_path = ('usr/lib/linux-image-6.6.16-current-sunxi/' + +            self.ASSET_DEB, member='boot/vmlinuz-6.6.44-current-sunxi') +        dtb_path = ('usr/lib/linux-image-6.6.44-current-sunxi/' + 'sun8i-h3-orangepi-pc.dtb')
          dtb_path = self.archive_extract(self.ASSET_DEB, member=dtb_path) initrd_path = self.uncompress(self.ASSET_INITRD)

tests/functional/arm/test_orangepi.py +0 -0
@@ -99,8 +100,8 @@ def test_arm_orangepi_sd(self):
           self.set_machine('orangepi-pc')
           self.require_netdev('user')

          kernel_path = self.archive_extract(
-            self.ASSET_DEB, member='boot/vmlinuz-6.6.16-current-sunxi') -        dtb_path = ('usr/lib/linux-image-6.6.16-current-sunxi/' + +            self.ASSET_DEB, member='boot/vmlinuz-6.6.44-current-sunxi') +        dtb_path = ('usr/lib/linux-image-6.6.44-current-sunxi/' + 'sun8i-h3-orangepi-pc.dtb')
          dtb_path = self.archive_extract(self.ASSET_DEB, member=dtb_path) rootfs_path = self.uncompress(self.ASSET_ROOTFS)

tests/functional/arm/test_replay.py +0 -0
index e002e6a2647..ee61f475930 100755
@@ -24,10 +24,10 @@ def test_virt(self):
           self.run_rr(kernel_path, kernel_command_line, console_pattern, shift=1)

        ASSET_CUBIE_KERNEL = Asset(
-        ('https://apt.armbian.com/pool/main/l/linux-6.6.16/' -         'linux-image-current-sunxi_24.2.1_armhf_'
- '_6.6.16-Seb3e-D6b4a-P2359-Ce96bHfe66-HK01ba-V014b-B067e-R448a.deb'),
- '3d968c15b121ede871dce49d13ee7644d6f74b6b121b84c9a40f51b0c80d6d22') +        ('https://apt.armbian.com/pool/main/l/linux-6.6.44/' +         'linux-image-current-sunxi_24.8.2_armhf__6.6.44-'
+ 'S7213-D53de-P4ceb-C697eH5c21-HK01ba-V014b-B58e9-R448a.deb'),
+ 'd960131bed01a8bf48882ff133a37826dfdce84138f9a82e0bea331ba795fe78') ASSET_CUBIE_INITRD = Asset( ('https://github.com/groeck/linux-build-test/raw/'

tests/functional/arm/test_replay.py +0 -0
@@ -37,9 +37,9 @@ def test_virt(self):

      def test_cubieboard(self):
          self.set_machine('cubieboard')
          kernel_path = self.archive_extract(self.ASSET_CUBIE_KERNEL, -            member='boot/vmlinuz-6.6.16-current-sunxi')
+            member='boot/vmlinuz-6.6.44-current-sunxi') dtb_path = self.archive_extract(self.ASSET_CUBIE_KERNEL, - member='usr/lib/linux-image-6.6.16-current-sunxi/sun4i-a10-cubieboard.dtb') + member='usr/lib/linux-image-6.6.44-current-sunxi/sun4i-a10-cubieboard.dtb') initrd_path = self.uncompress(self.ASSET_CUBIE_INITRD) kernel_command_line = (self.KERNEL_COMMON_COMMAND_LINE +

#7 lore raw

Re: [PULL 3/6] tests/functional: update to newer sunxi kernel package

In reply to Brian Cain
Quoted 8 lines · Brian Cain
Quoted 3 lines · Daniel P. Berrangé

The version we currently reference has been deleted from the the apt.armbian.com host. 6.6.44 is the next oldest build that is available.

This seems to be failing with 404 now - presumably the new image has also been deleted?  Can we ask the armbian project to "pin" some binaries?

I should have done more than the bare minimum version update, and gone straight for the newest possible image to keep ahead of their "cleanup" of old versions.

With regards,
Daniel

Signature · 3 lines
|: https://berrange.com       ~~        https://hachyderm.io/@berrange :|
|: https://libvirt.org          ~~          https://entangle-photo.org :|
|: https://pixelfed.art/berrange   ~~    https://fstop138.berrange.com :|