2 Commits

Author SHA1 Message Date
Julia Kreger
b2ecd08924 Release note clean-ups for ironic release
Lots of misc fixes and changes to make the release notes
a little more consistent.

Change-Id: I8ed616f27a393d5adf015743fc1810a3d9955c55
2018-06-20 14:46:33 -07:00
Ruby Loo
37b85b6a39 Copy port[group] VIF info from extra to internal_info
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
2018-04-02 17:56:47 +00:00