]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
task/install: make sure /etc/yum/plugin.conf.d/priorities.conf exists
authorSage Weil <sage@redhat.com>
Wed, 11 Dec 2019 19:31:45 +0000 (19:31 +0000)
committerSage Weil <sage@redhat.com>
Thu, 12 Dec 2019 18:55:52 +0000 (12:55 -0600)
If it doesn' teh subsequent commands all fail.

Signed-off-by: Sage Weil <sage@redhat.com>
teuthology/task/install/rpm.py

index fc579a61099c2c17e5444ace7a3fc757ca6d2f7f..d544f30423cdf352ed30608349edd33911716f25 100644 (file)
@@ -310,6 +310,7 @@ def _yum_set_check_obsoletes(remote):
     conf_path = '/etc/yum/pluginconf.d/priorities.conf'
     conf_path_orig = conf_path + '.orig'
     cmd = [
+        'sudo', 'touch', '-a', '/etc/yum/pluginconf.d/priorities.conf', run.Raw(';'),
         'test', '-e', conf_path_orig, run.Raw('||'), 'sudo', 'cp', '-af',
         conf_path, conf_path_orig,
     ]