From 5cb25c227c539022de9cac61b23ccefc3d5f860d Mon Sep 17 00:00:00 2001 From: Paul Bourke Date: Wed, 17 May 2017 12:28:00 +0100 Subject: [PATCH] Clean up unused sanity check modules These are now replaced with built in Ansible modules Change-Id: I6e3f4b72243da1cfa76d32822ec4f75f689f7317 --- docker/kolla-toolbox/kolla_sanity.py | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/docker/kolla-toolbox/kolla_sanity.py b/docker/kolla-toolbox/kolla_sanity.py index b950204f40..3df8d2ac2f 100644 --- a/docker/kolla-toolbox/kolla_sanity.py +++ b/docker/kolla-toolbox/kolla_sanity.py @@ -22,29 +22,13 @@ # in upstream shade we will be able to use more of the shade module. Until then # if we want to be 'stable' we really need to be using it as a passthrough -import tempfile import traceback import shade class SanityChecks(object): - @staticmethod - def keystone(cloud): - [tenant for tenant in cloud.keystone_client.tenants.list()] - - @staticmethod - def glance(cloud): - with tempfile.NamedTemporaryfile(suffix='qcow2') as image: - cloud.create_image("test", filename=image.name, - disk_format="qcow2", container_format="bare") - testid = cloud.get_image_id("test") - cloud.delete_image(testid) - - @staticmethod - def cinder(cloud): - [volume for volume in cloud.cinder_client.volumes.list()] - + # TODO(pbourke): remove and replace with direct call to os_object @staticmethod def swift(cloud): [container for container in cloud.swift_client.list()]