Deployment fails with os-collect-config TypeError: %d format: a number is required, not str
Issue
The deployment fails and this error can be seen in journal log:
Sep 02 07:01:11 osp-controller-rz-01 os-collect-config[5107]: Traceback (most recent call last):
Sep 02 07:01:11 osp-controller-rz-01 os-collect-config[5107]: File "/usr/bin/os-net-config", line 10, in <module>
Sep 02 07:01:11 osp-controller-rz-01 os-collect-config[5107]: sys.exit(main())
Sep 02 07:01:11 osp-controller-rz-01 os-collect-config[5107]: File "/usr/lib/python2.7/site-packages/os_net_config/cli.py", line 269, in main
Sep 02 07:01:11 osp-controller-rz-01 os-collect-config[5107]: obj = objects.object_from_json(iface_json)
Sep 02 07:01:11 osp-controller-rz-01 os-collect-config[5107]: File "/usr/lib/python2.7/site-packages/os_net_config/objects.py", line 47, in object_from_json
Sep 02 07:01:11 osp-controller-rz-01 os-collect-config[5107]: return OvsBridge.from_json(json)
Sep 02 07:01:11 osp-controller-rz-01 os-collect-config[5107]: File "/usr/lib/python2.7/site-packages/os_net_config/objects.py", line 576, in from_json
Sep 02 07:01:11 osp-controller-rz-01 os-collect-config[5107]: members = _update_members(json, nic_mapping, persist_mapping)
Sep 02 07:01:11 osp-controller-rz-01 os-collect-config[5107]: File "/usr/lib/python2.7/site-packages/os_net_config/objects.py", line 117, in _update_members
Sep 02 07:01:11 osp-controller-rz-01 os-collect-config[5107]: members.append(object_from_json(member))
Sep 02 07:01:11 osp-controller-rz-01 os-collect-config[5107]: File "/usr/lib/python2.7/site-packages/os_net_config/objects.py", line 45, in object_from_json
Sep 02 07:01:11 osp-controller-rz-01 os-collect-config[5107]: return Vlan.from_json(json)
Sep 02 07:01:11 osp-controller-rz-01 os-collect-config[5107]: File "/usr/lib/python2.7/site-packages/os_net_config/objects.py", line 444, in from_json
Sep 02 07:01:11 osp-controller-rz-01 os-collect-config[5107]: ovs_extra=ovs_extra)
Sep 02 07:01:11 osp-controller-rz-01 os-collect-config[5107]: File "/usr/lib/python2.7/site-packages/os_net_config/objects.py", line 418, in __init__
Sep 02 07:01:11 osp-controller-rz-01 os-collect-config[5107]: name = 'vlan%i' % vlan
Sep 02 07:01:11 osp-controller-rz-01 os-collect-config[5107]: TypeError: %d format: a number is required, not str
Sep 02 07:01:11 osp-controller-rz-01 os-collect-config[5107]: + RETVAL=1
Sep 02 07:01:11 osp-controller-rz-01 os-collect-config[5107]: + set -e
Sep 02 07:01:11 osp-controller-rz-01 os-collect-config[5107]: + [[ 1 == 2 ]]
Sep 02 07:01:11 osp-controller-rz-01 os-collect-config[5107]: + [[ 1 != 0 ]]
Sep 02 07:01:11 osp-controller-rz-01 os-collect-config[5107]: + echo 'ERROR: os-net-config configuration failed.'
Sep 02 07:01:11 osp-controller-rz-01 os-collect-config[5107]: ERROR: os-net-config configuration failed.
Environment
Red Hat Openstack Platform 10+
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.