Project

Profile

Help

Issue #3255

Updated by ttereshc over 6 years ago

Hi, 

 as per documentation at https://docs.pulpproject.org/user-guide/consumer-client/bind.html#unbind 
 the 'pulp-consumer rpm unbind --force --repo-id=foo' should remove the binding on client without any interaction with the server. But pulp-consumer still connects to server and checks for existance. 

 Environment: 
 RHEL 7.4 
 pulp-server-2.14.3-1.el7.noarch 
 pulp-consumer-client-2.14.3-1.el7.noarch 

 Expected result: 
 <pre> 
 # pulp-consumer rpm unbind --repo-id=foobar 
 Unbind tasks successfully created: 

 Task Id: d8cab7f5-c2a6-4425-a70d-465bc1388f07 
 </pre> 

 Actual result: 
 <pre> 
 

 # pulp-consumer -vvv rpm unbind --repo-id=foobar 
 2018-01-08 15:19:21,669 - DEBUG - sending DELETE request to /pulp/api/v2/consumers/pulpserver/bindings/foobar/yum_distributor/ 
 2018-01-08 15:19:21,713 - INFO - DELETE request to /pulp/api/v2/consumers/pulpserver/bindings/foobar/yum_distributor/ with parameters {"force": false} 
 2018-01-08 15:19:21,713 - INFO - Response status : 404 

 2018-01-08 15:19:21,713 - INFO - Response body : 
  { 
   "exception": null, 
   "traceback": null, 
   "_href": "/pulp/api/v2/consumers/pulpserver/bindings/foobar/yum_distributor/", 
   "error_message": "Missing resource(s): repo_id=foobar, distributor_id=yum_distributor", 
   "http_request_method": "DELETE", 
   "http_status": 404, 
   "error": { 
     "code": "PLP0009", 
     "data": { 
       "resources": { 
         "repo_id": "foobar", 
         "distributor_id": "yum_distributor" 
       } 
     }, 
     "description": "Missing resource(s): repo_id=foobar, distributor_id=yum_distributor", 
     "sub_errors": [] 
   }, 
   "resources": { 
     "repo_id": "foobar", 
     "distributor_id": "yum_distributor" 
   } 
 } 

 Repository [foobar] does not exist on the server 

 </pre> 
 Thanks.

Back