Project

General

Profile

Bug #27186

katello-remove failed to remove '/var/cache/pulp' because it is a mounted directory

Added by Chris Roberts 4 months ago. Updated 2 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Tooling
Target version:
Difficulty:
easy
Triaged:
Yes
Bugzilla link:

Description

Description of problem:

  1. 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.

  1. katello-remove does not completely remove data on mounted filesystems
    https://bugzilla.redhat.com/show_bug.cgi?id=1574257

History

#1 Updated by The Foreman Bot 4 months ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman-packaging/pull/3871 added

#2 Updated by Chris Roberts 4 months ago

  • Target version set to Katello 3.13.0

#3 Updated by Chris Roberts 4 months ago

  • Triaged changed from No to Yes

#4 Updated by The Foreman Bot 3 months ago

  • Pull request https://github.com/theforeman/foreman-packaging/pull/3983 added

#5 Updated by Jonathon Turel 2 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF