spacewalk-api channel.software.removePackages call fails with error "fault code -23"

Solution Verified - Updated -

Environment

  • Red Hat Satellite v 5.6 / 5.7

Issue

  • spacewalk-api channel.software.removePackages call fails with error,
# spacewalk-api --server=<fqdn.satellite.server> --user=<username> --password=<passwd> channel.software.removePackages "%session%" <channel_name> <package_id>

Fault returned from XML RPC Server, fault code -23: redstone.xmlrpc.XmlRpcFault: You do not have permissions to perform this action.
  • Unable to remove the package from the Red Hat Provided Channels.
  • Spacewalk API fails to remove the package from Red Hat Channels.

Resolution

  • It is not possible to remove any packages from the Red Hat provided channels.
  • The possible fix for this would be excluding the packages in yum.conf.
  • Otherwise, you may clone the Red Hat Channel then try to delete the packages from the cloned channel.

Root Cause

  • Packages from Red Hat Channels can not be removed.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.