Why api show incorrect enabled repositories for host on Red Hat Satellite 6?
Issue
-
Why the api show wrong information of enabled repositories from Red Hat Satellite 6:
The repository defined on host:+----------------------------------------------------------+ Available Repositories in /etc/yum.repos.d/redhat.repo +----------------------------------------------------------+ Repo ID: rhel-6-server-rpms Repo Name: Red Hat Enterprise Linux 6 Server (RPMs) Repo URL: https://satellite.example.com/pulp/repos/ESMA/Library/content/dist/rhel/server/6/6Server/$basearch/os Enabled: 1 Repo ID: rhel-6-server-extras-rpms Repo Name: Red Hat Enterprise Linux 6 Server - Extras (RPMs) Repo URL: https://satellite.example.com/pulp/repos/ESMA/Library/content/dist/rhel/server/6/6Server/$basearch/extras/os Enabled: 0 Repo ID: rhel-6-server-optional-rpms Repo Name: Red Hat Enterprise Linux 6 Server - Optional (RPMs) Repo URL: https://satellite.example.com/pulp/repos/ESMA/Library/content/dist/rhel/server/6/6Server/$basearch/optional/os Enabled: 0 Repo ID: rhel-6-server-rh-common-rpms Repo Name: Red Hat Enterprise Linux 6 Server - RH Common (RPMs) Repo URL: https://satellite.example.com/pulp/repos/ESMA/Library/content/dist/rhel/server/6/6Server/$basearch/rh-common/os Enabled: 1
The repositorys show on Red Hat Satellite for host:
# curl -s --insecure https://satellite-admin:password@satellite.example.com/katello/api/v2/systems/dffde525-05cc-419b-b54b-653d547f4b14 { "id": 11, "uuid": "dffde525-05cc-419b-b54b-653d547f4b14", "name": "testVM3", "description": "Initial Registration Params", "location": "None", "content_view": { "id": 2, "name": "Default Organization View", "label": "Default_Organization_View", "description": null, "organization_id": 4, "default": true, "created_at": "2014-10-02T05:56:06Z", "updated_at": "2014-10-02T05:56:06Z", "composite": null, "next_version": 1, "organization": "ESMA", "environments": [ "Library" ], "versions": [ 1 ], "versions_details": [ { "version": 1, "published": "2014-10-02 05:56:06 UTC", "environments": [ "Library" ] } ] }, "content_view_id": 2, "distribution": "Red Hat Enterprise Linux Server 6.6", "katello_agent_installed": true, "content_overrides": [ { "contentLabel": "rhel-6-server-rh-common-rpms", "name": "enabled", "value": "1", "created": "2014-10-29T12:50:08.279+0000", "updated": "2014-10-29T12:50:08.279+0000" } ], "entitlementStatus": "valid", "autoheal": true, "href": "/consumers/dffde525-05cc-419b-b54b-653d547f4b14", "release": "6Server", "checkin_time": "2014-11-14T07:09:12+01:00", "created": "2014-10-29T12:50:07.053+0000", "installedProducts": [ { "productId": "69", "productName": "Red Hat Enterprise Linux Server", "version": "6.5", "arch": "x86_64", "status": "green", "startDate": "2014-09-01T04:00:00.000+0000", "endDate": "2015-09-01T03:59:59.000+0000" } ], "service_level": "", "release_ver": "6Server", "permissions": { "editable": true }, "products": [ { "id": 8, "name": "Red Hat Beta" }, { "id": 9, "name": "Oracle Java for RHEL Server" }, { "id": 11, "name": "Red Hat Software Collections Beta for RHEL Server" }, { "id": 10, "name": "Red Hat Enterprise Linux Server" } ], "host": null, "hostCollections": [], "customInfo": [], "environment": { "id": 2, "name": "Library", "label": "Library", "description": null, "organization": { "name": "ESMA", "label": "ESMA" }, "created_at": "2014-10-02T05:56:05Z", "updated_at": "2014-10-02T05:56:05Z", "library": true, "prior": null, "permissions": { "view_lifecycle_environments": true, "edit_lifecycle_environments": true, "destroy_lifecycle_environments": true, "promote_or_remove_content_views_to_environments": true } }, "activation_keys": [ { "id": 6, "name": "ESMA-test", "description": null } ] }
Environment
- Red Hat Satellite 6.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.