API microversion 2.76: Add 'power-update' external event

The 2.76 microversion adds the 'power-update' server
external event to the os-server-external-events API.

This is an admin-only API by default and this event is
currently only used by Ironic as part of updating the
power-state of a physical instance, and therefore does not
have any CLI or python API binding impacts in the client.

Depends-On: https://review.opendev.org/#/c/645611/
Part of blueprint nova-support-instance-power-update
Story: 2004969
Task: 34271

Change-Id: I1f5de90e19b7b13c7746fea8bbdf8e09bcb92cff
This commit is contained in:
Surya Seetharaman 2019-08-13 20:39:09 +00:00 committed by Matt Riedemann
parent 0e873a2d5a
commit a3e44e8b39
2 changed files with 2 additions and 1 deletions

View File

@ -25,4 +25,4 @@ API_MIN_VERSION = api_versions.APIVersion("2.1")
# when client supported the max version, and bumped sequentially, otherwise
# the client may break due to server side new version may include some
# backward incompatible change.
API_MAX_VERSION = api_versions.APIVersion("2.75")
API_MAX_VERSION = api_versions.APIVersion("2.76")

View File

@ -4276,6 +4276,7 @@ class ShellTest(utils.TestCase):
72, # There are no version-wrapped shell method changes for this.
74, # There are no version-wrapped shell method changes for this.
75, # There are no version-wrapped shell method changes for this.
76, # doesn't require any changes in novaclient.
])
versions_supported = set(range(0,
novaclient.API_MAX_VERSION.ver_minor + 1))