Skip to content

[feature request] Add option to for destination environment in copy_content() #214

@rhjostone

Description

@rhjostone

Summary

With how many pulp environments there can be, content units can easily fall out of sync between them. It doesn't appear that copy_content() has a way of setting a destination environment to complement the to_repository parameter. Adding such a parameter would drastically simplify content synchronization.

Issue Type

  • Feature Request

Current behavior

There doesn't appear to be a built-in way to synchronize content units between pulp environments when using copy_content().

Desired behavior

copy_content() should have ideally have an optional parameter for a destination environment, such as client.copy_content(TARGET_REPO, DESTINATION_REPO, to_client=Client(url=DEST_URL, cert=CERT))

Use case

A stage pulp environment is occasionally used for comparing content against prod, however even when running pub to push a compose and update pulp, the packages in the stage pulp environment aren't guaranteed to be 1:1 with prod. Copying pulp content units directly between environments may be more reliable.

Additional Information

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions