Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed on TASK [bootstrap-host : Run os-net-config command] #2

Closed
jackiehjm opened this issue Feb 4, 2020 · 0 comments
Closed

Failed on TASK [bootstrap-host : Run os-net-config command] #2

jackiehjm opened this issue Feb 4, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@jackiehjm
Copy link
Collaborator

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
@jackiehjm jackiehjm added the bug Something isn't working label Feb 4, 2020
@jackiehjm jackiehjm self-assigned this Feb 4, 2020
jackiehjm added a commit that referenced this issue Feb 4, 2020
fix #2

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant