
For API versions >= 1.28, Port & portgroup's .extra['vif_port_id'] was deprecated in Ocata. Before we can remove support for this, we need to copy that information to the object's internal_info['tenant_vif_port_id']. This copy/migration is done at the API layer when the user specifies the .extra[] value, as well as when the 'ironic db-sync online_data-migrations' is run. In order to know whether the ports and port groups have been migrated, their IronicObject versions are incremented. This also fixes it so that for API versions < 1.28, the deprecation warning is not shown, since we still need to support extra['vif_port_id'] in this case. When a port or portgroup's .extra['vif_port_id'] is removed via a PATCH API request, that VIF is removed from that object's internal_info. Change-Id: I69468c935e68dd9d37a474c318c3ceb9cdfc5868 Partial-Bug: 1722850
14 lines
574 B
YAML
14 lines
574 B
YAML
---
|
|
upgrade:
|
|
- |
|
|
``ironic-dbsync online_data_migrations`` will migrate any port's and
|
|
port group's extra['vif_port_id'] value to their
|
|
internal_info['tenant_vif_port_id'].
|
|
For API versions >= 1.28, the ability to attach/detach the VIF via
|
|
the port's or port group's extra['vif_port_id'] will not be supported
|
|
starting with the Stein release.
|
|
|
|
Any out-of-tree network interface implementation that had a different
|
|
behavior in support of attach/detach VIFs via the port or port group's
|
|
extra['vif_port_id'] must be updated appropriately.
|