2018-05-21 11:37:45 |
Harald Jensås |
description |
TripleO's deployed server interface implements a fake neutron port[1].
In the example provided for the DeployedServerPortMap the cidr parameter exampled is just the prefix_length, not the full network address as it would be if asking neutron for the same data. E.g:
gatsby-ctlplane:
fixed_ips:
- ip_address: 127.0.0.1
subnets:
- cidr: 24"
The example should read 127.0.0.0/24 to match the Neutron API[2].
The container undercloud uses this and it passes just the prefix lenght, not the actual CIDR
Since the fake port does not actually return what an actual neutron port returns this becomes a problem when trying to improve THT to require less user provided parameters. Ref: https://review.openstack.org/#/c/569547/7/puppet/role.role.j2.yaml
[1] https://github.com/openstack/tripleo-heat-templates/blob/master/deployed-server/deployed-neutron-port.yaml#L15
[2] https://developer.openstack.org/api-ref/network/v2/#id189
[3] https://github.com/openstack/python-tripleoclient/blob/master/tripleoclient/v1/tripleo_deploy.py#L265-L279 |
TripleO's deployed server interface implements a fake neutron port[1].
In the example provided for the DeployedServerPortMap the cidr parameter exampled is just the prefix_length, not the full network address as it would be if asking neutron for the same data. E.g:
gatsby-ctlplane:
fixed_ips:
- ip_address: 127.0.0.1
subnets:
- cidr: 24"
The example should read 127.0.0.0/24 to match the Neutron API[2].
The container undercloud uses this and it passes just the prefix length, not the actual CIDR
Since the fake port does not actually return what an actual neutron port returns this becomes a problem when trying to improve THT to require less user provided parameters. Ref: https://review.openstack.org/#/c/569547/7/puppet/role.role.j2.yaml
[1] https://github.com/openstack/tripleo-heat-templates/blob/master/deployed-server/deployed-neutron-port.yaml#L15
[2] https://developer.openstack.org/api-ref/network/v2/#id189
[3] https://github.com/openstack/python-tripleoclient/blob/master/tripleoclient/v1/tripleo_deploy.py#L265-L279 |
|