Agents supporting the guaranteed minimum bandwidth feature need to share
their resource view with neutron-server and in turn with Placement too.
The resource information is synchronized to neutron-server via the
periodic agent heartbeat therefore transient synchronization errors are
fixed by the next heartbeat. But synchronization to Placement is not
done periodically, but on a (mostly) on demand basis. Therefore to fix
transient errors of the synchronization to Placement we must remember
the success/failure of the last synchronization attempt.
This change implements the extension 'agent-resources-synced' and
therefore extends the agent db model and object with a new attribute:
'resources_synced'. This attribute in only meant to be updated
internally. But it can be read via the API for debugging purposes.
APIImpact: The agent resource has a new attribute: resources_synced.
Reviewed: https:/ /review. openstack. org/630999 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=648ab82a4bf 07845b97c5cb623 47fbde86cdc9d2
Committed: https:/
Submitter: Zuul
Branch: master
commit 648ab82a4bf0784 5b97c5cb62347fb de86cdc9d2
Author: Bence Romsics <email address hidden>
Date: Wed Dec 19 13:44:37 2018 +0100
New agent attribute: resources_synced
Agents supporting the guaranteed minimum bandwidth feature need to share
their resource view with neutron-server and in turn with Placement too.
The resource information is synchronized to neutron-server via the
periodic agent heartbeat therefore transient synchronization errors are
fixed by the next heartbeat. But synchronization to Placement is not
done periodically, but on a (mostly) on demand basis. Therefore to fix
transient errors of the synchronization to Placement we must remember
the success/failure of the last synchronization attempt.
This change implements the extension 'agent- resources- synced' and synced' . This attribute in only meant to be updated
therefore extends the agent db model and object with a new attribute:
'resources_
internally. But it can be read via the API for debugging purposes.
APIImpact: The agent resource has a new attribute: resources_synced.
Change-Id: I757d659cea63c8 172ca3618d1f581 d10236f5e71 /review. openstack. org/626210 /review. openstack. org/502306 (nova spec) /review. openstack. org/508149 (neutron spec)
Depends-On: https:/
Partial-Bug: #1578989
See-Also: https:/
See-Also: https:/