runc -v empty output

Bug #1929106 reported by Kir Kolyshkin
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
runc (Ubuntu)
Fix Released
Low
Lucas Kanashiro
Bionic
Fix Released
Undecided
Lucas Kanashiro
Focal
Fix Released
Undecided
Lucas Kanashiro
Groovy
Fix Released
Undecided
Lucas Kanashiro
Hirsute
Fix Released
Undecided
Lucas Kanashiro

Bug Description

[Impact]

Users cannot check the runc version running 'runc --version'. This is not a big deal but it would land along with LP #1927219 which is an important fix.

[Test Plan]

Check if 'runc --version' returns the runc version.

[Where problems could occur]

As usual, we deliver most benefit to our users by delivering an upstream experience. A risk of regressions is part of that.

[Original Message]

Apparently runc is built in some non-standard way, so it does not show its version:

kir@ubu2004:~$ runc -v
runc version spec: 1.0.2-dev
go: go1.13.8
libseccomp: 2.5.1

In the output above, version string is empty and there is no newline added, so we have a version of the spec in the same line. Thus, docker has the same problem reporting runc version:

kir@ubu2004:~$ docker version | grep -A2 runc
 runc:
  Version: spec: 1.0.2-dev
  GitCommit:

For comparison, here is the correct/expected output:

[kir@kir-rhat runc]$ runc -v
runc version 1.0.0-rc93+dev
commit: ba257d2de86e7e530eeb28fe697e206630ef45f8
spec: 1.0.2-dev
go: go1.15.8
libseccomp: 2.5.0

Package information:

kir@ubu2004:~$ dpkg -l runc
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-===========================-============-=================================
ii runc 1.0.0~rc93-0ubuntu1~20.04.2 amd64 Open Container Project - runtime
kir@ubu2004:~$ runc -v
runc version spec: 1.0.2-dev
go: go1.13.8
libseccomp: 2.5.1

CVE References

Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1929106

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
affects: linux (Ubuntu) → runc (Ubuntu)
Changed in runc (Ubuntu):
status: Incomplete → New
Revision history for this message
Lucas Kanashiro (lucaskanashiro) wrote :

Thanks for taking the time to file this bug.

This is a known issue and I already addressed it in my PPA where I am preparing the next version to be uploaded to the archive:

https://launchpad.net/~lucaskanashiro/+archive/ubuntu/container-stack/+packages

Therefore, this will be fixed soon across all supported releases.

Changed in runc (Ubuntu):
status: New → Triaged
description: updated
Revision history for this message
Utkarsh Gupta (utkarsh) wrote :

Hello Kir,

Thanks for taking out time to file this bug and help make Ubuntu server better.

I can very easily reproduce the problem and indeed this is weird. This bug is present since Bionic, at the very least. I'm marking this as "Confirmed" and tagging "server-next" for someone from our team to work on this. Subsequently, I am also marking this as of "low" importance.

Thanks!

Changed in runc (Ubuntu):
status: Triaged → Confirmed
importance: Undecided → Low
tags: added: bite
tags: added: bitesize server-next
removed: bite
tags: removed: bitesize server-next
Revision history for this message
Utkarsh Gupta (utkarsh) wrote :

Eeks, looks like I missed Lucas Kanashiro's comment. Since this is in-progress already, marking so and assigning it to Lucas for posterity. Thanks, Lucas!

Changed in runc (Ubuntu Bionic):
status: New → In Progress
Changed in runc (Ubuntu Focal):
status: New → In Progress
Changed in runc (Ubuntu Groovy):
status: New → In Progress
Changed in runc (Ubuntu Hirsute):
status: New → In Progress
Changed in runc (Ubuntu):
status: Confirmed → In Progress
assignee: nobody → Lucas Kanashiro (lucaskanashiro)
Changed in runc (Ubuntu Bionic):
assignee: nobody → Lucas Kanashiro (lucaskanashiro)
Changed in runc (Ubuntu Focal):
assignee: nobody → Lucas Kanashiro (lucaskanashiro)
Changed in runc (Ubuntu Groovy):
assignee: nobody → Lucas Kanashiro (lucaskanashiro)
Changed in runc (Ubuntu Hirsute):
assignee: nobody → Lucas Kanashiro (lucaskanashiro)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package runc - 1.0.0~rc95-0ubuntu1

---------------
runc (1.0.0~rc95-0ubuntu1) impish; urgency=medium

  * New upstream release.
    - Several regressions were found in 1.0.0-rc93 by upstream and fixed in
      this new release.
      + Ensure the scratch pipe is read during ExportBPF (LP: #1927219).
    - Drop patches applied by upstream:
      + d/patches/CVE-2021-30465/*.patch
      + d/patches/fix-patchpbf-test-on-32-bit.patch
  * d/rules: set VERSION variable when building runc (LP: #1929106).

 -- Lucas Kanashiro <email address hidden> Thu, 20 May 2021 10:40:14 -0300

Changed in runc (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Kir, or anyone else affected,

Accepted runc into hirsute-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/runc/1.0.0~rc95-0ubuntu1~21.04.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-hirsute to verification-done-hirsute. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-hirsute. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in runc (Ubuntu Hirsute):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-hirsute
Changed in runc (Ubuntu Groovy):
status: In Progress → Fix Committed
tags: added: verification-needed-groovy
Revision history for this message
Brian Murray (brian-murray) wrote :

Hello Kir, or anyone else affected,

Accepted runc into groovy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/runc/1.0.0~rc95-0ubuntu1~20.10.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-groovy to verification-done-groovy. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-groovy. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Revision history for this message
Brian Murray (brian-murray) wrote :

Hello Kir, or anyone else affected,

Accepted runc into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/runc/1.0.0~rc95-0ubuntu1~20.04.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-focal to verification-done-focal. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-focal. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in runc (Ubuntu Focal):
status: In Progress → Fix Committed
tags: added: verification-needed-focal
Changed in runc (Ubuntu Bionic):
status: In Progress → Fix Committed
tags: added: verification-needed-bionic
Revision history for this message
Brian Murray (brian-murray) wrote :

Hello Kir, or anyone else affected,

Accepted runc into bionic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/runc/1.0.0~rc95-0ubuntu1~18.04.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-bionic to verification-done-bionic. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-bionic. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Revision history for this message
Ubuntu SRU Bot (ubuntu-sru-bot) wrote : Autopkgtest regression report (runc/1.0.0~rc95-0ubuntu1~20.04.1)

All autopkgtests for the newly accepted runc (1.0.0~rc95-0ubuntu1~20.04.1) for focal have finished running.
The following regressions have been reported in tests triggered by the package:

containerd/1.4.4-0ubuntu1~20.04.2 (s390x, ppc64el, arm64)

Please visit the excuses page listed below and investigate the failures, proceeding afterwards as per the StableReleaseUpdates policy regarding autopkgtest regressions [1].

https://people.canonical.com/~ubuntu-archive/proposed-migration/focal/update_excuses.html#runc

[1] https://wiki.ubuntu.com/StableReleaseUpdates#Autopkgtest_Regressions

Thank you!

Revision history for this message
Ubuntu SRU Bot (ubuntu-sru-bot) wrote : Autopkgtest regression report (runc/1.0.0~rc95-0ubuntu1~21.04.1)

All autopkgtests for the newly accepted runc (1.0.0~rc95-0ubuntu1~21.04.1) for hirsute have finished running.
The following regressions have been reported in tests triggered by the package:

golang-github-containers-common/0.33.4+ds1-1 (s390x, arm64, ppc64el)
golang-github-docker-go-connections/0.4.0-2 (armhf, s390x, amd64, arm64, ppc64el)

Please visit the excuses page listed below and investigate the failures, proceeding afterwards as per the StableReleaseUpdates policy regarding autopkgtest regressions [1].

https://people.canonical.com/~ubuntu-archive/proposed-migration/hirsute/update_excuses.html#runc

[1] https://wiki.ubuntu.com/StableReleaseUpdates#Autopkgtest_Regressions

Thank you!

Revision history for this message
Ubuntu SRU Bot (ubuntu-sru-bot) wrote : Autopkgtest regression report (runc/1.0.0~rc95-0ubuntu1~18.04.1)

All autopkgtests for the newly accepted runc (1.0.0~rc95-0ubuntu1~18.04.1) for bionic have finished running.
The following regressions have been reported in tests triggered by the package:

containerd/1.4.4-0ubuntu1~18.04.2 (ppc64el, s390x, i386, arm64)
containerd/unknown (amd64)

Please visit the excuses page listed below and investigate the failures, proceeding afterwards as per the StableReleaseUpdates policy regarding autopkgtest regressions [1].

https://people.canonical.com/~ubuntu-archive/proposed-migration/bionic/update_excuses.html#runc

[1] https://wiki.ubuntu.com/StableReleaseUpdates#Autopkgtest_Regressions

Thank you!

Revision history for this message
Lucas Kanashiro (lucaskanashiro) wrote :

All comments regarding the reported regressions were added to LP #1927219 and they apply here.

Revision history for this message
Lucas Kanashiro (lucaskanashiro) wrote :

I did the verification of the packages in -proposed in all releases:

Hirsute
-------

ubuntu@hirsute:~/runc/runc-1.0.0-rc95$ dpkg -l runc
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-===========================-============-=================================
ii runc 1.0.0~rc95-0ubuntu1~21.04.1 amd64 Open Container Project - runtime
ubuntu@hirsute:~/runc/runc-1.0.0-rc95$ runc --version
runc version 1.0.0~rc95-0ubuntu1~21.04.1
spec: 1.0.2-dev
go: go1.16.2
libseccomp: 2.5.1

Groovy
------

ubuntu@groovy:~/runc/runc-1.0.0-rc95$ dpkg -l runc
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-===========================-============-=================================
ii runc 1.0.0~rc95-0ubuntu1~20.10.1 amd64 Open Container Project - runtime
ubuntu@groovy:~/runc/runc-1.0.0-rc95$ runc --version
runc version 1.0.0~rc95-0ubuntu1~20.10.1
spec: 1.0.2-dev
go: go1.14.7
libseccomp: 2.5.1

Focal
-----

ubuntu@focal:~/runc/runc-1.0.0-rc95$ dpkg -l runc
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-===========================-============-=================================
ii runc 1.0.0~rc95-0ubuntu1~20.04.1 amd64 Open Container Project - runtime
ubuntu@focal:~/runc/runc-1.0.0-rc95$ runc --version
runc version 1.0.0~rc95-0ubuntu1~20.04.1
spec: 1.0.2-dev
go: go1.13.8
libseccomp: 2.5.1

Bionic
------

ubuntu@bionic:~/runc/runc-1.0.0-rc95$ dpkg -l runc
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-====================-===============-===============-=============================================
ii runc 1.0.0~rc95-0ubu amd64 Open Container Project - runtime
ubuntu@bionic:~/runc/runc-1.0.0-rc95$ runc --version
runc version 1.0.0~rc95-0ubuntu1~18.04.1
spec: 1.0.2-dev
go: go1.13.8
libseccomp: 2.5.1

tags: added: verification-done verification-done-bionic verification-done-focal verification-done-groovy verification-done-hirsute
removed: verification-needed verification-needed-bionic verification-needed-focal verification-needed-groovy verification-needed-hirsute
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package runc - 1.0.0~rc95-0ubuntu1~21.04.1

---------------
runc (1.0.0~rc95-0ubuntu1~21.04.1) hirsute; urgency=medium

  * New upstream release.
    - Several regressions were found in 1.0.0-rc93 by upstream and fixed in
      this new release.
      + Ensure the scratch pipe is read during ExportBPF (LP: #1927219).
    - Drop patches applied by upstream:
      + d/patches/CVE-2021-30465/*.patch
      + d/patches/fix-patchpbf-test-on-32-bit.patch
  * d/rules: set VERSION variable when building runc (LP: #1929106).

 -- Lucas Kanashiro <email address hidden> Thu, 20 May 2021 10:53:22 -0300

Changed in runc (Ubuntu Hirsute):
status: Fix Committed → Fix Released
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Update Released

The verification of the Stable Release Update for runc has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package runc - 1.0.0~rc95-0ubuntu1~20.10.1

---------------
runc (1.0.0~rc95-0ubuntu1~20.10.1) groovy; urgency=medium

  * New upstream release.
    - Several regressions were found in 1.0.0-rc93 by upstream and fixed in
      this new release.
      + Ensure the scratch pipe is read during ExportBPF (LP: #1927219).
    - Drop patches applied by upstream:
      + d/patches/CVE-2021-30465/*.patch
      + d/patches/fix-patchpbf-test-on-32-bit.patch
  * d/rules: set VERSION variable when building runc (LP: #1929106).

 -- Lucas Kanashiro <email address hidden> Thu, 20 May 2021 11:01:11 -0300

Changed in runc (Ubuntu Groovy):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package runc - 1.0.0~rc95-0ubuntu1~18.04.1

---------------
runc (1.0.0~rc95-0ubuntu1~18.04.1) bionic; urgency=medium

  * New upstream release.
    - Several regressions were found in 1.0.0-rc93 by upstream and fixed in
      this new release.
      + Ensure the scratch pipe is read during ExportBPF (LP: #1927219).
    - Drop patches applied by upstream:
      + d/patches/CVE-2021-30465/*.patch
      + d/patches/fix-patchpbf-test-on-32-bit.patch
  * d/rules: set VERSION variable when building runc (LP: #1929106).

 -- Lucas Kanashiro <email address hidden> Thu, 20 May 2021 11:11:34 -0300

Changed in runc (Ubuntu Bionic):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package runc - 1.0.0~rc95-0ubuntu1~20.04.1

---------------
runc (1.0.0~rc95-0ubuntu1~20.04.1) focal; urgency=medium

  * New upstream release.
    - Several regressions were found in 1.0.0-rc93 by upstream and fixed in
      this new release.
      + Ensure the scratch pipe is read during ExportBPF (LP: #1927219).
    - Drop patches applied by upstream:
      + d/patches/CVE-2021-30465/*.patch
      + d/patches/fix-patchpbf-test-on-32-bit.patch
  * d/rules: set VERSION variable when building runc (LP: #1929106).

 -- Lucas Kanashiro <email address hidden> Thu, 20 May 2021 11:06:57 -0300

Changed in runc (Ubuntu Focal):
status: Fix Committed → 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.