spacewalk is not working

Latest response

Getting the below error when trying to add or remove any channel from client server to Redhat satellite server.
Please help me how to get out of this error?

[root@rlt03test ~]# spacewalk-channel --remove -c bby-rhel5-x86-64-fy15-pci-r1 - -user xxxxxx --password xxxxxxxx
Error Message:
You can not unsubscribe 1000045176 from base channel bby-rhel5-x86-64-fy15-p ci-r1.
Error Class Code: 72
Error Class Info: You can not unsubscribe from base channel.
Explanation:
An error has occurred while processing your request. If this problem
persists please enter a bug report at bugzilla.redhat.com.
If you choose to submit the bug report, please be sure to include
details of what you were trying to do when this error occurred and
details on how to reproduce this problem.

Regards,
Abhishek
Unix Team

Responses

Hi Abhishek,

Using spacewalk-channe or rhn-channel command we can remove/unsubscribe only child channels , base channel can not be removed from system using spacewalk-channe or rhn-channel command.

You can use API available with satellite to set new base channel to system from CLI

# spacewalk-api --server=satellite.example.com system.setBaseChannel "%session%" 1000045176  rhel-x86_64-server-6

This will remove base channel and set new one which is passed as parameter.

Regards,
Ashish

Thnak you Ashish for your information.

The reason why I was searching some commands by which I can add or remove base channe is;then I can put those comments in a file and run to perform the entire PCI patching process from command line only;
No need to add or remove channels from RHN UI.

Regards,
Abhishek

Abhishek - can you execute the scripts on the Satellite Server (rather than from the client)? You should still be able to script this entire process.

I will be working on scripting this sort of activity soon as part of our patching process. I can update this thread once I have figured out what I need to do. I will likely be doing all of the work from the Satellite itself.

Close

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