Git Product home page Git Product logo

catalog_tower_persister's Introduction

Catalog Tower Persister

Catalog Tower Persister adds/updates/removes Ansible Tower objects in the Catalog Inventory database. It gets information about these objects in a compressed tar file from the Upload Service. Once the Catalog Worker uploads the file, the Ingress Service sends a message on the kafka topic platform.upload.catalog with the payload details and a URL to download the file.

Kafka Payload info

{
    "size": 12345,
    "url": "https://....",
    "service": "catalog",
    "request_id": "xxx-yyy-nnn",
    "metadata": {
        "reporter": "",
        "stale_timestamp": ""
    },
    "b64_identity": "xxxxxxxx",
    "timestamp": "2020-11-25T16:22:56.449719273Z",
    "category": "<<refresh_task_id>>",
    "account": "xxxx",
    "principal": "xxxx"
}

Layout of the tar file for full refresh

api/v2/job_templates/page1.json
api/v2/job_templates/page2.json
api/v2/job_templates/page3.json
api/v2/job_templates/10/survey_spec/page1.json
api/v2/job_templates/17/survey_spec/page1.json
api/v2/credential_types/page1.json
api/v2/credentials/page1.json
api/v2/inventories/page1.json
api/v2/workflow_job_templates/page1.json
api/v2/workflow_job_templates/page2.json
api/v2/workflow_job_templates/12/survey_spec/page1.json
api/v2/workflow_job_templates/20/survey_spec/page1.json
api/v2/workflow_job_template_nodes/page1.json
api/v2/workflow_job_template_nodes/page2.json

Possible layout of the tar file for incremental refresh The id file carries the ids of all the objects so we can delete the ones that no longer exist in the tower

api/v2/job_templates/page1.json
api/v2/job_templates/id1.json
api/v2/job_templates/30/survey_spec/page1.json
api/v2/workflow_job_templates/page1.json
api/v2/workflow_job_templates/page2.json
api/v2/workflow_job_templates/12/survey_spec/page1.json
api/v2/workflow_job_templates/20/survey_spec/page1.json
api/v2/workflow_job_template_nodes/page1.json
api/v2/workflow_job_template_nodes/page2.json

Alt UsingUploadService

catalog_tower_persister's People

Contributors

bzwei avatar hsong-rh avatar mkanoor avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.