Project

Profile

Help

Story #1520

make relative_url as supported optional key in repo export distributor creation

Added by ipanova@redhat.com almost 6 years ago. Updated over 2 years ago.

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

100%

Estimated time:
Platform Release:
2.8.0
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

$ curl -H "Accept: application/json" -X POST -k -u admin:admin -d '{"distributor_type_id": "export_distributor", "distributor_config": {"http": false, "https":true, "relative_url":"123"}}' 'https://localhost/pulp/api/v2/repositories/test/distributors/'|python -m json.tool
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   527  100   407  100   120   1409    415 --:--:-- --:--:-- --:--:--  1413
{
    "_href": "/pulp/api/v2/repositories/test/distributors/",
    "args": [
        "Configuration key 'relative_url' is not supported"
    ],
    "error": {
        "code": "PLP0000",
        "data": {},
        "description": "Configuration key 'relative_url' is not supported",
        "sub_errors": []
    },
    "error_message": "Configuration key 'relative_url' is not supported",
    "exception": null,
    "http_request_method": "POST",
    "http_status": 400,
    "traceback": null
}

Related issues

Blocks RPM Support - Story #1398: pulp group exporter does not honor relative_urlCLOSED - CURRENTRELEASE

<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>

Associated revisions

Revision dbdc20dc View on GitHub
Added by ipanova@redhat.com over 5 years ago

1520 -make relative_url as supported optional key in repo export distributor creation

closes #1520 https://pulp.plan.io/issues/1520

Revision a53c8e45 View on GitHub
Added by pcreech over 5 years ago

Migration for relative_url

This migration ensures that existing distributors get updated for PR #776

re #1520 https://pulp.plan.io/issues/1520

History

#1 Updated by ipanova@redhat.com almost 6 years ago

  • Blocks Story #1398: pulp group exporter does not honor relative_url added

#2 Updated by ipanova@redhat.com over 5 years ago

  • Subject changed from make relative_url as supported and required key in repo export distributor creation to make relative_url as supported optional key in repo export distributor creation

#3 Updated by ipanova@redhat.com over 5 years ago

Seems like this issue was fixed by some other previous PR.
Now it is possible to add via API relative_url as optional key to the repo export_distributor in:
1) repo creation call(POST)
2) in distributor creation call(POST)
3) in distributor update call (PUT)

Now the thing that needs to be done is make 1 and 3 possible via pulp-admin.

#4 Updated by ipanova@redhat.com over 5 years ago

  • Category set to 22

#5 Updated by ipanova@redhat.com over 5 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to ipanova@redhat.com

#6 Updated by ipanova@redhat.com over 5 years ago

  • Status changed from ASSIGNED to POST

#7 Updated by ipanova@redhat.com over 5 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100

#8 Updated by rbarlow over 5 years ago

  • Platform Release set to 2.8.0

#9 Updated by dkliban@redhat.com over 5 years ago

  • Status changed from MODIFIED to 5

#10 Updated by dkliban@redhat.com over 5 years ago

  • Status changed from 5 to CLOSED - CURRENTRELEASE

#11 Updated by bmbouter over 2 years ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF