]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Debug prints for more info during upgrades
authorVasu Kulkarni <vasu@redhat.com>
Wed, 15 Feb 2017 21:31:27 +0000 (13:31 -0800)
committerVasu Kulkarni <vasu@redhat.com>
Tue, 5 Sep 2017 18:51:13 +0000 (11:51 -0700)
Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
qa/tasks/upgrades.py

index 54c9863ca8d9f51c6dfef403c527b1602708e1fc..6c76c82043811bb0e929e9a35fdda56832a0e592 100644 (file)
@@ -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']