From 64f93b26d9301c704cd2367deec383679a7c5ff2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A9la=20Vancsics?= Date: Mon, 24 Jul 2017 11:59:59 +0200 Subject: [PATCH] Transform rescue/unrescue instance notifications The rescue (instance.rescue.start and instance.rescue.end) and unrescue (instance.unrescue.start and instance.unrescue.end) notifications are transformed to the versioned framework. This patch also fixes the power state of the server when unrescuing it with the fake compute driver. Co-Authored-By: Takashi Natsume Change-Id: Ib1d03c6d693e3b04886c638c956e35809fed8fc2 Implements: bp versioned-notification-transformation-queens Closes-Bug: #1742133 --- nova/tests/fixtures.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nova/tests/fixtures.py b/nova/tests/fixtures.py index 380704a6c..f7134f1e9 100644 --- a/nova/tests/fixtures.py +++ b/nova/tests/fixtures.py @@ -1464,6 +1464,8 @@ class CinderFixture(fixtures.Fixture): lambda *args, **kwargs: None) self.test.stub_out('nova.volume.cinder.API.unreserve_volume', fake_unreserve_volume) + self.test.stub_out('nova.volume.cinder.API.check_attached', + lambda *args, **kwargs: None) # TODO(mriedem): We can probably pull some of the common parts from the @@ -1638,6 +1640,8 @@ class CinderFixtureNewAttachFlow(fixtures.Fixture): lambda *args, **kwargs: None) self.test.stub_out('nova.volume.cinder.is_microversion_supported', lambda *args, **kwargs: None) + self.test.stub_out('nova.volume.cinder.API.check_attached', + lambda *args, **kwargs: None) class PlacementApiClient(object):