Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1175425

Summary: [RFE] As an API user, I would like to view the content of a Docker repository.
Product: Red Hat Satellite Reporter: Bryan Kearney <bkearney>
Component: Content ManagementAssignee: David Davis <daviddavis>
Status: CLOSED ERRATA QA Contact: Elyézer Rezende <erezende>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.4CC: bbuckingham, cwelton
Target Milestone: UnspecifiedKeywords: FutureFeature, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/7642
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-12 05:20:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Bryan Kearney 2014-12-17 17:43:29 UTC
This also includes the backend task of fetching docker images from pulp, etc

Comment 1 Bryan Kearney 2014-12-17 17:43:30 UTC
Created from redmine issue http://projects.theforeman.org/issues/7642

Comment 3 Bryan Kearney 2014-12-17 19:04:58 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/7642 has been closed
-------------
David Davis
Applied in changeset commit:katello|2d21563c639d3adb3f962b74961458d6eb51224e.

Comment 4 Bryan Kearney 2015-01-09 14:50:15 UTC
Upstream bug assigned to daviddavis

Comment 7 Elyézer Rezende 2015-02-13 19:50:56 UTC
Verified on Satellite-6.1.0-RHEL-7-20150210.0.

Verification steps:

1) Created a Product
2) Created a Docker repository for that product
3) Synced the repository content
4) Using API fetched tags information
5) Using API fetched images information

Fetched data:

GET https://hp-nehalem-02.example.com/katello/api/v2/docker_tags?repository_id=1
{
    "total": 5,
    "subtotal": 5,
    "page": 1,
    "per_page": 20,
    "search": null,
    "sort": {
        "by": null,
        "order": null
    },
    "results": [
        {
            "id": 5,
            "name": "buildroot-2013.08.1",
            "full_name": "DockerRepository:buildroot-2013.08.1",
            "repository_id": 1,
            "image_id": "2aed48a4e41d3931167146e9b7492aa5639e7f6478be9eac584726ecec6824ed",
            "repository": {
                "id": 1,
                "name": "DockerRepository",
                "full_path": "hp-nehalem-02.example.com:5000/default_organization-dockerproduct-dockerrepository"
            },
            "product": {
                "id": 1,
                "name": "DockerProduct"
            },
            "environment": {
                "id": 1,
                "name": "Library"
            },
            "content_view_version": {
                "id": 1,
                "name": "Default Organization View 1.0"
            }
        },
        {
            "id": 4,
            "name": "ubuntu-12.04",
            "full_name": "DockerRepository:ubuntu-12.04",
            "repository_id": 1,
            "image_id": "492dad4279bae5bb73648efe9bf467b2cfa8bab1d593595226e3e7a95d9f6c35",
            "repository": {
                "id": 1,
                "name": "DockerRepository",
                "full_path": "hp-nehalem-02.example.com:5000/default_organization-dockerproduct-dockerrepository"
            },
            "product": {
                "id": 1,
                "name": "DockerProduct"
            },
            "environment": {
                "id": 1,
                "name": "Library"
            },
            "content_view_version": {
                "id": 1,
                "name": "Default Organization View 1.0"
            }
        },
        {
            "id": 3,
            "name": "ubuntu-14.04",
            "full_name": "DockerRepository:ubuntu-14.04",
            "repository_id": 1,
            "image_id": "f6169d24347d30de48e4493836bec15c78a34f08cc7f17d6a45a19d68dc283ac",
            "repository": {
                "id": 1,
                "name": "DockerRepository",
                "full_path": "hp-nehalem-02.example.com:5000/default_organization-dockerproduct-dockerrepository"
            },
            "product": {
                "id": 1,
                "name": "DockerProduct"
            },
            "environment": {
                "id": 1,
                "name": "Library"
            },
            "content_view_version": {
                "id": 1,
                "name": "Default Organization View 1.0"
            }
        },
        {
            "id": 2,
            "name": "buildroot-2014.02",
            "full_name": "DockerRepository:buildroot-2014.02",
            "repository_id": 1,
            "image_id": "4986bf8c15363d1c5d15512d5266f8777bfba4974ac56e3270e7760f6f0a8125",
            "repository": {
                "id": 1,
                "name": "DockerRepository",
                "full_path": "hp-nehalem-02.example.com:5000/default_organization-dockerproduct-dockerrepository"
            },
            "product": {
                "id": 1,
                "name": "DockerProduct"
            },
            "environment": {
                "id": 1,
                "name": "Library"
            },
            "content_view_version": {
                "id": 1,
                "name": "Default Organization View 1.0"
            }
        },
        {
            "id": 1,
            "name": "latest",
            "full_name": "DockerRepository:latest",
            "repository_id": 1,
            "image_id": "4986bf8c15363d1c5d15512d5266f8777bfba4974ac56e3270e7760f6f0a8125",
            "repository": {
                "id": 1,
                "name": "DockerRepository",
                "full_path": "hp-nehalem-02.example.com:5000/default_organization-dockerproduct-dockerrepository"
            },
            "product": {
                "id": 1,
                "name": "DockerProduct"
            },
            "environment": {
                "id": 1,
                "name": "Library"
            },
            "content_view_version": {
                "id": 1,
                "name": "Default Organization View 1.0"
            }
        }
    ]
}

GET https://hp-nehalem-02.example.com/katello/api/v2/docker_images?repository_id=1
{
    "total": 10,
    "subtotal": 10,
    "page": 1,
    "per_page": 20,
    "search": null,
    "sort": {
        "by": null,
        "order": null
    },
    "results": [
        {
            "id": "dc6b3b28-d1b1-4863-9e53-8c5b0bcadd92",
            "size": 0,
            "image_id": "2aed48a4e41d3931167146e9b7492aa5639e7f6478be9eac584726ecec6824ed",
            "tags": [
                {
                    "repository_id": 1,
                    "name": "buildroot-2013.08.1"
                }
            ]
        },
        {
            "id": "c931bfcd-2783-497c-a3fd-3efae6398ae5",
            "size": 0,
            "image_id": "df7546f9f060a2268024c8a230d8639878585defcc1bc6f79d2728a13957871b",
            "tags": []
        },
        {
            "id": "c34a5062-5eed-416e-91e4-9f9b2124fe14",
            "size": null,
            "image_id": "511136ea3c5a64f264b78b5433614aec563103b4d4702f3ba7d4d2698e22c158",
            "tags": []
        },
        {
            "id": "ab4630de-5b46-4f4c-b0f1-3162e64df6fa",
            "size": 2489301,
            "image_id": "618b1fc306b06d11e192812ede4c685dcbf886d2a0189e9a552c550fd7663df0",
            "tags": []
        },
        {
            "id": "75fa2c1f-58aa-49a8-8809-9050c4bbc8a1",
            "size": 5454693,
            "image_id": "2982ec56c8d910121e7594ca7890b062f6d37fadf7575f6a6f3adbabbafac9f5",
            "tags": []
        },
        {
            "id": "6eabe263-54d3-48c7-b720-790704e9d84f",
            "size": 5609404,
            "image_id": "e8a999563c473139dc74d02eefb7b13ffea63799bc05b8936b9ad7119b37742f",
            "tags": []
        },
        {
            "id": "429f3f83-d79b-4fd4-a291-c8980e7dcb51",
            "size": 0,
            "image_id": "492dad4279bae5bb73648efe9bf467b2cfa8bab1d593595226e3e7a95d9f6c35",
            "tags": [
                {
                    "repository_id": 1,
                    "name": "ubuntu-12.04"
                }
            ]
        },
        {
            "id": "373ab506-bdfc-4ba2-911d-fa8fbb36139f",
            "size": 0,
            "image_id": "f6169d24347d30de48e4493836bec15c78a34f08cc7f17d6a45a19d68dc283ac",
            "tags": [
                {
                    "repository_id": 1,
                    "name": "ubuntu-14.04"
                }
            ]
        },
        {
            "id": "2ba692de-c301-44b9-ae6a-368a6118b1e7",
            "size": 2433303,
            "image_id": "ea13149945cb6b1e746bf28032f02e9b5a793523481a0a18645fc77ad53c4ea2",
            "tags": []
        },
        {
            "id": "1e0b7277-bb4d-451b-a5c9-8de835cfaf32",
            "size": 0,
            "image_id": "4986bf8c15363d1c5d15512d5266f8777bfba4974ac56e3270e7760f6f0a8125",
            "tags": [
                {
                    "repository_id": 1,
                    "name": "buildroot-2014.02"
                },
                {
                    "repository_id": 1,
                    "name": "latest"
                }
            ]
        }
    ]
}

Comment 8 Bryan Kearney 2015-08-11 13:21:16 UTC
This bug is slated to be released with Satellite 6.1.

Comment 9 errata-xmlrpc 2015-08-12 05:20:58 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, 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-2015:1592