Comment 1 for bug 2015411

Revision history for this message
Andre Ruiz (andre-ruiz) wrote :

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.