[Bug 1470580] Re: unprivileged lxc containers fails with custom bridge

2016-01-08 Thread Launchpad Bug Tracker
[Expired for lxc (Ubuntu) because there has been no activity for 60
days.]

** Changed in: lxc (Ubuntu)
   Status: Incomplete => Expired

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

Title:
  unprivileged lxc containers fails with custom bridge

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

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


[Bug 1470580] Re: unprivileged lxc containers fails with custom bridge

2016-01-08 Thread Launchpad Bug Tracker
[Expired for lxc (Ubuntu) because there has been no activity for 60
days.]

** Changed in: lxc (Ubuntu)
   Status: Incomplete => Expired

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

Title:
  unprivileged lxc containers fails with custom bridge

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1470580/+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 1470580] Re: unprivileged lxc containers fails with custom bridge

2015-11-09 Thread Stéphane Graber
So was this bug just about you reaching the quota and LXC failing then?

Just checking whether there's an actual bug we need to fix ASAP or if
it's just about better error handling.

** Changed in: lxc (Ubuntu)
   Status: Confirmed => Incomplete

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

Title:
  unprivileged lxc containers fails with custom bridge

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1470580/+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 1470580] Re: unprivileged lxc containers fails with custom bridge

2015-11-09 Thread Stéphane Graber
So was this bug just about you reaching the quota and LXC failing then?

Just checking whether there's an actual bug we need to fix ASAP or if
it's just about better error handling.

** Changed in: lxc (Ubuntu)
   Status: Confirmed => Incomplete

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

Title:
  unprivileged lxc containers fails with custom bridge

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

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


Re: [Bug 1470580] Re: unprivileged lxc containers fails with custom bridge

2015-07-07 Thread Serge Hallyn
Quoting god (1470...@bugs.launchpad.net):
 Thanks for clarification! Would be kinda helpful if lxc-start could
 print actual numbers (X quota configured for bridge123, Y is in use).

Agreed, this would be a huge improvement.  Would you like to re-title
this bug to turn it into a feature request for that?  An 'issue' on the
github tracker at github.com/lxc/lxc may be more likely to yield fruit.

If you're able to submit your own patch that would be even better.

 What's the upper limit on those quota numbers? Can I have 100 bridges
 with 400 interfaces in each?

The limits would be the practical ones, for instance if you are using
a /24 you can only have 254 addresses on the bridge.

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

Title:
  unprivileged lxc containers fails with custom bridge

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1470580/+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


Re: [Bug 1470580] Re: unprivileged lxc containers fails with custom bridge

2015-07-07 Thread Serge Hallyn
Quoting god (1470...@bugs.launchpad.net):
 Thanks for clarification! Would be kinda helpful if lxc-start could
 print actual numbers (X quota configured for bridge123, Y is in use).

Agreed, this would be a huge improvement.  Would you like to re-title
this bug to turn it into a feature request for that?  An 'issue' on the
github tracker at github.com/lxc/lxc may be more likely to yield fruit.

If you're able to submit your own patch that would be even better.

 What's the upper limit on those quota numbers? Can I have 100 bridges
 with 400 interfaces in each?

The limits would be the practical ones, for instance if you are using
a /24 you can only have 254 addresses on the bridge.

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

Title:
  unprivileged lxc containers fails with custom bridge

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

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


[Bug 1470580] Re: unprivileged lxc containers fails with custom bridge

2015-07-07 Thread god
Thanks for clarification! Would be kinda helpful if lxc-start could
print actual numbers (X quota configured for bridge123, Y is in use).
What's the upper limit on those quota numbers? Can I have 100 bridges
with 400 interfaces in each?

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

Title:
  unprivileged lxc containers fails with custom bridge

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1470580/+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 1470580] Re: unprivileged lxc containers fails with custom bridge

2015-07-07 Thread god
Thanks for clarification! Would be kinda helpful if lxc-start could
print actual numbers (X quota configured for bridge123, Y is in use).
What's the upper limit on those quota numbers? Can I have 100 bridges
with 400 interfaces in each?

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

Title:
  unprivileged lxc containers fails with custom bridge

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

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


[Bug 1470580] Re: unprivileged lxc containers fails with custom bridge

2015-07-06 Thread god
cat /etc/lxc/lxc-usernet

# USERNAME TYPE BRIDGE COUNT
x veth ibr1 8
x veth xbr1 8
x veth ubr1 8

cat .local/share/lxc/asterisk/config
# Template used to create this container: /usr/share/lxc/templates/lxc-download
# Parameters passed to the template: -d ubuntu -r vivid -a amd64
# For additional config options, please look at lxc.container.conf(5)

# Distribution configuration
lxc.include = /usr/share/lxc/config/ubuntu.common.conf
lxc.include = /usr/share/lxc/config/ubuntu.userns.conf
lxc.arch = x86_64

# Container specific configuration
lxc.include = /etc/lxc/default.conf
lxc.id_map = u 0 10 65536
lxc.id_map = g 0 10 65536
lxc.rootfs = /home/x/.local/share/lxc/asterisk/rootfs
lxc.utsname = asterisk

# Network configuration
lxc.network.type = veth
lxc.network.link = ubr1
lxc.network.flags = up
lxc.network.name = internal
#lxc.network.ipv4 = 10.1.8.2/24
#lxc.network.ipv4.gateway = 10.1.8.1

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

Title:
  unprivileged lxc containers fails with custom bridge

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

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


[Bug 1470580] Re: unprivileged lxc containers fails with custom bridge

2015-07-06 Thread god
Also, what does Quota reached. mean? What kind of quota is that?

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

Title:
  unprivileged lxc containers fails with custom bridge

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1470580/+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 1470580] Re: unprivileged lxc containers fails with custom bridge

2015-07-06 Thread god
cat /etc/lxc/lxc-usernet

# USERNAME TYPE BRIDGE COUNT
x veth ibr1 8
x veth xbr1 8
x veth ubr1 8

cat .local/share/lxc/asterisk/config
# Template used to create this container: /usr/share/lxc/templates/lxc-download
# Parameters passed to the template: -d ubuntu -r vivid -a amd64
# For additional config options, please look at lxc.container.conf(5)

# Distribution configuration
lxc.include = /usr/share/lxc/config/ubuntu.common.conf
lxc.include = /usr/share/lxc/config/ubuntu.userns.conf
lxc.arch = x86_64

# Container specific configuration
lxc.include = /etc/lxc/default.conf
lxc.id_map = u 0 10 65536
lxc.id_map = g 0 10 65536
lxc.rootfs = /home/x/.local/share/lxc/asterisk/rootfs
lxc.utsname = asterisk

# Network configuration
lxc.network.type = veth
lxc.network.link = ubr1
lxc.network.flags = up
lxc.network.name = internal
#lxc.network.ipv4 = 10.1.8.2/24
#lxc.network.ipv4.gateway = 10.1.8.1

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

Title:
  unprivileged lxc containers fails with custom bridge

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1470580/+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 1470580] Re: unprivileged lxc containers fails with custom bridge

2015-07-06 Thread god
Btw, is there a way to make logging to actually work and log everything?
Maybe add --logging-indeed-log or smth like that in addition to existing -l and 
--logfile?

** Changed in: lxc (Ubuntu)
   Status: Incomplete = Confirmed

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

Title:
  unprivileged lxc containers fails with custom bridge

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1470580/+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 1470580] Re: unprivileged lxc containers fails with custom bridge

2015-07-06 Thread god
Also, what does Quota reached. mean? What kind of quota is that?

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

Title:
  unprivileged lxc containers fails with custom bridge

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

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


[Bug 1470580] Re: unprivileged lxc containers fails with custom bridge

2015-07-06 Thread god
Btw, is there a way to make logging to actually work and log everything?
Maybe add --logging-indeed-log or smth like that in addition to existing -l and 
--logfile?

** Changed in: lxc (Ubuntu)
   Status: Incomplete = Confirmed

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

Title:
  unprivileged lxc containers fails with custom bridge

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

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


[Bug 1470580] Re: unprivileged lxc containers fails with custom bridge

2015-07-06 Thread god
lxc-start -n asterisk -F
Quota reached.
lxc-start: start.c: lxc_spawn: 1000 failed to create configured network
lxc-start: start.c: __lxc_start: 1164 failed to spawn 'asterisk'
lxc-start: start.c: main: 344 The container failed to start.
lxc-start: start.c: main 348 Additional information can be obtained by setting 
the --logfile and --logpriority options.

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

Title:
  unprivileged lxc containers fails with custom bridge

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

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


[Bug 1470580] Re: unprivileged lxc containers fails with custom bridge

2015-07-06 Thread god
lxc-start -n asterisk -F
Quota reached.
lxc-start: start.c: lxc_spawn: 1000 failed to create configured network
lxc-start: start.c: __lxc_start: 1164 failed to spawn 'asterisk'
lxc-start: start.c: main: 344 The container failed to start.
lxc-start: start.c: main 348 Additional information can be obtained by setting 
the --logfile and --logpriority options.

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

Title:
  unprivileged lxc containers fails with custom bridge

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1470580/+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


Re: [Bug 1470580] Re: unprivileged lxc containers fails with custom bridge

2015-07-06 Thread Serge Hallyn
Quoting god (1470...@bugs.launchpad.net):
 Also, what does Quota reached. mean? What kind of quota is that?

The last number in /etc/lxc/lxc-usernic gives the # nics which the user
may connect to the specified bridge.  The active connections are listed
in /run/lxc/nics.  If Quota Reached is seen then the user already has
as many nics as allowed connected to the bridge.

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

Title:
  unprivileged lxc containers fails with custom bridge

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1470580/+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


Re: [Bug 1470580] Re: unprivileged lxc containers fails with custom bridge

2015-07-06 Thread Serge Hallyn
Quoting god (1470...@bugs.launchpad.net):
 Also, what does Quota reached. mean? What kind of quota is that?

The last number in /etc/lxc/lxc-usernic gives the # nics which the user
may connect to the specified bridge.  The active connections are listed
in /run/lxc/nics.  If Quota Reached is seen then the user already has
as many nics as allowed connected to the bridge.

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

Title:
  unprivileged lxc containers fails with custom bridge

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

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


[Bug 1470580] Re: unprivileged lxc containers fails with custom bridge

2015-07-03 Thread Serge Hallyn
Indeed, on every error path lxc_user_nic should print an error message
to stderr, but that doesn't end up in the log.  If you simply do

lxc-start -n container_name -F

What do you see?  On one failure case I see Quota reached, for
instance.

When I copy/paste your network config excerpt, it does work for me.

Is it possible that x does not have an allocation in /etc/lxc/lxc-
usernet for lxcbr0, but the configuration file still has 'lxc.include =
/etc/lxc/default.conf' ?

Please show the full container config and the full /etc/lxc/lxc-usernet
(obfuscated if need be, but then please with annotations so we can be
certain).


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

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

Title:
  unprivileged lxc containers fails with custom bridge

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

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


[Bug 1470580] Re: unprivileged lxc containers fails with custom bridge

2015-07-03 Thread Serge Hallyn
Indeed, on every error path lxc_user_nic should print an error message
to stderr, but that doesn't end up in the log.  If you simply do

lxc-start -n container_name -F

What do you see?  On one failure case I see Quota reached, for
instance.

When I copy/paste your network config excerpt, it does work for me.

Is it possible that x does not have an allocation in /etc/lxc/lxc-
usernet for lxcbr0, but the configuration file still has 'lxc.include =
/etc/lxc/default.conf' ?

Please show the full container config and the full /etc/lxc/lxc-usernet
(obfuscated if need be, but then please with annotations so we can be
certain).


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

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

Title:
  unprivileged lxc containers fails with custom bridge

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1470580/+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 1470580] Re: unprivileged lxc containers fails with custom bridge

2015-07-02 Thread god
Commenting those 2 lines change nothing - same error. Is there way to
figure out what exactly went wrong while creating network? The log seems
way too brief about it even with debug enabled.

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

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

Title:
  unprivileged lxc containers fails with custom bridge

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1470580/+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 1470580] Re: unprivileged lxc containers fails with custom bridge

2015-07-02 Thread god
Commenting those 2 lines change nothing - same error. Is there way to
figure out what exactly went wrong while creating network? The log seems
way too brief about it even with debug enabled.

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

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

Title:
  unprivileged lxc containers fails with custom bridge

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

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