$ pulp-admin rpm repo list
Warning: path should have mode 0700 because it may contain sensitive information: /home/ipanova/.pulp/
+----------------------------------------------------------------------+
RPM Repositories
+----------------------------------------------------------------------+
Id: modular-copy
Display Name: None
Description: None
Content Unit Counts:
Modulemd Defaults: 1
Rpm: 12
$ mongo
switched to db pulp_database
> db.repo_content_units.find({'repo_id':'modular-copy', 'unit_type_id':'modulemd_defaults'})
{ "_id" : ObjectId("5b87bb77a5ca4f71dbdfb966"), "repo_id" : "modular-copy", "unit_id" : "6aaa2b83-e0c7-4698-b756-8c6bda62375c", "unit_type_id" : "modulemd_defaults", "created" : "2018-08-30T09:40:07Z", "updated" : "2018-08-30T09:40:07Z" }
$ curl -i -H "Accept: application/json" -X POST -k -u admin:admin -d '{"criteria": {"type_ids": ["modulemd_defaults"], "filters": {"association":{"unit_id":{"$in":["6aaa2b83-e0c7-4698-b756-8c6bda62375c"]}}}}}' 'https://localhost/pulp/api/v2/repositories/modular-copy/actions/unassociate/'
HTTP/1.1 202 ACCEPTED
Date: Thu, 30 Aug 2018 09:52:24 GMT
Server: Apache/2.4.33 (Fedora) OpenSSL/1.1.0h-fips mod_wsgi/4.5.20 Python/2.7
Content-Length: 172
Content-Type: application/json; charset=utf-8
{"spawned_tasks": [{"_href": "/pulp/api/v2/tasks/972975dd-4ca8-4f3e-869d-28c3d02a3a61/", "task_id": "972975dd-4ca8-4f3e-869d-28c3d02a3a61"}], "result": null, "error": null}[ipanova@ina pulp_rpm]$
$ pulp-admin -vv tasks details --task-id 972975dd-4ca8-4f3e-869d-28c3d02a3a61
Warning: path should have mode 0700 because it may contain sensitive information: /home/ipanova/.pulp/
+----------------------------------------------------------------------+
Task Details
+----------------------------------------------------------------------+
2018-08-30 11:52:31,593 - DEBUG - sending GET request to /pulp/api/v2/tasks/972975dd-4ca8-4f3e-869d-28c3d02a3a61/
2018-08-30 11:52:31,778 - INFO - GET request to /pulp/api/v2/tasks/972975dd-4ca8-4f3e-869d-28c3d02a3a61/ with parameters None
2018-08-30 11:52:31,778 - INFO - Response status : 200
2018-08-30 11:52:31,779 - INFO - Response body :
{
"exception": null,
"task_type": "pulp.server.managers.repo.unit_association.unassociate_by_criteria",
"_href": "/pulp/api/v2/tasks/972975dd-4ca8-4f3e-869d-28c3d02a3a61/",
"task_id": "972975dd-4ca8-4f3e-869d-28c3d02a3a61",
"tags": [
"pulp:repository:modular-copy",
"pulp:action:unassociate"
],
"finish_time": "2018-08-30T09:52:24Z",
"_ns": "task_status",
"start_time": "2018-08-30T09:52:24Z",
"traceback": null,
"spawned_tasks": [],
"progress_report": {},
"queue": "reserved_resource_worker-0@ina.usersys.redhat.com.dq2",
"state": "finished",
"worker_name": "reserved_resource_worker-0@ina.usersys.redhat.com",
"result": {
"units_successful": [
{
"unit_key": {
"repo_id": "modular-copy",
"name": "nodejs"
},
"type_id": "modulemd_defaults"
}
]
},
"error": null,
"_id": {
"$oid": "5b87be58a5ca4f71dbdfc48c"
},
"id": "5b87be58a5ca4f71dbdfc48c"
}
Operations: unassociate
Resources: modular-copy (repository)
State: Successful
Start Time: 2018-08-30T09:52:24Z
Finish Time: 2018-08-30T09:52:24Z
Result:
Units Successful:
Type Id: modulemd_defaults
Unit Key:
Name: nodejs
Repo Id: modular-copy
Task Id: 972975dd-4ca8-4f3e-869d-28c3d02a3a61
Worker Name: reserved_resource_worker-0@ina.usersys.redhat.com
Progress Report:
[ipanova@ina pulp_rpm]$ pulp-admin rpm repo list
Warning: path should have mode 0700 because it may contain sensitive information: /home/ipanova/.pulp/
+----------------------------------------------------------------------+
RPM Repositories
+----------------------------------------------------------------------+
Id: modular-copy
Display Name: None
Description: None
Content Unit Counts:
Modulemd Defaults: 0
Rpm: 12
I am not able to reproduce this.