Bug 769430 - spacecmd system_deletepackageprofile error
Summary: spacecmd system_deletepackageprofile error
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: API
Version: 1.6
Hardware: noarch
OS: Linux
low
low
Target Milestone: ---
Assignee: Jan Pazdziora
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space17
TreeView+ depends on / blocked
 
Reported: 2011-12-20 19:51 UTC by Need Real Name
Modified: 2012-03-07 09:54 UTC (History)
5 users (show)

Fixed In Version: spacecmd-1.7.6-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-07 09:54:25 UTC
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.