Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2217942 - satellite 6.11 API Content View Lists same Environment Name and Label despite name changes
Summary: satellite 6.11 API Content View Lists same Environment Name and Label despite...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Views
Version: 6.11.4
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: 6.14.0
Assignee: satellite6-bugs
QA Contact: Cole Higgins
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-06-27 14:53 UTC by Ajay Laxman Chavan
Modified: 2024-02-08 20:07 UTC (History)
6 users (show)

Fixed In Version: rubygem-katello-4.9.0.8-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-11-08 14:19:51 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 36598 0 Normal New Content View API lists same Environment Name and Label despite name changes 2023-07-17 19:43:22 UTC
Red Hat Issue Tracker SAT-19006 0 None None None 2023-07-17 19:37:11 UTC
Red Hat Product Errata RHSA-2023:6818 0 None None None 2023-11-08 14:20:11 UTC

Description Ajay Laxman Chavan 2023-06-27 14:53:38 UTC
Description of problem:

satellite 6.11 API Content View Lists same Environment Name and Label despite Environment name changes.

How reproducible:

100%

Steps to Reproduce:
1. create new Environment
2. change the Environment name.
3. promote content-view to the Environment
4. check content view information using API.

Actual results:

# curl -X GET -s -k -u admin:redhat https://satellite.example.com/katello/api/content_views/2 | json_reformat
{
    "content_host_count": 0,
    "composite": false,
    "component_ids": [
 
    ],
    "default": false,
    "version_count": 1,
    "latest_version": "1.0",
    "latest_version_id": 2,
    "auto_publish": false,
    "solve_dependencies": false,
    "import_only": false,
    "generated_for": "none",
    "related_cv_count": 0,
    "related_composite_cvs": [
 
    ],
    "repository_ids": [
        2,
        3,
        7
    ],
    "id": 2,
    "name": "rhel8",
    "label": "rhel8",
    "description": "",
    "organization_id": 1,
    "organization": {
        "name": "RedHat",
        "label": "RedHat",
        "id": 1
    },
    "created_at": "2023-06-15 15:27:02 UTC",
    "updated_at": "2023-06-15 15:27:28 UTC",
    "last_task": {
        "id": "3e827cfb-fe05-41b7-a9ee-ecea309a9ddb",
        "started_at": "2023-06-26 14:03:45 UTC",
        "result": "success",
        "last_sync_words": "about 2 hours"
    },
    "latest_version_environments": [
        {
            "id": 1,
            "name": "Library",
            "label": "Library"
        },
        {
            "id": 2,
            "name": "Ansible Test",                             <<<<<<<<<<<<<<<<<<
            "label": "ansible-test"
        }
    ],
    "repositories": [
        {
            "id": 2,
            "name": "Red Hat Enterprise Linux 8 for x86_64 - BaseOS RPMs 8",
            "label": "Red_Hat_Enterprise_Linux_8_for_x86_64_-_BaseOS_RPMs_8",
            "content_type": "yum"
        },
        {
            "id": 3,
            "name": "Red Hat Enterprise Linux 8 for x86_64 - AppStream RPMs 8",
            "label": "Red_Hat_Enterprise_Linux_8_for_x86_64_-_AppStream_RPMs_8",
            "content_type": "yum"
        },
        {
            "id": 7,
            "name": "Red Hat Satellite Client 6 for RHEL 8 x86_64 RPMs",
            "label": "Red_Hat_Satellite_Client_6_for_RHEL_8_x86_64_RPMs",
            "content_type": "yum"
        }
    ],
    "versions": [
        {
            "id": 2,
            "version": "1.0",
            "published": "2023-06-15 15:27:28 UTC",
            "environment_ids": [
                1,
                2
            ]
        }
    ],
    "components": [
 
    ],
    "content_view_components": [
 
    ],
    "activation_keys": [
 
    ],
    "hosts": [
 
    ],
    "next_version": "2.0",
    "last_published": "2023-06-15 15:27:28 UTC",
    "environments": [
        {
            "id": 1,
            "label": "Library",
            "name": "Library",
            "activation_keys": [
 
            ],
            "hosts": [
 
            ],
            "permissions": {
                "readable": true
            }
        },
        {
            "id": 2,
            "label": "ansible-test", 
            "name": "ansible-test",                        <<<<<<<<<<<<<<<<<
            "activation_keys": [
 
            ],
            "hosts": [
 
            ],
            "permissions": {
                "readable": true
            }
        }
    ],
    "duplicate_repositories_to_publish": [
 
    ],
    "errors": null
}




Expected results:

latest_version_environments and environments should not show different information related to the environment name and label.

environments should return the latest updated name.

Comment 2 Samir Jha 2023-07-17 19:43:20 UTC
Created redmine issue https://projects.theforeman.org/issues/36598 from this bug

Comment 3 Bryan Kearney 2023-07-19 16:03:27 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/36598 has been resolved.

Comment 11 errata-xmlrpc 2023-11-08 14:19:51 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: Satellite 6.14 security and bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2023:6818


Note You need to log in before you can comment on or make changes to this bug.