]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
syslog: Don't use chcon on downburst VMs 556/head
authorZack Cerza <zack@redhat.com>
Wed, 1 Jul 2015 15:12:00 +0000 (09:12 -0600)
committerZack Cerza <zack@redhat.com>
Wed, 1 Jul 2015 15:12:00 +0000 (09:12 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/task/internal.py

index 421ff6b29782100f38803a256c93eb93cd04e8af..94338f318a1d4038fdece63c4e4dfabdecb50929 100644 (file)
@@ -603,7 +603,8 @@ def syslog(ctx, config):
     conf_fp = StringIO('\n'.join(conf_lines))
     try:
         for rem in ctx.cluster.remotes.iterkeys():
-            if rem.os.package_type == 'rpm':
+            # Exclude downburst VMs for now; they have SELinux disabled
+            if rem.os.package_type == 'rpm' and not misc.is_vm(rem.shortname):
                 log_context = 'system_u:object_r:var_log_t:s0'
                 for log_path in (kern_log, misc_log):
                     rem.run(