Validation failed: Cannot add deb repositories to a content view

Wenn I try to add a deb repo to a “import only” content view, I get immediately a popup error:
Validation failed: Cannot add deb repositories to a content view.
on contentview without the flag “import only” I can add deb repos.

Is this expected behavior or a bug?

Expected outcome:
Add DEB repo to “import only” contentview.

Foreman and Proxy versions:
Foreman 3.1.1

Foreman and Proxy plugin versions:

Distribution and version:
CentOS 7.9

Other relevant data:


What is an “import only” content view? I have never heard of this, is it new?

I dont know if it is new, just know this Version.

you can use it if you create contentviews which should not be attached to hosts directly but only to compsite content views.

‘Import only’ content views are for use with the Export Sync feature to move content from one instance to another where there’s no network connection. That process is described here: Content Management Guide

What’s shown here looks like a bug because import-only CVs are effectively read-only. In my UI I’m not able to add any repositories at all - I’m unable to even attempt it. How did you produce this error exactly?

1 Like

Ok my misunderstanding whats “import only” for.
I can can add repositories as usually.
error appears after trying to add on.