Project

Profile

Help

Story #7470

closed

As an user I want to sync collections on demand

Added by fao89 over 3 years ago. Updated over 2 years ago.

Status:
CLOSED - DUPLICATE
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

Ticket moved to GitHub: "pulp/pulp_ansible/712":https://github.com/pulp/pulp_ansible/issues/712


Enable on demand sync for collections


Related issues

Related to Ansible Plugin - Issue #7572: Make MANIFEST.json and FILES.json available in the CollectionVersion serializer in the V3 APICLOSED - CURRENTRELEASEfao89Actions
Related to Ansible Plugin - Issue #7632: CollectionVersion.contents are not being syncedCLOSED - CURRENTRELEASEActions
Related to Ansible Plugin - Refactor #7777: As a developer I want collections sync machinery easier to maintainCLOSED - CURRENTRELEASEbmbouter

Actions
Blocked by Pulp - Issue #7568: RepositoryVersionDistribution does not support on_demandCLOSED - CURRENTRELEASEfao89Actions
Actions #1

Updated by fao89 over 3 years ago

our _post_save method is heavily dependent on immediate policy: https://github.com/pulp/pulp_ansible/blob/master/pulp_ansible/app/tasks/collections.py#L432-L456

Actions #2

Updated by fao89 over 3 years ago

Do we have an endpoint that brings the MANIFEST.json data?

{
 "collection_info": {
  "namespace": "pulp",
  "name": "pulp_installer",
  "version": "3.6.3-1",
  "authors": [
   "Pulp Project Developers <pulp-dev@redhat.com>"
  ],
  "readme": "README.md",
  "tags": [
   "pulp",
   "pulpcore",
   "content",
   "software_repositories",
   "lifecycle_management",
   "content_delivery"
  ],
  "description": "A collection of Ansible roles to install & configure Pulp 3 from PyPI",
  "license": [
   "GPL-2.0-or-later"
  ],
  "license_file": null,
  "dependencies": {},
  "repository": "https://github.com/pulp/pulp_installer",
  "documentation": "https://pulp-installer.readthedocs.io/",
  "homepage": "https://pulpproject.org/",
  "issues": "https://pulp.plan.io/projects/pulp/issues?query_id=156"
 },
 "file_manifest_file": {
  "name": "FILES.json",
  "ftype": "file",
  "chksum_type": "sha256",
  "chksum_sha256": "54757b4a488e5be8666ded617aa213740e03e3387dd30a7a9484611fd5e2fac4",
  "format": 1
 },
 "format": 1
}
Actions #3

Updated by fao89 over 3 years ago

Apparently, the version endpoint brings all information we need:

URL: https://cloud.redhat.com/api/automation-hub/v3/collections/cyberark/conjur_collection/versions/1.0.3/

{
    "version": "1.0.3",
    "certification": "certified",
    "href": "/api/automation-hub/v3/collections/cyberark/conjur_collection/versions/1.0.3/",
    "created_at": "2020-04-22T05:51:35.004788Z",
    "updated_at": "2020-04-22T05:51:35.004819Z",
    "artifact": {
        "filename": "cyberark-conjur_collection-1.0.3.tar.gz",
        "sha256": "f1b8e8e95b8c8f31c32aeeddc772c4a3fc813545e28902a832e8e83bc38bb0a9",
        "size": 11354
    },
    "collection": {
        "id": "c54a323a-c151-4fbe-ac7e-30e518b1c0be",
        "name": "conjur_collection",
        "href": "/api/automation-hub/v3/collections/cyberark/conjur_collection/"
    },
    "download_url": "https://cloud.redhat.com/api/automation-hub/v3/artifacts/collections/automation-hub/cyberark-conjur_collection-1.0.3.tar.gz",
    "name": "conjur_collection",
    "namespace": {
        "name": "cyberark"
    },
    "metadata": {
        "authors": [
            "CyberArk Business Development (@cyberark-bizdev)",
            "Edward Nunez (@enunez-cyberark)",
            "James Stutes (@JimmyJamCABD)"
        ],
        "contents": [
            {
                "name": "conjur_variable",
                "description": "Fetch credentials from CyberArk Conjur.",
                "content_type": "lookup"
            }
        ],
        "dependencies": {},
        "description": "This is a Collection of CyberArk Conjur/DAP toolkit.",
        "documentation": "",
        "homepage": "",
        "issues": "",
        "license": [
            "Apache-2.0"
        ],
        "repository": "https://github.com/cyberark/ansible-conjur-collection",
        "tags": [
            "security",
            "cyberark",
            "access",
            "account",
            "vault",
            "identity",
            "credential",
            "secret",
            "privileged",
            "conjur",
            "devops"
        ]
    }
}

URL: https://galaxy.ansible.com/api/v2/collections/pulp/pulp_installer/versions/3.6.3/

{
    "id": 3871,
    "href": "https://galaxy.ansible.com/api/v2/collections/pulp/pulp_installer/versions/3.6.3/",
    "download_url": "https://galaxy.ansible.com/download/pulp-pulp_installer-3.6.3.tar.gz",
    "artifact": {
        "filename": "pulp-pulp_installer-3.6.3.tar.gz",
        "size": 90372,
        "sha256": "3b704628bd63c3b4fb1bee9ebc83647fbb06466f270ce3dfc6392b13210b4f41"
    },
    "namespace": {
        "id": 4091,
        "href": "https://galaxy.ansible.com/api/v1/namespaces/4091/",
        "name": "pulp"
    },
    "collection": {
        "id": 446,
        "href": "https://galaxy.ansible.com/api/v2/collections/pulp/pulp_installer/",
        "name": "pulp_installer"
    },
    "version": "3.6.3",
    "hidden": false,
    "metadata": {
        "name": "pulp_installer",
        "tags": [
            "pulp",
            "pulpcore",
            "content",
            "software_repositories",
            "lifecycle_management",
            "content_delivery"
        ],
        "issues": "https://pulp.plan.io/projects/pulp/issues?query_id=156",
        "readme": "README.md",
        "authors": [
            "Pulp Project Developers <pulp-dev@redhat.com>"
        ],
        "license": [
            "GPL-2.0-or-later"
        ],
        "version": "3.6.3",
        "homepage": "https://pulpproject.org/",
        "namespace": "pulp",
        "repository": "https://github.com/pulp/pulp_installer",
        "description": "A collection of Ansible roles to install & configure Pulp 3 from PyPI",
        "dependencies": {},
        "license_file": null,
        "documentation": "https://pulp-installer.readthedocs.io/"
    }
}

Instead of downloading and opening the collection file, we can pass these data through stages API

Actions #4

Updated by fao89 over 3 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to fao89
  • Sprint set to Sprint 82
Actions #5

Updated by bmbouter over 3 years ago

I don't believe the server side APIs on galaxy.ansible.com and cloud.redhat.com do not provide all attributes that we would need. I believe that blocks this story from continuing.

Actions #6

Updated by pulpbot over 3 years ago

  • Status changed from ASSIGNED to POST
Actions #7

Updated by fao89 over 3 years ago

  • Related to Issue #7572: Make MANIFEST.json and FILES.json available in the CollectionVersion serializer in the V3 API added
Actions #8

Updated by fao89 over 3 years ago

  • Related to Issue #7632: CollectionVersion.contents are not being synced added
Actions #9

Updated by rchan over 3 years ago

  • Sprint changed from Sprint 82 to Sprint 83
Actions #10

Updated by fao89 over 3 years ago

  • Blocked by Issue #7568: RepositoryVersionDistribution does not support on_demand added
Actions #11

Updated by rchan over 3 years ago

  • Sprint changed from Sprint 83 to Sprint 84
Actions #12

Updated by rchan over 3 years ago

  • Sprint changed from Sprint 84 to Sprint 85
Actions #13

Updated by fao89 over 3 years ago

  • Status changed from POST to NEW
  • Assignee deleted (fao89)
  • Sprint deleted (Sprint 85)
Actions #14

Updated by fao89 over 3 years ago

  • Parent issue set to #7777
Actions #15

Updated by fao89 over 3 years ago

  • Parent issue deleted (#7777)
Actions #16

Updated by fao89 over 3 years ago

  • Related to Refactor #7777: As a developer I want collections sync machinery easier to maintain added
Actions #17

Updated by pulpbot over 2 years ago

  • Description updated (diff)
  • Status changed from NEW to CLOSED - DUPLICATE

Also available in: Atom PDF