Bug #28165

master test failure: Actions::Pulp3::CopyAllUnitsTest.test_exclusion_docker_filters VCR failure

Added by Justin Sherrill 7 months ago. Updated 7 months ago.

Target version:
Bugzilla link:
Fixed in Releases:
Found in Releases:


Actions::Pulp3::CopyAllUnitsTest.test_exclusion_docker_filters (from Actions__Pulp3__CopyAllUnitsTest)

ForemanTasks::TaskError: Task b7f260ed-fb96-482a-9a76-7282758ed2e2: VCR::Errors::UnhandledHTTPRequestError: 

An HTTP request has been made that VCR does not know how to handle:
  POST https://slave04.novalocal/pulp/api/v3/docker/recursive-add/

VCR is currently using the following cassette:
  - /home/jenkins/workspace/katello-master-source-release/test/fixtures/vcr_cassettes/actions/pulp3/copy_all_units/exclusion_docker_filters.yml
    - :record => :none
    - :match_requests_on => [:method, :path, :params, :body_json]

Under the current configuration VCR can not find a suitable HTTP interaction
to replay and is prevented from recording new requests. There are a few ways
you can deal with this:

  * If you're surprised VCR is raising this error
    and want insight about how VCR attempted to handle the request,
    you can use the debug_logger configuration option to log more details [1].
  * You can use the :new_episodes record mode to allow VCR to
    record this new request to the existing cassette [2].
  * If you want VCR to ignore this request (and others like it), you can
    set an `ignore_request` callback [3].
  * The current record mode (:none) does not allow requests to be recorded. You
    can temporarily change the record mode to :once, delete the cassette file 
    and re-run your tests to allow the cassette to be recorded with this request [4].
  * The cassette contains 9 HTTP interactions that have not been
    played back. If your request is non-deterministic, you may need to
    change your :match_requests_on cassette option to be more lenient
    or use a custom request matcher to allow it to match [5].


    foreman-tasks (0.17.0) lib/foreman_tasks.rb:59:in `block in sync_task'
    foreman-tasks (0.17.0) lib/foreman_tasks.rb:58:in `tap'
    foreman-tasks (0.17.0) lib/foreman_tasks.rb:58:in `sync_task'
    /home/jenkins/workspace/katello-master-source-release/test/actions/pulp3/orchestration/copy_all_units_test.rb:74:in `test_exclusion_docker_filters'
    /home/jenkins/workspace/katello-master-source-release/test/support/vcr.rb:25:in `block in run'
    /home/jenkins/workspace/katello-master-source-release/test/support/vcr.rb:24:in `run' (ForemanTasks::TaskError)

Associated revisions

Revision 6d0d9151 (diff)
Added by Justin Sherrill 7 months ago

Fixes #28165 - fix docker test consistency

This PR attempts to resolve a transient test failure
by sorting content ids that are being copied in pulp.

In addition, i adjusted the test not sync the entire
busybox repo to speed up the test.

This also fixes a bug with docker whitelists, due
to a pulp3 api change


#1 Updated by The Foreman Bot 7 months ago

  • Target version deleted (Katello Backlog)
  • Status changed from New to Ready For Testing
  • Pull request added

#2 Updated by The Foreman Bot 7 months ago

  • Fixed in Releases Katello 3.15.0 added

#3 Updated by Justin Sherrill 7 months ago

  • Status changed from Ready For Testing to Closed

#4 Updated by Justin Sherrill 7 months ago

  • Triaged changed from No to Yes
  • Target version set to Katello 3.15.0

Also available in: Atom PDF