Running "satellite-maintain content remove-pulp2" command fails with error Device or resource busy after upgrading to Red Hat Satellite 6.10

Solution Verified - Updated -

Issue

  • After upgrading to Red Hat Satellite\Capsule 6.10, The satellite-maintain content remove-pulp2 command could fail to remove certain directories if they are active filesystem mount points.

    - Deleting pulp2 data directories                                     [FAIL]
    Failed executing rm -rf /var/lib/mongodb/, exit status 1:
    rm: cannot remove ‘/var/lib/mongodb/’: Device or resource busy
    --------------------------------------------------------------------------------
    Scenario [Remove Pulp2 and mongodb packages and data] failed.
    
    
    or
    
    
    - Deleting pulp2 data directories                                     [FAIL]
    Failed executing rm -rf /var/cache/pulp, exit status 1:
    rm: cannot remove '/var/cache/pulp': Device or resource busy
    --------------------------------------------------------------------------------
    Scenario [Remove Pulp2 and mongodb packages and data] failed.
    

Environment

  • Red Hat Satellite 6.10
  • Red Hat Capsule 6.10

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content