[Spacewalk-list] unable to remove systems

Jan Hutař jhutar at redhat.com
Tue Aug 28 07:48:21 UTC 2012


On Wed, 22 Aug 2012 20:20:22 +0000 Andy Ingham
<andy.ingham at duke.edu> wrote:

> Going back a ways, I realize, but I am also unable to DELETE
> systems via spacewalk.
> 
> I have tried downgrading cobbler and I'm still getting the
> same "internal server error" message when I try to delete.
> This is the case regardless of the versions of the files
> mentioned in the previous post ( /etc/cobbler/settings
> and /etc/cobbler/modules.conf) or
> ( /etc/cobbler/settings.rpmsave
> and /etc/cobbler/modules.conf.rpmsave )
> 
> Ultimately, the cobbler functionality is less critical to me
> than the need to delete old systems from the inventory.  I've
> only been approaching from the cobbler end because of what
> I've read on the list.
> 
> Any help greatly appreciated!
> 
> 
> Andy
> 
> 
> 
> Some potentially helpful info =>
> 
> My /var/log/rhn/rhn_taskomatic_daemon.log file shows:
> 
> INFO   | jvm 1    | 2012/08/22 16:11:00 | 2012-08-22
> 16:11:00,074 [DefaultQuartzScheduler_Worker-5] ERROR
> com.redhat.rhn.manager.kickstart.cobbler.CobblerLoginCommand -
> XmlRpcFault while logging in.  most likely user doesn't have
> permissions. INFO   | jvm 1    | 2012/08/22 16:11:00 |
> redstone.xmlrpc.XmlRpcFault: <class
> 'cobbler.cexceptions.CX'>:'login failed (taskomatic_user)'
> INFO   | jvm 1    | 2012/08/22 16:11:00 | 	at
> redstone.xmlrpc.XmlRpcClient.handleResponse
> (XmlRpcClient.java:443) INFO   | jvm 1    | 2012/08/22
> 16:11:00 | 	at redstone.xmlrpc.XmlRpcClient.endCall
> (XmlRpcClient.java:376) INFO   | jvm 1    | 2012/08/22
> 16:11:00 | 	at redstone.xmlrpc.XmlRpcClient.invoke
> (XmlRpcClient.java:165) INFO   | jvm 1    | 2012/08/22
> 16:11:00 | 	at
> com.redhat.rhn.manager.kickstart.cobbler.CobblerXMLRPCHelper.invokeMethod
> (C obblerXMLRPCHelper.java:69) INFO   | jvm 1    | 2012/08/22
> 16:11:00 | 	at
> com.redhat.rhn.manager.kickstart.cobbler.CobblerLoginCommand.login
> (CobblerL oginCommand.java:52) INFO   | jvm 1    | 2012/08/22
> 16:11:00 | 	at
> com.redhat.rhn.frontend.integration.IntegrationService.authorize
> (Integratio nService.java:114) INFO   | jvm 1    | 2012/08/22
> 16:11:00 | 	at
> com.redhat.rhn.frontend.integration.IntegrationService.getAuthToken
> (Integra tionService.java:67) INFO   | jvm 1    | 2012/08/22
> 16:11:00 | 	at
> com.redhat.rhn.manager.kickstart.cobbler.CobblerCommand.<init>
> (CobblerComma nd.java:68) INFO   | jvm 1    | 2012/08/22
> 16:11:00 | 	at
> com.redhat.rhn.manager.kickstart.cobbler.CobblerDistroSyncCommand.<init>
> (Co bblerDistroSyncCommand.java:52) INFO   | jvm 1    |
> 2012/08/22 16:11:00 | 	at
> com.redhat.rhn.taskomatic.task.CobblerSyncTask.execute
> (CobblerSyncTask.java :72) INFO   | jvm 1    | 2012/08/22
> 16:11:00 | 	at
> com.redhat.rhn.taskomatic.task.RhnJavaJob.execute
> (RhnJavaJob.java:80) INFO   | jvm 1    | 2012/08/22 16:11:00 |
> 	at com.redhat.rhn.taskomatic.TaskoJob.execute
> (TaskoJob.java:169) INFO   | jvm 1    | 2012/08/22 16:11:00 |
> 	at org.quartz.core.JobRunShell.run
> (JobRunShell.java:214) INFO   | jvm 1    | 2012/08/22 16:11:00
> | 	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run
> | (SimpleThreadPool.java:54
> 9)
> INFO   | jvm 1    | 2012/08/22 16:11:00 | 2012-08-22
> 16:11:00,074 [DefaultQuartzScheduler_Worker-5] ERROR
> com.redhat.rhn.taskomatic.task.CobblerSyncTask -
> RuntimeExceptioneError trying to sync to cobbler: We had an
> error trying to login. INFO   | jvm 1    | 2012/08/22 16:11:00
> | com.redhat.rhn.manager.kickstart.cobbler.NoCobblerTokenException:
> | We had
> an error trying to login.
> INFO   | jvm 1    | 2012/08/22 16:11:00 | 	at
> com.redhat.rhn.manager.kickstart.cobbler.CobblerLoginCommand.login
> (CobblerL oginCommand.java:57)
> INFO   | jvm 1    | 2012/08/22 16:11:00 | 	at
> com.redhat.rhn.frontend.integration.IntegrationService.authorize
> (Integratio nService.java:114)
> INFO   | jvm 1    | 2012/08/22 16:11:00 | 	at
> com.redhat.rhn.frontend.integration.IntegrationService.getAuthToken
> (Integra tionService.java:67)
> INFO   | jvm 1    | 2012/08/22 16:11:00 | 	at
> com.redhat.rhn.manager.kickstart.cobbler.CobblerCommand.<init>
> (CobblerComma nd.java:68)
> INFO   | jvm 1    | 2012/08/22 16:11:00 | 	at
> com.redhat.rhn.manager.kickstart.cobbler.CobblerDistroSyncCommand.<init>
> (Co bblerDistroSyncCommand.java:52)
> INFO   | jvm 1    | 2012/08/22 16:11:00 | 	at
> com.redhat.rhn.taskomatic.task.CobblerSyncTask.execute
> (CobblerSyncTask.java :72)
> INFO   | jvm 1    | 2012/08/22 16:11:00 | 	at
> com.redhat.rhn.taskomatic.task.RhnJavaJob.execute
> (RhnJavaJob.java:80) INFO   | jvm 1    | 2012/08/22 16:11:00 |
> 	at com.redhat.rhn.taskomatic.TaskoJob.execute
> (TaskoJob.java:169) INFO   | jvm 1    | 2012/08/22 16:11:00 |
> 	at org.quartz.core.JobRunShell.run
> (JobRunShell.java:214) INFO   | jvm 1    | 2012/08/22 16:11:00
> | 	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run
> | (SimpleThreadPool.java:54
> 9)
> INFO   | jvm 1    | 2012/08/22 16:11:00 | Caused by:
> redstone.xmlrpc.XmlRpcFault: <class
> 'cobbler.cexceptions.CX'>:'login failed (taskomatic_user)'
> INFO   | jvm 1    | 2012/08/22 16:11:00 | 	at
> redstone.xmlrpc.XmlRpcClient.handleResponse
> (XmlRpcClient.java:443) INFO   | jvm 1    | 2012/08/22
> 16:11:00 | 	at redstone.xmlrpc.XmlRpcClient.endCall
> (XmlRpcClient.java:376) INFO   | jvm 1    | 2012/08/22
> 16:11:00 | 	at redstone.xmlrpc.XmlRpcClient.invoke
> (XmlRpcClient.java:165) INFO   | jvm 1    | 2012/08/22
> 16:11:00 | 	at
> com.redhat.rhn.manager.kickstart.cobbler.CobblerXMLRPCHelper.invokeMethod
> (C obblerXMLRPCHelper.java:69) INFO   | jvm 1    | 2012/08/22
> 16:11:00 | 	at
> com.redhat.rhn.manager.kickstart.cobbler.CobblerLoginCommand.login
> (CobblerL oginCommand.java:52) INFO   | jvm 1    | 2012/08/22
> 16:11:00 | 	... 9 more INFO   | jvm 1    | 2012/08/22
> 16:11:00 | 2012-08-22 16:11:00,074
> [DefaultQuartzScheduler_Worker-5] ERROR
> com.redhat.rhn.taskomatic.task.CobblerSyncTask - re-throwing
> exception since we havent yet. INFO   | jvm 1    | 2012/08/22
> 16:11:00 | 2012-08-22 16:11:00,075
> [DefaultQuartzScheduler_Worker-5] ERROR
> com.redhat.rhn.taskomatic.task.CobblerSyncTask - We had an
> error trying to login. INFO   | jvm 1    | 2012/08/22 16:11:00
> | 2012-08-22 16:11:00,075 [DefaultQuartzScheduler_Worker-5]
> | ERROR
> com.redhat.rhn.taskomatic.task.CobblerSyncTask -
> redstone.xmlrpc.XmlRpcFault: <class
> 'cobbler.cexceptions.CX'>:'login failed (taskomatic_user)'

Check you have this in /etc/cobbler/settings:

redhat_management_server: "<your_server_fqdn>"
redhat_management_permissive: 0

and in /etc/cobbler/modules.conf:

[authentication]
module = authn_spacewalk

> Issuing 'cobbler sync' returns:
> 
> task started: 2012-08-22_161205_sync
> task started (id=Sync, time=Wed Aug 22 16:12:05 2012)
> running pre-sync triggers
> cleaning trees
> Exception occured: <type 'exceptions.OSError'>
> Exception value: [Errno 17] File exists
> Exception Info:
>   File "/usr/lib/python2.6/site-packages/cobbler/remote.py",
> line 95, in run
>     rc = self._run(self)
>    File "/usr/lib/python2.6/site-packages/cobbler/remote.py",
> line 184, in runner
>     return 
> self.remote.api.sync(self.options.get
> ("verbose",False),logger=self.logger) File
> "/usr/lib/python2.6/site-packages/cobbler/api.py", line 611,
> in sync return sync.run()
>    File
> "/usr/lib/python2.6/site-packages/cobbler/action_sync.py",
> line 110, in run self.clean_trees()
>    File
> "/usr/lib/python2.6/site-packages/cobbler/action_sync.py",
> line 198, in clean_trees self.make_tftpboot()
>    File
> "/usr/lib/python2.6/site-packages/cobbler/action_sync.py",
> line 161, in make_tftpboot os.symlink("../images",
> grub_images_link)
> 
> !!! TASK FAILED !!!

Do you see some problems in audit.log? Would `cobbler check`
advice something?

Regards,
Jan



-- 
Jan Hutar     Systems Management QA
jhutar at redhat.com     Red Hat, Inc.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20120828/319e829c/attachment.sig>


More information about the Spacewalk-list mailing list