Project

Profile

Help

Issue #974

closed

Task #1014: Short Term Improvements for Pulp's use of MongoDB

GET of a task sometimes 404s on first request

Added by mhrivnak over 9 years ago. Updated over 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
High
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
2.6.0
Platform Release:
2.7.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

Sometimes when trying to fetch a task immediately after it gets created, the GET request 404s.

From downstream bug:

Description of problem:

When publishing a content view we generate a lot of tasks in pulp and then wait on them.  For some reason on occasion we initiate the task and as soon as we request the task to poll its status pulp throws a 404.

Requests for the same task later on work fine.

Version-Release number of selected component (if applicable):
2.6.0-1.1.beta

How reproducible:
Randomly

Steps to Reproduce:
Will work on reproducer script, unclear how to reproduce currently.

Pulp logs:

Apr  1 20:52:14 qe-blade-16 pulp: pulp.server.webservices.middleware.exception:INFO: Missing resource(s): resource_id=6f29bc57-55f0-49eb-97ee-1978407be409
Apr  1 20:52:14 qe-blade-16 pulp: celery.worker.strategy:INFO: Received task: pulp.server.managers.repo.unit_association.associate_from_repo[6f29bc57-55f0-49eb-97ee-1978407be409]
Apr  1 20:52:14 qe-blade-16 pulp: celery.worker.strategy:INFO: Received task: pulp.server.async.tasks._release_resource[7b3ce53b-d3ae-4101-bbd3-15776e975d52]
Apr  1 20:52:14 qe-blade-16 pulp: celery.worker.job:INFO: Task pulp.server.async.tasks._queue_reserved_task[01c536c8-f0cf-444c-a799-c65a5f5413da] succeeded in 0.702265332002s: 

apache logs:

10.16.76.78 - - [01/Apr/2015:20:52:13 -0400] "POST /pulp/api/v2/repositories/Default_Organization-rhel-7-cv-1_0-Satellite_Tools_Packages-RHEL_7/actions/associate/ HTTP/1.1" 202 172 "-" "Ruby"
10.16.76.78 - - [01/Apr/2015:20:52:14 -0400] "GET /pulp/api/v2/tasks/6f29bc57-55f0-49eb-97ee-1978407be409/ HTTP/1.1" 404 533 "-" "Ruby"

Related issues

Blocked by Pulp - Issue #1065: DeprecationWarning on pulp-manage-dbCLOSED - CURRENTRELEASEamacdona@redhat.comActions
Actions #1

Updated by mhrivnak over 9 years ago

  • Triaged changed from No to Yes
Actions #2

Updated by dkliban@redhat.com over 9 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to dkliban@redhat.com
Actions #4

Updated by dkliban@redhat.com over 9 years ago

  • Related to Task #1014: Short Term Improvements for Pulp's use of MongoDB added
Actions #5

Updated by dkliban@redhat.com over 9 years ago

  • Related to deleted (Task #1014: Short Term Improvements for Pulp's use of MongoDB)
Actions #6

Updated by dkliban@redhat.com over 9 years ago

  • Blocks Task #1014: Short Term Improvements for Pulp's use of MongoDB added
Actions #7

Updated by dkliban@redhat.com over 9 years ago

  • Blocks deleted (Task #1014: Short Term Improvements for Pulp's use of MongoDB)
Actions #8

Updated by dkliban@redhat.com over 9 years ago

  • Parent issue set to #1014
Actions #9

Updated by dkliban@redhat.com over 9 years ago

  • Blocked by Issue #1012: If the first database seed listed in server.conf is not the current Primary replica, Pulp will not be able to write to the database added
Actions #10

Updated by bmbouter over 9 years ago

  • Blocked by Issue #1065: DeprecationWarning on pulp-manage-db added
Actions #11

Updated by bmbouter over 9 years ago

  • Blocked by deleted (Issue #1012: If the first database seed listed in server.conf is not the current Primary replica, Pulp will not be able to write to the database)
Actions #12

Updated by dkliban@redhat.com about 9 years ago

  • Platform Release set to 2.7.0

Added by dkliban@redhat.com about 9 years ago

Revision 1ad36448 | View on GitHub

Adds support for write concern

Pulp now accepts a write concern for the MongoDB connection. All writes to the database are now acknowledged. For replica sets, 'majority' or 'all' members can be asked to acknowledge the write.

closes: #974 closes: #1139

Added by dkliban@redhat.com about 9 years ago

Revision 1ad36448 | View on GitHub

Adds support for write concern

Pulp now accepts a write concern for the MongoDB connection. All writes to the database are now acknowledged. For replica sets, 'majority' or 'all' members can be asked to acknowledge the write.

closes: #974 closes: #1139

Actions #13

Updated by dkliban@redhat.com about 9 years ago

  • Status changed from ASSIGNED to MODIFIED
  • % Done changed from 0 to 100
Actions #14

Updated by dkliban@redhat.com about 9 years ago

  • Status changed from MODIFIED to 5
Actions #15

Updated by amacdona@redhat.com about 9 years ago

  • Status changed from 5 to CLOSED - CURRENTRELEASE
Actions #18

Updated by bmbouter over 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF