Bug 1388715

Summary: [RFE] Add pulp-admin task-group functionality
Product: Red Hat Satellite Reporter: Alexey Masolov <amasolov>
Component: PulpAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED NOTABUG QA Contact: Katello QA List <katello-qa-list>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.2.2CC: amasolov, bbuckingham, bkearney, dkliban, mhrivnak
Target Milestone: UnspecifiedKeywords: FutureFeature, Triaged
Target Release: Unused   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-13 14:45:27 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:

Description Alexey Masolov 2016-10-26 02:19:32 UTC
1. Proposed title of this feature request
Add task-group functionality to pulp-admin

2. Who is the customer behind the request?
Internal
 
3. What is the nature and description of the request?
pulp-admin can't handle task groups in pulp. However, getting information about them and ability to cancel them would be useful.
 
4. Why does the customer need this? (List the business requirements here)
1. Get progress information from current group tasks to monitor them from CLI
2. Cancel a group task if they are suspended in foreman and there is no opportunity to resume subtasks

5. How would the customer like to achieve this? (List the functional requirements here)
pulp-admin task-group cancel --task-group-id id
pulp-admin task-group progress --task-group-id id

6. For each functional requirement listed in question 5, specify how Red Hat
and the customer can test to confirm the requirement is successfully implemented.
Output of commands from q5 is consistent with Pulp API output
https://docs.pulpproject.org/dev-guide/integration/rest-api/tasks.html#task-group-management
 
7. Is there already an existing RFE upstream or in Red Hat bugzilla?
No

8. Does the customer have any specific timeline dependencies?
No 

9. Is the sales team involved in this request and do they have any additional input?
No 

10. List any affected packages or components.
pulp-admin-client-2.8.3.4-1.el7sat.noarch

11. Would the customer be able to assist in testing this functionality if implemented?

Comment 1 Brad Buckingham 2016-10-31 18:13:00 UTC
Be aware, that the pulp-admin tool is not officially supported for Satellite 6.  Running commands with it that alter the pulp content can cause inconsistencies across the different services/databases (e.g. foreman/katello/pulp, postgres/mongo).

Comment 3 pulp-infra@redhat.com 2016-11-21 18:50:35 UTC
The Pulp upstream bug status is at NEW. Updating the external tracker on this bug.

Comment 4 pulp-infra@redhat.com 2016-11-21 18:50:38 UTC
The Pulp upstream bug priority is at Normal. Updating the external tracker on this bug.

Comment 5 pulp-infra@redhat.com 2016-11-21 18:50:42 UTC
The Pulp upstream bug status is at NEW. Updating the external tracker on this bug.

Comment 6 pulp-infra@redhat.com 2016-11-21 18:50:45 UTC
The Pulp upstream bug priority is at Normal. Updating the external tracker on this bug.

Comment 8 Alexey Masolov 2016-12-12 22:25:24 UTC
I totally understand that pulp-admin is not a part of Red Hat Satellite, however a lot of troubleshooting/maintenance tasks require usage of pulp-admin. I'm fine with closing this bug though and will track the upstream one.

Comment 9 Michael Hrivnak 2016-12-13 14:45:27 UTC
Thanks! I'm closing with the "notabug" state since this does not apply to the product itself, but if anyone prefers a different "closed" state, feel free to adjust.

Comment 10 Dennis Kliban 2016-12-13 15:52:09 UTC
I am removing the associated issues so the upstream/downstream automation works properly. Progress on these upstream issues can be monitored in the upstream tracker.

https://pulp.plan.io/issues/2376
https://pulp.plan.io/issues/2375