Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cobbler drops errors on the floor during a replicate #28

Open
tremble opened this issue Dec 15, 2011 · 7 comments
Open

Cobbler drops errors on the floor during a replicate #28

tremble opened this issue Dec 15, 2011 · 7 comments
Labels
Bug Report Reporting a bug
Milestone

Comments

@tremble
Copy link
Contributor

tremble commented Dec 15, 2011

We've an old installation which has lots of subtly broken distros profiles and systems. While trying to sync up a new slave I noticed that various bits and pieces weren't syncing across. No errors, just objects that didn't appear on the slave.

I tracked it down to collection.py which is catching an exception, returning false and not logging anything.

A simple error level log call would have made my life much simpler...

    try:
        ref.check_if_valid()
    except CX, error:
        return False
@mpdehaan
Copy link
Contributor

"add" in cobbler is used in two places, one in creating in-memory objects (save=False), another in saving them to disk. I don't think we want to log in this particular place because this would produce logging on invalid command line executions. Rather, I think it's more likely that when running replicate (did you mean replicate? It seems to make more sense here) we'd want to ensure it reported on the things it could not transfer.

@tremble
Copy link
Contributor Author

tremble commented Jan 31, 2012

mpdehaan - sorry for the delay, yes I did mean during replicate

Yes, reporting is some way that things didn't transfer would be good.

@ghost ghost assigned jmaas Mar 7, 2012
jimi-c added a commit to jimi-c/cobbler that referenced this issue Apr 8, 2012
…a replicate

Added additional logging to add_ functions to report an error if the add_item call returns False
jimi-c added a commit that referenced this issue Apr 14, 2012
BUGFIX - issue #28 - Cobbler drops errors on the floor during a replicate
jimi-c added a commit to jimi-c/cobbler that referenced this issue Apr 23, 2012
…a replicate

Added additional logging to add_ functions to report an error if the add_item call returns False
@tremble
Copy link
Contributor Author

tremble commented Jun 18, 2012

jimi, while that would improve matters, the one issue is that because the exception was dropped on the floor in add you don't know why it was dropped on the floor. Allowing the exception to fall back up to the caller would probably be the cleaner option, with the command line executions then being responsible for catching what is ultimately a mistake in the command line options... That's MHO anyway...

@jimi-c
Copy link
Member

jimi-c commented Jun 18, 2012

True, but at least knowing that it failed is important, and lets you start debugging. I plan on this being more of a stop-gap anyway, as replicate needs some work. For example, doing a full data sync does not respect distro filters right now, so there's no way to do a selective replicate. That means if you do replicate systems or profiles, you HAVE to do a full data sync or the distros won't be brought over due to the fact that the initrd/kernel pairs are not available on the replicated system. That is probably the source of the original failures, to be honest.

@ghost ghost assigned jimi-c Jun 18, 2012
@tremble
Copy link
Contributor Author

tremble commented Jun 18, 2012

jimi, What was actually catching us out was the fact that the systems pointed to profiles/distros that just didn't exist any more, and somewhere in the past the logic hadn't caught this.

@tremble
Copy link
Contributor Author

tremble commented Jun 18, 2012

but I'm fine with your point about it being a stop gap, if more work is planned.

@viper233
Copy link

viper233 commented Aug 8, 2013

I'm wondering if I've come across this bug also. I had an issue where cobblerd wouldn't restart on a slave. I tracked it down to an extra '}' /var/lib/cobbler/config/repos.d/rpmforge-el6.json at the end of the file. During the replication process /var/www/cobbler/repo_mirror filled up also though I don't see how this could have caused my issue.

@jmaas jmaas added COBBLER and removed COBBLER labels Oct 5, 2014
@alanoe alanoe assigned alanoe and unassigned jimi-c Nov 17, 2014
@alanoe alanoe added this to the 3.0.0 milestone Nov 17, 2014
@SchoolGuy SchoolGuy modified the milestones: 3.0.0, Backlog Aug 15, 2019
@SchoolGuy SchoolGuy added this to Inbox in Backlog Sep 16, 2019
@SchoolGuy SchoolGuy moved this from Inbox to Bug Reports in Backlog Oct 17, 2019
@SchoolGuy SchoolGuy added this to the v4.0.0 milestone Nov 19, 2020
@SchoolGuy SchoolGuy added this to To do in V4.0.0 Jun 25, 2021
@SchoolGuy SchoolGuy removed this from Bug Reports in Backlog Jul 3, 2022
@SchoolGuy SchoolGuy removed this from To do in V4.0.0 Jul 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Report Reporting a bug
Projects
Status: Todo
Development

No branches or pull requests

7 participants