[Spacewalk-list] cannot delete profile

Laurence Rosen lrosen at interactions.com
Tue Mar 17 20:14:07 UTC 2020


I have googled/read every spacewalk-list I could find and still no solution.
I have been trying to delete a system from my spacewalk 2.9 server.
This was all working until I renamed the client in question.  After it
failed to delete, I renamed the system back to original hostname.

>From the GUI I get the error:

Internal Server Error
The server experienced a problem which prevented your request from being
filled out. It may not be possible to execute this action at this time.
Please help us correct this problem by contacting us with details of how
you received this message.

>From the CLI using spacecmd it says deleted but it's not deleted:

spacecmd {SSM:0}> system_delete 1000010028
Profile                                     System ID
------------------------------------------  ---------
ip-172-xx-xx-xx.eu-west-1.compute.internal  1000010028

Delete these systems [y/N]: y
INFO: Deleted 1 system(s)
spacecmd {SSM:0}> ()


/var/log/tomcat/localhost.2020-03-17.log:

Mar 17, 2020 3:58:53 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [action] in context with path [/rhn]
threw exception [com.redhat.rhn.manager.kickstart.cobbler.No
CobblerTokenException: We had an error trying to login.] with root cause
redstone.xmlrpc.XmlRpcFault: <class 'cobbler.cexceptions.CX'>:'login failed
(lrosen)'

cobbler.log:

Tue Mar 17 16:01:00 2020 - INFO | Exception occured: <class '
cobbler.cexceptions.CX'>
Tue Mar 17 16:01:00 2020 - INFO | Exception value: 'login failed
(taskomatic_user)'
Tue Mar 17 16:01:00 2020 - INFO | Exception Info:
  File "/usr/lib/python2.7/site-packages/cobbler/remote.py", line 1770, in
_dispatch
    return method_handle(*params)
   File "/usr/lib/python2.7/site-packages/cobbler/remote.py", line 1582, in
login
    utils.die(self.logger, "login failed (%s)" % login_user)
   File "/usr/lib/python2.7/site-packages/cobbler/utils.py", line 131, in
die
    raise CX(msg)


Cobbler check and sync works:

[root at spacewalk-prod-dub cobbler]# cobbler check
The following are potential configuration items that you may want to fix:

1 : some network boot-loaders are missing from /var/lib/cobbler/loaders,
you may run 'yum install cobbler-loaders' to download them, or, if you only
want to handle x86/x86_64 netbooting, you may ensure that you have
installed a *recent* version of the syslinux package installed and can
ignore this message entirely.  Files in this directory, should you want to
support all architectures, should include pxelinux.0, menu.c32, elilo.efi,
and yaboot. The 'yum install cobbler-loaders' command is the easiest way to
resolve these requirements.
2 : change 'disable' to 'no' in /etc/xinetd.d/tftp
3 : file /etc/xinetd.d/rsync does not exist
4 : debmirror package is not installed, it will be required to manage
debian deployments and repositories
5 : The default password used by the sample templates for newly installed
machines (default_password_crypted in /etc/cobbler/settings) is still set
to 'cobbler' and should be changed, try: "openssl passwd -1 -salt
'random-phrase-here' 'your-password-here'" to generate new one

Restart cobblerd and then run 'cobbler sync' to apply changes.
[root at spacewalk-prod-dub cobbler]# service cobblerd restart
Redirecting to /bin/systemctl restart cobblerd.service
[root at spacewalk-prod-dub cobbler]# cobbler sync
task started: 2020-03-17_160913_sync
task started (id=Sync, time=Tue Mar 17 16:09:13 2020)
running pre-sync triggers
cleaning trees
removing: /var/lib/tftpboot/pxelinux.cfg/default
removing: /var/lib/tftpboot/grub/images
removing: /var/lib/tftpboot/grub/efidefault
removing: /var/lib/tftpboot/s390x/profile_list
copying bootloaders
copying: /usr/share/syslinux/pxelinux.0 -> /var/lib/tftpboot/pxelinux.0
copying: /usr/share/syslinux/menu.c32 -> /var/lib/tftpboot/menu.c32
copying: /usr/share/syslinux/memdisk -> /var/lib/tftpboot/memdisk
copying distros
copying images
generating PXE configuration files
cleaning link caches
generating PXE menu structure
running post-sync triggers
running python triggers from /var/lib/cobbler/triggers/sync/post/*
running python trigger cobbler.modules.sync_post_restart_services
running shell triggers from /var/lib/cobbler/triggers/sync/post/*
running python triggers from /var/lib/cobbler/triggers/change/*
running python trigger cobbler.modules.scm_track
running shell triggers from /var/lib/cobbler/triggers/change/*
*** TASK COMPLETE ***

-- 





*******************************************************************************




This e-mail and any of its attachments may contain
Interactions LLC 
proprietary information, which is privileged,
confidential, or subject to 
copyright belonging to the Interactions
LLC. This e-mail is intended solely 
for the use of the individual or
entity to which it is addressed. If you 
are not the intended recipient of this
e-mail, you are hereby notified that 
any dissemination, distribution, copying,
or action taken in relation to 
the contents of and attachments to this e-mail
is strictly prohibited and 
may be unlawful. If you have received this e-mail in
error, please notify 
the sender immediately and permanently delete the original
and any copy of 
this e-mail and any printout. Thank You.  




******************************************************************************* 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20200317/d380ee3a/attachment.htm>


More information about the Spacewalk-list mailing list