Latest version of content view not visible on content-hosts

Sorry for asking so many questions…

Problem:
So, as said in other postings, I’m trying to create content host.
I have created the composite content view, consisting of the necessary content-views and repositories, I actually managed to register the host and the host is showing (when you know where to look). The content view is associated to a lifecycle and the hosts says that these are assigned to the host.

However, the content view has several revisions (didn’t really get it right the first time…) and I can clearly see that the latest revision is somehow not viewable on the host itself.
I.e. it doesn’t have (e.g.) the latest version of the foreman-installer etc.

But (and maybe there lies a misunderstanding of how subscription-manager works) if I navigate to the host in the GUI, I can see that there are a couple of updates available for the host, including the foreman-installer (which I have another problem with, which I hope is solved when I run the latest version…)

Why are these not shown when I run yum update?

Expected outcome:
Show updatable packages with yum update
Foreman and Proxy versions:
foreman-2.4.1-1.el8.noarch
foreman-proxy-2.4.1-1.el8.noarch

Foreman and Proxy plugin versions:

Distribution and version:

CentOS 8

Any help appreciated.

Hey @rainer_d - that’s what we’re here for!
What version of Katello are you on?
Did you try subscription-manager refresh yet?

Hi,

I’m on

foreman-installer-katello-2.4.1-1.el8.noarch
katello-4.0.1-1.el8.noarch
katello-certs-tools-2.7.3-1.el8.noarch
katello-client-bootstrap-1.7.6-1.el8.noarch
katello-common-4.0.1-1.el8.noarch
katello-debug-4.0.1-1.el8.noarch
katello-default-ca-1.0-1.noarch
katello-repos-4.0.1-1.el8.noarch
katello-selinux-4.0.0-1.el8.noarch
katello-server-ca-1.0-1.noarch

Now, after a subscription-manager refresh, I get updates for basos and appstream, but not the foreman repositories I have in that particular composite content view.

Hi @rainer_d

I noticed you mentioned composite content views. I am assuming you have the Foreman repos inside of a content view and other repos inside another content view, with all of those in a composite view?

Are all the versions of the content views published and promoted to the appropriate lifecycle environment. After that is done, then we need to do a republish of the composite content view and promote that. Let me know if that helps solve the issue. After that is done, on the client run the subscription-manager refresh

2 Likes

So, I need to publish both the individual content views as well as the composite content view to the lifecycle environment?

This seemed kind-of redundant.

I’m in the process of deleting all the views and lifecycles involved to start over…

Yeah :frowning: The workflow is meant for example if you are having your own webapp, and you want to include RHEL for the clients to patch too, so you can version control RHEL and your app, then present both to a client.

Your use case sounds like you should just dump all the repos into a single content view. Composite content views can overcomplicate things.

2 Likes

OK, now I have an even bigger problem. I have deleted all the Content Views, the Lifecycle Environment and all the dependencies around them (well, I believed I had…), created a new Content View with just the needed repositories - and I can’t even publish that Content View to the “Library” anymore.

2021-07-01T18:27:27 [I|app|16a17d7d]   Parameters: {"searches"=>[{"type"=>"task", "task_id"=>"1451e3b5-d5d4-43ba-93bb-e164be1da5f2", "search_id"=>"1"}], "task"=>{}}
2021-07-01T18:27:27 [I|app|16a17d7d] Completed 200 OK in 80ms (Views: 0.8ms | ActiveRecord: 3.6ms | Allocations: 89868)
2021-07-01T18:27:30 [I|app|c274e17f] CONTENT_INDEX type=Katello::Rpm duration=6530.27
2021-07-01T18:27:30 [I|app|c274e17f] CONTENT_INDEX type=Katello::Rpm duration=6972.04
2021-07-01T18:27:30 [I|app|c274e17f] CONTENT_INDEX type=Katello::Rpm duration=7001.45
2021-07-01T18:27:30 [I|app|c274e17f] CONTENT_INDEX type=Katello::ModuleStream duration=3717.91
2021-07-01T18:27:31 [I|app|e83eb914] Started POST "/foreman_tasks/api/tasks/bulk_search" for 127.0.0.1 at 2021-07-01 18:27:31 +0200
2021-07-01T18:27:31 [I|app|e83eb914] Processing by ForemanTasks::Api::TasksController#bulk_search as HTML
2021-07-01T18:27:31 [I|app|e83eb914]   Parameters: {"searches"=>[{"type"=>"task", "task_id"=>"1451e3b5-d5d4-43ba-93bb-e164be1da5f2", "search_id"=>"1"}], "task"=>{}}
2021-07-01T18:27:31 [I|app|e83eb914] Completed 200 OK in 77ms (Views: 0.8ms | ActiveRecord: 3.7ms | Allocations: 89868)
2021-07-01T18:27:34 [I|app|c274e17f] CONTENT_INDEX type=Katello::ModuleStream duration=4452.94
2021-07-01T18:27:34 [I|app|c274e17f] CONTENT_INDEX type=Katello::ModuleStream duration=4221.74
2021-07-01T18:27:34 [I|app|c274e17f] CONTENT_INDEX type=Katello::ModuleStream duration=4274.65
2021-07-01T18:27:35 [I|app|c274e17f] CONTENT_INDEX type=Katello::Erratum duration=4249.89
2021-07-01T18:27:35 [I|app|c274e17f] CONTENT_INDEX type=Katello::Erratum duration=126.26
2021-07-01T18:27:36 [I|app|373fb6c1] Started POST "/foreman_tasks/api/tasks/bulk_search" for 127.0.0.1 at 2021-07-01 18:27:36 +0200
2021-07-01T18:27:36 [I|app|373fb6c1] Processing by ForemanTasks::Api::TasksController#bulk_search as HTML
2021-07-01T18:27:36 [I|app|373fb6c1]   Parameters: {"searches"=>[{"type"=>"task", "task_id"=>"1451e3b5-d5d4-43ba-93bb-e164be1da5f2", "search_id"=>"1"}], "task"=>{}}
2021-07-01T18:27:36 [I|app|6d9cbf71] Started GET "/notification_recipients" for 127.0.0.1 at 2021-07-01 18:27:36 +0200
2021-07-01T18:27:36 [I|app|6d9cbf71] Processing by NotificationRecipientsController#index as JSON
2021-07-01T18:27:36 [I|app|6d9cbf71] Completed 200 OK in 13ms (Views: 0.2ms | ActiveRecord: 6.1ms | Allocations: 4090)
2021-07-01T18:27:36 [I|app|373fb6c1] Completed 200 OK in 99ms (Views: 0.7ms | ActiveRecord: 14.8ms | Allocations: 95793)
2021-07-01T18:27:38 [I|app|c274e17f] CONTENT_INDEX type=Katello::Erratum duration=3227.1
2021-07-01T18:27:38 [I|app|c274e17f] CONTENT_INDEX type=Katello::Erratum duration=3514.67
2021-07-01T18:27:38 [I|app|c274e17f] CONTENT_INDEX type=Katello::PackageGroup duration=3465.31
2021-07-01T18:27:38 [I|app|c274e17f] CONTENT_INDEX type=Katello::PackageGroup duration=383.92
2021-07-01T18:27:38 [I|app|c274e17f] CONTENT_INDEX type=Katello::PackageGroup duration=3620.49
2021-07-01T18:27:39 [I|app|c274e17f] CONTENT_INDEX type=Katello::PackageGroup duration=945.17
2021-07-01T18:27:39 [I|app|c274e17f] CONTENT_INDEX type=Katello::Srpm duration=930.7
2021-07-01T18:27:39 [I|app|c274e17f] CONTENT_INDEX type=Katello::Srpm duration=887.62
2021-07-01T18:27:39 [I|app|c274e17f] CONTENT_INDEX type=Katello::Srpm duration=846.2
2021-07-01T18:27:40 [I|app|c274e17f] CONTENT_INDEX type=Katello::Srpm duration=636.75
2021-07-01T18:27:40 [I|aud|c274e17f] Katello::Repository (326) update event on distribution_version , 8
2021-07-01T18:27:40 [I|aud|c274e17f] Katello::Repository (326) update event on distribution_arch , x86_64
2021-07-01T18:27:40 [I|aud|c274e17f] Katello::Repository (326) update event on distribution_family , CentOS Linux
2021-07-01T18:27:40 [I|aud|c274e17f] Katello::Repository (326) update event on distribution_bootable , true
2021-07-01T18:27:40 [I|aud|c274e17f] Katello::Repository (327) update event on distribution_version , 8
2021-07-01T18:27:40 [I|aud|c274e17f] Katello::Repository (327) update event on distribution_arch , x86_64
2021-07-01T18:27:40 [I|aud|c274e17f] Katello::Repository (327) update event on distribution_family , CentOS-Plus
2021-07-01T18:27:40 [I|aud|c274e17f] Katello::Repository (327) update event on distribution_bootable , false
2021-07-01T18:27:40 [I|aud|c274e17f] Katello::Repository (329) update event on distribution_version , 8
2021-07-01T18:27:40 [I|aud|c274e17f] Katello::Repository (329) update event on distribution_arch , x86_64
2021-07-01T18:27:40 [I|aud|c274e17f] Katello::Repository (329) update event on distribution_family , CentOS-Extras
2021-07-01T18:27:40 [I|aud|c274e17f] Katello::Repository (329) update event on distribution_bootable , false
2021-07-01T18:27:40 [I|aud|c274e17f] Katello::Repository (326) update event on distribution_variant , AppStream,BaseOS
2021-07-01T18:27:40 [I|aud|c274e17f] Katello::Repository (329) update event on distribution_variant , extras
2021-07-01T18:27:40 [I|aud|c274e17f] Katello::Repository (327) update event on distribution_variant , plus
2021-07-01T18:27:40 [I|app|c274e17f] CONTENT_INDEX type=Katello::Rpm duration=16717.29
2021-07-01T18:27:42 [I|app|7078b68f] Started POST "/foreman_tasks/api/tasks/bulk_search" for 127.0.0.1 at 2021-07-01 18:27:42 +0200
2021-07-01T18:27:42 [I|app|7078b68f] Processing by ForemanTasks::Api::TasksController#bulk_search as HTML
2021-07-01T18:27:42 [I|app|7078b68f]   Parameters: {"searches"=>[{"type"=>"task", "task_id"=>"1451e3b5-d5d4-43ba-93bb-e164be1da5f2", "search_id"=>"1"}], "task"=>{}}
2021-07-01T18:27:42 [I|app|7078b68f] Completed 200 OK in 81ms (Views: 0.7ms | ActiveRecord: 3.9ms | Allocations: 90317)
2021-07-01T18:27:43 [I|app|c274e17f] CONTENT_INDEX type=Katello::ModuleStream duration=3334.61
2021-07-01T18:27:44 [I|app|c274e17f] CONTENT_INDEX type=Katello::Rpm duration=3627.59
2021-07-01T18:27:44 [I|app|c274e17f] CONTENT_INDEX type=Katello::Rpm duration=3795.06
2021-07-01T18:27:45 [I|app|c274e17f] CONTENT_INDEX type=Katello::ModuleStream duration=1912.37
2021-07-01T18:27:45 [I|app|c274e17f] CONTENT_INDEX type=Katello::Erratum duration=2320.44
2021-07-01T18:27:46 [I|app|c274e17f] CONTENT_INDEX type=Katello::ModuleStream duration=1802.39
2021-07-01T18:27:46 [I|app|c274e17f] CONTENT_INDEX type=Katello::Rpm duration=5601.27
2021-07-01T18:27:46 [I|app|c274e17f] CONTENT_INDEX type=Katello::Erratum duration=202.02
2021-07-01T18:27:46 [I|app|c274e17f] CONTENT_INDEX type=Katello::Erratum duration=287.37
2021-07-01T18:27:46 [I|app|c274e17f] CONTENT_INDEX type=Katello::Rpm duration=6011.1
2021-07-01T18:27:46 [I|app|c274e17f] CONTENT_INDEX type=Katello::PackageGroup duration=327.89
2021-07-01T18:27:46 [I|app|c274e17f] CONTENT_INDEX type=Katello::PackageGroup duration=118.0
2021-07-01T18:27:46 [I|app|c274e17f] CONTENT_INDEX type=Katello::PackageGroup duration=136.08
2021-07-01T18:27:46 [I|app|4b2da617] Started GET "/notification_recipients" for 127.0.0.1 at 2021-07-01 18:27:46 +0200
2021-07-01T18:27:46 [I|app|4b2da617] Processing by NotificationRecipientsController#index as JSON
2021-07-01T18:27:46 [I|app|4b2da617] Completed 200 OK in 7ms (Views: 0.1ms | ActiveRecord: 1.0ms | Allocations: 2144)
2021-07-01T18:27:46 [I|app|c274e17f] CONTENT_INDEX type=Katello::ModuleStream duration=328.44
2021-07-01T18:27:46 [I|app|c274e17f] CONTENT_INDEX type=Katello::ModuleStream duration=145.29
2021-07-01T18:27:46 [I|app|c274e17f] CONTENT_INDEX type=Katello::Srpm duration=233.35
2021-07-01T18:27:46 [I|app|c274e17f] CONTENT_INDEX type=Katello::Srpm duration=248.66
2021-07-01T18:27:46 [I|app|c274e17f] CONTENT_INDEX type=Katello::Srpm duration=252.22
2021-07-01T18:27:46 [I|app|c274e17f] CONTENT_INDEX type=Katello::Erratum duration=260.66
2021-07-01T18:27:46 [I|app|c274e17f] CONTENT_INDEX type=Katello::Erratum duration=273.63
2021-07-01T18:27:46 [I|aud|c274e17f] Katello::Repository (325) update event on distribution_version , 8
2021-07-01T18:27:46 [I|aud|c274e17f] Katello::Repository (325) update event on distribution_arch , x86_64
2021-07-01T18:27:46 [I|aud|c274e17f] Katello::Repository (325) update event on distribution_family , CentOS Linux
2021-07-01T18:27:46 [I|aud|c274e17f] Katello::Repository (325) update event on distribution_bootable , false
2021-07-01T18:27:46 [I|aud|c274e17f] Katello::Repository (325) update event on distribution_variant , AppStream
2021-07-01T18:27:46 [I|app|c274e17f] CONTENT_INDEX type=Katello::PackageGroup duration=229.62
2021-07-01T18:27:46 [I|app|c274e17f] CONTENT_INDEX type=Katello::PackageGroup duration=246.29
2021-07-01T18:27:47 [I|app|c274e17f] CONTENT_INDEX type=Katello::Rpm duration=165.92
2021-07-01T18:27:47 [I|app|c274e17f] CONTENT_INDEX type=Katello::Srpm duration=151.78
2021-07-01T18:27:47 [I|app|c274e17f] CONTENT_INDEX type=Katello::Rpm duration=732.76
2021-07-01T18:27:49 [I|app|29d46605] Started POST "/foreman_tasks/api/tasks/bulk_search" for 127.0.0.1 at 2021-07-01 18:27:49 +0200
2021-07-01T18:27:49 [I|app|29d46605] Processing by ForemanTasks::Api::TasksController#bulk_search as HTML
2021-07-01T18:27:49 [I|app|29d46605]   Parameters: {"searches"=>[{"type"=>"task", "task_id"=>"1451e3b5-d5d4-43ba-93bb-e164be1da5f2", "search_id"=>"1"}], "task"=>{}}
2021-07-01T18:27:49 [I|app|29d46605] Completed 200 OK in 73ms (Views: 0.7ms | ActiveRecord: 3.4ms | Allocations: 90652)
2021-07-01T18:27:56 [I|app|0042f162] Started GET "/notification_recipients" for 127.0.0.1 at 2021-07-01 18:27:56 +0200
2021-07-01T18:27:56 [I|app|0042f162] Processing by NotificationRecipientsController#index as JSON
2021-07-01T18:27:56 [I|app|0042f162] Completed 200 OK in 7ms (Views: 0.1ms | ActiveRecord: 0.8ms | Allocations: 2144)
2021-07-01T18:27:57 [I|app|e100d068] Started POST "/foreman_tasks/api/tasks/bulk_search" for 127.0.0.1 at 2021-07-01 18:27:57 +0200
2021-07-01T18:27:57 [I|app|e100d068] Processing by ForemanTasks::Api::TasksController#bulk_search as HTML
2021-07-01T18:27:57 [I|app|e100d068]   Parameters: {"searches"=>[{"type"=>"task", "task_id"=>"1451e3b5-d5d4-43ba-93bb-e164be1da5f2", "search_id"=>"1"}], "task"=>{}}
2021-07-01T18:27:57 [I|app|e100d068] Completed 200 OK in 76ms (Views: 0.8ms | ActiveRecord: 3.4ms | Allocations: 90652)
2021-07-01T18:27:58 [I|app|c274e17f] CONTENT_INDEX type=Katello::Srpm duration=11097.98
2021-07-01T18:27:58 [I|app|c274e17f] CONTENT_INDEX type=Katello::ModuleStream duration=11075.98
2021-07-01T18:27:58 [I|app|c274e17f] CONTENT_INDEX type=Katello::ModuleStream duration=10512.28
2021-07-01T18:27:58 [I|app|c274e17f] CONTENT_INDEX type=Katello::Rpm duration=11230.71
2021-07-01T18:27:58 [I|aud|c274e17f] Katello::Repository (330) update event on distribution_version , 8
2021-07-01T18:27:58 [I|aud|c274e17f] Katello::Repository (330) update event on distribution_arch , x86_64
2021-07-01T18:27:58 [I|aud|c274e17f] Katello::Repository (330) update event on distribution_family , CentOS Linux
2021-07-01T18:27:58 [I|aud|c274e17f] Katello::Repository (330) update event on distribution_bootable , false
2021-07-01T18:27:58 [I|app|c274e17f] CONTENT_INDEX type=Katello::Erratum duration=150.88
2021-07-01T18:27:58 [I|aud|c274e17f] Katello::Repository (330) update event on distribution_variant , PowerTools
2021-07-01T18:27:58 [I|app|c274e17f] CONTENT_INDEX type=Katello::Erratum duration=153.79
2021-07-01T18:27:58 [I|app|c274e17f] CONTENT_INDEX type=Katello::ModuleStream duration=139.08
2021-07-01T18:27:58 [I|app|c274e17f] CONTENT_INDEX type=Katello::PackageGroup duration=115.15
2021-07-01T18:27:58 [I|app|c274e17f] CONTENT_INDEX type=Katello::PackageGroup duration=91.4
2021-07-01T18:27:58 [I|app|c274e17f] CONTENT_INDEX type=Katello::Erratum duration=97.52
2021-07-01T18:27:58 [I|app|c274e17f] CONTENT_INDEX type=Katello::Srpm duration=98.93
2021-07-01T18:27:58 [I|app|c274e17f] CONTENT_INDEX type=Katello::Srpm duration=112.86
2021-07-01T18:27:58 [I|app|c274e17f] CONTENT_INDEX type=Katello::PackageGroup duration=106.24
2021-07-01T18:27:58 [I|app|c274e17f] CONTENT_INDEX type=Katello::Srpm duration=104.67
2021-07-01T18:28:01 [E|bac|c274e17f] Error message: the server returns an error
 c274e17f | HTTP status code: 400
 c274e17f | Response headers: {"date"=>"Thu, 01 Jul 2021 16:28:01 GMT", "server"=>"gunicorn/20.0.4", "content-type"=>"application/json", "vary"=>"Accept,Cookie", "allow"=>"GET, POST, HEAD, OPTIONS", "x-frame-options"=>"SAMEORIGIN", "content-length"=>"62", "correlation-id"=>"b583277dfe3c414fa516dd2c73bb33ab", "access-control-expose-headers"=>"Correlation-ID", "via"=>"1.1 foreman-app01-prod.dom.tld", "connection"=>"close"}
 c274e17f | Response body: {"publication":["Invalid hyperlink - Object does not exist."]} (PulpRpmClient::ApiError)
 c274e17f | /usr/share/gems/gems/pulp_rpm_client-3.10.0/lib/pulp_rpm_client/api_client.rb:81:in `call_api'
 c274e17f | /usr/share/gems/gems/pulp_rpm_client-3.10.0/lib/pulp_rpm_client/api/distributions_rpm_api.rb:79:in `create_with_http_info'
 c274e17f | /usr/share/gems/gems/pulp_rpm_client-3.10.0/lib/pulp_rpm_client/api/distributions_rpm_api.rb:28:in `create'
 c274e17f | /usr/share/gems/gems/katello-4.0.1.2/app/services/katello/pulp3/repository.rb:262:in `create_distribution'
 c274e17f | /usr/share/gems/gems/katello-4.0.1.2/app/services/katello/pulp3/repository.rb:246:in `refresh_distributions'
 c274e17f | /usr/share/gems/gems/katello-4.0.1.2/app/lib/actions/pulp3/repository/refresh_distribution.rb:27:in `invoke_external_task'
 c274e17f | /usr/share/gems/gems/dynflow-1.4.8/lib/dynflow/action/polling.rb:84:in `initiate_external_action'
 c274e17f | /usr/share/gems/gems/dynflow-1.4.8/lib/dynflow/action/polling.rb:19:in `run'
 c274e17f | /usr/share/gems/gems/dynflow-1.4.8/lib/dynflow/action/cancellable.rb:14:in `run'
 c274e17f | /usr/share/gems/gems/katello-4.0.1.2/app/lib/actions/pulp3/abstract_async_task.rb:10:in `run'
 c274e17f | /usr/share/gems/gems/dynflow-1.4.8/lib/dynflow/action.rb:571:in `block (3 levels) in execute_run'
 c274e17f | /usr/share/gems/gems/dynflow-1.4.8/lib/dynflow/middleware/stack.rb:27:in `pass'
 c274e17f | /usr/share/gems/gems/dynflow-1.4.8/lib/dynflow/middleware.rb:19:in `pass'

How do I go from here?

So, because this is more of a test-bed, I did a “reset” and now it seems to work better.

Well, hopefully - I’ll see when I update the repos the next time

1 Like