From 686f9761691c2a3f38e98e1724423bfa32b5c35a Mon Sep 17 00:00:00 2001 From: Vasu Kulkarni Date: Wed, 15 Feb 2017 13:31:27 -0800 Subject: [PATCH] Debug prints for more info during upgrades Signed-off-by: Vasu Kulkarni --- qa/tasks/upgrades.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/qa/tasks/upgrades.py b/qa/tasks/upgrades.py index 54c9863ca8d9f..6c76c82043811 100644 --- a/qa/tasks/upgrades.py +++ b/qa/tasks/upgrades.py @@ -50,12 +50,29 @@ def task(ctx, config): 'ceph-ansible']) time.sleep(4) # Replace the old files at same location + # debug print old playbook + ceph_installer.run(args=[ + 'cat', + 'ceph-ansible/rolling_update.yml', + ]) ceph_installer.run(args=[ 'cp', '-R', '/usr/share/ceph-ansible', '.' ]) + # Remove any .yml files from /usr/share/ceph-ansible for collision + ceph_installer.run(args=[ + 'sudo', + 'rm ', + '-rf', + run.Raw('/usr/share/ceph-ansible/*.yml') + ]) + # debug print new playbook + ceph_installer.run(args=[ + 'cat', + 'ceph-ansible/rolling_update.yml', + ]) upg_cmd = ['cd', 'ceph-ansible', run.Raw(';'), 'ansible-playbook', '-e', 'ireallymeanit=yes', '-vv', '-i', 'inven.yml', 'rolling_update.yml'] -- 2.39.5