Neutron shared routines and utilities.
Go to file
Bence Romsics 5dcccd2c66 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 introduces a new boolean agent attribute: resources_synced

This attribute is:
* admin-only (just like the whole agent extension)
* read-only (it is only updated by the internal synchronization process)

If this attribute is not set then no synchronization to Placement ever
happened (which is the natural state of agents not tracking their
resources via Placement).

If it is False, then another successful synchronization is needed before
the contents of Placement can be considered up to date.

If it is True, then this agent's resources are up to date in Placement.

Change-Id: Ia3dea82fabe5e068192fbe931db8d341d3d37149
Needed-By: https://review.openstack.org/630999
Partial-Bug: #1578989
See-Also: https://review.openstack.org/502306 (nova spec)
See-Also: https://review.openstack.org/508149 (neutron spec)
2019-01-23 16:27:47 +01:00
api-ref/source New agent attribute: resources_synced 2019-01-23 16:27:47 +01:00
doc Update devel info: mailing list 2018-12-05 08:56:19 +08:00
neutron_lib New agent attribute: resources_synced 2019-01-23 16:27:47 +01:00
releasenotes New agent attribute: resources_synced 2019-01-23 16:27:47 +01:00
tools Remove tools/tox_install.sh 2018-03-07 20:31:12 +01:00
.coveragerc Improvements to tox envs 2015-12-19 01:00:22 -05:00
.gitignore Switch to stestr 2018-05-24 11:09:18 -07:00
.gitreview Added .gitreview 2015-11-19 19:54:39 +00:00
.mailmap Initial cookiecutter commit 2015-11-20 17:24:43 -07:00
.stestr.conf Fix unit test failures due to switch to testr changes 2017-09-14 08:17:35 -07:00
.zuul.yaml Use templates for cover and lower-constraints 2018-09-07 15:35:30 +02:00
CONTRIBUTING.rst Merge "Update links in CONTRIBUTING.rst" 2017-10-05 20:47:37 +00:00
HACKING.rst Update the documentation link for doc migration 2017-07-20 15:46:41 +00:00
LICENSE Initial cookiecutter commit 2015-11-20 17:24:43 -07:00
README.rst Add release notes link to README 2018-06-20 19:29:43 +08:00
babel.cfg Initial cookiecutter commit 2015-11-20 17:24:43 -07:00
lower-constraints.txt rehome db api orm event listener functions 2018-12-31 10:28:49 -07:00
requirements.txt rehome db api orm event listener functions 2018-12-31 10:28:49 -07:00
setup.cfg Change openstack-dev to openstack-discuss 2018-12-04 11:03:31 +08:00
setup.py Updated from global requirements 2017-03-02 11:49:11 +00:00
test-requirements.txt Add bandit to pep8 gate 2018-06-14 11:38:33 -04:00
tox.ini Update min tox version to 2.3.2 2018-11-09 00:54:46 +07:00

README.rst

Team and repository tags

image

neutron-lib

Neutron shared routines and utilities

Features

  • TODO