The new field 'physical_network' was added to Port in version
1.7, and port creation was moved from the API to the conductor
service in commit 9e3f4121865807294dd3768b095b67eb01ef539e.
This change adds a method can_send_create_port() to the conductor
RPCAPI that allows the caller to determine whether the conductor is able
to create ports. During a rolling upgrade this may return False, and the
API will need to determine whether it is able to create the port locally
as was done previously.
The create_port RPC method was added to support validation of the
physical_network field of ports in portgroups. A port may therefore be
safely created in the API service if it is not a member of a portgroup.
If the port being created is a member of a portgroup, then it cannot be
safely validated by the API service and the request must be rejected.
Reviewed: https:/ /review. openstack. org/485773 /git.openstack. org/cgit/ openstack/ ironic/ commit/ ?id=fc1e18e3e4a 28b1163e7a597ee 8b07d465d7a174
Committed: https:/
Submitter: Jenkins
Branch: master
commit fc1e18e3e4a28b1 163e7a597ee8b07 d465d7a174
Author: Mark Goddard <email address hidden>
Date: Thu Jul 20 10:41:54 2017 +0100
Rolling upgrades support for create_port RPCAPI
The new field 'physical_network' was added to Port in version 94dd3768b095b67 eb01ef539e.
1.7, and port creation was moved from the API to the conductor
service in commit 9e3f41218658072
This change adds a method can_send_ create_ port() to the conductor
RPCAPI that allows the caller to determine whether the conductor is able
to create ports. During a rolling upgrade this may return False, and the
API will need to determine whether it is able to create the port locally
as was done previously.
The create_port RPC method was added to support validation of the network field of ports in portgroups. A port may therefore be
physical_
safely created in the API service if it is not a member of a portgroup.
If the port being created is a member of a portgroup, then it cannot be
safely validated by the API service and the request must be rejected.
Change-Id: I8c417cba085f61 c3d2ffe1f7e97c6 4fa85a014cb
Related-Bug: #1666009
Related-Bug: #1526283