lxc-start can't parse IPv6 addresses

Bug #1215391 reported by Andre Nathan
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
lxc (Ubuntu)
Fix Released
High
Serge Hallyn
Raring
Fix Released
High
Unassigned

Bug Description

A container with an IPv6 address in its configuration (for example, 'lxc.network.ipv6 = 2001:db8:fedc:abcd::2/80') fails to start with the error below.

    lxc-start 1377083732.942 ERROR lxc_confile - No such file or directory - invalid ipv6 address: 2001:db8:fedc:abcd::2/80

This IPv6 address is valid, however, and the same configuration works fine on 12.04.

Ubuntu Release: Ubuntu 13.04
lxc package version: 0.9.0-0ubuntu3.4

SRU justification
1. impact: container configurations specifying an ipv6 address with a mask fail to start
2. Development fix: remove the mask from ipv6 address before passing it to inet_pton
3. Stable fix: same as development fix
4. test case:
   sudo lxc-create -t ubuntu -n x1
   Echo "lxc.network.ipv6 = 2001:db8:fedc:abcd::2/80" | sudo tee -a /var/lib/lxc/x1/config
   sudo lxc-start -n x1
5. Regression potential: none, we are simply passing the correct buffer to inet_pton.

Related branches

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

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in lxc (Ubuntu):
status: New → Confirmed
Changed in lxc (Ubuntu):
assignee: nobody → Serge Hallyn (serge-hallyn)
importance: Undecided → High
status: Confirmed → Triaged
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Ah, looks like this may have been introduced by commit 12a50cc6ab5c8a4aa0bcb7ddcd7095265f7bb62b:
    Make config api items const

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

This bug was fixed in the package lxc - 0.9.0-0ubuntu23

---------------
lxc (0.9.0-0ubuntu23) saucy; urgency=low

  * 0014-lxc-apparmor-null-terminate-buffer: make sure a value we fread is
    null-terminated (LP: #1215386)
  * 0015-fix-ipv6-pton: call inet_pton on the value without the netmask.
    (LP: #1215391)
 -- Serge Hallyn <email address hidden> Fri, 23 Aug 2013 11:39:55 -0500

Changed in lxc (Ubuntu):
status: Triaged → Fix Released
Changed in lxc (Ubuntu Raring):
status: New → Triaged
importance: Undecided → High
description: updated
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Andre, or anyone else affected,

Accepted lxc into raring-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/lxc/0.9.0-0ubuntu3.5 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 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, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

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

Changed in lxc (Ubuntu Raring):
status: Triaged → Fix Committed
tags: added: verification-needed
Revision history for this message
Andre Nathan (andre-digirati) wrote :

This package (0.9.0-0ubuntu3.5) fxies the bug for me.

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

This bug was fixed in the package lxc - 0.9.0-0ubuntu3.5

---------------
lxc (0.9.0-0ubuntu3.5) raring-proposed; urgency=low

  * 0014-lxc-apparmor-null-terminate-buffer: make sure a value we fread is
    null-terminated (LP: #1215386)
  * 0015-fix-ipv6-pton: call inet_pton on the value without the netmask.
    (LP: #1215391)
 -- Serge Hallyn <email address hidden> Fri, 23 Aug 2013 11:38:57 -0500

Changed in lxc (Ubuntu Raring):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote : Update Released

The verification of this Stable Release Update has completed successfully and the package has now been 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 regresssions.

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.