2016-06-01 13:44:28 |
Arthur Svechnikov |
description |
Environment: MOS 9.0, ISO 426
Detailed description:
Due to recent changes in yaml processing, comma separated list of values is glued together.
If DPDK is turned on and a host has > 1 NUMA nodes, this leads to an unsuccessful attempt to allocate huge amount of memory, which breaks deployment.
Steps to reproduce:
[root@nailgun ~]# echo "dpdk:
> ovs_socket_mem: 1024,1024,1024,1024" >> /etc/hiera/astute.yaml
[root@nailgun ~]# hiera dpdk
{"ovs_socket_mem"=>1024102410241024}
[root@nailgun ~]# python -c 'import yaml; print(yaml.load(open("/etc/hiera/astute.yaml"))["dpdk"])'
{'ovs_socket_mem': '1024,1024,1024,1024'}
[root@nailgun ~]#
Actual result:
{"ovs_socket_mem"=>1024102410241024}
Expected result:
{'ovs_socket_mem': '1024,1024,1024,1024'} |
Environment: MOS 9.0, ISO 426
Detailed description:
Due to recent changes in yaml processing, comma separated list of values is glued together.
If DPDK is turned on and a host has > 1 NUMA nodes, this leads to an unsuccessful attempt to allocate huge amount of memory, which breaks deployment.
Steps to reproduce:
[root@nailgun ~]# echo "dpdk:
> ovs_socket_mem: 1024,1024,1024,1024" >> /etc/hiera/astute.yaml
[root@nailgun ~]# hiera dpdk
{"ovs_socket_mem"=>1024102410241024}
[root@nailgun ~]# python -c 'import yaml; print(yaml.load(open("/etc/hiera/astute.yaml"))["dpdk"])'
{'ovs_socket_mem': '1024,1024,1024,1024'}
[root@nailgun ~]#
Actual result:
`hiera dpdk` returns
{"ovs_socket_mem"=>1024102410241024}
Expected result:
`hiera dpdk` returns
{"ovs_socket_mem"=>'1024,1024,1024,1024'} |
|