[tripleo-heat-templates] The Referenced Attribute (ManagementPort ip_subnet) is incorrect
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
High
|
Giulio Fidente |
Bug Description
Hello,
When I tried to deploy an RHOSP8/RDO Liberty version with a management network and use the Predictable IPs functionality, I encounter this error:
"The Referenced Attribute (ManagementPort ip_subnet) is incorrect"
This is due to a misconfig on management_
The problem is in the ip_subnet function and more particularly on the network mask calculation:
ip_subnet:
description: IP/Subnet CIDR for the management network IP
value:
list_join:
- ''
- - {get_param: [IPPool, {get_param: ManagementNetName}, {get_param: NodeIndex}]}
- '/'
- {str_split: ['/', {get_param: ManagementNetCidr}, 1]}
The str_split function returned only the last number instead of the full network mask.
For and '/24' network mask, it returned only '4' .
I'm going to propose a fix to solve this issue.
Thanks,
Guillaume
Changed in tripleo: | |
assignee: | nobody → Guillaume Chenuet (gchenuet) |
summary: |
- [tripleo-heat-template] The Referenced Attribute (ManagementPort + [tripleo-heat-templates] The Referenced Attribute (ManagementPort ip_subnet) is incorrect |
Changed in tripleo: | |
status: | New → Confirmed |
importance: | Undecided → High |
Changed in tripleo: | |
milestone: | none → newton-1 |
Can you confirm that you have ControlPlaneSub netCidr as a string e.g '24' not 24 in the environment?
This looks similar to issues fixed via https:/ /review. openstack. org/#/c/ 299664/ - your analysis is different, but I saw a similar error message because ip_subnet resolves to null in the output which consumes the non-string subnet.