[Spacewalk-list] unable to remove systems

Andy Ingham andy.ingham at duke.edu
Wed Aug 22 20:20:22 UTC 2012


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)'




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 !!!






On 5/22/12 6:13 AM, "Baptiste AGASSE" <baptiste.agasse at lyra-network.com>
wrote:

Hi,

> Looks like its trying to login to cobbler? And failing why?

Have you installed the last cobbler (cobbler 2.2.x) version and then
downgraded it to the last spacewalk supported version (cobbler 2.0.x) ?

If you did that (like me) the /etc/cobbler/settings and
/etc/cobbler/modules.conf configured by spacewalk install script are now
/etc/cobbler/settings.rpmsave and /etc/cobbler/modules.conf.rpmsave due to
the cobbler rpm downgrade.

just revert these configs files and restart cobbler and it should work for
you.

Have a nice day.

Regards.

Baptiste

_______________________________________________
Spacewalk-list mailing list
Spacewalk-list at redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list





More information about the Spacewalk-list mailing list