The content export\import via hammer_cli fails with error "Error: Unknown option name" for few applicable options.

Solution Verified - Updated -

Issue

  • Post Satellite upgrade to 6.10 exporting repository from connected Red Hat Satellite Server fail with below error:

    # hammer content-export complete repository --organization "RedHat" --product "Red Hat Enterprise Linux Server" --name "Red Hat Satellite Tools 6.10 for RHEL 7 Server"
    Could not export the repository:
      Error: Unknown option name 'option_id'
    
    # hammer content-export complete repository --product-id 1
    Could not export the repository:
      Error: Unknown option name 'option_id'
    
  • Similarly an attempt to do a hammer content-import action can also fail with these errors:

    Could not import the archive.:
     Error: Unknown option name 'option_path'.
    
    or
    
    Could not import the archive.:
     Error: Unrecognised option '--path'.
    

Environment

  • Red Hat Satellite 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