StaticIPAddress matching query does not exist.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Committed
|
High
|
Anton Troyanov | ||
3.3 |
Fix Committed
|
High
|
Anton Troyanov | ||
3.4 |
In Progress
|
High
|
Anton Troyanov |
Bug Description
I am deploying MAAS using FCE. During one of the FCE steps it is configuring the nodes. The first time that I configure the nodes things work correctly. If I realize that I need to change something and then reconfigure the nodes I run into this error when it runs the command `maas <user> machine restore-
2023-04-05 20:15:21 maasserver: [error] #######
2023-04-05 20:15:21 maasserver: [error] Traceback (most recent call last):
File "/snap/
rel_obj = self.field.
File "/snap/
return instance.
KeyError: 'gateway_link_ipv4'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/snap/
response = wrapped_
File "/snap/
return view_atomic(*args, **kwargs)
File "/usr/lib/
return func(*args, **kwds)
File "/snap/
response = super()
File "/snap/
response = func(*args, **kwargs)
File "/snap/
stream = srl.render(request)
File "/snap/
self.
File "/snap/
return _any(self.data, self.fields)
File "/snap/
ret = _model(thing, fields)
File "/snap/
ret[
File "/snap/
gateways = machine.
File "/snap/
if self.gateway_
File "/snap/
rel_obj = self.get_
File "/snap/
return qs.get(
File "/snap/
raise self.model.
maasserver.
I found this commit which looks like it could possibly be related:
https:/
Related branches
- Anton Troyanov: Approve
- MAAS Lander: Approve
-
Diff: 106 lines (+66/-2)2 files modifiedsrc/maasserver/api/tests/test_machine.py (+64/-2)
src/maasserver/models/node.py (+2/-0)
- Jack Lloyd-Walters: Approve
- MAAS Lander: Approve
-
Diff: 113 lines (+66/-2)2 files modifiedsrc/maasserver/api/tests/test_machine.py (+64/-2)
src/maasserver/models/node.py (+2/-0)
Changed in maas: | |
milestone: | 3.4.0 → 3.4.x |
Changed in maas: | |
assignee: | nobody → Anton Troyanov (troyanov) |
Changed in maas: | |
milestone: | 3.4.x → 3.5.0 |
Changed in maas: | |
status: | Triaged → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
This is happening on 3.3.2 during an Openstack deployment.
I reduced my entire bucektsconfig to 1 line, and I still get this error, even when cleaning all machines and starting from scratch without any prior config:
disks: []
nics:
- { id: ens1f0, name: ens1f0, nic: 4, subnets: [], type: physical, fabric: openstack, vlan_id: 0, mtu: 9000 }
This is enough to give me:
ubuntu@ brtlvmrs0763co: ~/2023- 01-30-Telefonic a-OCS5- PedroGusso- OP-237579$ fce --debug build --layer maas --steps maas:configure_ nodes nodes maas:lma- maas maas:lma- maas
2023-04-12-15:16:27 root DEBUG fce --debug build --layer maas --steps maas:configure_
2023-04-12-15:16:27 root DEBUG FCE version: 2.18.2
2023-04-12-15:16:27 root DEBUG [localhost]: juju export-bundle -m foundations-
2023-04-12-15:16:27 root ERROR [localhost] Command failed: juju export-bundle -m foundations-
2023-04-12-15:16:27 root ERROR [localhost] STDOUT follows:
b''
2023-04-12-15:16:27 root ERROR [localhost] STDERR follows:
ERROR controller foundations-maas not found
2023-04-12-15:16:27 root DEBUG [localhost]: juju export-bundle -m foundations- maas:openstack maas:openstack
2023-04-12-15:16:27 root ERROR [localhost] Command failed: juju export-bundle -m foundations-
2023-04-12-15:16:27 root ERROR [localhost] STDOUT follows:
b''
2023-04-12-15:16:27 root ERROR [localhost] STDERR follows:
ERROR controller foundations-maas not found
2023-04-12-15:16:27 root DEBUG Running 'zone' project check nodes brtlvmrs0754co domain=maas .maas' brtlvmrs0754co domain=maas networking- configuration aws7he networking- configuration aws7he o.maas' , 'control- nodes') :Command '['maas', 'root', 'machine', 'restore- networking- configuration' , 'aws7he']' returned non-zero exit status 2. bin/fce" , line 33, in <module>
2023-04-12-15:16:27 fce.build INFO Started building layer: maas
2023-04-12-15:16:30 fce.maas INFO Starting step: maas:configure_
2023-04-12-15:16:30 root DEBUG [localhost]: maas root machines read hostname=
2023-04-12-15:16:33 root DEBUG [localhost]: maas root tags create name=control-nodes
2023-04-12-15:16:35 root ERROR [localhost] Command failed: maas root tags create name=control-nodes
2023-04-12-15:16:35 root ERROR [localhost] STDOUT follows:
{"name": ["Tag with this Name already exists."]}
2023-04-12-15:16:35 root ERROR [localhost] STDERR follows:
b''
2023-04-12-15:16:35 root DEBUG [localhost]: maas root tag update-nodes control-nodes add=aws7he
2023-04-12-15:16:36 root INFO Applying config 'control-nodes' to 'brtlvmrs0754co
2023-04-12-15:16:36 root DEBUG [localhost]: maas root machines read hostname=
2023-04-12-15:16:39 root INFO Skipping storage configuration.
2023-04-12-15:16:39 root INFO Setting up networking on 'aws7he'
2023-04-12-15:16:39 root INFO Clearing previous network configuration
2023-04-12-15:16:39 root DEBUG [localhost]: maas root machine restore-
2023-04-12-15:16:43 root ERROR [localhost] Command failed: maas root machine restore-
2023-04-12-15:16:43 root ERROR [localhost] STDOUT follows:
StaticIPAddress matching query does not exist.
2023-04-12-15:16:43 root ERROR [localhost] STDERR follows:
b''
2023-04-12-15:16:43 root ERROR ('brtlvmrs0754c
Traceback (most recent call last):
File "/usr/local/
...