Project

General

Profile

Bug #29007

[pulp3] file uploads via hammer fail

Added by James Jeffers 3 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Repositories
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

Attempting a file upload via hammer for a pulpcore enabled server fails, whereas uploading via the UI worked.

```
18:53:05 rails.1 | 2020-02-13T18:53:05 [E|app|] Katello::HttpErrors::BadRequest: Task d17b6157-5272-4f0f-9e3c-66d1e3f28cc3: NoMethodError: undefined method `uploads_api' for #<Katello::Pulp3::Repository::File:0x0000000009151ec8>
18:53:05 rails.1 | | /home/vagrant/projects/katello/app/controllers/katello/api/v2/repositories_controller.rb:423:in `rescue in import_uploads'
18:53:05 rails.1 | | /home/vagrant/projects/katello/app/controllers/katello/api/v2/repositories_controller.rb:417:in `import_uploads'
[...]
```

Associated revisions

Revision 53f50325 (diff)
Added by James Jeffers 3 months ago

Fixes #29007 - fixes uploads api regression (#8566)

History

#1 Updated by James Jeffers 3 months ago

  • Subject changed from Pulpcore file uploads via hammer fail to [pulp3] file uploads via hammer fail

#2 Updated by James Jeffers 3 months ago

Looking into the dynflow console:
```
---
- "/home/vagrant/projects/katello/app/lib/actions/pulp3/orchestration/repository/import_upload.rb:28:in
`invoke_external_task'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/action/polling.rb:84:in
`initiate_external_action'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/action/polling.rb:19:in
`run'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/action/cancellable.rb:14:in
`run'"
- "/home/vagrant/projects/katello/app/lib/actions/pulp3/abstract_async_task.rb:45:in
`run'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/action.rb:563:in
`block (3 levels) in execute_run'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/middleware/stack.rb:27:in
`pass'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/middleware.rb:19:in
`pass'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/middleware.rb:32:in
`run'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/middleware/stack.rb:23:in
`call'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/middleware/stack.rb:27:in
`pass'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/middleware.rb:19:in
`pass'"
- "/home/vagrant/projects/katello/app/lib/actions/middleware/remote_action.rb:16:in
`block in run'"
- "/home/vagrant/projects/katello/app/lib/actions/middleware/remote_action.rb:40:in
`block in as_remote_user'"
- "/home/vagrant/projects/katello/app/models/katello/concerns/user_extensions.rb:21:in
`cp_config'"
- "/home/vagrant/projects/katello/app/lib/actions/middleware/remote_action.rb:27:in
`as_cp_user'"
- "/home/vagrant/projects/katello/app/lib/actions/middleware/remote_action.rb:39:in
`as_remote_user'"
- "/home/vagrant/projects/katello/app/lib/actions/middleware/remote_action.rb:16:in
`run'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/middleware/stack.rb:23:in
`call'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/middleware/stack.rb:27:in
`pass'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/middleware.rb:19:in
`pass'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/foreman-tasks-1.0.1/app/lib/actions/middleware/rails_executor_wrap.rb:14:in
`block in run'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/activesupport-5.2.1/lib/active_support/execution_wrapper.rb:87:in
`wrap'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/foreman-tasks-1.0.1/app/lib/actions/middleware/rails_executor_wrap.rb:13:in
`run'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/middleware/stack.rb:23:in
`call'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/middleware/stack.rb:27:in
`pass'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/middleware.rb:19:in
`pass'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/action/progress.rb:31:in
`with_progress_calculation'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/action/progress.rb:17:in
`run'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/middleware/stack.rb:23:in
`call'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/middleware/stack.rb:27:in
`pass'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/middleware.rb:19:in
`pass'"
- "/home/vagrant/projects/katello/app/lib/actions/middleware/keep_locale.rb:11:in
`block in run'"
- "/home/vagrant/projects/katello/app/lib/actions/middleware/keep_locale.rb:22:in
`with_locale'"
- "/home/vagrant/projects/katello/app/lib/actions/middleware/keep_locale.rb:11:in
`run'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/middleware/stack.rb:23:in
`call'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/middleware/stack.rb:27:in
`pass'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/middleware.rb:19:in
`pass'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/foreman-tasks-1.0.1/app/lib/actions/middleware/keep_current_request_id.rb:15:in
`block in run'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/foreman-tasks-1.0.1/app/lib/actions/middleware/keep_current_request_id.rb:49:in
`restore_current_request_id'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/foreman-tasks-1.0.1/app/lib/actions/middleware/keep_current_request_id.rb:15:in
`run'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/middleware/stack.rb:23:in
`call'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/middleware/stack.rb:27:in
`pass'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/middleware.rb:19:in
`pass'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/foreman-tasks-1.0.1/app/lib/actions/middleware/keep_current_timezone.rb:15:in
`block in run'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/foreman-tasks-1.0.1/app/lib/actions/middleware/keep_current_timezone.rb:44:in
`restore_curent_timezone'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/foreman-tasks-1.0.1/app/lib/actions/middleware/keep_current_timezone.rb:15:in
`run'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/middleware/stack.rb:23:in
`call'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/middleware/stack.rb:27:in
`pass'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/middleware.rb:19:in
`pass'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/foreman-tasks-1.0.1/app/lib/actions/middleware/keep_current_user.rb:15:in
`block in run'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/foreman-tasks-1.0.1/app/lib/actions/middleware/keep_current_user.rb:44:in
`restore_curent_user'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/foreman-tasks-1.0.1/app/lib/actions/middleware/keep_current_user.rb:15:in
`run'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/middleware/stack.rb:23:in
`call'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/middleware/stack.rb:27:in
`pass'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/middleware.rb:19:in
`pass'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/foreman-tasks-1.0.1/app/lib/actions/middleware/keep_current_taxonomies.rb:15:in
`block in run'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/foreman-tasks-1.0.1/app/lib/actions/middleware/keep_current_taxonomies.rb:45:in
`restore_current_taxonomies'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/foreman-tasks-1.0.1/app/lib/actions/middleware/keep_current_taxonomies.rb:15:in
`run'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/middleware/stack.rb:23:in
`call'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/middleware/stack.rb:27:in
`pass'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/middleware.rb:19:in
`pass'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/middleware.rb:32:in
`run'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/middleware/stack.rb:23:in
`call'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/middleware/world.rb:31:in
`execute'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/action.rb:562:in
`block (2 levels) in execute_run'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/action.rb:561:in
`catch'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/action.rb:561:in
`block in execute_run'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/action.rb:475:in
`block in with_error_handling'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/action.rb:475:in
`catch'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/action.rb:475:in
`with_error_handling'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/action.rb:556:in
`execute_run'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/action.rb:285:in
`execute'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:18:in
`block (2 levels) in execute'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/execution_plan/steps/abstract.rb:167:in
`with_meta_calculation'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:17:in
`block in execute'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:32:in
`open_action'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:16:in
`execute'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/director.rb:68:in
`execute'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/executors/parallel/worker.rb:15:in
`block in on_message'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/executors.rb:12:in
`run_user_code'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/executors/parallel/worker.rb:14:in
`on_message'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/concurrent-ruby-edge-0.4.1/lib-edge/concurrent/actor/context.rb:46:in
`on_envelope'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/concurrent-ruby-edge-0.4.1/lib-edge/concurrent/actor/behaviour/executes_context.rb:7:in
`on_envelope'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/concurrent-ruby-edge-0.4.1/lib-edge/concurrent/actor/behaviour/abstract.rb:25:in
`pass'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/actor.rb:106:in
`on_envelope'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/concurrent-ruby-edge-0.4.1/lib-edge/concurrent/actor/behaviour/abstract.rb:25:in
`pass'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/concurrent-ruby-edge-0.4.1/lib-edge/concurrent/actor/behaviour/awaits.rb:15:in
`on_envelope'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/concurrent-ruby-edge-0.4.1/lib-edge/concurrent/actor/behaviour/abstract.rb:25:in
`pass'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/concurrent-ruby-edge-0.4.1/lib-edge/concurrent/actor/behaviour/sets_results.rb:14:in
`on_envelope'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/actor.rb:47:in
`block in on_envelope'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/actor.rb:59:in
`with_backtrace'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/dynflow-1.4.2/lib/dynflow/actor.rb:47:in
`on_envelope'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/concurrent-ruby-edge-0.4.1/lib-edge/concurrent/actor/behaviour/abstract.rb:25:in
`pass'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/concurrent-ruby-edge-0.4.1/lib-edge/concurrent/actor/behaviour/buffer.rb:38:in
`process_envelope'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/concurrent-ruby-edge-0.4.1/lib-edge/concurrent/actor/behaviour/buffer.rb:31:in
`process_envelopes?'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/concurrent-ruby-edge-0.4.1/lib-edge/concurrent/actor/behaviour/buffer.rb:20:in
`on_envelope'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/concurrent-ruby-edge-0.4.1/lib-edge/concurrent/actor/behaviour/abstract.rb:25:in
`pass'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/concurrent-ruby-edge-0.4.1/lib-edge/concurrent/actor/behaviour/termination.rb:55:in
`on_envelope'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/concurrent-ruby-edge-0.4.1/lib-edge/concurrent/actor/behaviour/abstract.rb:25:in
`pass'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/concurrent-ruby-edge-0.4.1/lib-edge/concurrent/actor/behaviour/removes_child.rb:10:in
`on_envelope'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/concurrent-ruby-edge-0.4.1/lib-edge/concurrent/actor/behaviour/abstract.rb:25:in
`pass'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/concurrent-ruby-edge-0.4.1/lib-edge/concurrent/actor/behaviour/sets_results.rb:14:in
`on_envelope'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/concurrent-ruby-edge-0.4.1/lib-edge/concurrent/actor/core.rb:162:in
`process_envelope'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/concurrent-ruby-edge-0.4.1/lib-edge/concurrent/actor/core.rb:96:in
`block in on_envelope'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/concurrent-ruby-edge-0.4.1/lib-edge/concurrent/actor/core.rb:119:in
`block (2 levels) in schedule_execution'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/synchronization/mutex_lockable_object.rb:41:in
`block in synchronize'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/synchronization/mutex_lockable_object.rb:41:in
`synchronize'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/synchronization/mutex_lockable_object.rb:41:in
`synchronize'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/concurrent-ruby-edge-0.4.1/lib-edge/concurrent/actor/core.rb:116:in
`block in schedule_execution'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/executor/serialized_execution.rb:18:in
`call'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/executor/serialized_execution.rb:96:in
`work'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/executor/serialized_execution.rb:77:in
`block in call_job'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:348:in
`run_task'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:337:in
`block (3 levels) in create_worker'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:320:in
`loop'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:320:in
`block (2 levels) in create_worker'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:319:in
`catch'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:319:in
`block in create_worker'"
- "/home/vagrant/foreman/.vendor/ruby/2.5.0/gems/logging-2.2.2/lib/logging/diagnostic_context.rb:474:in
`block in create_with_logging_context'"
```

#3 Updated by James Jeffers 3 months ago

  • Description updated (diff)

#4 Updated by The Foreman Bot 3 months ago

  • Assignee set to James Jeffers
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/8566 added

#5 Updated by The Foreman Bot 3 months ago

  • Fixed in Releases Katello 3.16.0 added

#6 Updated by James Jeffers 3 months ago

  • Status changed from Ready For Testing to Closed

#7 Updated by Samir Jha 3 months ago

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

#8 Updated by Jonathon Turel 3 months ago

  • Category set to Repositories

Also available in: Atom PDF