Bug 2162678

Summary: content_export_* modules can time out as an export takes longer than 5 minutes
Product: Red Hat Satellite Reporter: Evgeni Golov <egolov>
Component: Ansible CollectionAssignee: Evgeni Golov <egolov>
Status: CLOSED ERRATA QA Contact: Griffin Sullivan <gsulliva>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.13.0CC: saydas
Target Milestone: 6.13.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ansible-collection-redhat-satellite-3.9.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-03 13:24:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Evgeni Golov 2023-01-20 13:26:01 UTC
Description of problem:
The content_export_* modules default to wait only for 5 minutes for a task to finish, however, content-related tasks can take much longer and this should be considered.

Version-Release number of selected component (if applicable):
ansible-collection-redhat-satellite 3.8.0

How reproducible:
100%

Steps to Reproduce:
1. try to export a library that contains "much" content

("much" depends on the HW used, but I'd guess a full RHEL8 is a good start)

Actual results:
Timeout


Expected results:
No Timeout

Additional info:

Comment 2 Griffin Sullivan 2023-03-13 19:40:04 UTC
Verified on 6.13 snap 14

content_export_library successfully exported a library with RHEL 8 in it in about 15 minutes without timing out.

Steps to Reproduce:

1) Sync RHEL 8 repo with immediate policy

2) Run the following playbook on the satellite:
---
- hosts: localhost
  collections:
    - redhat.satellite
  gather_facts: false
  tasks:
    - name: "Export library content (full)"
      content_export_library:
        username: "admin"
        password: "changeme"
        server_url: "source.com"
        organization: "Default Organization"
        destination_server: "dest.com"

3) # hammer content-export list --organization="Default Organization"

Results:

ID | DESTINATION SERVER    | PATH                                                               | TYPE     | CONTENT VIEW VERSION        | CONTENT VIEW VERSION ID | CREATED AT              | UPDATED AT             
---|-----------------------|--------------------------------------------------------------------|----------|-----------------------------|-------------------------|-------------------------|------------------------
1  | dest.com              | /var/lib/pulp/exports/Default_Organization/Export-Library-dest.com | complete | Export-Library-dest.com 1.0 | 2                       | 2023-03-13 19:26:28 UTC | 2023-03-13 19:26:28 UTC
---|-----------------------|--------------------------------------------------------------------|----------|-----------------------------|-------------------------|-------------------------|------------------------

Comment 5 errata-xmlrpc 2023-05-03 13:24:34 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: Satellite 6.13 Release), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2023:2097