** Changed in: lxc (Ubuntu Precise)
     Assignee: (unassigned) => Stéphane Graber (stgraber)

** Changed in: lxc (Ubuntu Precise)
       Status: Confirmed => In Progress

** Description changed:

+ == Rationale ==
+ A missing parameter to copy_configuration in lxc-debian is preventing the 
hostname from being written in quite a few files.
+ 
+ The fix is simply to pass the missing parameter.
+ 
+ == Test case ==
+ 1) lxc-create -t debian -n p1
+ 2) lxc-start -n p1
+ 3) Observe the login prompt " login:" instead of "p1 login:"
+ 4) Stop and remove the container
+ 5) Upgrade lxc
+ 6) Try again and observe "p1 login:"
+ 
+ == Regression potential ==
+ Can't think of any, we're really just passing the right value instead of an 
empty string.
+ 
+ 
+ ------ original bug report -------
+ 
  Although this bug looks very similar to  #1046684 , it is not the same.
  With the installed version 0.7.5-3ubuntu66 , I still find the bug existing.
  
  The file, located at /usr/lib/lxc/templates/lxc-debian,   has a simple
  error when copying the configuration and does not provide the "vm" with
  a name.
  
  Assuming this as a source code: 
https://launchpad.net/ubuntu/+archive/primary/+files/lxc_0.7.5.orig.tar.gz
  The bug is present at /lxc-0.7.5/templates/lxc-debian.in
  
  # line 185
  copy_configuration()
  {
-     path=$1
-     rootfs=$2
-     name=$3
+     path=$1
+     rootfs=$2
+     name=$3
  ...
  #line 310
  copy_configuration $path $rootfs
  
  # the fix / line 310
  copy_configuration $path $rootfs $name
  
- 
  My system Details:
  Description:  Ubuntu 12.04.1 LTS
  Release:      12.04
  lxc:
-   Installed: 0.7.5-3ubuntu66
- 
+   Installed: 0.7.5-3ubuntu66
  
  Just that should do the job
  Thanks in advance,
  Francisco

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1111613

Title:
  lxc debian-templates copy_configuration not supplied with $name

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to