Publish a Content View version fails

Problem:
Publish a Content View version fails. The new version is not published.

Expected outcome:
A new Content View ready to be promoted.

Foreman and Proxy versions:
foreman-2.1.2-1.el7.noarch
foreman-proxy-2.1.2-1.el7.noarch

Foreman and Proxy plugin versions:
katello-3.16.0-1.el7.noarch
katello-common-3.16.0-1.el7.noarch

Distribution and version:
CentOS Linux release 7.8.2003 (Core)

Other relevant data:
$ hammer content-view publish --name "OEL7" --organization "Test Environment"
Could not publish the content view: undefined local variable or method 'repository_mapping' for #<Actions::Katello::Repository::MultiCloneContents:0x0000000014a16b98>

Hi @dsilva,

This is a known issue and will be fixed in Katello 3.16.1. It’s going to be released shortly.

If you need an immediate fix, you can try applying this PR: https://github.com/Katello/katello/pull/8898/files

Hi @iballou,

I applied the PR you mentioned and it fixed the issue successfully.

Thanks for your quick response.

1 Like