It looks like there is a hook we forgot to remove when we dynflowed product/repo destroy. Here's the error: <pre> VCR::Errors::UnhandledHTTPRequestError: ================================================================================ An HTTP request has been made that VCR does not know how to handle: GET https://localhost:8443/candlepin/environments/2 There is currently no cassette in use. There are a few ways you can configure VCR to handle this request: * 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]. * If you want VCR to record this request and play it back during future test runs, you should wrap your test (or this portion of your test) in a `VCR.use_cassette` block [2]. * If you only want VCR to handle requests made while a cassette is in use, configure `allow_http_connections_when_no_cassette = true`. VCR will ignore this request since it is made when there is no cassette [3]. * If you want VCR to ignore this request (and others like it), you can set an `ignore_request` callback [4]. [1] https://www.relishapp.com/vcr/vcr/v/2-9-0/docs/configuration/debug-logging [2] https://www.relishapp.com/vcr/vcr/v/2-9-0/docs/getting-started [3] https://www.relishapp.com/vcr/vcr/v/2-9-0/docs/configuration/allow-http-connections-when-no-cassette [4] https://www.relishapp.com/vcr/vcr/v/2-9-0/docs/configuration/ignore-request ================================================================================ /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/vcr-2.9.0/lib/vcr/request_handler.rb:97:in `on_unhandled_request' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/vcr-2.9.0/lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/vcr-2.9.0/lib/vcr/request_handler.rb:24:in `handle' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/vcr-2.9.0/lib/vcr/library_hooks/webmock.rb:127:in `block in <module:WebMock>' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/webmock-1.17.4/lib/webmock/stub_registry.rb:28:in `call' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/webmock-1.17.4/lib/webmock/stub_registry.rb:28:in `block in register_global_stub' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/webmock-1.17.4/lib/webmock/request_pattern.rb:35:in `call' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/webmock-1.17.4/lib/webmock/request_pattern.rb:35:in `matches?' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/webmock-1.17.4/lib/webmock/stub_registry.rb:58:in `block in request_stub_for' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/webmock-1.17.4/lib/webmock/stub_registry.rb:57:in `each' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/webmock-1.17.4/lib/webmock/stub_registry.rb:57:in `detect' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/webmock-1.17.4/lib/webmock/stub_registry.rb:57:in `request_stub_for' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/webmock-1.17.4/lib/webmock/stub_registry.rb:50:in `response_for_request' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/webmock-1.17.4/lib/webmock/http_lib_adapters/net_http.rb:79:in `request' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/rbovirt-0.0.26/lib/restclient_ext/request.rb:48:in `block in transmit' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/webmock-1.17.4/lib/webmock/http_lib_adapters/net_http.rb:123:in `start_without_connect' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/webmock-1.17.4/lib/webmock/http_lib_adapters/net_http.rb:150:in `start' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/rbovirt-0.0.26/lib/restclient_ext/request.rb:44:in `transmit' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/rest-client-1.6.7/lib/restclient/request.rb:64:in `execute' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/rest-client-1.6.7/lib/restclient/request.rb:33:in `execute' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/rest-client-1.6.7/lib/restclient/resource.rb:51:in `get' /home/dadavis/Projects/katello/app/lib/katello/http_resource.rb:97:in `get' /home/dadavis/Projects/katello/app/lib/katello/resources/candlepin.rb:474:in `find' /home/dadavis/Projects/katello/app/models/katello/glue/candlepin/environment.rb:65:in `saved_env_content_ids' /home/dadavis/Projects/katello/app/models/katello/glue/candlepin/environment.rb:47:in `update_cp_content' /home/dadavis/Projects/katello/app/models/katello/content_view.rb:453:in `update_cp_content' /home/dadavis/Projects/katello/app/models/katello/glue/candlepin/content.rb:40:in `update_environment_content' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:442:in `_run__3765026088379951302__destroy__2310434606629137622__callbacks' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:405:in `__run_callback' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:385:in `_run_destroy_callbacks' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:81:in `run_callbacks' [55/1895] /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activerecord-3.2.18/lib/active_record/callbacks.rb:254:in `destroy' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activerecord-3.2.18/lib/active_record/transactions.rb:254:in `block in destroy' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activerecord-3.2.18/lib/active_record/transactions.rb:313:in `block in with_transaction_returning_status' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activerecord-3.2.18/lib/active_record/transactions.rb:208:in `transaction' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activerecord-3.2.18/lib/active_record/transactions.rb:311:in `with_transaction_returning_status' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activerecord-3.2.18/lib/active_record/transactions.rb:254:in `destroy' /home/dadavis/Projects/katello/app/models/katello/glue.rb:94:in `destroy' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activerecord-3.2.18/lib/active_record/associations/has_many_association.rb:90:in `block in delete_records' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activerecord-3.2.18/lib/active_record/associations/has_many_association.rb:90:in `each' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activerecord-3.2.18/lib/active_record/associations/has_many_association.rb:90:in `delete_records' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activerecord-3.2.18/lib/active_record/associations/collection_association.rb:466:in `remove_records' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activerecord-3.2.18/lib/active_record/associations/collection_association.rb:459:in `block in delete_or_destroy' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activerecord-3.2.18/lib/active_record/associations/collection_association.rb:149:in `block in transaction' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activerecord-3.2.18/lib/active_record/transactions.rb:208:in `transaction' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activerecord-3.2.18/lib/active_record/associations/collection_association.rb:148:in `transaction' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activerecord-3.2.18/lib/active_record/associations/collection_association.rb:459:in `delete_or_destroy' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activerecord-3.2.18/lib/active_record/associations/collection_association.rb:231:in `delete' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activerecord-3.2.18/lib/active_record/associations/collection_association.rb:157:in `delete_all' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activerecord-3.2.18/lib/active_record/associations/collection_proxy.rb:46:in `delete_all' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activerecord-3.2.18/lib/active_record/associations/builder/has_many.rb:42:in `block in define_destroy_dependency_method' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:419:in `block in _run__1732847630994192790__destroy__2310434606629137622__callbacks' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:215:in `block in _conditional_callback_around_9599' /home/dadavis/Projects/katello/app/models/katello/glue.rb:48:in `on_destroy' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:214:in `_conditional_callback_around_9599' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:403:in `_run__1732847630994192790__destroy__2310434606629137622__callbacks' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:405:in `__run_callback' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:385:in `_run_destroy_callbacks' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:81:in `run_callbacks' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activerecord-3.2.18/lib/active_record/callbacks.rb:254:in `destroy' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activerecord-3.2.18/lib/active_record/transactions.rb:254:in `block in destroy' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activerecord-3.2.18/lib/active_record/transactions.rb:313:in `block in with_transaction_returning_status' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activerecord-3.2.18/lib/active_record/transactions.rb:208:in `transaction' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activerecord-3.2.18/lib/active_record/transactions.rb:311:in `with_transaction_returning_status' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activerecord-3.2.18/lib/active_record/transactions.rb:254:in `destroy' /home/dadavis/Projects/katello/app/models/katello/glue.rb:94:in `destroy' /home/dadavis/Projects/katello/app/models/katello/model.rb:21:in `destroy!' /home/dadavis/Projects/katello/app/lib/actions/katello/organization/destroy.rb:112:in `block (2 levels) in remove_products' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activerecord-3.2.18/lib/active_record/associations/collection_proxy.rb:91:in `each' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activerecord-3.2.18/lib/active_record/associations/collection_proxy.rb:91:in `method_missing' /home/dadavis/Projects/katello/app/lib/actions/katello/organization/destroy.rb:110:in `block in remove_products' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/dynflow-0.7.0/lib/dynflow/testing/dummy_execution_plan.rb:51:in `call' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/dynflow-0.7.0/lib/dynflow/testing/dummy_execution_plan.rb:51:in `switch_flow' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/dynflow-0.7.0/lib/dynflow/action.rb:311:in `concurrence' /home/dadavis/Projects/katello/app/lib/actions/katello/organization/destroy.rb:109:in `remove_products' /home/dadavis/Projects/katello/app/lib/actions/katello/organization/destroy.rb:36:in `block (2 levels) in plan' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/dynflow-0.7.0/lib/dynflow/testing/dummy_execution_plan.rb:51:in `call' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/dynflow-0.7.0/lib/dynflow/testing/dummy_execution_plan.rb:51:in `switch_flow' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/dynflow-0.7.0/lib/dynflow/action.rb:316:in `sequence' /home/dadavis/Projects/katello/app/lib/actions/katello/organization/destroy.rb:26:in `block in plan' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/dynflow-0.7.0/lib/dynflow/testing/dummy_execution_plan.rb:51:in `call' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/dynflow-0.7.0/lib/dynflow/testing/dummy_execution_plan.rb:51:in `switch_flow' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/dynflow-0.7.0/lib/dynflow/action.rb:311:in `concurrence' /home/dadavis/Projects/katello/app/lib/actions/katello/organization/destroy.rb:23:in `plan' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/dynflow-0.7.0/lib/dynflow/action.rb:394:in `block (3 levels) in execute_plan' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/dynflow-0.7.0/lib/dynflow/middleware/stack.rb:26:in `call' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/dynflow-0.7.0/lib/dynflow/middleware/stack.rb:26:in `pass' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/dynflow-0.7.0/lib/dynflow/middleware.rb:16:in `pass' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/dynflow-0.7.0/lib/dynflow/middleware.rb:29:in `plan' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/dynflow-0.7.0/lib/dynflow/middleware/stack.rb:22:in `call' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/dynflow-0.7.0/lib/dynflow/middleware/world.rb:30:in `execute' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/dynflow-0.7.0/lib/dynflow/action.rb:393:in `block (2 levels) in execute_plan' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/dynflow-0.7.0/lib/dynflow/testing/dummy_execution_plan.rb:51:in `call' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/dynflow-0.7.0/lib/dynflow/testing/dummy_execution_plan.rb:51:in `switch_flow' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/dynflow-0.7.0/lib/dynflow/action.rb:311:in `concurrence' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/dynflow-0.7.0/lib/dynflow/action.rb:392:in `block in execute_plan' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/dynflow-0.7.0/lib/dynflow/action.rb:361:in `call' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/dynflow-0.7.0/lib/dynflow/action.rb:361:in `block in with_error_handling' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/dynflow-0.7.0/lib/dynflow/action.rb:361:in `catch' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/dynflow-0.7.0/lib/dynflow/action.rb:361:in `with_error_handling' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/dynflow-0.7.0/lib/dynflow/action.rb:391:in `execute_plan' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/dynflow-0.7.0/lib/dynflow/action.rb:226:in `execute' /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/dynflow-0.7.0/lib/dynflow/testing/factories.rb:41:in `plan_action' </pre>
Created from redmine issue http://projects.theforeman.org/issues/6460
Upstream bug assigned to daviddavis
This is a refactor of code so there's probably no way to test this.
You could maybe delete a repository to make sure it still works.
Moving to POST since upstream bug http://projects.theforeman.org/issues/6460 has been closed
Moving to POST since upstream bug http://projects.theforeman.org/issues/6460 has been closed -------------\NDavid Davis Started working on this as part of org destroy but decided to back out the changes: https://gist.github.com/e99d788dd1c23ee000b6 https://gist.github.com/f2007ccfaaac32df8d34 -------------\NDavid Davis Applied in changeset commit:katello|c094d906aa162d00fbdd48140dfd6074e58b46dc.
Please provide the verification steps.
Tested with sat6-GA-snap6-compose3 Deleteing a custom repo was successful without any errors in /var/log/foreman/production.log Installed Packages candlepin-0.9.23-1.el6_5.noarch candlepin-common-1.0.1-1.el6_5.noarch candlepin-scl-1-5.el6_4.noarch candlepin-scl-quartz-2.1.5-5.el6_4.noarch candlepin-scl-rhino-1.7R3-1.el6_4.noarch candlepin-scl-runtime-1-5.el6_4.noarch candlepin-selinux-0.9.23-1.el6_5.noarch candlepin-tomcat6-0.9.23-1.el6_5.noarch createrepo-0.9.9-21.2.pulp.el6sat.noarch elasticsearch-0.90.10-6.el6sat.noarch katello-1.5.0-29.el6sat.noarch katello-certs-tools-1.5.6-1.el6sat.noarch katello-default-ca-1.0-1.noarch katello-installer-0.0.61-1.el6sat.noarch katello-server-ca-1.0-1.noarch m2crypto-0.21.1.pulp-10.el6sat.x86_64 mod_wsgi-3.4-1.pulp.el6sat.x86_64 pulp-katello-0.3-3.el6sat.noarch pulp-nodes-common-2.4.0-0.30.beta.el6sat.noarch pulp-nodes-parent-2.4.0-0.30.beta.el6sat.noarch pulp-puppet-plugins-2.4.0-0.30.beta.el6sat.noarch pulp-puppet-tools-2.4.0-0.30.beta.el6sat.noarch pulp-rpm-plugins-2.4.0-0.30.beta.el6sat.noarch pulp-selinux-2.4.0-0.30.beta.el6sat.noarch pulp-server-2.4.0-0.30.beta.el6sat.noarch python-gofer-qpid-1.3.0-1.el6sat.noarch python-isodate-0.5.0-1.pulp.el6sat.noarch python-kombu-3.0.15-12.pulp.el6sat.noarch python-pulp-bindings-2.4.0-0.30.beta.el6sat.noarch python-pulp-common-2.4.0-0.30.beta.el6sat.noarch python-pulp-puppet-common-2.4.0-0.30.beta.el6sat.noarch python-pulp-rpm-common-2.4.0-0.30.beta.el6sat.noarch python-qpid-0.22-14.el6sat.noarch python-qpid-qmf-0.22-37.el6.x86_64 qpid-cpp-client-0.22-42.el6.x86_64 qpid-cpp-server-0.22-42.el6.x86_64 qpid-cpp-server-linearstore-0.22-42.el6.x86_64 qpid-java-client-0.22-6.el6.noarch qpid-java-common-0.22-6.el6.noarch qpid-proton-c-0.7-1.el6.x86_64 qpid-qmf-0.22-37.el6.x86_64 qpid-tools-0.22-12.el6.noarch ruby193-rubygem-katello-1.5.0-85.el6sat.noarch rubygem-hammer_cli_katello-0.0.4-14.el6sat.noarch rubygem-smart_proxy_pulp-1.0.1-1.1.el6sat.noarch
This was delivered with Satellite 6.0 which was released on 10 September 2014.