Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-6906

3scale toolbox v0.18.0 fails on import openapi second execution

XMLWordPrintable

    • False
    • False
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • No
    • Undefined

      An issue reported in https://github.com/3scale/3scale_toolbox/issues/291 tells that when importing the same OpenAPI spec file twice in 3scale Toolbox v0.18.0 using the Jenkins pipeline library (https://github.com/rh-integration/3scale-toolbox-jenkins.git) it fails with the following error:

      [logs:pod/user1-todo-app-pipeline-2-import-openapi-7bft4] /usr/local/bundle/gems/3scale_toolbox-0.18.0/lib/3scale_toolbox/cli/error_handler.rb:39:in 'initialize': Permission denied @ rb_sysopen - crash.log (Errno::EACCES) [logs:pod/user1-todo-app-pipeline-2-import-openapi-7bft4] from /usr/local/bundle/gems/3scale_toolbox-0.18.0/lib/3scale_toolbox/cli/error_handler.rb:39:in 'open' [logs:pod/user1-todo-app-pipeline-2-import-openapi-7bft4] from /usr/local/bundle/gems/3scale_toolbox-0.18.0/lib/3scale_toolbox/cli/error_handler.rb:39:in 'print_unexpected_error' [logs:pod/user1-todo-app-pipeline-2-import-openapi-7bft4] from /usr/local/bundle/gems/3scale_toolbox-0.18.0/lib/3scale_toolbox/cli/error_handler.rb:25:in 'handle_error' [logs:pod/user1-todo-app-pipeline-2-import-openapi-7bft4] from /usr/local/bundle/gems/3scale_toolbox-0.18.0/lib/3scale_toolbox/cli/error_handler.rb:13:in 'rescue in error_watchdog' [logs:pod/user1-todo-app-pipeline-2-import-openapi-7bft4] from /usr/local/bundle/gems/3scale_toolbox-0.18.0/lib/3scale_toolbox/cli/error_handler.rb:9:in 'error_watchdog' [logs:pod/user1-todo-app-pipeline-2-import-openapi-7bft4] from /usr/local/bundle/gems/3scale_toolbox-0.18.0/lib/3scale_toolbox/cli/error_handler.rb:5:in 'error_watchdog' [logs:pod/user1-todo-app-pipeline-2-import-openapi-7bft4] from /usr/local/bundle/gems/3scale_toolbox-0.18.0/lib/3scale_toolbox/cli.rb:44:in 'run' [logs:pod/user1-todo-app-pipeline-2-import-openapi-7bft4] from /usr/local/bundle/gems/3scale_toolbox-0.18.0/exe/3scale:15:in '<top (required)>' [logs:pod/user1-todo-app-pipeline-2-import-openapi-7bft4] from /usr/local/bundle/bin/3scale:23:in 'load' [logs:pod/user1-todo-app-pipeline-2-import-openapi-7bft4] from /usr/local/bundle/bin/3scale:23:in '<main>' [logs:pod/user1-todo-app-pipeline-2-import-openapi-7bft4] /usr/local/bundle/gems/3scale_toolbox-0.18.0/lib/3scale_toolbox/commands/import_command/openapi/create_method_step.rb:26:in block in methods_index': undefined method []' for #<ThreeScaleToolbox::Entities::Method:0x0000560a28ed7578> (NoMethodError) [logs:pod/user1-todo-app-pipeline-2-import-openapi-7bft4] from /usr/local/bundle/gems/3scale_toolbox-0.18.0/lib/3scale_toolbox/commands/import_command/openapi/create_method_step.rb:25:in 'each' [logs:pod/user1-todo-app-pipeline-2-import-openapi-7bft4] from /usr/local/bundle/gems/3scale_toolbox-0.18.0/lib/3scale_toolbox/commands/import_command/openapi/create_method_step.rb:25:in 'each_with_object' [logs:pod/user1-todo-app-pipeline-2-import-openapi-7bft4] from /usr/local/bundle/gems/3scale_toolbox-0.18.0/lib/3scale_toolbox/commands/import_command/openapi/create_method_step.rb:25:in 'methods_index' [logs:pod/user1-todo-app-pipeline-2-import-openapi-7bft4] from /usr/local/bundle/gems/3scale_toolbox-0.18.0/lib/3scale_toolbox/commands/import_command/openapi/create_method_step.rb:31:in 'block in missing_operations' [logs:pod/user1-todo-app-pipeline-2-import-openapi-7bft4] from /usr/local/bundle/gems/3scale_toolbox-0.18.0/lib/3scale_toolbox/commands/import_command/openapi/create_method_step.rb:31:in 'reject' [logs:pod/user1-todo-app-pipeline-2-import-openapi-7bft4] from /usr/local/bundle/gems/3scale_toolbox-0.18.0/lib/3scale_toolbox/commands/import_command/openapi/create_method_step.rb:31:in 'missing_operations' [logs:pod/user1-todo-app-pipeline-2-import-openapi-7bft4] from /usr/local/bundle/gems/3scale_toolbox-0.18.0/lib/3scale_toolbox/commands/import_command/openapi/create_method_step.rb:9:in 'call' [logs:pod/user1-todo-app-pipeline-2-import-openapi-7bft4] from /usr/local/bundle/gems/3scale_toolbox-0.18.0/lib/3scale_toolbox/commands/import_command/openapi.rb:63:in 'each' [logs:pod/user1-todo-app-pipeline-2-import-openapi-7bft4] from /usr/local/bundle/gems/3scale_toolbox-0.18.0/lib/3scale_toolbox/commands/import_command/openapi.rb:63:in 'run' [logs:pod/user1-todo-app-pipeline-2-import-openapi-7bft4] from /usr/local/bundle/gems/cri-2.15.11/lib/cri/command_runner.rb:34:in 'call' [logs:pod/user1-todo-app-pipeline-2-import-openapi-7bft4] from /usr/local/bundle/gems/cri-2.15.11/lib/cri/command_dsl.rb:294:in 'block in runner' [logs:pod/user1-todo-app-pipeline-2-import-openapi-7bft4] from /usr/local/bundle/gems/cri-2.15.11/lib/cri/command.rb:362:in 'run_this' [logs:pod/user1-todo-app-pipeline-2-import-openapi-7bft4] from /usr/local/bundle/gems/cri-2.15.11/lib/cri/command.rb:298:in 'run' [logs:pod/user1-todo-app-pipeline-2-import-openapi-7bft4] from /usr/local/bundle/gems/cri-2.15.11/lib/cri/command.rb:316:in 'run' [logs:pod/user1-todo-app-pipeline-2-import-openapi-7bft4] from /usr/local/bundle/gems/cri-2.15.11/lib/cri/command.rb:316:in 'run' [logs:pod/user1-todo-app-pipeline-2-import-openapi-7bft4] from /usr/local/bundle/gems/3scale_toolbox-0.18.0/lib/3scale_toolbox/cli.rb:47:in 'block in run' [logs:pod/user1-todo-app-pipeline-2-import-openapi-7bft4] from /usr/local/bundle/gems/3scale_toolbox-0.18.0/lib/3scale_toolbox/cli/error_handler.rb:5:in 'block in error_watchdog' [logs:pod/user1-todo-app-pipeline-2-import-openapi-7bft4] from /usr/local/bundle/gems/3scale_toolbox-0.18.0/lib/3scale_toolbox/cli/error_handler.rb:11:in 'error_watchdog' [logs:pod/user1-todo-app-pipeline-2-import-openapi-7bft4] from /usr/local/bundle/gems/3scale_toolbox-0.18.0/lib/3scale_toolbox/cli/error_handler.rb:5:in 'error_watchdog' [logs:pod/user1-todo-app-pipeline-2-import-openapi-7bft4] from /usr/local/bundle/gems/3scale_toolbox-0.18.0/lib/3scale_toolbox/cli.rb:44:in 'run' [logs:pod/user1-todo-app-pipeline-2-import-openapi-7bft4] from /usr/local/bundle/gems/3scale_toolbox-0.18.0/exe/3scale:15:in '<top (required)>' [logs:pod/user1-todo-app-pipeline-2-import-openapi-7bft4] from /usr/local/bundle/bin/3scale:23:in 'load' [logs:pod/user1-todo-app-pipeline-2-import-openapi-7bft4] from /usr/local/bundle/bin/3scale:23:in '<main>' [logs:pod/user1-todo-app-pipeline-2-import-openapi-7bft4] Updated service id: 12, name: Todo List (v1.0.0) [logs:pod/user1-todo-app-pipeline-2-import-openapi-7bft4] Service proxy updated
      

      The user also reports that with v0.17.1 it works fine.

      This issue is about investigating this reported issue and fixing it in case it is confirmed.

              Unassigned Unassigned
              msorianod Miguel Soriano
              Martin Kudlej Martin Kudlej
              Miguel Soriano Miguel Soriano
              Miguel Soriano Miguel Soriano
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: