Project

General

Profile

Actions

Bug #38712

open

Representation of Rolling ContentViewVersion reports incorrect Content Counts

Added by David Moore 12 months ago. Updated 5 months ago.

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

Description

With the new rolling CV feature, the errata_counts for Rolling CVV are reported correctly, but package_count , package_group_count, module_stream_count, and some others are always listed as 0.
The Rolling ContentView still functions as expected, but we request that the CVV representing the Rolling ContentView, reports correct content counts.

Also request but not critical for this issue, could the last_published time for the Rolling ContentView, be updated each time the repository content update is performed?
Currently, the last_published time will never change after creation of the Rolling ContentView.

Reproduce - Setup: some rolling cv created on satellite, one yum type repository added and synced.
Step 1: nav to the endpoint for the Rolling Content View
Step 2: nav to the endpoint for the Rolling Content View 's single listed Version

>> {hostname}/katello/api/v2/content_views/131/
{"content_host_count":0,"composite":false,"rolling":true,"component_ids":[],"duplicate_repositories_to_publish":[],"default":false,"version_count":1,"latest_version":"1.0","latest_version_id":131,"auto_publish":false,"solve_dependencies":false,
"import_only":false,"generated_for":"none","related_cv_count":0,"related_composite_cvs":[],"filtered":false,"needs_publish":false,
"repository_ids":[267],"id":131,"name":"ROyOqS","label":"ROyOqS","description":null,"organization_id":64,"organization":{"name":"AsMmZUXOpHr","label":"AsMmZUXOpHr","id":64},"created_at":"2025-09-03 13:15:54 -0400","updated_at":"2025-09-03 13:15:54 -0400",
"last_task":null,"latest_version_environments":[{"id":65,"name":"Library","label":"Library"}],"repositories":[{"id":267,"name":"lJmfzF","label":"lJmfzF","content_type":"yum"}],"versions":[{"id":131,"version":"1.0","published":"2025-09-03 13:15:54 -0400",
"description":null,"environment_ids":[65],"filters_applied":null,"published_at_words":"28 minutes"}],"components":[],"content_view_components":[],
"activation_keys":[],"hosts":[],"next_version":"2.0","last_published":"2025-09-03 13:15:54 -0400","environments":[{"id":65,"label":"Library",
"name":"Library","activation_keys":[],"hosts":[],"permissions":{"readable":true}}],"errors":null}=64), 
repository=[nailgun.entities.Repository(id=267)], rolling=True, solve_dependencies=False, version=[nailgun.entities.ContentViewVersion(id=131)], id=131) <<<--- VERSION (alias) where we request correct counts reflected

>> {hostname}/katello/api/v2/content_view_versions/131/
  {"version":"1.0","major":1,"minor":0,"composite_content_view_ids":[],
"published_in_composite_content_view_ids":[],"content_view_id":131,
"default":false,"description":null,"id":131,"name":"ROyOqS 1.0","created_at":"2025-09-03 13:15:54 -0400","updated_at":"2025-09-03 13:15:55 -0400",
"content_view":{"id":131,"name":"ROyOqS","label":"ROyOqS","generated_for":"none"},"composite_content_views":[],"composite_content_view_versions":[],
"published_in_composite_content_views":[],"content_view_environments":[{"label":"Library/ROyOqS","environment_id":65,
"environment_name":"Library"}],"environments":[{"id":65,"name":"Library","label":"Library","publish_date":"about 2 hours",
"permissions":{"readable":true,"promotable_or_removable":true,"all_hosts_editable":true,"all_keys_editable":true},"host_count":0,"multi_env_host_count":0,
"activation_key_count":0,"multi_env_ak_count":0}],"repositories":[{"id":268,"name":"lJmfzF","label":"lJmfzF","content_type":"yum","library_instance_id":267,
"mirroring_policy":"mirror_content_only"}],"last_event":null,"active_history:[],"ansible_collection_count":0,
"docker_manifest_count":0,"docker_manifest_list_count":0,"docker_tag_count":0,"file_count":0,"rpm_count":0,"modulemd_count":0,
"erratum_count":0,"package_group_count":0,"srpm_count":0,"module_stream_count":0,"package_count":0,"component_view_count":0,
"yum_repository_count":1,"ansible_collection_repository_count":0,"docker_repository_count":0,"file_repository_count":0,
"errata_counts":{"security":4,"bugfix":0,"enhancement":0,"total":4},"permissions":{"deletable":true},"filters_applied":null}
In the Version 's endpoint, we see the errata_counts are reported correctly for this single yum repo. But package_count is 0, we expected 10+.
Similarly, for repositories with package_groups or module_streams synced and added, the package_group_count and module_stream_count is still 0.
I have not yet tested every field with other repository types (docker, file, ansible_collection).

This would aid automation (https://github.com/SatelliteQE/robottelo/pull/19262), so we can assert the content counts are updated &correct for the rolling cv, after some repository content update was performed.

Actions #1

Updated by Ian Ballou 12 months ago

  • Description updated (diff)
Actions #2

Updated by Ian Ballou 12 months ago

  • Red Hat JIRA set to SAT-37897
Actions #3

Updated by Samir Jha 12 months ago

  • Target version changed from Katello 4.20.0 to Katello 4.18.1
  • Triaged changed from No to Yes
Actions #4

Updated by Samir Jha 10 months ago

  • Target version changed from Katello 4.18.1 to Katello 4.19.0
Actions #5

Updated by Samir Jha 8 months ago

  • Target version changed from Katello 4.19.0 to Katello 4.20.0
Actions #6

Updated by Samir Jha 5 months ago

  • Target version changed from Katello 4.20.0 to Katello 5.0.0
Actions

Also available in: Atom PDF