Bug #27186
closedkatello-remove failed to remove '/var/cache/pulp' because it is a mounted directory
Description
Description of problem:
- katello-remove -y
Starting removal
Stopping services
Removing RPMs
Cleaning up configuration files
Cleaning up log files
Cleaning up certs
Cleaning up content
/usr/share/ruby/fileutils.rb:1433:in `rmdir': Device or resource busy - /var/cache/pulp (Errno::EBUSY)
from /usr/share/ruby/fileutils.rb:1433:in `block in remove_dir1'
from /usr/share/ruby/fileutils.rb:1444:in `platform_support'
from /usr/share/ruby/fileutils.rb:1432:in `remove_dir1'
from /usr/share/ruby/fileutils.rb:1425:in `remove'
from /usr/share/ruby/fileutils.rb:770:in `block in remove_entry'
from /usr/share/ruby/fileutils.rb:1477:in `block (2 levels) in postorder_traverse'
from /usr/share/ruby/fileutils.rb:1481:in `postorder_traverse'
from /usr/share/ruby/fileutils.rb:1476:in `block in postorder_traverse'
from /usr/share/ruby/fileutils.rb:1475:in `each'
from /usr/share/ruby/fileutils.rb:1475:in `postorder_traverse'
from /usr/share/ruby/fileutils.rb:768:in `remove_entry'
from /usr/share/ruby/fileutils.rb:626:in `block in rm_r'
from /usr/share/ruby/fileutils.rb:622:in `each'
from /usr/share/ruby/fileutils.rb:622:in `rm_r'
from /sbin/katello-remove:188:in `remove'
from /sbin/katello-remove:231:in `<main>'
This following bugzilla doesn't fix the issue completely.
- katello-remove does not completely remove data on mounted filesystems
https://bugzilla.redhat.com/show_bug.cgi?id=1574257