Project

General

Profile

Actions

Bug #36776

closed

Promoting a composite content view to environment with registry name as "<%= lifecycle_environment.label %>/<%= repository.name %>" fails with "'undefined method '#label' for NilClass::Jail (NilClass)'"

Added by Quinn James about 1 year ago. Updated 12 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Content Views
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=2153523

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

  1. hammer product create --description "Product Busybox Container" --name Product_Busybox_Container --label "Product_Busybox_Container" --organization myorg
    Create repository and sync to source
  1. 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"
  1. hammer repository synchronize --name "library/busybox" --product "Product_Busybox_Container" --organization myorg

Create content view

  1. hammer repository list --product Product_Busybox_Container --organization myorg
  2. 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

  1. 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)'
Actions #1

Updated by The Foreman Bot about 1 year ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/10752 added
Actions #2

Updated by Quinn James about 1 year ago

  • Subject changed from 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)'" to 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)'"
  • Target version set to Katello 4.11.0
  • Triaged changed from No to Yes
Actions #3

Updated by Quinn James about 1 year ago

  • Assignee set to Quinn James
  • Triaged changed from Yes to No
Actions #4

Updated by Quinn James about 1 year ago

  • Triaged changed from No to Yes
Actions #5

Updated by The Foreman Bot about 1 year ago

  • Fixed in Releases Katello 4.11.0 added
Actions #6

Updated by Anonymous about 1 year ago

  • Status changed from Ready For Testing to Closed
Actions #7

Updated by Ian Ballou 12 months ago

  • Subject changed from 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)'" to Promoting a composite content view to environment with registry name as "<%= lifecycle_environment.label %>/<%= repository.name %>" fails with "'undefined method '#label' for NilClass::Jail (NilClass)'"
Actions

Also available in: Atom PDF