failed configuring a static IP for container "1/lxc/0": cannot allocate addresses: instId not supported
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | juju-core |
High
|
Michael Foord | ||
| | 1.25 |
Critical
|
Michael Foord | ||
Bug Description
On amazon I get the following error in the Juju logs:
machine-1[5563]: 2015-09-23 15:33:21 INFO juju.worker runner.go:269 start "lxc-provisioner"
machine-1[5563]: 2015-09-23 15:33:21 INFO juju.worker runner.go:275 stopped "1-container-
machine-1[5563]: 2015-09-23 15:33:21 INFO juju.provisioner provisioner_
machine-1[5563]: 2015-09-23 15:33:21 INFO juju.provisioner provisioner_
machine-1[5563]: 2015-09-23 15:33:21 INFO juju.provisioner provisioner_
machine-1[5563]: 2015-09-23 15:33:21 INFO juju.provisione
machine-1[5563]: 2015-09-23 15:33:22 WARNING juju.provisioner lxc-broker.go:532 failed configuring a static IP for container "1/lxc/0": cannot allocate addresses: instId not supported
machine-1[5563]: 2015-09-23 15:33:22 INFO juju.provisioner lxc-broker.go:114 not allocating static IP for container "1/lxc/0": cannot allocate addresses: instId not supported
It looks like this is to do with the interaction with the recent subnets and spaces code changes and the older container logic. I don't get the error on MAAS.
Currently rewinding through commits to see if/when the error goes away.
| James Tunnicliffe (dooferlad) wrote : | #1 |
| tags: | added: network |
| James Tunnicliffe (dooferlad) wrote : | #2 |
machine-0: 2015-09-24 11:29:44 INFO juju.provisione
machine-0: 2015-09-24 11:29:44 DEBUG juju.provisioner lxc-broker.go:102 trying to allocate static IP for container "0/lxc/1"
machine-0: 2015-09-24 11:29:44 TRACE juju.provisioner lxc-broker.go:477 trying to discover primary network interface
machine-0: 2015-09-24 11:29:44 TRACE juju.provisioner lxc-broker.go:481 not using loopback interface "lo"
machine-0: 2015-09-24 11:29:44 TRACE juju.provisioner lxc-broker.go:487 verifying interface "eth0" has addresses
machine-0: 2015-09-24 11:29:44 TRACE juju.provisioner lxc-broker.go:506 primary network interface is "eth0", address "172.31.20.211"
machine-0: 2015-09-24 11:29:44 DEBUG juju.provisioner lxc-broker.go:549 trying to allocate a static IP for container "0/lxc/1"
machine-0: 2015-09-24 11:29:44 TRACE juju.apiserver apiserver.go:259 <- [2] machine-0 {"RequestId"
machine-0: 2015-09-24 11:29:44 INFO juju.provider.ec2 provider.go:49 opening environment "tmpamz"
machine-0: 2015-09-24 11:29:44 TRACE juju.provider.ec2 environ.go:977 retrieving NICs for instance "i-9942b758"
machine-0: 2015-09-24 11:29:44 TRACE juju.provider.ec2 environ.go:981 instance "i-9942b758" NICs: &ec2.NetworkInt
machine-0: 2015-09-24 11:29:44 TRACE juju.provider.ec2 environ.go:990 found instance "i-9942b758" NICS: []ec2.NetworkIn
| James Tunnicliffe (dooferlad) wrote : | #3 |
Eugh, like breaks where they don't belong. The fragment as it should be is here: http://
| Michael Foord (mfoord) wrote : | #4 |
apiserver/
So this code has never actually been tried with ec2. :-(
| Michael Foord (mfoord) wrote : | #5 |
On a separate note, that error you see in your second log "cannot allocate addresses: no interfaces available" is also worrying. Provisioning the container may have succeeded, but it looks to me like it didn't successfully get an IP address.
| Changed in juju-core: | |
| assignee: | nobody → Michael Foord (mfoord) |
| importance: | Undecided → Critical |
| milestone: | none → 1.25-beta2 |
| James Tunnicliffe (dooferlad) wrote : Re: [Bug 1498982] Re: failed configuring a static IP for container "1/lxc/0": cannot allocate addresses: instId not supported | #6 |
The second note was an EC2 account without a default VPC, which we don't
support, right?
On Thu, Sep 24, 2015 at 4:30 PM, Michael Foord <email address hidden>
wrote:
> ** Changed in: juju-core
> Assignee: (unassigned) => Michael Foord (mfoord)
>
> ** Changed in: juju-core
> Importance: Undecided => Critical
>
> ** Changed in: juju-core
> Milestone: None => 1.25-beta2
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https:/
>
> Title:
> failed configuring a static IP for container "1/lxc/0": cannot
> allocate addresses: instId not supported
>
> Status in juju-core:
> New
>
> Bug description:
> On amazon I get the following error in the Juju logs:
>
> machine-1[5563]: 2015-09-23 15:33:21 INFO juju.worker runner.go:269
> start "lxc-provisioner"
> machine-1[5563]: 2015-09-23 15:33:21 INFO juju.worker runner.go:275
> stopped "1-container-
> machine-1[5563]: 2015-09-23 15:33:21 INFO juju.provisioner
> provisioner_
> machine-1[5563]: 2015-09-23 15:33:21 INFO juju.provisioner
> provisioner_
> details:1/lxc/0
> machine-1[5563]: 2015-09-23 15:33:21 INFO juju.provisioner
> provisioner_
> unknown instances not stopped []
> machine-1[5563]: 2015-09-23 15:33:21 INFO juju.provisione
> lxc-broker.go:88 starting lxc container for machineId: 1/lxc/0
> machine-1[5563]: 2015-09-23 15:33:22 WARNING juju.provisioner
> lxc-broker.go:532 failed configuring a static IP for container "1/lxc/0":
> cannot allocate addresses: instId not supported
> machine-1[5563]: 2015-09-23 15:33:22 INFO juju.provisioner
> lxc-broker.go:114 not allocating static IP for container "1/lxc/0": cannot
> allocate addresses: instId not supported
>
> It looks like this is to do with the interaction with the recent
> subnets and spaces code changes and the older container logic. I don't
> get the error on MAAS.
>
> Currently rewinding through commits to see if/when the error goes
> away.
>
> To manage notifications about this bug go to:
> https:/
>
| Changed in juju-core: | |
| status: | New → Triaged |
| Changed in juju-core: | |
| importance: | Critical → High |
| milestone: | 1.25-beta2 → 1.26-alpha1 |
| Michael Foord (mfoord) wrote : | #7 |
Fix here, manually confirmed to work:
https:/
Needs some tests and I'll propose it and forward port to master.
| Changed in juju-core: | |
| status: | Triaged → In Progress |
| Changed in juju-core: | |
| status: | In Progress → Fix Committed |
| Changed in juju-core: | |
| status: | Fix Committed → Fix Released |


Default VPC with addressable containers on, earlier revision (before the changes that the above error is created from):
machine-1[9862]: 2015-09-23 16:47:50 INFO juju.provisione r.lxc lxc-broker.go:87 starting lxc container for machineId: 1/lxc/0 1-lxc-0"
machine-1[9862]: 2015-09-23 16:47:50 DEBUG juju.provisioner lxc-broker.go:101 trying to allocate static IP for container "1/lxc/0"
machine-1[9862]: 2015-09-23 16:47:50 DEBUG juju.provisioner lxc-broker.go:546 trying to allocate a static IP for container "1/lxc/0"
machine-1[9862]: 2015-09-23 16:47:55 WARNING juju.provisioner lxc-broker.go:529 failed configuring a static IP for container "1/lxc/0": cannot allocate addresses: no interfaces available
machine-1[9862]: 2015-09-23 16:47:55 INFO juju.provisioner lxc-broker.go:113 not allocating static IP for container "1/lxc/0": cannot allocate addresses: no interfaces available
machine-1[9862]: 2015-09-23 16:47:55 DEBUG juju.service discovery.go:65 discovered init system "upstart" from series "trusty"
machine-1[9862]: 2015-09-23 16:47:55 DEBUG juju.container.lxc lxc.go:421 creating lxc container "juju-machine-
I think this is the same as the log when we don't have a default VPC. Will need to check that next.