Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 991139

Summary: RFE: Ability to sync Node 'repo objects' without syncing all units within a repo
Product: Red Hat Satellite Reporter: Justin Sherrill <jsherril>
Component: APIAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED CURRENTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0.0CC: mhrivnak, rbarlow
Target Milestone: UnspecifiedKeywords: FutureFeature
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-09 14:30:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 950746    

Description Justin Sherrill 2013-08-01 17:25:45 UTC
Description of problem:

Assuming a node is setup for 'mirror' strategy and I:

a)  Bind repos a, b, & c to the node
b) Sync the node causing all 3 repositories to be created & synced on the node
c) unbind repo a from the node

In order for repo a to be removed from the node, i have to resync the entire node.  This would involve a full sync of repos b & c.

Ideally i could cause a to be removed without affecting repos b & c.


Version-Release number of selected component (if applicable):
2.2

Comment 1 Jeff Ortel 2013-09-09 17:53:30 UTC
Provided by 2.3

Comment 2 Jeff Ortel 2013-09-19 21:53:35 UTC
To verify:
1. bind to a repository that is not yet on the child node.
2. using pic, send a request to sync the node.
3. note the repo is created on the child node but has no packages.

units and options in REST request:

{
  "units": [{"type_id": "node", "unit_key": null}],
  "options": {"skip_content_update": true}
}


See: https://pulp-dev-guide.readthedocs.org/en/latest/integration/nodes.html#synchronization

Comment 3 Preethi Thomas 2013-09-20 18:21:35 UTC
[root@pulp-v2-server ~]# rpm -qa pulp-server
pulp-server-2.3.0-0.14.alpha.el6.noarch
[root@pulp-v2-server ~]# 

In [21]: pic.POST('/pulp/api/v2/consumers/node1/actions/content/update/', {"units": [{"type_id": "node"}],"options": {"skip_content_update":True}})
Request Body
{
  "units": [
    {
      "type_id": "node"
    }
  ], 
  "options": {
    "skip_content_update": true
  }
}
Response Body
{
  "task_group_id": null, 
  "call_request_id": "861df6fe-ffb4-406f-ad9d-4d241e5dc402", 
  "exception": null, 
  "_href": "/pulp/api/v2/tasks/861df6fe-ffb4-406f-ad9d-4d241e5dc402/", 
  "task_id": "861df6fe-ffb4-406f-ad9d-4d241e5dc402", 
  "call_request_tags": [
    "pulp:consumer:node1", 
    "pulp:action:unit_update"
  ], 
  "reasons": [], 
  "start_time": null, 
  "traceback": null, 
  "schedule_id": null, 
  "finish_time": null, 
  "state": "waiting", 
  "result": null, 
  "dependency_failures": {}, 
  "call_request_group_id": null, 
  "progress": {}, 
  "principal_login": "admin", 
  "response": "accepted", 
  "tags": [
    "pulp:consumer:node1", 
    "pulp:action:unit_update"
  ]
}
Out[21]: 
(202,
 {u'_href': u'/pulp/api/v2/tasks/861df6fe-ffb4-406f-ad9d-4d241e5dc402/',
  u'call_request_group_id': None,
  u'call_request_id': u'861df6fe-ffb4-406f-ad9d-4d241e5dc402',
  u'call_request_tags': [u'pulp:consumer:node1', u'pulp:action:unit_update'],
  u'dependency_failures': {},
  u'exception': None,
  u'finish_time': None,
  u'principal_login': u'admin',
  u'progress': {},
  u'reasons': [],
  u'response': u'accepted',
  u'result': None,
  u'schedule_id': None,
  u'start_time': None,
  u'state': u'waiting',
  u'tags': [u'pulp:consumer:node1', u'pulp:action:unit_update'],
  u'task_group_id': None,
  u'task_id': u'861df6fe-ffb4-406f-ad9d-4d241e5dc402',
  u'traceback': None})

Comment 4 Preethi Thomas 2013-10-07 13:14:33 UTC
verified
pulp-server-2.3.0-0.17.beta.el6.noarch
[root@pulp-v2-server ~]# rpm -qa pulp-node-parent
[root@pulp-v2-server ~]# rpm -qa pulp-nodes-parent
pulp-nodes-parent-2.3.0-0.17.beta.el6.noarch
[root@pulp-v2-server ~]# 


In [13]: pic.POST('/pulp/api/v2/consumers/pulp.node1.com/actions/content/update/', {"units": [{"type_id": "node", "unit_key": None}],"options": {"skip_content_update":True}})
Request Body
{
  "units": [
    {
      "unit_key": null, 
      "type_id": "node"
    }
  ], 
  "options": {
    "skip_content_update": true
  }
}
Response Body
{
  "task_group_id": null, 
  "call_request_id": "f68f3b07-38ee-4fee-9cf0-7d799e2eb17e", 
  "exception": null, 
  "_href": "/pulp/api/v2/tasks/f68f3b07-38ee-4fee-9cf0-7d799e2eb17e/", 
  "task_id": "f68f3b07-38ee-4fee-9cf0-7d799e2eb17e", 
  "call_request_tags": [
    "pulp:consumer:pulp.node1.com", 
    "pulp:action:unit_update"
  ], 
  "reasons": [], 
  "start_time": null, 
  "traceback": null, 
  "schedule_id": null, 
  "finish_time": null, 
  "state": "waiting", 
  "result": null, 
  "dependency_failures": {}, 
  "call_request_group_id": null, 
  "progress": {}, 
  "principal_login": "admin", 
  "response": "accepted", 
  "tags": [
    "pulp:consumer:pulp.node1.com", 
    "pulp:action:unit_update"
  ]
}
Out[13]: 
(202,
 {u'_href': u'/pulp/api/v2/tasks/f68f3b07-38ee-4fee-9cf0-7d799e2eb17e/',
  u'call_request_group_id': None,
  u'call_request_id': u'f68f3b07-38ee-4fee-9cf0-7d799e2eb17e',
  u'call_request_tags': [u'pulp:consumer:pulp.node1.com',
                         u'pulp:action:unit_update'],
  u'dependency_failures': {},
  u'exception': None,
  u'finish_time': None,
  u'principal_login': u'admin',
  u'progress': {},
  u'reasons': [],
  u'response': u'accepted',
  u'result': None,
  u'schedule_id': None,
  u'start_time': None,
  u'state': u'waiting',
  u'tags': [u'pulp:consumer:pulp.node1.com', u'pulp:action:unit_update'],
  u'task_group_id': None,
  u'task_id': u'f68f3b07-38ee-4fee-9cf0-7d799e2eb17e',
  u'traceback': None})

In [14]: 


In [16]: pic.POST('/pulp/api/v2/consumers/pulp.node1.com/actions/content/update/', {"units": [{"type_id": "repository", "unit_key" : {"repo_id": "pulp"}}],"options": {}})
Request Body
{
  "units": [
    {
      "unit_key": {
        "repo_id": "pulp"
      }, 
      "type_id": "repository"
    }
  ], 
  "options": {}
}
Response Body
{
  "task_group_id": null, 
  "call_request_id": "92a2fda8-034c-4274-8a8c-2f5287c66ca9", 
  "exception": null, 
  "_href": "/pulp/api/v2/tasks/92a2fda8-034c-4274-8a8c-2f5287c66ca9/", 
  "task_id": "92a2fda8-034c-4274-8a8c-2f5287c66ca9", 
  "call_request_tags": [
    "pulp:consumer:pulp.node1.com", 
    "pulp:action:unit_update"
  ], 
  "reasons": [], 
  "start_time": null, 
  "traceback": null, 
  "schedule_id": null, 
  "finish_time": null, 
  "state": "waiting", 
  "result": null, 
  "dependency_failures": {}, 
  "call_request_group_id": null, 
  "progress": {}, 
  "principal_login": "admin", 
  "response": "accepted", 
  "tags": [
    "pulp:consumer:pulp.node1.com", 
    "pulp:action:unit_update"
  ]
}
Out[16]: 
(202,
 {u'_href': u'/pulp/api/v2/tasks/92a2fda8-034c-4274-8a8c-2f5287c66ca9/',
  u'call_request_group_id': None,
  u'call_request_id': u'92a2fda8-034c-4274-8a8c-2f5287c66ca9',
  u'call_request_tags': [u'pulp:consumer:pulp.node1.com',
                         u'pulp:action:unit_update'],
  u'dependency_failures': {},
  u'exception': None,
  u'finish_time': None,
  u'principal_login': u'admin',
  u'progress': {},
  u'reasons': [],
  u'response': u'accepted',
  u'result': None,
  u'schedule_id': None,
  u'start_time': None,
  u'state': u'waiting',
  u'tags': [u'pulp:consumer:pulp.node1.com', u'pulp:action:unit_update'],
  u'task_group_id': None,
  u'task_id': u'92a2fda8-034c-4274-8a8c-2f5287c66ca9',
  u'traceback': None})

In [17]:

Comment 5 Preethi Thomas 2013-12-09 14:30:59 UTC
Pulp 2.3 released.