Bug 1322096 - Repeated Mongo fork warnings while syncing.
Summary: Repeated Mongo fork warnings while syncing.
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Pulp
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium vote
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-29 19:23 UTC by Corey Welton
Modified: 2021-04-06 18:00 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-16 05:38:08 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Pulp Redmine 1580 0 High CLOSED - CURRENTRELEASE Cannot Download Published RPMs 2017-02-07 16:03:41 UTC

Description Corey Welton 2016-03-29 19:23:46 UTC
Description of problem:

Repeated warnings about MongoClient opening before fork, while syncing content.


Version-Release number of selected component (if applicable):
SNAP5

How reproducible:
Unsure

Steps to Reproduce:
1. Begin syncing a number of custom products.  In this case, I was syncing all three EPEL repos for each of RHEL 5-7.
2. View /var/log/messages


Actual results:


Mar 29 15:15:32 rhsm-qe-3 pulp: py.warnings:WARNING: (6841-72672) /usr/lib64/python2.7/site-packages/pymongo/topology.py:74: UserWarning: MongoClient opened before fork. Create MongoClient with connect=False, or create client after forking. See PyMongo's documentation for details: http://api.mongodb.org/python/current/faq.html#using-pymongo-with-multiprocessing>
Mar 29 15:15:32 rhsm-qe-3 pulp: py.warnings:WARNING: (6841-72672)   "MongoClient opened before fork. Create MongoClient "
Mar 29 15:15:32 rhsm-qe-3 pulp: py.warnings:WARNING: (6841-72672)
Mar 29 15:15:32 rhsm-qe-3 pulp: celery.worker.job:INFO: Task pulp.server.controllers.repository.queue_download_deferred[f8cc4a44-ae7a-449b-8cac-3f01d45d1f21] succeeded in 0.0531026830431s: None
Mar 29 15:15:32 rhsm-qe-3 pulp: py.warnings:WARNING: (6841-72672) /usr/lib/python2.7/site-packages/mongoengine/queryset/base.py:461: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
Mar 29 15:15:32 rhsm-qe-3 pulp: py.warnings:WARNING: (6841-72672)   upsert=upsert, **write_concern)
Mar 29 15:15:32 rhsm-qe-3 pulp: py.warnings:WARNING: (6841-72672)
Mar 29 15:15:32 rhsm-qe-3 pulp: py.warnings:WARNING: (6841-72672) /usr/lib/python2.7/site-packages/mongoengine/document.py:367: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
Mar 29 15:15:32 rhsm-qe-3 pulp: py.warnings:WARNING: (6841-72672)   upsert=upsert, **write_concern)
Mar 29 15:15:32 rhsm-qe-3 pulp: py.warnings:WARNING: (6841-72672)


[This message gets repeated from time to time.]



Expected results:
Probably shouldn't be seeing this.  But it is a warning.


Additional info:
This is on a box that was recently rebooted, so it probably isn't a symptom of the presently known pulp degradation issue.

Comment 1 Corey Welton 2016-03-29 19:30:34 UTC
To clarify, I don't think, but I am not sure, that this is causing any problems.  I wrote it up because 1) we've never seen this message and 2) in case it helps root out any other unknown pulp issues.

Comment 4 Sean Myers 2016-04-06 18:44:18 UTC
This issue is already tracked in pulp's redmine:
https://pulp.plan.io/issues/1580

The short version of this issue is that the warnings can be ignored, and connecting before forking is not causing any problems. While I was able to put together some code to suppress the warnings, the solution wasn't reliable enough and was rejected.

Comment 5 pulp-infra@redhat.com 2016-04-14 19:27:49 UTC
The Pulp upstream bug status is at CLOSED - CURRENTRELEASE. Updating the external tracker on this bug.

Comment 6 pulp-infra@redhat.com 2016-04-14 19:27:52 UTC
The Pulp upstream bug priority is at High. Updating the external tracker on this bug.

Comment 7 Mike McCune 2016-05-16 05:38:08 UTC
This was rejected upstream and the errors are innocuous.

Closing, WONTFIX - if you feel we need to re-open this, feel free to do so.


Note You need to log in before you can comment on or make changes to this bug.