Juju deploy, ignoring overlay variables?

Hej,

I’m trying to deploy a bundle (stable/openstack), and I’m using an overlay to replace/add/customize the deployment.

However, it seems that the variables that are defined in the overlay are not applied to the model. Hence, I ran

juju deploy bundle.yaml --overlay myOverlay.yaml  --debug --verbose
13:27:26 INFO  juju.cmd supercommand.go:56 running juju [2.9.34 20b8212e62c5d122e63141825a7733bf66c4c5a9 gc go1.18.5]
13:27:26 DEBUG juju.cmd supercommand.go:57   args: []string{"/snap/juju/20510/bin/juju", "deploy", "/home/bob/operations/openstack-bundles/stable/openstack-base/bundle.yaml", "--overlay", "/home/bob/operations/openstack-bundles/stable/overlays/openstack-base-spaces-overlay.yaml", "--verbose", "--debug"}
13:27:26 INFO  juju.juju api.go:78 connecting to API addresses: [10.30.0.10:17070 10.30.0.9:17070 10.30.0.11:17070]
13:27:26 DEBUG juju.api apiclient.go:1153 successfully dialed "wss://10.30.0.10:17070/api"
13:27:26 INFO  juju.api apiclient.go:688 connection established to "wss://10.30.0.10:17070/api"
13:27:26 INFO  juju.juju api.go:78 connecting to API addresses: [10.30.0.10:17070 10.30.0.9:17070 10.30.0.11:17070]
13:27:26 DEBUG juju.api apiclient.go:1153 successfully dialed "wss://10.30.0.11:17070/model/448bb5ec-afa1-44ae-85ec-b11cf3476ad6/api"
13:27:26 INFO  juju.api apiclient.go:688 connection established to "wss://10.30.0.11:17070/model/448bb5ec-afa1-44ae-85ec-b11cf3476ad6/api"
13:27:26 INFO  juju.juju api.go:330 API endpoints changed from [10.30.0.11:17070 10.30.0.10:17070 10.30.0.9:17070] to [10.30.0.11:17070 10.30.0.9:17070 10.30.0.10:17070]
13:27:26 WARN  cmd bundle.go:198 These fields
 document 0:
  line 9: unrecognized field "name"
  line 11: unrecognized field "variables"

 document 0:
  line 1: unrecognized field "variables"
will be ignored during deployment
13:27:26 DEBUG juju.cmd.juju.application.deployer bundlehandler.go:280 model: &bundlechanges.Model{
    Applications: {

And when I later ran to check if any of the variables found in the overlay had been modified/adjusted, they were not. They kept their values from the bundle.

I’ve compared my overlay file to other overlay files, and they seem to be similar enough. If I use one of the provided overlays, I get the same complaint about ‘unrecognized field “variables”’.

Any idea what mistake I’m making?

BR/Patrik

Additional comment. The only thing in the overlay file thats read/acted upon is the machine section. Applications, with bindings are also ignored.

Feels that I’m missing something really fundamental here. Help.

I’m running juju 2.9.34 from snap.

BR/Patrik