]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Exclude downburst VMs
authorZack Cerza <zack@redhat.com>
Wed, 1 Jul 2015 15:00:53 +0000 (09:00 -0600)
committerZack Cerza <zack@redhat.com>
Wed, 1 Jul 2015 15:00:53 +0000 (09:00 -0600)
Their cloud images have SELinux disabled; exclude them until we can
change that.

Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/task/selinux.py

index 4b95182e1edc071f1e17e9ff9f8098242334757d..39b717d2b79baa7768d521872bdf9a20d75fecc3 100644 (file)
@@ -26,12 +26,15 @@ class SELinux(Task):
 
     def filter_hosts(self):
         """
-        Exclude any non-RPM-based hosts
+        Exclude any non-RPM-based hosts, and any downburst VMs
         """
         super(SELinux, self).filter_hosts()
         new_cluster = Cluster()
         for (remote, roles) in self.cluster.remotes.iteritems():
-            if remote.os.package_type == 'rpm':
+            if remote.shortname.startswith('vpm'):
+                msg = "Excluding {host}: downburst VMs are not yet supported"
+                log.info(msg.format(host=remote.shortname))
+            elif remote.os.package_type == 'rpm':
                 new_cluster.add(remote, roles)
             else:
                 msg = "Excluding {host}: OS '{os}' does not support SELinux"