You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Failed on TASK [bootstrap-host : Run os-net-config command]
TASK [bootstrap-host : Run os-net-config command] ******************************
fatal: [controller-1]: FAILED! => {"changed": true, "cmd": ["os-net-config", "--detailed-exit-codes", "-v", "-c", "/etc/os-net-config/config.json"], "delta": "0:00:00.682815", "end": "2020-01-17 19:47:32.002752", "failed_when_result": true, "msg": "non-zero return code", "rc": 1, "start": "2020-01-17 19:47:31.319937", "stderr": "[2020/01/17 07:47:31 PM] [INFO] Using config file at: /etc/os-net-config/config.json\n[2020/01/17 07:47:31 PM] [INFO] Using mapping file at: /etc/os-net-config/mapping.yaml\n[2020/01/17 07:47:31 PM] [INFO] ENI net config provider created.\n[2020/01/17 07:47:31 PM] [WARNING] Config file failed schema validation at network_config/2:\n {'persist_mapping': False, 'routes': [{'ip_netmask': '', 'next_hop': '172.20.1.26'}], 'addresses': [{'ip_netmask': '172.20.1.26/29'}], 'nic_mapping': None, 'device': 'bond0', 'use_dhcp': False, 'type': 'vlan', 'vlan_id': 144, 'mtu': 9000} is not valid under any of the given schemas\n Sub-schemas tested and not matching:\n - items/oneOf/vlan/routes/items/ip_netmask/oneOf: '' is not valid under any of the given schemas\n -- items/oneOf/vlan/routes/items/ip_netmask/oneOf/ip_cidr_string/oneOf: '' is not valid under any of the given schemas\n --- items/oneOf/vlan/routes/items/ip_netmask/oneOf/ip_cidr_string/oneOf/ipv4_cidr_string/pattern: '' does not match '^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)/(3[0-2]|[1-2][0-9]|[0-9])$'\n --- items/oneOf/vlan/routes/items/ip_netmask/oneOf/ip_cidr_string/oneOf/ipv6_cidr_string/pattern: '' does not match '^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))/(12[0-8]|1[0-1][0-9]|[1-9][0-9]|[0-9])$'\n -- items/oneOf/vlan/routes/items/ip_netmask/oneOf/param/oneOf: '' is not valid under any of the given schemas\n --- items/oneOf/vlan/routes/items/ip_netmask/oneOf/param/oneOf/0/type: '' is not of type 'object'\n --- items/oneOf/vlan/routes/items/ip_netmask/oneOf/param/oneOf/1/type: '' is not of type 'object'\n -- items/oneOf/vlan/routes/items/ip_netmask/oneOf/2/type: '' is not of type 'object'\n[2020/01/17 07:47:31 PM] [INFO] nic1 mapped to: eth4\nTraceback (most recent call last):\n File \"/usr/bin/os-net-config\", line 10, in <module>\n sys.exit(main())\n File \"/usr/lib/python2.7/site-packages/os_net_config/cli.py\", line 204, in main\n provider.add_object(obj)\n File \"/usr/lib/python2.7/site-packages/os_net_config/__init__.py\", line 86, in add_object\n self.add_linux_bond(obj)\n File \"/usr/lib/python2.7/site-packages/os_net_config/__init__.py\", line 167, in add_linux_bond\n raise NotImplementedError(\"add_linux_bond is not implemented.\")\nNotImplementedError: add_linux_bond is not implemented.", "stderr_lines": ["[2020/01/17 07:47:31 PM] [INFO] Using config file at: /etc/os-net-config/config.json", "[2020/01/17 07:47:31 PM] [INFO] Using mapping file at: /etc/os-net-config/mapping.yaml", "[2020/01/17 07:47:31 PM] [INFO] ENI net config provider created.", "[2020/01/17 07:47:31 PM] [WARNING] Config file failed schema validation at network_config/2:", " {'persist_mapping': False, 'routes': [{'ip_netmask': '', 'next_hop': '172.20.1.26'}], 'addresses': [{'ip_netmask': '172.20.1.26/29'}], 'nic_mapping': None, 'device': 'bond0', 'use_dhcp': False, 'type': 'vlan', 'vlan_id': 144, 'mtu': 9000} is not valid under any of the given schemas", " Sub-schemas tested and not matching:", " - items/oneOf/vlan/routes/items/ip_netmask/oneOf: '' is not valid under any of the given schemas", " -- items/oneOf/vlan/routes/items/ip_netmask/oneOf/ip_cidr_string/oneOf: '' is not valid under any of the given schemas", " --- items/oneOf/vlan/routes/items/ip_netmask/oneOf/ip_cidr_string/oneOf/ipv4_cidr_string/pattern: '' does not match '^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)/(3[0-2]|[1-2][0-9]|[0-9])$'", " --- items/oneOf/vlan/routes/items/ip_netmask/oneOf/ip_cidr_string/oneOf/ipv6_cidr_string/pattern: '' does not match '^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))/(12[0-8]|1[0-1][0-9]|[1-9][0-9]|[0-9])$'", " -- items/oneOf/vlan/routes/items/ip_netmask/oneOf/param/oneOf: '' is not valid under any of the given schemas", " --- items/oneOf/vlan/routes/items/ip_netmask/oneOf/param/oneOf/0/type: '' is not of type 'object'", " --- items/oneOf/vlan/routes/items/ip_netmask/oneOf/param/oneOf/1/type: '' is not of type 'object'", " -- items/oneOf/vlan/routes/items/ip_netmask/oneOf/2/type: '' is not of type 'object'", "[2020/01/17 07:47:31 PM] [INFO] nic1 mapped to: eth4", "Traceback (most recent call last):", " File \"/usr/bin/os-net-config\", line 10, in <module>", " sys.exit(main())", " File \"/usr/lib/python2.7/site-packages/os_net_config/cli.py\", line 204, in main", " provider.add_object(obj)", " File \"/usr/lib/python2.7/site-packages/os_net_config/__init__.py\", line 86, in add_object", " self.add_linux_bond(obj)", " File \"/usr/lib/python2.7/site-packages/os_net_config/__init__.py\", line 167, in add_linux_bond", " raise NotImplementedError(\"add_linux_bond is not implemented.\")", "NotImplementedError: add_linux_bond is not implemented."], "stdout": "", "stdout_lines": []}
PLAY RECAP *********************************************************************
controller-1 : ok=19 changed=10 unreachable=0 failed=1 skipped=13 rescued=0 ignored=0
[2020-01-17 19:47:32,079 ERROR cmactivateserverhandler(100)] Skipping installationactivator, got exception Playbook setup-playbook.yml failed
[2020/01/20 04:33:32 AM] [WARNING] Config file failed schema validation at network_config/4:
{'persist_mapping': False, 'routes': [{'ip_netmask': '', 'next_hop': '172.20.1.26'}], 'addresses': [{'ip_netmask': '172.20.1.26/29'}], 'nic_mapping': None, 'device': 'eth5', 'use_dhcp': False, 'type': 'vlan', 'vlan_id': 144, 'mtu': 9000} is not valid under any of the given schemas
Sub-schemas tested and not matching:
- items/oneOf/vlan/routes/items/ip_netmask/oneOf: '' is not valid under any of the given schemas
-- items/oneOf/vlan/routes/items/ip_netmask/oneOf/ip_cidr_string/oneOf: '' is not valid under any of the given schemas
--- items/oneOf/vlan/routes/items/ip_netmask/oneOf/ip_cidr_string/oneOf/ipv4_cidr_string/pattern: '' does not match '^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)/(3[0-2]|[1-2][0-9]|[0-9])$'
--- items/oneOf/vlan/routes/items/ip_netmask/oneOf/ip_cidr_string/oneOf/ipv6_cidr_string/pattern: '' does not match '^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))/(12[0-8]|1[0-1][0-9]|[1-9][0-9]|[0-9])$'
-- items/oneOf/vlan/routes/items/ip_netmask/oneOf/param/oneOf: '' is not valid under any of the given schemas
--- items/oneOf/vlan/routes/items/ip_netmask/oneOf/param/oneOf/0/type: '' is not of type 'object'
--- items/oneOf/vlan/routes/items/ip_netmask/oneOf/param/oneOf/1/type: '' is not of type 'object'
-- items/oneOf/vlan/routes/items/ip_netmask/oneOf/2/type: '' is not of type 'object'
[2020/01/20 04:33:32 AM] [INFO] nic1 mapped to: eth4
[2020/01/20 04:33:32 AM] [INFO] adding interface: eth6
[2020/01/20 04:33:32 AM] [INFO] adding interface: eth5
[2020/01/20 04:33:32 AM] [INFO] adding interface: eth4
[2020/01/20 04:33:32 AM] [INFO] adding vlan: vlan142
[2020/01/20 04:33:32 AM] [INFO] adding vlan: vlan144
[2020/01/20 04:33:32 AM] [INFO] adding custom route for interface: vlan144
Traceback (most recent call last):
File "/usr/bin/os-net-config", line 10, in <module>
sys.exit(main())
File "/usr/lib/python2.7/site-packages/os_net_config/cli.py", line 204, in main
provider.add_object(obj)
File "/usr/lib/python2.7/site-packages/os_net_config/__init__.py", line 56, in add_object
self.add_vlan(obj)
File "/usr/lib/python2.7/site-packages/os_net_config/impl_eni.py", line 181, in add_vlan
self._add_routes(vlan.name, vlan.routes)
File "/usr/lib/python2.7/site-packages/os_net_config/impl_eni.py", line 193, in _add_routes
rt = netaddr.IPNetwork(route.ip_netmask)
File "/usr/lib/python2.7/site-packages/netaddr/ip/__init__.py", line 938, in __init__
raise AddrFormatError('invalid IPNetwork %s' % addr)
netaddr.core.AddrFormatError: invalid IPNetwork
The text was updated successfully, but these errors were encountered:
Failed on TASK [bootstrap-host : Run os-net-config command]
The text was updated successfully, but these errors were encountered: