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-Telefonica-OCS5-PedroGusso-OP-237579$ fce --debug build --layer maas --steps maas:configure_nodes 2023-04-12-15:16:27 root DEBUG fce --debug build --layer maas --steps maas:configure_nodes 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-maas:lma-maas 2023-04-12-15:16:27 root ERROR [localhost] Command failed: juju export-bundle -m foundations-maas:lma-maas 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 2023-04-12-15:16:27 root ERROR [localhost] Command failed: juju export-bundle -m foundations-maas:openstack 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 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_nodes 2023-04-12-15:16:30 root DEBUG [localhost]: maas root machines read hostname=brtlvmrs0754co domain=maas 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.maas' 2023-04-12-15:16:36 root DEBUG [localhost]: maas root machines read hostname=brtlvmrs0754co domain=maas 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-networking-configuration aws7he 2023-04-12-15:16:43 root ERROR [localhost] Command failed: maas root machine restore-networking-configuration aws7he 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 ('brtlvmrs0754co.maas', 'control-nodes'):Command '['maas', 'root', 'machine', 'restore-networking-configuration', 'aws7he']' returned non-zero exit status 2. Traceback (most recent call last): File "/usr/local/bin/fce", line 33, in <module> sys.exit(load_entry_point('foundationcloudengine', 'console_scripts', 'fce')()) File "/home/ubuntu/cpe-foundation/foundationcloudengine/foundationcloudengine/main.py", line 217, in entry_point sys.exit(main(sys.argv[1:])) File "/home/ubuntu/cpe-foundation/foundationcloudengine/foundationcloudengine/main.py", line 208, in main opts.func(opts) File "/home/ubuntu/cpe-foundation/foundationcloudengine/foundationcloudengine/command.py", line 91, in run self.run_per_layer(layer, args) File "/home/ubuntu/cpe-foundation/foundationcloudengine/foundationcloudengine/commands/build.py", line 46, in run_per_layer build_and_validate_if_needed( File "/home/ubuntu/cpe-foundation/foundationcloudengine/foundationcloudengine/commands/build.py", line 98, in build_and_validate_if_needed layer.build_outer(only_steps) File "/home/ubuntu/cpe-foundation/foundationcloudengine/foundationcloudengine/layers/baselayer.py", line 145, in build_outer self.build(only_steps=only_steps) File "/home/ubuntu/cpe-foundation/foundationcloudengine/foundationcloudengine/layers/maaslayer.py", line 2075, in build super().run_steps(only_steps) File "/home/ubuntu/cpe-foundation/foundationcloudengine/foundationcloudengine/layers/steppedbaselayer.py", line 109, in run_steps step.build() File "/home/ubuntu/cpe-foundation/foundationcloudengine/foundationcloudengine/layers/configuremaas.py", line 1052, in build configurenodes.apply_buckets_config( File "/home/ubuntu/cpe-foundation/foundationcloudengine/foundationcloudengine/configurenodes.py", line 1404, in apply_buckets_config configurator.apply_configs_to_machines() File "/home/ubuntu/cpe-foundation/foundationcloudengine/foundationcloudengine/configurenodes.py", line 1061, in apply_configs_to_machines logging.info("%s:%s" % (t, threadpool[t].result())) File "/usr/lib/python3.10/concurrent/futures/_base.py", line 451, in result return self.__get_result() File "/usr/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result raise self._exception File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) File "/home/ubuntu/cpe-foundation/foundationcloudengine/foundationcloudengine/configurenodes.py", line 1027, in apply_config_to_machine self.setup_networking(machine_info, config) File "/home/ubuntu/cpe-foundation/foundationcloudengine/foundationcloudengine/configurenodes.py", line 883, in setup_networking clear_network_config(self.maas_profile, str(machine_info["system_id"])) File "/home/ubuntu/cpe-foundation/foundationcloudengine/foundationcloudengine/maas_cli.py", line 931, in clear_network_config restore_networking_configuration(maas_profile, system_id) File "/home/ubuntu/cpe-foundation/foundationcloudengine/foundationcloudengine/maas_cli.py", line 1587, in restore_networking_configuration return local_parse_json(command) File "/home/ubuntu/cpe-foundation/foundationcloudengine/foundationcloudengine/remotehelpers.py", line 288, in local_parse_json return json.loads(local(cmd, **kwargs)) File "/home/ubuntu/cpe-foundation/foundationcloudengine/foundationcloudengine/remotehelpers.py", line 266, in local return run_cmd(cmd, target_machine, **kwargs) File "/home/ubuntu/cpe-foundation/foundationcloudengine/foundationcloudengine/remotehelpers.py", line 197, in run_cmd raise subprocess.CalledProcessError( subprocess.CalledProcessError: Command '['maas', 'root', 'machine', 'restore-networking-configuration', 'aws7he']' returned non-zero exit status 2.
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> exit(load_ entry_point( 'foundationclou dengine' , 'console_scripts', 'fce')()) ubuntu/ cpe-foundation/ foundationcloud engine/ foundationcloud engine/ main.py" , line 217, in entry_point exit(main( sys.argv[ 1:])) ubuntu/ cpe-foundation/ foundationcloud engine/ foundationcloud engine/ main.py" , line 208, in main ubuntu/ cpe-foundation/ foundationcloud engine/ foundationcloud engine/ command. py", line 91, in run run_per_ layer(layer, args) ubuntu/ cpe-foundation/ foundationcloud engine/ foundationcloud engine/ commands/ build.py" , line 46, in run_per_layer and_validate_ if_needed( ubuntu/ cpe-foundation/ foundationcloud engine/ foundationcloud engine/ commands/ build.py" , line 98, in build_and_ validate_ if_needed build_outer( only_steps) ubuntu/ cpe-foundation/ foundationcloud engine/ foundationcloud engine/ layers/ baselayer. py", line 145, in build_outer build(only_ steps=only_ steps) ubuntu/ cpe-foundation/ foundationcloud engine/ foundationcloud engine/ layers/ maaslayer. py", line 2075, in build ).run_steps( only_steps) ubuntu/ cpe-foundation/ foundationcloud engine/ foundationcloud engine/ layers/ steppedbaselaye r.py", line 109, in run_steps ubuntu/ cpe-foundation/ foundationcloud engine/ foundationcloud engine/ layers/ configuremaas. py", line 1052, in build des.apply_ buckets_ config( ubuntu/ cpe-foundation/ foundationcloud engine/ foundationcloud engine/ configurenodes. py", line 1404, in apply_buckets_ config r.apply_ configs_ to_machines( ) ubuntu/ cpe-foundation/ foundationcloud engine/ foundationcloud engine/ configurenodes. py", line 1061, in apply_configs_ to_machines info("% s:%s" % (t, threadpool[ t].result( ))) python3. 10/concurrent/ futures/ _base.py" , line 451, in result python3. 10/concurrent/ futures/ _base.py" , line 403, in __get_result python3. 10/concurrent/ futures/ thread. py", line 58, in run ubuntu/ cpe-foundation/ foundationcloud engine/ foundationcloud engine/ configurenodes. py", line 1027, in apply_config_ to_machine setup_networkin g(machine_ info, config) ubuntu/ cpe-foundation/ foundationcloud engine/ foundationcloud engine/ configurenodes. py", line 883, in setup_networking network_ config( self.maas_ profile, str(machine_ info["system_ id"])) ubuntu/ cpe-foundation/ foundationcloud engine/ foundationcloud engine/ maas_cli. py", line 931, in clear_network_ config networking_ configuration( maas_profile, system_id) ubuntu/ cpe-foundation/ foundationcloud engine/ foundationcloud engine/ maas_cli. py", line 1587, in restore_ networking_ configuration json(command) ubuntu/ cpe-foundation/ foundationcloud engine/ foundationcloud engine/ remotehelpers. py", line 288, in local_parse_json local(cmd, **kwargs)) ubuntu/ cpe-foundation/ foundationcloud engine/ foundationcloud engine/ remotehelpers. py", line 266, in local ubuntu/ cpe-foundation/ foundationcloud engine/ foundationcloud engine/ remotehelpers. py", line 197, in run_cmd CalledProcessEr ror( CalledProcessEr ror: Command '['maas', 'root', 'machine', 'restore- networking- configuration' , 'aws7he']' returned non-zero exit status 2.
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/
sys.
File "/home/
sys.
File "/home/
opts.func(opts)
File "/home/
self.
File "/home/
build_
File "/home/
layer.
File "/home/
self.
File "/home/
super(
File "/home/
step.build()
File "/home/
configureno
File "/home/
configurato
File "/home/
logging.
File "/usr/lib/
return self.__get_result()
File "/usr/lib/
raise self._exception
File "/usr/lib/
result = self.fn(*self.args, **self.kwargs)
File "/home/
self.
File "/home/
clear_
File "/home/
restore_
File "/home/
return local_parse_
File "/home/
return json.loads(
File "/home/
return run_cmd(cmd, target_machine, **kwargs)
File "/home/
raise subprocess.
subprocess.