HostnameMap lookup may return unexpected results if hostname is not in the map
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
Medium
|
Steven Hardy |
Bug Description
The use of str_replace to do lookup hostnames in HostnameMap may return unexptected resutls.
The code[1]:
params: {get_param: HostnameMap}
For example passing this data:
Hostname: overcloud-
Result value: server-b3
The str_replace will match on a substring if a key with the full string is not available in the map.
Most likely there are also other cases where the string matching would pick the wrong value.
[1] https:/
Changed in tripleo: | |
assignee: | Harald Jensås (harald-jensas) → Steven Hardy (shardy) |
Fix proposed to branch: master /review. openstack. org/582475
Review: https:/