Skip to content

Commit

Permalink
Fixing the fab uninstall_contrail task not to remove debs_list.txt, r…
Browse files Browse the repository at this point in the history
…pm_list.txt

file from /etc/contrail in case of partial uninstall
Closes-Bug:1484788

Change-Id: Ib4edb8f1a9aac6dcae9f9c91ca1715de38164712
(cherry picked from commit d4c08c0)
  • Loading branch information
cijohnson committed Aug 25, 2015
1 parent 5bf836f commit 14a1f58
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion fabfile/tasks/uninstall.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,13 @@ def uninstall_only_vrouter_node(manage_nova_compute='yes', *args):
with cd('/etc/'):
sudo('sudo rm -rf libvirt')
with settings(warn_only=True):
sudo('find ./contrail/* ! -iname \'contrail_ifrename.sh\' -delete')
cmds = ['find ./contrail/*'
'! -iname "contrail_ifrename.sh"',
'! -iname "debs_list.txt"',
'! -iname "rpm_list.txt"',
'-delete',
]
sudo(' '.join(cmds))
with cd('/var/'):
sudo('sudo rm -rf crashes')
sudo('sudo rm -rf tmp')
Expand Down

0 comments on commit 14a1f58

Please sign in to comment.