Project

Profile

Help

Issue #1105

closed

relative_path should default to repo_id if not specified differently

Added by ipanova@redhat.com almost 9 years ago. Updated about 5 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version - OSTree:
Platform Release:
Target Release - OSTree:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

Relative_path should default to repo_id if not specified differently. If repo without feed is created then relative_path is null by default.

$ pulp-admin ostree repo create --repo-id=test2

Repository [test2] successfully created

[ipanova@ina pulp_ostree]$ curl -H "Accept: application/json" -X GET  -k -u admin:admin https://localhost/pulp/api/v2/repositories/test2/distributors/ostree_web_distributor_name_cli/| python -m json.tool
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   288  100   288    0     0    729      0 --:--:-- --:--:-- --:--:--   729
{
    "_id": {
        "$oid": "5596875245ef484fc3850970"
    },
    "_ns": "repo_distributors",
    "auto_publish": true,
    "config": {},
    "distributor_type_id": "ostree_web_distributor",
    "id": "ostree_web_distributor_name_cli",
    "last_publish": null,
    "repo_id": "test2",
    "scheduled_publishes": [],
    "scratchpad": null
}

Meanwhile everything works if feed was specified

$ pulp-admin ostree repo create --repo-id=test1     --feed=http://rpm-ostree.cloud.fedoraproject.org/repo/

Repository [test1] successfully created

[ipanova@ina pulp_ostree]$ 
[ipanova@ina pulp_ostree]$ curl -H "Accept: application/json" -X GET  -k -u admin:admin https://localhost/pulp/api/v2/repositories/test1/distributors/ostree_web_distributor_name_cli/| python -m json.tool
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   313  100   313    0     0    942      0 --:--:-- --:--:-- --:--:--   945
{
    "_id": {
        "$oid": "5596874545ef484fc385096c"
    },
    "_ns": "repo_distributors",
    "auto_publish": true,
    "config": {
        "relative_path": "/repo/"
    },
    "distributor_type_id": "ostree_web_distributor",
    "id": "ostree_web_distributor_name_cli",
    "last_publish": null,
    "repo_id": "test1",
    "scheduled_publishes": [],
    "scratchpad": null
}

Related issues

Related to OSTree Support - Issue #1104: If relative_url is not specified during repo creation it should not be present in distibutor_config post dataCLOSED - WONTFIXActions

Also available in: Atom PDF