Project

Profile

Help

Issue #7681 ยป 7681_no_declared_artifact.sh

dalley, 11/12/2020 04:04 AM

 
export BASE_ADDR=http://localhost:24817

pulp-admin rpm repo create --download-policy=on_demand --repo-id centos8-baseos --feed http://mirror.linux.duke.edu/pub/centos/8/BaseOS/x86_64/os/
pulp-admin rpm repo sync run --repo-id centos8-baseos


http POST :24817/pulp/api/v3/migration-plans/ plan='{"plugins": [{"type": "rpm", "repositories": [{"name": "centos8-baseos", "pulp2_importer_repository_id": "centos8-baseos", "repository_versions": [{"pulp2_repository_id": "centos8-baseos", "pulp2_distributor_repository_ids": ["centos8-baseos"]}]}]}]}'

export PLAN_HREF=$(http $BASE_ADDR/pulp/api/v3/migration-plans/ | jq -r '.results[0] | .pulp_href')

http POST :24817${PLAN_HREF}run/

pulp-admin rpm repo create --download-policy=on_demand --repo-id centos8-kickstart --feed http://mirror.linux.duke.edu/pub/centos/8/BaseOS/x86_64/kickstart/
pulp-admin rpm repo sync run --repo-id centos8-kickstart


http POST :24817/pulp/api/v3/migration-plans/ plan='{"plugins": [{"type": "rpm", "repositories": [{"name": "centos8-baseos", "pulp2_importer_repository_id": "centos8-baseos", "repository_versions": [{"pulp2_repository_id": "centos8-baseos", "pulp2_distributor_repository_ids": ["centos8-baseos"]}]}, {"name": "centos8-kickstart", "pulp2_importer_repository_id": "centos8-kickstart", "repository_versions": [{"pulp2_repository_id": "centos8-kickstart", "pulp2_distributor_repository_ids": ["centos8-kickstart"]}]}]}]}'

export PLAN_HREF=$(http $BASE_ADDR/pulp/api/v3/migration-plans/ | jq -r '.results[1] | .pulp_href')

http POST :24817${PLAN_HREF}run/
    (1-1/1)