Bug 769430

Summary: spacecmd system_deletepackageprofile error
Product: [Community] Spacewalk Reporter: Need Real Name <humphrmi>
Component: APIAssignee: Jan Pazdziora <jpazdziora>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: low Docs Contact:
Priority: low    
Version: 1.6CC: aparsons, hartsjc, jpazdziora, mmello, tlestach
Target Milestone: ---   
Target Release: ---   
Hardware: noarch   
OS: Linux   
Whiteboard:
Fixed In Version: spacecmd-1.7.6-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-07 09:54:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 765736    

Description Need Real Name 2011-12-20 19:51:40 UTC
Description of problem:
spacecmd system_deletepackageprofile throws a warning, and does not delete the specified package profile, as so:

# spacecmd system_listpackageprofiles
WARNING: Cached credentials are invalid
INFO: Spacewalk Username: admin
Spacewalk Password: 
INFO: Connected to https://localhost/rpc/api as admin
appora-dev.fnal.gov-2011-11-23
[...]
wcs-2011-11-23
# spacecmd system_deletepackageprofile wcs-2011-11-23
INFO: Connected to https://localhost/rpc/api as admin

Delete this profile [y/N]: y
WARNING: 'wcs-2011-11-23' is not a valid profile

#


Version-Release number of selected component (if applicable):spacecmd-1.6.9-1.  Note: we are using this with Red Hat Satellite 5.4.1.


How reproducible: With the appropriate environment, just spacecmd system_deletepackageprofile a valid package profile name (as provided by spacecmd system_listpackageprofiles) and you'll receive the warning, and the package profile won't be deleted.


Steps to Reproduce: See above.
  
Actual results:
WARNING: 'wcs-2011-11-23' is not a valid profile

Expected results:
Package profile deleted.

Additional info: This has been vetted by engineering per RH Case 00575421.

Comment 1 Marcelo Moreira de Mello 2011-12-20 21:24:33 UTC
Taking....

Comment 2 Jan Pazdziora 2012-02-27 16:52:51 UTC
Fixed in Spacewalk master, 8f64e289ce2d9d8bb40686bd2d321fa1fe4428bc.

Comment 3 Jan Pazdziora 2012-03-07 09:54:25 UTC
Spacewalk 1.7 has been released:

https://fedorahosted.org/spacewalk/wiki/ReleaseNotes17