Bug 713892

Summary: Need better error messages when package install fails on consumergroup
Product: [Retired] Pulp Reporter: Preethi Thomas <pthomas>
Component: user-experienceAssignee: James Slagle <jslagle>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.0.0CC: jortel, skarmark
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-24 20:14:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Preethi Thomas 2011-06-16 17:50:15 UTC
Description of problem:
If the package you are trying to install is already install on a consumer in consumer group the error message that is provided is not informative


root@preethi ~]#  pulp-admin package install -n zsh --consumergroupid=consumer-group
Created task id: 99b66eb5-9842-11e0-8924-002564a85a58
Task is scheduled for: 2011-06-16 14:01
Waiting: [\] error: operation failed: No installpackages with id 99b66eb5-9842-11e0-8924-002564a85a58 found

Comment 1 Jeff Ortel 2011-07-18 14:47:28 UTC
One goal of the tracker/worker tasks is to provide better tracking and feedback for operations like this.  As part of that story, we plan to re-implement package installs on consumer groups.  I expect we will need to update the client to display the extra details.

Comment 2 James Slagle 2011-12-20 13:19:26 UTC
This looks fixed.

Install zsh on a consumer group:
/home/jslagle/code/pulp $ pulp-admin package install --consumergroupid test --name zsh

The following consumers appear to be unavailable.
You may continue with the understanding that your request
will not complete until all consumers have processed the request
or the request has timed out.

Unavailable Consumers
------------------------------
f15

Continue? [y/n]:y

Wait? [y/n]:y
Created job id: 37212091-fc88-40dc-b4ea-7d15aa5e7bb4
Waiting: [\] 
Install Summary:
	[ FINISHED ] f15; packages installed: [u'zsh-4.3.11-2.fc15.x86_64']


Install zsh again on that same consumer group:
/home/jslagle/code/pulp $ pulp-admin package install --consumergroupid test --name zsh
Created job id: 16df471d-101d-4eb2-af6b-69ab5a8005f0
Waiting: [\] 
Install Summary:
	[ FINISHED ] f15; packages installed: []

No more error message and it tells you the package was not installed without marking the job as failed.  I think this is the behavior we want.

Comment 3 Jeff Ortel 2012-01-04 21:48:45 UTC
build: 0.256

Comment 4 Preethi Thomas 2012-01-06 16:37:06 UTC
verified
[root@preethi ~]# rpm -q pulp
pulp-0.0.256-1.fc15.noarch

[root@preethi ~]# pulp-admin package install -n zsh --consumergroupid=rhel6-group
Created job id: 79f07ec1-25d6-49a0-a9c6-70b13b730b63
Waiting: [\] 
Install Summary:
	[ ERROR    ] rhel6-client; Values instance has no attribute 'repos'
	[ FINISHED ] el6-client; packages installed: []

[root@preethi ~]#

Comment 5 Preethi Thomas 2012-02-24 20:14:41 UTC
Pulp v1.0 is released
Closed Current Release.

Comment 6 Preethi Thomas 2012-02-24 20:19:35 UTC
Pulp v1.0 is released.