As you might see, it's executed only when `monitor_address_block` variable is defined. Looking at your user_variables, it's set to: monitor_address_block: "{{ cidr_networks.container }}"
From what I can say, you tried to rely on cidr_networks from openstack_user_config, however it's not a valid variable. openstack_user_config used for inventory generation and can't be used that way or referenced directly for variables.
So this result in `monitor_address_block` being undefined as a result.
Hi!
This block of code is responsible for gathering facts: https:/ /opendev. org/openstack/ openstack- ansible/ src/branch/ stable/ xena/playbooks/ ceph-install. yml#L30- L37
As you might see, it's executed only when `monitor_ address_ block` variable is defined. Looking at your user_variables, it's set to: monitor_ address_ block: "{{ cidr_networks. container }}"
From what I can say, you tried to rely on cidr_networks from openstack_ user_config, however it's not a valid variable. openstack_ user_config used for inventory generation and can't be used that way or referenced directly for variables.
So this result in `monitor_ address_ block` being undefined as a result.
I think we have an issue in documentation when saying this: https:/ /opendev. org/openstack/ openstack- ansible/ src/branch/ master/ etc/openstack_ deploy/ user_variables. yml.prod- ceph.example# L18-L20
Basically I believe it should be like this:
``` address_ block: "{{ (container_ networks[ 'container_ address' ]['address' ] ~ '/' ~ container_ networks[ 'container_ address' ]['netmask' ]) | ansible. netcommon. ipaddr( 'network/ prefix' ) }}" address_ block }}" networks[ 'storage_ address' ]['address' ] ~ '/' ~ container_ networks[ 'storage_ address' ]['netmask' ]) | ansible. netcommon. ipaddr( 'network/ prefix' ) }}"
monitor_
public_network: "{{ monitor_
cluster_network: "{{ (container_
```
Can you kindly check if this solution works for you?