Actions
Issue #1295
closedUpdating auto-publish value in the repo update does not influence the behaviour.
Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version - Python:
1.0.0
Platform Release:
Target Release - Python:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:
Description
1. create repo with auto-publish=true
2. sync and observe auto-publish
3. update repo and set auto-publish to false
4. sync repo again and observe auto-publish happening
$ pulp-admin python repo create --repo-id pypi --feed https://pypi.python.org/ --package-names numpy,scipy --auto-publish true
Repository [pypi] successfully created
[ipanova@ina pulp_python]$ pulp-admin python repo sync run --repo-id pypi
+----------------------------------------------------------------------+
Synchronizing Repository [pypi]
+----------------------------------------------------------------------+
This command may be exited via ctrl+c without affecting the request.
Downloading and processing metadata.
[-]
... completed
Downloading and processing Python packages.
[\]
... completed
Task Succeeded
Publishing Python Metadata.
[-]
... completed
Publishing Python Content.
[-]
... completed
Making files available via web.
[-]
... completed
Task Succeeded
[ipanova@ina pulp_python]$ pulp-admin -vv python repo update --repo-id pypi --auto-publish false
2015-10-02 14:04:31,661 - DEBUG - sending PUT request to /pulp/api/v2/repositories/pypi/
2015-10-02 14:04:31,776 - INFO - PUT request to /pulp/api/v2/repositories/pypi/ with parameters {"distributor_configs": {"cli_python_distributor": {"auto_publish": false}}, "delta": {"bg": false}}
2015-10-02 14:04:31,776 - INFO - Response status : 202
2015-10-02 14:04:31,776 - INFO - Response body :
{
"spawned_tasks": [
{
"_href": "/pulp/api/v2/tasks/39d3dc7a-eb8a-4ebf-8dae-795ea7fdb1e0/",
"task_id": "39d3dc7a-eb8a-4ebf-8dae-795ea7fdb1e0"
}
],
"result": {
"scratchpad": {},
"display_name": "pypi",
"description": null,
"_ns": "repos",
"notes": {
"_repo-type": "PYTHON"
},
"last_unit_removed": null,
"content_unit_counts": {
"python_package": 33
},
"last_unit_added": "2015-10-02T12:04:15Z",
"_id": {
"$oid": "560e72b645ef484f7d63e840"
},
"id": "pypi",
"_href": "/pulp/api/v2/repositories/pypi/"
},
"error": null
}
This command may be exited via ctrl+c without affecting the request.
[-]
Running...
2015-10-02 14:04:32,778 - DEBUG - sending GET request to /pulp/api/v2/tasks/39d3dc7a-eb8a-4ebf-8dae-795ea7fdb1e0/
2015-10-02 14:04:32,884 - INFO - GET request to /pulp/api/v2/tasks/39d3dc7a-eb8a-4ebf-8dae-795ea7fdb1e0/ with parameters None
2015-10-02 14:04:32,884 - INFO - Response status : 200
2015-10-02 14:04:32,884 - INFO - Response body :
{
"exception": null,
"task_type": "pulp.server.tasks.repository.distributor_update",
"_href": "/pulp/api/v2/tasks/39d3dc7a-eb8a-4ebf-8dae-795ea7fdb1e0/",
"task_id": "39d3dc7a-eb8a-4ebf-8dae-795ea7fdb1e0",
"tags": [
"pulp:repository:pypi",
"pulp:repository_distributor:cli_python_distributor",
"pulp:action:update_distributor"
],
"finish_time": "2015-10-02T12:04:31Z",
"_ns": "task_status",
"start_time": "2015-10-02T12:04:31Z",
"traceback": null,
"spawned_tasks": [],
"progress_report": {},
"queue": "reserved_resource_worker-1@ina.usersys.redhat.com.dq",
"state": "finished",
"worker_name": "reserved_resource_worker-1@ina.usersys.redhat.com",
"result": {
"repo_id": "pypi",
"_ns": "repo_distributors",
"last_publish": "2015-10-02T12:04:17Z",
"auto_publish": true,
"scheduled_publishes": [],
"distributor_type_id": "python_distributor",
"scratchpad": null,
"_id": {
"$oid": "560e72b645ef484f7d63e842"
},
"config": {
"auto_publish": false
},
"id": "cli_python_distributor"
},
"error": null,
"_id": {
"$oid": "560e72cf1ff082f0eac18339"
},
"id": "560e72cf1ff082f0eac18339"
[\]
Running...
Task Succeeded
[ipanova@ina pulp_python]$ pulp-admin python repo sync run --repo-id pypi
+----------------------------------------------------------------------+
Synchronizing Repository [pypi]
+----------------------------------------------------------------------+
This command may be exited via ctrl+c without affecting the request.
Downloading and processing metadata.
[-]
... completed
Downloading and processing Python packages.
[\]
... completed
Task Succeeded
Publishing Python Metadata.
[-]
... completed
Publishing Python Content.
[-]
... completed
Making files available via web.
[-]
... completed
Task Succeeded
Also note two 'auto_publish' in the distributor's response body.
$ curl -H "Accept: application/json" -X GET -k -u admin:admin 'https://localhost/pulp/api/v2/repositories/pypi/distributors/'|python -m json.tool
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 315 100 315 0 0 1028 0 --:--:-- --:--:-- --:--:-- 1029
[
{
"_id": {
"$oid": "560e72b645ef484f7d63e842"
},
"_ns": "repo_distributors",
"auto_publish": true,
"config": {
"auto_publish": false
},
"distributor_type_id": "python_distributor",
"id": "cli_python_distributor",
"last_publish": "2015-10-02T12:04:55Z",
"repo_id": "pypi",
"scheduled_publishes": [],
"scratchpad": null
}
]
Related issues
Updated by mhrivnak over 8 years ago
- Triaged changed from No to Yes
- Tags Easy Fix added
Updated by ipanova@redhat.com almost 8 years ago
- Related to Issue #2078: Updating auto-publish value in the repo update does not influence the behaviour. added
Updated by bmbouter about 5 years ago
- Status changed from NEW to CLOSED - WONTFIX
Pulp 2 is approaching maintenance mode, and this Pulp 2 ticket is not being actively worked on. As such, it is being closed as WONTFIX. Pulp 2 is still accepting contributions though, so if you want to contribute a fix for this ticket, please reopen or comment on it. If you don't have permissions to reopen this ticket, or you want to discuss an issue, please reach out via the developer mailing list.
Actions