Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.

Adds logging if Pulp is missing critical Celery services #1976

Merged
merged 1 commit into from Jul 21, 2015

Conversation

bmbouter
Copy link
Member

@bmbouter bmbouter commented Jul 9, 2015

@pulpbot
Copy link
Member

pulpbot commented Jul 9, 2015

Refer to this link for build results (access rights to CI server needed):
https://pulp-jenkins.rhev-ci-vms.eng.rdu2.redhat.com//job/unittest-pulp-pr/1071/
Test PASSed.

elif worker['name'].startswith(SCHEDULER_WORKER_NAME):
scheduler_count = scheduler_count + 1
elif worker['name'].startswith(RESOURCE_MANAGER_WORKER_NAME):
resource_manager_count = resource_manager_count + 1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It may be worthwhile to add a debug-level logging statement here for total number of schedulers and resource managers.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good idea; I'm doing it and an associated test.

@beav
Copy link
Contributor

beav commented Jul 13, 2015

LGTM but I would not mind a second review since it's for 2.6.x 🐨

"""
msg = _('Looking for workers missing for more than %s seconds') % self.WORKER_TIMEOUT_SECONDS
msg = _('Checking if pulp_workers, pulp_celerybeat, or pulp_resource_manager '
'processes are missing for more than %s seconds') % self.CELERY_TIMEOUT_SECONDS
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

python is very forgiving, but in theory this should be %d

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch; fixed

@mhrivnak mhrivnak added the LGTM label Jul 13, 2015
@bmbouter bmbouter force-pushed the 1115-northern-english-brown-ale branch from b7072f3 to 21eaaea Compare July 15, 2015 18:56
@pulpbot
Copy link
Member

pulpbot commented Jul 15, 2015

Refer to this link for build results (access rights to CI server needed):
https://pulp-jenkins.rhev-ci-vms.eng.rdu2.redhat.com//job/unittest-pulp-pr/1106/
Test PASSed.

bmbouter added a commit that referenced this pull request Jul 21, 2015
Adds logging if Pulp is missing critical Celery services
@bmbouter bmbouter merged commit c7065a2 into pulp:2.6-dev Jul 21, 2015
@bmbouter bmbouter deleted the 1115-northern-english-brown-ale branch July 21, 2015 19:54
@bmbouter bmbouter restored the 1115-northern-english-brown-ale branch July 21, 2015 19:55
@bmbouter bmbouter deleted the 1115-northern-english-brown-ale branch August 4, 2015 17:14
dkliban added a commit to dkliban/pulp that referenced this pull request Jan 15, 2017
…nested directories

Solution: Enable RSyncFastForwardUnitPublishStep to publish the same type of units into different
directories by extracting the publish path of a unit from it's symlink location.

re pulp#1976
https://pulp.plan.io/issues/1976
dkliban added a commit to dkliban/pulp that referenced this pull request Jan 15, 2017
Solution: Enable RSyncFastForwardUnitPublishStep to publish the same type of units into different
directories by extracting the publish path of a unit from it's symlink location.

This problem was introduced when the yum distributor was modified to publish repositories with a
new layout. This patch makes the RPM rsync distributor consistent with the yum distributor.

re pulp#1976
https://pulp.plan.io/issues/1976
dkliban added a commit to dkliban/pulp that referenced this pull request Jan 16, 2017
Solution: Enable RSyncFastForwardUnitPublishStep to publish the same type of units into different
directories by extracting the publish path of a unit from it's symlink location.

This problem was introduced when the yum distributor was modified to publish repositories with a
new layout. This patch makes the RPM rsync distributor consistent with the yum distributor.

re pulp#1976
https://pulp.plan.io/issues/1976
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
4 participants