The attempt to rename capsule server fails with error "sed: can't read /root/.hammer/cli.modules.d/*.yml: No such file or directory"

Solution Verified - Updated -

Issue

  • The satellite-change-hostname execution fails to rename the capsule server with the following error.

    updating hostname in hammer configuration
    sed: can't read /root/.hammer/cli.modules.d/*.yml: No such file or directory
    
    Failed 'sed -i.bak -e 's/capsule.example.com/newcapsule.example.com/g' /root/.hammer/cli.modules.d/*.yml' with exit code 2
    

Environment

  • Red Hat Satellite Capsule 6.7 and above

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