Re: keyError while attempting "repo remove" and "repo rename"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hsing-Tsu Lai wrote:
Hi,

I'm trying out cobbler in hoping to use it to manage the rhel5 packages locally.

In my experiments, I added a repo then tried to remove or rename it
both failed with "KeyError". For example:

What version of cobbler are you using?



# cobbler repo remove --name=rhel5
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 719, in main
   BootCLI(sys.argv).run()
File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 115, in run
   self.relay_args(self.args[1:], self.commands['toplevel'])
 File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line
545, in relay_args
   commands[args[0]](args[1:])
File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 699, in repo
   return self.relay_args(args, self.commands['repo'])
 File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line
545, in relay_args
   commands[args[0]](args[1:])
 File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line
320, in repo_remove
   return self.__generic_remove(args,"repo","name",self.api.repos)
 File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line
305, in __generic_remove
   return self.apply_args(args,commands,on_ok)
 File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line
530, in apply_args
   input_routines[key](value)
 File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line
302, in <lambda>
   "--%s" % alias2 : lambda(a):  collection_fn().remove(a,
with_delete=self.api.sync_flag)
 File "/usr/lib/python2.4/site-packages/cobbler/collection_repos.py",
line 59, in remove
   self._run_triggers(self.listing[name],
"/var/lib/cobbler/triggers/delete/repo/post/*")
KeyError: 'rhel5'


The repo was added by "cobbler repo add --name=rhel5
--mirror=rhn://rhel-x86_64-server-5". Later, I managed to clean it up
by "rpm -e cobbler" and removed all the residue files.

That's a bit overkill. You could have removed the definition from /var/lib/cobbler/repos even
with the above error.


any pointers why I am getting such errors are much appreciated.


Thanks,
Hsing-Tsu

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/et-mgmt-tools

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/et-mgmt-tools

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux