Project

General

Profile

Feature #13284

Update applicable errata regeneration code handling

Added by Partha Aji about 7 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

This protocol has changed for pulp 2.8.


Related issues

Related to Katello - Tracker #13282: Pulp 2.8Resolved2016-01-19

Copied to Katello - Feature #13566: Update Katello to use Task GroupsClosed2016-01-19

Associated revisions

Revision ddfc4136 (diff)
Added by Partha Aji about 7 years ago

Fixes #13284 - Enables Taskgroups for Applicablity

The regenerate applicable errata call for a repository can return
either a Task Group or a list of spawned tasks. This commit enables
the use of that.
This is an important change in pulp 2.8.
Look at
https://github.com/pulp/pulp/blob/master/docs/dev-guide/integration/rest-api/consumer/applicability.rst#generate-content-applicability-for-updated-repositories
for more info.

Revision 08e1fec7 (diff)
Added by Partha Aji about 7 years ago

Refs #13284 - Cassettes for prev commit

Revision 93e2e3ec
Added by Partha Aji about 7 years ago

Merge pull request #167 from parthaa/tasker

Fixes #13284 - Enables Taskgroups for Applicablity

History

#1 Updated by Partha Aji about 7 years ago

#2 Updated by Dennis Kliban about 7 years ago

A request made to

/v2/repositories/actions/content/regenerate_applicability/ 
now returns a group call report that looks like this:

{
    "_href": "/pulp/api/v2/task_groups/16412fcb-06fa-4caa-818b-b103e2a9bf44/",
   "group_id": "16412fcb-06fa-4caa-818b-b103e2a9bf44" 
}

The `_href` from the above group call report, does not currently return anything. However, you can append '/state-summary/' to the URL and perform a GET request to retrieve a `task_group_summary`. The request to

/pulp/api/v2/task_groups/16412fcb-06fa-4caa-818b-b103e2a9bf44/state-summary/
will return task group summary that will look like this:

{
 "accepted": 0,
 "finished": 100,
 "running": 4,
 "canceled": 0,
 "waiting": 2,
 "skipped": 0,
 "suspended": 0,
 "error": 0,
 "total": 106
}

Documentation related to this can be found here[0-1]

[0] https://github.com/pulp/pulp/blob/master/docs/dev-guide/integration/rest-api/consumer/applicability.rst#generate-content-applicability-for-updated-repositories
[1] https://github.com/pulp/pulp/blob/master/docs/dev-guide/integration/rest-api/tasks.rst#task-group-management

#3 Updated by The Foreman Bot about 7 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Partha Aji
  • Pull request https://github.com/Katello/katello/pull/5729 added

#4 Updated by The Foreman Bot about 7 years ago

  • Pull request https://github.com/Katello/runcible/pull/167 added

#5 Updated by Partha Aji about 7 years ago

#6 Updated by Partha Aji about 7 years ago

  • Project changed from Katello to Runcible
  • Pull request deleted (https://github.com/Katello/katello/pull/5729)

#7 Updated by The Foreman Bot about 7 years ago

  • Pull request https://github.com/Katello/katello/pull/5729 added

#8 Updated by Eric Helms about 7 years ago

  • Tracker changed from Bug to Feature
  • Legacy Backlogs Release (now unused) set to 132
  • Pull request deleted (https://github.com/Katello/katello/pull/5729)

#9 Updated by Partha Aji about 7 years ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF