Skip to contentSkip to conversation

package/lxc: bump to version 4.0.11

PATCH Applied Fabrice Fontaine 5 participants 9 messages Jan 1, 2022 – Feb 19, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/lxc: bump to version 4.0.11

The LXC 4.0 branch is supported until June 2025.
Only bugfixes and securitiy issues get included into the stable bugfix releases, so it's always safe and recommended to keep up and run the latest bugfix release.

https://discuss.linuxcontainers.org/t/lxc-4-0-11-has-been-released/12427

---
 package/lxc/lxc.hash | 2 +-
 package/lxc/lxc.mk   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
package/lxc/lxc.hash +1 -1
index efd7a8e42c..2b58df2f1d 100644
@@ -1,4 +1,4 @@
 # Locally calculated
-sha256  a10c518056d2e497bd600e4ffac2853bdeab1e835bf455a6d87cc8df128bfae9  lxc-4.0.10.tar.gz
+sha256  afa481e17ca9a9cf9fd3d2d7a04e42a8f6bfe60b323909326c968e852cd9f02c  lxc-4.0.11.tar.gz
 sha256  ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6  LICENSE.GPL2
 sha256  dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551  LICENSE.LGPL2.1
package/lxc/lxc.mk +1 -1
index 93f6d2535f..4d63fc14cb 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-LXC_VERSION = 4.0.10
+LXC_VERSION = 4.0.11
 LXC_SITE = https://linuxcontainers.org/downloads/lxc
 LXC_LICENSE = GPL-2.0 (some tools), LGPL-2.1+
 LXC_LICENSE_FILES = LICENSE.GPL2 LICENSE.LGPL2.1
Signature · 6 lines
2.33.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Fabrice Fontaine

The LXC 4.0 branch is supported until June 2025.
Only bugfixes and securitiy issues get included into the stable bugfix releases, so it's always safe and recommended to keep up and run the latest bugfix release.

https://discuss.linuxcontainers.org/t/lxc-4-0-11-has-been-released/12427

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#2 lore raw

Hello Fabrice, Joachim, All,

Le 03/01/2022 à 09:41, Joachim Wiberg a écrit :

Quoted 5 lines · Fabrice Fontaine
Quoted 4 lines

The LXC 4.0 branch is supported until June 2025.
Only bugfixes and securitiy issues get included into the stable bugfix releases, so it's always safe and recommended to keep up and run the latest bugfix release.

Well it also includes new features since this version bump break lxc with all kernel < 5.6 due to the broken fall back when the new mount API is not supported.

We have a test for lxc using a kernel 4.19 that trigger this issue [1].

See lxc.log:

(kernel 5.5)
DEBUG conf - conf.c:lxc_setup_devpts_child:1682 - No new devpts instance will be mounted since no pts devices are required
lxc-start lxc_iperf3 DEBUG conf - conf.c:lxc_setup_dev_console:1966 - Cleared all (0) mounts from "/dev/console"
lxc-start lxc_iperf3 ERROR mount_utils - mount_utils.c:mount_at:661 - No such file or directory - Failed to mount "/proc/self/fd/44" to "/proc/self/fd/43" lxc-start lxc_iperf3 ERROR conf - conf.c:lxc_setup_dev_console:1988 - No such file or directory - Failed to mount "10(/dev/pts/0)" on "43" lxc-start lxc_iperf3 ERROR conf - conf.c:lxc_setup_console:2143 - No such file or directory - Failed to setup console

(kernel 5.6)
lxc-start lxc_iperf3 TRACE mount_utils - mount_utils.c:can_use_mount_api:582 - Kernel supports mount api
lxc-start lxc_iperf3 TRACE mount_utils - mount_utils.c:move_detached_mount:328
- Attach detached mount 45 to filesystem at 43
lxc-start lxc_iperf3 TRACE conf - conf.c:lxc_setup_dev_console:1990 - Setup console "/dev/pts/0"

[1] https://gitlab.com/buildroot.org/buildroot/-/jobs/2006798998

This issue is not yet fixed in lxc stable-4.0 branch.

Can you have a look?

Best regards,
Romain

Quoted 11 lines
Quoted 4 lines

https://discuss.linuxcontainers.org/t/lxc-4-0-11-has-been-released/12427

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#3 lore raw

Hello,

Le 30/01/2022 à 17:36, Romain Naour a écrit :

Quoted 36 lines

Hello Fabrice, Joachim, All,

Le 03/01/2022 à 09:41, Joachim Wiberg a écrit :

Quoted 5 lines · Fabrice Fontaine
Quoted 4 lines

The LXC 4.0 branch is supported until June 2025.
Only bugfixes and securitiy issues get included into the stable bugfix releases, so it's always safe and recommended to keep up and run the latest bugfix release.

Well it also includes new features since this version bump break lxc with all kernel < 5.6 due to the broken fall back when the new mount API is not supported.

We have a test for lxc using a kernel 4.19 that trigger this issue [1].

See lxc.log:

(kernel 5.5)
DEBUG conf - conf.c:lxc_setup_devpts_child:1682 - No new devpts instance will be mounted since no pts devices are required
lxc-start lxc_iperf3 DEBUG conf - conf.c:lxc_setup_dev_console:1966 - Cleared all (0) mounts from "/dev/console"
lxc-start lxc_iperf3 ERROR mount_utils - mount_utils.c:mount_at:661 - No such file or directory - Failed to mount "/proc/self/fd/44" to "/proc/self/fd/43" lxc-start lxc_iperf3 ERROR conf - conf.c:lxc_setup_dev_console:1988 - No such file or directory - Failed to mount "10(/dev/pts/0)" on "43" lxc-start lxc_iperf3 ERROR conf - conf.c:lxc_setup_console:2143 - No such file or directory - Failed to setup console

(kernel 5.6)
lxc-start lxc_iperf3 TRACE mount_utils - mount_utils.c:can_use_mount_api:582 - Kernel supports mount api
lxc-start lxc_iperf3 TRACE mount_utils - mount_utils.c:move_detached_mount:328
- Attach detached mount 45 to filesystem at 43
lxc-start lxc_iperf3 TRACE conf - conf.c:lxc_setup_dev_console:1990 - Setup console "/dev/pts/0"

Quoted 5 lines

[1] https://gitlab.com/buildroot.org/buildroot/-/jobs/2006798998

This issue is not yet fixed in lxc stable-4.0 branch.

Can you have a look?

ping.

Best regards,
Romain

Quoted 17 lines

Best regards,
Romain

Quoted 11 lines
Quoted 4 lines

https://discuss.linuxcontainers.org/t/lxc-4-0-11-has-been-released/12427

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#4 lore raw

Hello,

Quoted 40 lines · Romain Naour

Hello,

Quoted 36 lines · Romain Naour

Hello Fabrice, Joachim, All,

Quoted 5 lines · Joachim Wiberg
Quoted 4 lines · Fabrice Fontaine

The LXC 4.0 branch is supported until June 2025.
Only bugfixes and securitiy issues get included into the stable bugfix releases, so it's always safe and recommended to keep up and run the latest bugfix release.

Well it also includes new features since this version bump break lxc with all kernel < 5.6 due to the broken fall back when the new mount API is not supported.

We have a test for lxc using a kernel 4.19 that trigger this issue [1].

See lxc.log:

(kernel 5.5)
DEBUG conf - conf.c:lxc_setup_devpts_child:1682 - No new devpts instance will be mounted since no pts devices are required
lxc-start lxc_iperf3 DEBUG conf - conf.c:lxc_setup_dev_console:1966 - Cleared all (0) mounts from "/dev/console"
lxc-start lxc_iperf3 ERROR mount_utils - mount_utils.c:mount_at:661 - No such file or directory - Failed to mount "/proc/self/fd/44" to "/proc/self/fd/43" lxc-start lxc_iperf3 ERROR conf - conf.c:lxc_setup_dev_console:1988 - No such file or directory - Failed to mount "10(/dev/pts/0)" on "43" lxc-start lxc_iperf3 ERROR conf - conf.c:lxc_setup_console:2143 - No such file or directory - Failed to setup console

(kernel 5.6)
lxc-start lxc_iperf3 TRACE mount_utils - mount_utils.c:can_use_mount_api:582 - Kernel supports mount api
lxc-start lxc_iperf3 TRACE mount_utils - mount_utils.c:move_detached_mount:328
- Attach detached mount 45 to filesystem at 43
lxc-start lxc_iperf3 TRACE conf - conf.c:lxc_setup_dev_console:1990 - Setup console "/dev/pts/0"

Quoted 7 lines
Quoted 5 lines

[1] https://gitlab.com/buildroot.org/buildroot/-/jobs/2006798998

This issue is not yet fixed in lxc stable-4.0 branch.

Can you have a look?

ping.

How can I reproduce the problem locally so I can open a bug on
https://github.com/lxc/lxc/issues?
I tried to launch run-tests from current master but it is "stuck" in "Building done":

./support/testing/run-tests -o test-output/ -d test-dl/ -k --timeout-multiplier 10 tests.package.test_lxc.TestLxc

15:36:35 TestLxc                                  Starting
15:36:35 TestLxc                                  Building
15:51:04 TestLxc                                  Building done

So I opened test-output/TestLxc-run.log and found out a kernel panic:

Kernel panic - not syncing: No working init found.  Try passing init=

option to kernel. See Linux Documentation/admin-guide/init.rst for guidance

I assume that qemu is not able to start the kernel. Do you have some advice on what could go wrong?

Quoted 22 lines

Best regards,
Romain

Quoted 17 lines

Best regards,
Romain

Quoted 11 lines
Quoted 4 lines

https://discuss.linuxcontainers.org/t/lxc-4-0-11-has-been-released/12427

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

Best Regards,

Fabrice
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#5 lore raw

Hello Fabrice,

Le 19/02/2022 à 16:20, Fabrice Fontaine a écrit :

Quoted 61 lines

Hello,

Quoted 40 lines · Romain Naour

Hello,

Quoted 36 lines · Romain Naour

Hello Fabrice, Joachim, All,

Quoted 5 lines · Joachim Wiberg
Quoted 4 lines · Fabrice Fontaine

The LXC 4.0 branch is supported until June 2025.
Only bugfixes and securitiy issues get included into the stable bugfix releases, so it's always safe and recommended to keep up and run the latest bugfix release.

Well it also includes new features since this version bump break lxc with all kernel < 5.6 due to the broken fall back when the new mount API is not supported.

We have a test for lxc using a kernel 4.19 that trigger this issue [1].

See lxc.log:

(kernel 5.5)
DEBUG conf - conf.c:lxc_setup_devpts_child:1682 - No new devpts instance will be mounted since no pts devices are required
lxc-start lxc_iperf3 DEBUG conf - conf.c:lxc_setup_dev_console:1966 - Cleared all (0) mounts from "/dev/console"
lxc-start lxc_iperf3 ERROR mount_utils - mount_utils.c:mount_at:661 - No such file or directory - Failed to mount "/proc/self/fd/44" to "/proc/self/fd/43" lxc-start lxc_iperf3 ERROR conf - conf.c:lxc_setup_dev_console:1988 - No such file or directory - Failed to mount "10(/dev/pts/0)" on "43" lxc-start lxc_iperf3 ERROR conf - conf.c:lxc_setup_console:2143 - No such file or directory - Failed to setup console

(kernel 5.6)
lxc-start lxc_iperf3 TRACE mount_utils - mount_utils.c:can_use_mount_api:582 - Kernel supports mount api
lxc-start lxc_iperf3 TRACE mount_utils - mount_utils.c:move_detached_mount:328
- Attach detached mount 45 to filesystem at 43
lxc-start lxc_iperf3 TRACE conf - conf.c:lxc_setup_dev_console:1990 - Setup console "/dev/pts/0"

Quoted 7 lines
Quoted 5 lines

[1] https://gitlab.com/buildroot.org/buildroot/-/jobs/2006798998

This issue is not yet fixed in lxc stable-4.0 branch.

Can you have a look?

ping.

How can I reproduce the problem locally so I can open a bug on
https://github.com/lxc/lxc/issues?
I tried to launch run-tests from current master but it is "stuck" in "Building done":

./support/testing/run-tests -o test-output/ -d test-dl/ -k --timeout-multiplier 10 tests.package.test_lxc.TestLxc

15:36:35 TestLxc                                  Starting
15:36:35 TestLxc                                  Building
15:51:04 TestLxc                                  Building done
Quoted 8 lines

So I opened test-output/TestLxc-run.log and found out a kernel panic:

Kernel panic - not syncing: No working init found.  Try passing init=

option to kernel. See Linux Documentation/admin-guide/init.rst for guidance

I assume that qemu is not able to start the kernel. Do you have some advice on what could go wrong?

Weird, can you check your qemu version ?

I'm using qemu 6.1.0 from Fedora 35 and also tested qemu 5.2.0 from Debian 11.

If it still not working, you should be able to reproduce using the Docker image used in gitlab-ci. See utils/docker-run.

Best regards,
Romain

Quoted 22 lines
Quoted 22 lines

Best regards,
Romain

Quoted 17 lines

Best regards,
Romain

Quoted 11 lines
Quoted 4 lines

https://discuss.linuxcontainers.org/t/lxc-4-0-11-has-been-released/12427

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

Quoted 3 lines

Best Regards,

Fabrice

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#6 lore raw
Quoted 67 lines · Romain Naour

Hello Fabrice,

Quoted 63 lines · Fabrice Fontaine

Hello,

Quoted 40 lines · Romain Naour

Hello,

Quoted 36 lines · Romain Naour

Hello Fabrice, Joachim, All,

Quoted 5 lines · Joachim Wiberg
Quoted 4 lines · Fabrice Fontaine

The LXC 4.0 branch is supported until June 2025.
Only bugfixes and securitiy issues get included into the stable bugfix releases, so it's always safe and recommended to keep up and run the latest bugfix release.

Well it also includes new features since this version bump break lxc with all kernel < 5.6 due to the broken fall back when the new mount API is not supported.

We have a test for lxc using a kernel 4.19 that trigger this issue [1].

See lxc.log:

(kernel 5.5)
DEBUG conf - conf.c:lxc_setup_devpts_child:1682 - No new devpts instance will be mounted since no pts devices are required
lxc-start lxc_iperf3 DEBUG conf - conf.c:lxc_setup_dev_console:1966 - Cleared all (0) mounts from "/dev/console"
lxc-start lxc_iperf3 ERROR mount_utils - mount_utils.c:mount_at:661 - No such file or directory - Failed to mount "/proc/self/fd/44" to "/proc/self/fd/43" lxc-start lxc_iperf3 ERROR conf - conf.c:lxc_setup_dev_console:1988 - No such file or directory - Failed to mount "10(/dev/pts/0)" on "43" lxc-start lxc_iperf3 ERROR conf - conf.c:lxc_setup_console:2143 - No such file or directory - Failed to setup console

(kernel 5.6)
lxc-start lxc_iperf3 TRACE mount_utils - mount_utils.c:can_use_mount_api:582 - Kernel supports mount api
lxc-start lxc_iperf3 TRACE mount_utils - mount_utils.c:move_detached_mount:328
- Attach detached mount 45 to filesystem at 43
lxc-start lxc_iperf3 TRACE conf - conf.c:lxc_setup_dev_console:1990 - Setup console "/dev/pts/0"

Quoted 7 lines
Quoted 5 lines

[1] https://gitlab.com/buildroot.org/buildroot/-/jobs/2006798998

This issue is not yet fixed in lxc stable-4.0 branch.

Can you have a look?

ping.

How can I reproduce the problem locally so I can open a bug on
https://github.com/lxc/lxc/issues?
I tried to launch run-tests from current master but it is "stuck" in "Building done":

./support/testing/run-tests -o test-output/ -d test-dl/ -k --timeout-multiplier 10 tests.package.test_lxc.TestLxc

15:36:35 TestLxc                                  Starting
15:36:35 TestLxc                                  Building
15:51:04 TestLxc                                  Building done

So I opened test-output/TestLxc-run.log and found out a kernel panic:

Quoted 8 lines
Quoted 6 lines
Kernel panic - not syncing: No working init found.  Try passing init=

option to kernel. See Linux Documentation/admin-guide/init.rst for guidance

I assume that qemu is not able to start the kernel. Do you have some advice on what could go wrong?

Weird, can you check your qemu version ?

I'm on qemu 6.2.0.

Quoted 5 lines

I'm using qemu 6.1.0 from Fedora 35 and also tested qemu 5.2.0 from Debian 11.

If it still not working, you should be able to reproduce using the Docker image used in gitlab-ci. See utils/docker-run.

OK, I'll try it.

Quoted 31 lines

Best regards,
Romain

Quoted 25 lines
Quoted 22 lines

Best regards,
Romain

Quoted 17 lines

Best regards,
Romain

Quoted 11 lines
Quoted 4 lines

https://discuss.linuxcontainers.org/t/lxc-4-0-11-has-been-released/12427

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

Best Regards,

Fabrice

Best Regards,

Fabrice
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#7 lore raw
In reply to Fabrice Fontaine
Quoted 8 lines · Fabrice Fontaine

The LXC 4.0 branch is supported until June 2025.
Only bugfixes and securitiy issues get included into the stable bugfix releases, so it's always safe and recommended to keep up and run the latest bugfix release.

https://discuss.linuxcontainers.org/t/lxc-4-0-11-has-been-released/12427

Applied to master, thanks.

Regards,
Arnout

Quoted 21 lines
---
  package/lxc/lxc.hash | 2 +-
  package/lxc/lxc.mk   | 2 +-
  2 files changed, 2 insertions(+), 2 deletions(-)
package/lxc/lxc.hash +1 -1
index efd7a8e42c..2b58df2f1d 100644
@@ -1,4 +1,4 @@
  # Locally calculated
-sha256  a10c518056d2e497bd600e4ffac2853bdeab1e835bf455a6d87cc8df128bfae9  lxc-4.0.10.tar.gz
+sha256  afa481e17ca9a9cf9fd3d2d7a04e42a8f6bfe60b323909326c968e852cd9f02c  lxc-4.0.11.tar.gz
  sha256  ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6  LICENSE.GPL2
  sha256  dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551  LICENSE.LGPL2.1
package/lxc/lxc.mk +0 -0
index 93f6d2535f..4d63fc14cb 100644

package/lxc/lxc.mk line 10

Quoted 8 lines
package/lxc/lxc.mk +1 -1
@@ -4,7 +4,7 @@
  #
  ################################################################################
 
-LXC_VERSION = 4.0.10
+LXC_VERSION = 4.0.11
  LXC_SITE = https://linuxcontainers.org/downloads/lxc
  LXC_LICENSE = GPL-2.0 (some tools), LGPL-2.1+
  LXC_LICENSE_FILES = LICENSE.GPL2 LICENSE.LGPL2.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#8 lore raw
In reply to Fabrice Fontaine
Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Fabrice" == Fabrice Fontaine <[email protected]> writes:

The LXC 4.0 branch is supported until June 2025.
Only bugfixes and securitiy issues get included into the stable bugfix releases, so it's always safe and recommended to keep up and run the latest bugfix release.

https://discuss.linuxcontainers.org/t/lxc-4-0-11-has-been-released/12427

Committed to 2021.02.x and 2021.11.x, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot