Sometimes juju 2.1.2 reports "unexpected number of interfaces in response from creating device" when vlan interfaces are used with maas
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
High
|
Unassigned |
Bug Description
As a fork of this bug for aliases:
https:/
https:/
When multiple VLANs are used with Juju, it sometimes reports: "unexpected number of interfaces in response from creating device: [0xc82bd645b0 0xc82bd64680 0xc82bd64750 0xc82bd648f0]"
'Sometimes' because other machines seem to be ok with this fact.
The address printing is not very useful but it is clear that the issue is in part due to the fact that there are multiple interfaces present for a single MAC address (I use VLAN interfaces to have multiple subnets to test network spaces).
I don't remember having the same issue with juju 2.2 beta 2 and maas 2.2 rc1
dmitriis@
2.1.2-xenial-amd64
MAAS versions + machine dump:
https:/
dmitriis@
model: default
machines:
"4":
juju-status:
current: started
since: 25 Apr 2017 10:22:02Z
version: 2.1.2
dns-name: 10.0.16.4
ip-addresses:
- 10.0.16.4
- 10.0.32.4
- 10.0.7.131
- 10.0.7.132
- 10.0.9.3
instance-id: s3xatf
machine-status:
current: running
message: Deployed
since: 25 Apr 2017 10:21:46Z
series: xenial
containers:
4/lxd/0:
current: down
message: agent is not communicating with the server
since: 25 Apr 2017 10:27:49Z
current: provisioning error
message: 'unexpected number of interfaces in response from creating device:
since: 25 Apr 2017 10:27:49Z
series: xenial
4/lxd/1:
current: down
message: agent is not communicating with the server
since: 25 Apr 2017 10:29:06Z
current: provisioning error
message: 'unexpected number of interfaces in response from creating device:
since: 25 Apr 2017 10:29:06Z
series: xenial
4/lxd/2:
current: down
message: agent is not communicating with the server
since: 25 Apr 2017 10:30:22Z
current: provisioning error
message: 'unexpected number of interfaces in response from creating device:
since: 25 Apr 2017 10:30:22Z
series: xenial
4/lxd/3:
current: down
message: agent is not communicating with the server
since: 25 Apr 2017 10:33:48Z
current: provisioning error
message: 'can''t get info for image ''juju/
since: 25 Apr 2017 10:33:48Z
series: xenial
constraints: tags=compute
hardware: arch=amd64 cores=48 mem=393204M tags=compute,
----
ᚠ 2.1 provider/
func (env *maasEnviron) allocateContain
...
interface_set := device.
if len(interface_set) != 1 {
// Shouldn't be possible as machine.
// one interface.
return nil, errors.
}
primaryNICVLAN := interface_
--
goomaasapi
// InterfaceSet implements Device.
func (d *device) InterfaceSet() []Interface {
result := make([]Interface, len(d.interface
for i, v := range d.interfaceSet {
v.controller = d.controller
result[i] = v
}
return result
}
Changed in juju: | |
status: | New → Triaged |
importance: | Undecided → High |
tags: | added: maas network |
tags: | added: vlan |