Bug 2153523 - Promoting a composite content view to environment with registry name as "<%= lifecycle_environment.label %>/<%= repository.name %>" on Red Hat Satellite 6 fails with "'undefined method '#label' for NilClass::Jail (NilClass)'"
Summary: Promoting a composite content view to environment with registry name as "<%= ...
Keywords:
Status: NEW
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Views
Version: 6.11.4
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Satellite QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-12-14 17:13 UTC by soham
Modified: 2023-06-30 12:05 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SAT-18728 0 None None None 2023-06-30 12:05:35 UTC

Description soham 2022-12-14 17:13:06 UTC
Description of problem:
Promoting a composite content view to environment with registry name as "<%= lifecycle_environment.label %>/<%= repository.name %>" on Red Hat Satellite 6 fails with "'undefined method '#label' for NilClass::Jail (NilClass)'"

Version-Release number of selected component (if applicable):
6.11.4


How reproducible:
Always


Steps to Reproduce:
Create product

# hammer product create --description "Product Busybox Container" --name Product_Busybox_Container --label "Product_Busybox_Container" --organization myorg
Create repository and sync to source

# hammer repository create \
  --content-type "docker" \
  --organization myorg \
  --product "Product_Busybox_Container" \
  --url "https://registry-1.docker.io" \
  --name "library/busybox" \
  --docker-upstream-name "library/busybox" \
  --label "library_busybox" \
  --include-tags "stable, 1.35.0"
 
# hammer repository synchronize --name "library/busybox" --product "Product_Busybox_Container" --organization myorg

Create content view

# hammer repository list --product Product_Busybox_Container --organization myorg
# hammer content-view create --label ContentView_Busybox --name ContentView_Busybox --organization-label myorg --repository-ids 1225
Replace 1225 with the id from above command

Content view creation

# hammer content-view publish --organization myorg --name ContentView_Busybox


Now assign this created content-view to a composite-content-view

Create an environment test with registry name as "<%= lifecycle_environment.label %>/<%= repository.name %>"

promote composite-content-view to test environment

        ERROR: 'undefined method '#label' for NilClass::Jail (NilClass)'

Comment 1 Brad Buckingham 2022-12-15 15:19:45 UTC
Can the full stack trace from the production.log?   Thanks!


Note You need to log in before you can comment on or make changes to this bug.