https://pulp.plan.io/https://pulp.plan.io/favicon.ico2015-03-17T15:13:17ZPulpPulp - Issue #766: celery workers on different timezones trow errorshttps://pulp.plan.io/issues/766?journal_id=22362015-03-17T15:13:17Zdkliban@redhat.com
<ul><li><strong>Severity</strong> set to <i>Low</i></li><li><strong>Triaged</strong> changed from <i>No</i> to <i>Yes</i></li></ul> Pulp - Issue #766: celery workers on different timezones trow errorshttps://pulp.plan.io/issues/766?journal_id=22382015-03-17T15:14:15Zmhrivnakmhrivnak@redhat.com
<ul></ul><p>We strongly recommend running all machines within a pulp deployment with the same timezone setting.</p> Pulp - Issue #766: celery workers on different timezones trow errorshttps://pulp.plan.io/issues/766?journal_id=22542015-03-17T15:37:31Zbmbouterbmbouter@redhat.com
<ul></ul><p><a href="mailto:cristi.falcas@gmail.com" class="email">cristi.falcas@gmail.com</a> wrote:</p>
<blockquote>
<p>When using workers on different timezones we get this in the logs:</p>
<p>Substantial drift from <a href="mailto:resource_manager@v-is-puppet-03.synygy.net" class="email">resource_manager@v-is-puppet-03.synygy.net</a> may mean clocks are out of sync. Current drift is<br>
25199 seconds. [orig: 2015-03-17 06:48:33.819230 recv: 2015-03-16 23:48:34.387371]</p>
</blockquote>
<p>To my knowledge, Pulp can't emit a log statements like these. Pulp also doesn't track clock drift. I think that your machines are drifting their time which is an issue unrelated to Pulp. Clock drift can cause problems in Pulp, but cannot be fixed by Pulp.</p>
<blockquote>
<p>Maybe celery should support setting the correct timezone?</p>
</blockquote>
<p>Celery is capable of using the timezone configured in the operating system, or having it set, but starting with Celery 3.0, <a href="http://docs.celeryproject.org/en/latest/configuration.html#std%3asetting-CELERY_ENABLE_UTC" class="external">UTC is used by default</a> for all datetimes inside Celery. Pulp uses 3.1.11 currently. Pulp does not adjust this default. You can see how <a href="https://github.com/pulp/pulp/blob/master/server/pulp/server/async/celery_instance.py#L73" class="external">Pulp configures celery here</a>. This means that Celery is using UTC so having machines in different timezones doesn't matter.</p>
<p>Pulp also does some datetime related things, but it also is supposed to use UTC throughout it. That seems unrelated to the issue as you've described it.</p>
<p>It shouldn't matter what timezone different compomnents are in. What really matters is that your computers know what time it is. Please synchronize your clocks and try to reproduce this issue. You can keep your components in different timezones if you want to test our support of that.</p> Pulp - Issue #766: celery workers on different timezones trow errorshttps://pulp.plan.io/issues/766?journal_id=25752015-03-20T19:13:57Zbmbouterbmbouter@redhat.com
<ul><li><strong>Severity</strong> changed from <i>Low</i> to <i>1. Low</i></li></ul> Pulp - Issue #766: celery workers on different timezones trow errorshttps://pulp.plan.io/issues/766?journal_id=364342019-04-12T18:58:13Zbmbouterbmbouter@redhat.com
<ul><li><strong>Status</strong> changed from <i>NEW</i> to <i>CLOSED - WONTFIX</i></li></ul> Pulp - Issue #766: celery workers on different timezones trow errorshttps://pulp.plan.io/issues/766?journal_id=364742019-04-12T19:02:51Zbmbouterbmbouter@redhat.com
<ul></ul><p>Pulp 2 is approaching maintenance mode, and this Pulp 2 ticket is not being actively worked on. As such, it is being closed as WONTFIX. Pulp 2 is still accepting contributions though, so if you want to contribute a fix for this ticket, please reopen or comment on it. If you don't have permissions to reopen this ticket, or you want to discuss an issue, please reach out via the <a href="https://www.redhat.com/mailman/listinfo/pulp-dev" class="external">developer mailing list</a>.</p> Pulp - Issue #766: celery workers on different timezones trow errorshttps://pulp.plan.io/issues/766?journal_id=400822019-04-15T21:04:31Zbmbouterbmbouter@redhat.com
<ul><li><strong>Tags</strong> <i>Pulp 2</i> added</li></ul>