[Bug 879052] Re: user dir binding breaks on nonexistent user

Serge Hallyn 879052 at bugs.launchpad.net
Thu Oct 20 22:01:52 UTC 2011


** Description changed:

  When creating a container with the '-b user' option to the ubuntu
  template, if 'user' does not exist, the resulting container will have a
  bad fstab causing the container to fail to start.  The last line in
  /var/lib/lxc/<container>/fstab then reads:
  
-  /var/lib/lxc/test2/rootfs/ none bind 0 0
+  /var/lib/lxc/test2/rootfs/ none bind 0 0
  
  the template should raise an error if 'user' does not exist.
+ 
+ ===========================
+ SRU Justification
+ 1. Impact: containers creation can appear to have succeeded, with only
+ an easy to miss warning that user binding failed.  But lxc-start will
+ fail due to a bad container fstab entry.
+ 2. Development fix: a small patch to the ubuntu template catches the
+ bad user name early on.
+ 3. Stable Fix: same as development fix.
+ 4. Test case:
+    lxc-create -f /etc/lxc.conf -t ubuntu -n l1 -- -b xyz
+    lxc-start -n l1
+ where xyz is not a valid user.  Creation will appear to succeed, but the
+ container will fail to start.
+ 5. Regression potential:
+    If there is an error in the patch, it could cause problems with
+    ubuntu container creations.
+ ===========================

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/879052

Title:
  user dir binding breaks on nonexistent user

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/879052/+subscriptions



More information about the Ubuntu-server-bugs mailing list