From d5e9e1046ead6db898c84d767413864b8ce08734 Mon Sep 17 00:00:00 2001 From: Sean McGinnis Date: Sat, 21 Dec 2019 04:21:37 -0600 Subject: [PATCH] Add upgrade check for removed Sheepdog driver The Sheepdog driver has been removed. This adds an upgrade check to warn if it is still configured. Change-Id: I5a9e1f46a000d8df6e025c1674254a09074014eb Signed-off-by: Sean McGinnis --- cinder/cmd/status.py | 1 + cinder/tests/unit/cmd/test_status.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cinder/cmd/status.py b/cinder/cmd/status.py index 4618befc78e..729e8dd0b65 100644 --- a/cinder/cmd/status.py +++ b/cinder/cmd/status.py @@ -48,6 +48,7 @@ REMOVED_DRVRS = [ "fusionstorage", "prophetstor", "nimble", + "sheepdog", ] diff --git a/cinder/tests/unit/cmd/test_status.py b/cinder/tests/unit/cmd/test_status.py index 8c7214b70d8..573048b5d60 100644 --- a/cinder/tests/unit/cmd/test_status.py +++ b/cinder/tests/unit/cmd/test_status.py @@ -199,7 +199,8 @@ class TestCinderStatus(testtools.TestCase): 'cinder.volume.drivers.prophetstor.dpl_fc.DPLFCDriver', 'cinder.volume.drivers.prophetstor.dpl_iscsi.DPLISCSIDriver', 'cinder.volume.drivers.nimble.NimbleFCDriver', - 'cinder.volume.drivers.nimble.NimbleISCSIDriver') + 'cinder.volume.drivers.nimble.NimbleISCSIDriver', + 'cinder.volume.drivers.sheepdog.SheepdogDriver') def test_check_removed_drivers_fail(self, volume_driver): self._set_volume_driver( volume_driver,