change_vip_manually test failed with Vip with name public wasn't found
Bug #1578697 reported by
Andrey Sledzinskiy
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Committed
|
High
|
Andrey Sledzinskiy | ||
Mitaka |
Fix Released
|
High
|
Andrey Sledzinskiy |
Bug Description
fuel version - 9.0-275
Steps:
1. Install fuel
2. Create any cluster
3. Try to get info about possible vip's
http://<ip>:8000/
Expected - data with possible vips is present
Actual - empty list is returned
We rely on this data in tests, we get possible vips, change its ip and upload changes
To post a comment you must log in.
This is an expected behavior in current design. Before cluster is deployed there are no VIPs in data base; so response from VIP related API is empty. VIPs are auto-allocated when deployment starts.
User now can create custom VIPs by sending http POST request on http://<ip>:8000/ api/clusters/ 1/network_ configuration/ ips/vips. There are patch under the review [1] which add fuel client wrapper for this operation. In the request's payload user must supply following attributes: ip_addr (IP address for the VIP, string), network (id of the network group in which the VIP will be allocated, integer), vip_name (name of the VIP, string); in addition vip_namespace (string) can be supplied.
Name for new VIP must conform with those defined in network metadata for the cluster. For the sake of helping the user VIP info is included into network configuration returned by request to /api/v1/ clusters/ <cluster_ id>/network_ configuration/ <net_provider> , or by corresponding fuel client command. There are dedicated 'vips' field in the response data, which gives representations of VIPs that will be created at deployment start. This info may then be used to create custom VIPs. However, please note, cluster must have assigned to it nodes in order to serialize VIP information.
[1]: https:/ /review. openstack. org/#/c/ 312571/