Sriov compute deployment failed due to invalid hiera data parsing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
New
|
Undecided
|
Unassigned |
Bug Description
Description
===========
I tried to deploy openstack train using tripleO but the deployment process has failed in the sriov compute deployment due to invalid data parsing in script derive_
in the script above the following two functions tries to parsing hiera returns values to json format without checking if this value are json deserialized object and that cause the script to fail since hiera return values in ruby format (eg {"key"=>"value"}) and expected json format (e.g {"key":"value"}).
Steps to reproduce
==================
deploy sriov compute (openstack train)
during the sriov deploument check the derive_
Expected result
===============
deployment process pass successfully
Actual result
=============
deployment process failed.
Environment
===========
Openstack train
Logs:
fatal: [computeovsdpdk
"changed": true,
"cmd": [
],
"delta": "0:00:00.935068",
"end": "2020-06-17 07:39:29.564575",
"invocation": {
"argv": null,
"warn": true
}
},
"msg": "non-zero return code",
"rc": 1,
"start": "2020-06-17 07:39:28.629507",
"stderr": "Traceback (most recent call last):\n File \"/var/
le>\n user_configs, system_configs)\n File \"/var/
d_configuration\n pf = get_pf_
ugh_whitelist.py\", line 242, in get_pf_
54, in loads\n return _default_
=_w(s, 0).end())\n File \"/usr/
ne\njson.
"stderr_lines": [
"Traceback (most recent call last):",
" File \"/var/
" user_configs, system_configs)",
" File \"/var/
" pf = get_pf_
" File \"/var/
" phys_dev_mappings = json.loads(out)",
" File \"/usr/
" return _default_
" File \"/usr/
" obj, end = self.raw_decode(s, idx=_w(s, 0).end())",
" File \"/usr/
" raise JSONDecodeError
],
"stdout": "",
"stdout_lines": []
}
summary: |
- Sr Iov compute deployment failed due to invalid hiera data parsing + Sriov compute deployment failed due to invalid hiera data parsing |