ironic/ironic/objects
Grzegorz Grasza db9ddd39d3 Implement indirection_api
During a rolling upgrade, ironic conductor and api services are running
with different versions. When an object is received in an incompatible
version, IncompatibleObjectVersion is raised. Implementation of the
indirection API allows the object to be backported to a supported version
by the conductor (conductor has to be the first service to be upgraded).

This change enables backporting of objects from Mitaka. This lays the
foundation to be able to do rolling upgrades from Liberty (or from this
patch onwards) to Mitaka. There may still be other issues that will need
fixing in Mitaka before we will be able to do a full rolling upgrade.

Enabling the indirection_api causes all object methods decorated with
the remotable or remotable_classmethod to do RPC from ironic-api to
ironic-conductor service. To keep the current behavior, I'm removing all
remotable decorators on object methods and thus not enabling object RPC
calls in this patch. These calls caused random timeouts on the CI gates
(probably due to a race in which Nova calls the ironic-api service before
ironic-conductor is up). RPC calls made via the indirection_api should
be enabled one-by-one, when the implications are fully understood.

Change-Id: Ia381348da93f95d764c83f3ec2a2ed5a1db5ad6d
Closes-Bug: 1493816
Depends-On: I81400305f166d62aa4612aab54602abb8178b64c
2015-09-24 00:26:33 +00:00
..
__init__.py Remove the objectify decorator 2014-09-12 15:55:02 +01:00
base.py Implement indirection_api 2015-09-24 00:26:33 +00:00
chassis.py Implement indirection_api 2015-09-24 00:26:33 +00:00
conductor.py Implement indirection_api 2015-09-24 00:26:33 +00:00
fields.py Fix object field type calling conventions 2015-09-09 11:07:37 -07:00
node.py Implement indirection_api 2015-09-24 00:26:33 +00:00
port.py Implement indirection_api 2015-09-24 00:26:33 +00:00