[Bug 1166841] Re: lxc-create fails if LANG != en_GB.UTF-8

2013-04-10 Thread James Hunt
What about the C locale? This fails as well.

Maybe the ubuntu template could check LANG. If not set, or not in
$(locale -a) or /usr/share/i18n/SUPPORTED, revert to en_US.UTF-8?

-- 
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/1166841

Title:
  lxc-create fails if LANG != en_GB.UTF-8

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1166841] Re: lxc-create fails if LANG != en_GB.UTF-8

2013-04-10 Thread Serge Hallyn
** Changed in: lxc (Ubuntu)
   Status: Invalid = Triaged

** Summary changed:

- lxc-create fails if LANG != en_GB.UTF-8
+ lxc-create fails if LANG is not valid

-- 
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/1166841

Title:
  lxc-create fails if LANG is not valid

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1166841] Re: lxc-create fails if LANG != en_GB.UTF-8

2013-04-09 Thread James Hunt
Adding '-x' to the ubuntu template the problem is with locale-gen:

+ configure_ubuntu /var/lib/lxc/raring/rootfs raring raring
+ rootfs=/var/lib/lxc/raring/rootfs
+ hostname=raring
+ release=raring
+ cat
+ cat
+ cat
+ '[' '!' -f /var/lib/lxc/raring/rootfs/etc/init/container-detect.conf ']'
+ '[' -z '' ']'
+ chroot /var/lib/lxc/raring/rootfs useradd --create-home -s /bin/bash ubuntu
+ echo ubuntu:ubuntu
+ chroot /var/lib/lxc/raring/rootfs chpasswd
+ '[' -z fr_CA.UTF8 ']'
+ chroot /var/lib/lxc/raring/rootfs locale-gen fr_CA.UTF8
lxc-create: failed to execute template 'ubuntu'
lxc-create: aborted

-- 
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/1166841

Title:
  lxc-create fails if LANG != en_GB.UTF-8

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1166841] Re: lxc-create fails if LANG != en_GB.UTF-8

2013-04-09 Thread Simon Déziel
It seems there is a typo in your fr_CA.UTF8 locale. Maybe try with
fr_CA.UTF-8 ?

-- 
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/1166841

Title:
  lxc-create fails if LANG != en_GB.UTF-8

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1166841] Re: lxc-create fails if LANG != en_GB.UTF-8

2013-04-09 Thread Serge Hallyn
serge@sergelap:~$ sudo chroot /var/lib/lxc/r2/rootfs local-gen fr_CA.UTF8
chroot: failed to run command 'local-gen': No such file or directory
serge@sergelap:~$ which locale-gen
/usr/sbin/locale-gen
serge@sergelap:~$ sudo chroot /var/lib/lxc/r2/rootfs /usr/sbin/locale-gen 
fr_CA.UTF8

Looks like the template needs to specify the full path for locale-gen

** Changed in: lxc (Ubuntu)
   Status: New = Triaged

** Changed in: lxc (Ubuntu)
   Importance: Undecided = High

-- 
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/1166841

Title:
  lxc-create fails if LANG != en_GB.UTF-8

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1166841] Re: lxc-create fails if LANG != en_GB.UTF-8

2013-04-09 Thread Simon Déziel
another typo local-gen != locale-gen :)

-- 
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/1166841

Title:
  lxc-create fails if LANG != en_GB.UTF-8

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1166841] Re: lxc-create fails if LANG != en_GB.UTF-8

2013-04-09 Thread Serge Hallyn
Actually, I was able to reproduce this before, but now I can't...

** Changed in: lxc (Ubuntu)
 Assignee: (unassigned) = Serge Hallyn (serge-hallyn)

** Changed in: lxc (Ubuntu)
   Status: Triaged = In Progress

-- 
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/1166841

Title:
  lxc-create fails if LANG != en_GB.UTF-8

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1166841] Re: lxc-create fails if LANG != en_GB.UTF-8

2013-04-09 Thread Serge Hallyn
fr_CA.UTF8 is simply not a valid locale.  With

@Simon - apologies, I hadn't seen your first comment.  Indeed, this bug
is invalid.

** Changed in: lxc (Ubuntu)
   Status: In Progress = Invalid

-- 
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/1166841

Title:
  lxc-create fails if LANG != en_GB.UTF-8

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs