Adding lifecycle environment to the Red Hat Capsule server fails with error "Could not add the lifecycle environment to the capsule: ActiveRecord::RecordNotFound"

Solution Verified - Updated -

Issue

  • Adding lifecycle environment to the Red Hat Capsule server fails with below error
hammer> capsule list
---|-----------------------------------|-----------------------------------------------
ID | NAME                              | URL                                           
---|-----------------------------------|-----------------------------------------------
1  | satellite.example.com             | https://satellite.example.com:9090 
2  | capsule.example.com               | https://capsule.example.com:9090
---|-----------------------------------|-----------------------------------------------

hammer> capsule content available-lifecycle-environments --id 2
---|------------|-------------
ID | NAME       | ORGANIZATION
---|------------|-------------
5  | Production | RedHat      
2  | Library    | RedHat      
3  | Devolpment | RedHat      
4  | QA         | RedHat      
---|------------|-------------

hammer> capsule content add-lifecycle-environment --id 2 --lifecycle-environment-id 3
Could not add the lifecycle environment to the capsule:
  ActiveRecord::RecordNotFound

Environment

  • Red Hat Satellite 6
  • Red Hat Capsule Server

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