Closed wehall closed 5 years ago
networks.yml:
oob_cidr: 192.168.30.0/24 oob_allocation_pool_start: 192.168.30.110 oob_allocation_pool_end: 192.168.30.150 oob_inspection_allocation_pool_start: 192.168.30.151 oob_inspection_allocation_pool_end: 192.168.30.176
management_cidr: 172.16.0.0/16 management_allocation_pool_start: 172.16.5.110 management_allocation_pool_end: 172.16.5.150 management_inspection_allocation_pool_start: 172.16.5.151 management_inspection_allocation_pool_end: 172.16.5.176 management_mtu: 1500 management_routes:
cloud_cidr: 10.0.1.0/24 cloud_allocation_pool_start: 10.0.1.1 cloud_allocation_pool_end: 10.0.1.127 cloud_inspection_allocation_pool_start: 10.0.1.128 cloud_inspection_allocation_pool_end: 10.0.1.195 cloud_neutron_allocation_pool_start: 10.0.1.196 cloud_neutron_allocation_pool_end: 10.0.1.254 cloud_mtu: 9000 cloud_neutron_allocation_pool_start: 10.0.1.196 cloud_neutron_allocation_pool_end: 10.0.1.254 cloud_mtu: 9000 cloud_routes:
external_cidr: 129.59.107.0/24 external_allocation_pool_start: 129.59.107.249 external_allocation_pool_end: 129.59.107.249 external_neutron_allocation_pool_start: 129.59.107.250 external_neutron_allocation_pool_end: 129.59.107.250 external_mtu: 1500 external_routes:
Problem in calling project. Withdrawn.
Whenever interfaces_ether_interfaces is referenced, an AnsibleError/KeyError related to "cidr" occurs:
TASK [MichaelRigart.interfaces : Debian | install VLAN packages] **** fatal: [kayobe-seed]: FAILED! => {"msg": "The conditional check 'all_interfaces | selectattr('device', 'match', vlan_interface_regex) | list | length > 0\n' failed. The error was: An unhandled exception occurred while templating '{{ interfaces_ether_interfaces +\n interfaces_bridge_interfaces +\n interfaces_bond_interfaces }}\n'. Error was a <class 'ansible.errors.AnsibleError'>, original message: An unhandled exception occurred while templating '{{ ether_interfaces |\n map('net_interface_obj') |\n list }}\n'. Error was a <type 'exceptions.KeyError'>, original message: cidr\n\nThe error appears to have been in '/isis/src/kayobe/ansible/roles/MichaelRigart.interfaces/tasks/debian.yml': line 11, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Debian | install VLAN packages\n ^ here\n"}
TASK [MichaelRigart.interfaces : Check active Ethernet interface state] ***** fatal: [kayobe-seed]: FAILED! => {"msg": "The conditional check 'interfaces_ether_interfaces is defined' failed. The error was: An unhandled exception occurred while templating '{{ ether_interfaces |\n map('net_interface_obj') |\n list }}\n'. Error was a <type 'exceptions.KeyError'>, original message: cidr\n\nThe error appears to have been in '/isis/src/kayobe/ansible/roles/MichaelRigart.interfaces/tasks/ethernet_configuration.yml': line 3, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Check active Ethernet interface state weh\n ^ here\n"}