Waiting for task /pulp/api/v3/tasks/01952267-2321-7bf8-b2e9-e52563b653d1/ timed out timed out

Problem:

Error in pulp.squeezer.rpm_publication. (completion?)
Using pulp-squeezer 0.1.0

Thank you.

Description:
msg: Waiting for task /pulp/api/v3/tasks/01952267-2321-7bf8-b2e9-e52563b653d1/ timed out.

This task completed. See below.

From the time the publication starts to the failure, it feels about the time it would complete the publication.
But gives a timeout.

Using both:

pulp/pulp-minimal  3.67         ecadd3d5cea7  3 months ago   1.62 GB
boto3                                    1.35.58
botocore                                 1.35.58
s3transfer                               0.10.3

pulp/pulp-minimal  3.68         6ea2e8a25a60  2 months ago   1.77 GB
boto3                                    1.35.77
botocore                                 1.35.77
s3transfer                               0.10.4

and pulp-squeezer 0.1.0
gives an error at:

    - name: Create rpm Puplication of Repositories
      pulp.squeezer.rpm_publication:
         pulp_url: "{{ PULP_SVR }}"
         repository: "{{ item.name }}"
         validate_certs: false
         state: present
      register: pub_result
      loop: "{{ repo_data.Repository }}"
      loop_control:
         index_var: p_idx

Using pulp-squeezer 0.0.17 works fine with
mentioned pulp-minimal versions and S3.

| Result | sq-Ver | Pulp-minimal | S3
| Fail   |  0.1.0 |    3.67      |  y
| Fail   |  0.1.0 |    3.68      |  y
| Pass   | 0.0.17 |    3.67      |  y
| Pass   | 0.0.17 |    3.68      |  y
TASK [Create rpm Publication of Repositories] **********************************
failed: [localhost] (item={'name': 'active-P-2025Q01.00-ABC-SLES12-SP4-latest', 'base': 'MR/SLES12/SP4/2025Q01.00/active-P-2025Q01.00-ABC-SLES12-SP4-latest', 'source': ['/pulp/api/v3/repositories/rpm/rpm/019513af-f773-7171-bc0e-a7006dfb6b87/versions/1/', '/pulp/api/v3/repositories/rpm/rpm/019513b0-0055-7225-bbbd-e20c5cf1e9ec/versions/1/', '/pulp/api/v3/repositories/rpm/rpm/019513b0-098c-7da1-88ec-4934e7c005ce/versions/1/', '/pulp/api/v3/repositories/rpm/rpm/019513b0-126d-750e-8819-ae07f02be6c1/versions/1/', '/pulp/api/v3/repositories/rpm/rpm/019513b0-1bb9-7a8e-90ba-ccacaf591eca/versions/1/', '/pulp/api/v3/repositories/rpm/rpm/019513b0-2469-7133-a304-be7fe5e1b095/versions/1/', '/pulp/api/v3/repositories/rpm/rpm/019513b0-2e4c-7c39-ab8e-7594e550335a/versions/1/', '/pulp/api/v3/repositories/rpm/rpm/019513b0-396f-7e89-9874-55b3e62ccb1a/versions/1/', '/pulp/api/v3/repositories/rpm/rpm/019513b0-4445-7e3b-a05e-ddbf7a12a915/versions/1/', '/pulp/api/v3/repositories/rpm/rpm/019513b0-4f42-7d1a-ae32-c555ad28e5eb/versions/1/', '/pulp/api/v3/repositories/rpm/rpm/019513b0-5a07-72ac-8c89-c51bf1a08c21/versions/1/', '/pulp/api/v3/repositories/rpm/rpm/019513b0-640b-791b-8997-0aa3f0866619/versions/1/', '/pulp/api/v3/repositories/rpm/rpm/019513b0-6e6d-7847-9d07-e9e47900217d/versions/1/', '/pulp/api/v3/repositories/rpm/rpm/019513b0-79ce-71de-97d1-1904f377cdbc/versions/1/', '/pulp/api/v3/repositories/rpm/rpm/019513b0-84f2-7bff-b972-2c9b1e77f5c7/versions/1/', '/pulp/api/v3/repositories/rpm/rpm/019513b0-9022-7920-be32-c7d2a3cb507b/versions/1/', '/pulp/api/v3/repositories/rpm/rpm/019513b0-9bde-7f1d-aab2-3c0821b28556/versions/1/']}) => changed=false 
  ansible_index_var: p_idx
  ansible_loop_var: item
  item:
    base: MR/SLES12/SP4/2025Q01.00/active-P-2025Q01.00-ABC-SLES12-SP4-latest
    name: active-P-2025Q01.00-ABC-SLES12-SP4-latest
    source:
    - /pulp/api/v3/repositories/rpm/rpm/019513af-f773-7171-bc0e-a7006dfb6b87/versions/1/
    - /pulp/api/v3/repositories/rpm/rpm/019513b0-0055-7225-bbbd-e20c5cf1e9ec/versions/1/
    - /pulp/api/v3/repositories/rpm/rpm/019513b0-098c-7da1-88ec-4934e7c005ce/versions/1/
    - /pulp/api/v3/repositories/rpm/rpm/019513b0-126d-750e-8819-ae07f02be6c1/versions/1/
    - /pulp/api/v3/repositories/rpm/rpm/019513b0-1bb9-7a8e-90ba-ccacaf591eca/versions/1/
    - /pulp/api/v3/repositories/rpm/rpm/019513b0-2469-7133-a304-be7fe5e1b095/versions/1/
    - /pulp/api/v3/repositories/rpm/rpm/019513b0-2e4c-7c39-ab8e-7594e550335a/versions/1/
    - /pulp/api/v3/repositories/rpm/rpm/019513b0-396f-7e89-9874-55b3e62ccb1a/versions/1/
    - /pulp/api/v3/repositories/rpm/rpm/019513b0-4445-7e3b-a05e-ddbf7a12a915/versions/1/
    - /pulp/api/v3/repositories/rpm/rpm/019513b0-4f42-7d1a-ae32-c555ad28e5eb/versions/1/
    - /pulp/api/v3/repositories/rpm/rpm/019513b0-5a07-72ac-8c89-c51bf1a08c21/versions/1/
    - /pulp/api/v3/repositories/rpm/rpm/019513b0-640b-791b-8997-0aa3f0866619/versions/1/
    - /pulp/api/v3/repositories/rpm/rpm/019513b0-6e6d-7847-9d07-e9e47900217d/versions/1/
    - /pulp/api/v3/repositories/rpm/rpm/019513b0-79ce-71de-97d1-1904f377cdbc/versions/1/
    - /pulp/api/v3/repositories/rpm/rpm/019513b0-84f2-7bff-b972-2c9b1e77f5c7/versions/1/
    - /pulp/api/v3/repositories/rpm/rpm/019513b0-9022-7920-be32-c7d2a3cb507b/versions/1/
    - /pulp/api/v3/repositories/rpm/rpm/019513b0-9bde-7f1d-aab2-3c0821b28556/versions/1/
  msg: Waiting for task /pulp/api/v3/tasks/01952267-2321-7bf8-b2e9-e52563b653d1/ timed out.
  p_idx: 0

Expected outcome:

Pulp-squeezer 0.1.0 to work/complete as 0…0.17

Pulpcore version:

pulp/pulp-minimal  3.67         ecadd3d5cea7
pulp/pulp-minimal  3.68         6ea2e8a25a60

Pulp plugins installed and their versions:

Operating system - distribution and version:

SLES15SP5

Other relevant data:

 pulp task show --uuid 01952267-2321-7bf8-b2e9-e52563b653d1

{
  "pulp_href": "/pulp/api/v3/tasks/01952267-2321-7bf8-b2e9-e52563b653d1/",
  "prn": "prn:core.task:01952267-2321-7bf8-b2e9-e52563b653d1",
  "pulp_created": "2025-02-20T08:08:59.427624Z",
  "pulp_last_updated": "2025-02-20T08:08:59.427644Z",
  "state": "completed",
  "name": "pulp_rpm.app.tasks.publishing.publish",
  "logging_cid": "143a0777f4044d04bc214eff9773f947",
  "created_by": "/pulp/api/v3/users/1/",
  "unblocked_at": "2025-02-20T08:08:59.467225Z",
  "started_at": "2025-02-20T08:08:59.553323Z",
  "finished_at": "2025-02-20T08:10:19.302671Z",
  "error": null,
  "worker": "/pulp/api/v3/workers/01952258-963a-736c-9953-a12e610e84ef/",
  "parent_task": null,
  "child_tasks": [],
  "task_group": null,
  "progress_reports": [
{
  "message": "Generating repository metadata",
  "code": "publish.generating_metadata",
  "state": "completed",
  "total": 1,
  "done": 1,
  "suffix": null
}
  ],
  "created_resources": [
"/pulp/api/v3/publications/rpm/rpm/01952267-23b0-7b5b-8ff4-45e03f505099/"
  ],
  "reserved_resources_record": [
"shared:prn:rpm.rpmrepository:01951945-fc4f-792c-bcaf-bf57bfb75418",
"shared:prn:core.domain:019513aa-8ee7-77d4-af49-eb445030ae0b"
  ]
}
1 Like

The task seems to run for a little over two minutes…
The default task time out i think is 10 sec. (Definitely too short for sync or publish…)

But you can configure your own timeout value on the tasks:

    - name: Create rpm Puplication of Repositories
      pulp.squeezer.rpm_publication:
         timeout: 600
         pulp_url: "{{ PULP_SVR }}"
         repository: "{{ item.name }}"
         validate_certs: false
         state: present
      register: pub_result
      loop: "{{ repo_data.Repository }}"
      loop_control:
         index_var: p_idx
1 Like

This worked 100%.
Thanks so much.

Not shown, I had an Ansible timeout declared.
To no effect.

2 Likes