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

Using non-existing port for staging gateway endpoint in integration config will cause Internal Error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 2.1 ER2
    • 2.1 ER1
    • System
    • Hide

      1. Go to Api > Integration
      2. Edit current configuration
      3. Change port for the endpoint: (443 -> 4431)
      4. Update and test in Staging Environment
      5. Will end up with an error.

      Show
      1. Go to Api > Integration 2. Edit current configuration 3. Change port for the endpoint: (443 -> 4431) 4. Update and test in Staging Environment 5. Will end up with an error.

    Description

      Change of the port of the staging endpoint will cause Internal Error, when the port isn't open.

      Here is a log:

      [7bba4430-c208-43c3-8bbb-020b9a215ebb] [3scale-admin.3scale1.cloudapps.api-qe.eng.rdu2.redhat.com] [10.129.0.1] Completed 500 Internal Server Error in 102ms (ActiveRecord: 62.9ms)
      [7bba4430-c208-43c3-8bbb-020b9a215ebb] [3scale-admin.3scale1.cloudapps.api-qe.eng.rdu2.redhat.com] [10.129.0.1] ** [Bugsnag] No API key configured, couldn't notify
      [7bba4430-c208-43c3-8bbb-020b9a215ebb] [3scale-admin.3scale1.cloudapps.api-qe.eng.rdu2.redhat.com] [10.129.0.1] 
      Errno::EHOSTUNREACH (No route to host - No route to host - connect(2) for "api-3scale-apicast-staging.3scale1.cloudapps.api-qe.eng.rdu2.redhat.com" port 4431 (api-3scale-apicast-staging.3scale1.cloudapps.api-qe.eng.rdu2.redhat.com:4431)):
        app/services/proxy_test_service.rb:81:in `test_request'
        app/services/proxy_test_service.rb:63:in `perform'
        app/models/proxy.rb:295:in `send_api_test_request!'
        app/controllers/api/integrations_controller.rb:29:in `update'
        lib/three_scale/middleware/multitenant.rb:116:in `_call'
        lib/three_scale/middleware/multitenant.rb:111:in `call'
        lib/action_dispatch/rails5_ssl.rb:86:in `call'
      10.40.2.223 - - [07/Aug/2017:12:47:09 +0000] "PATCH /500 HTTP/1.1" 500 - 0.1092
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            pstanko@redhat.com Peter Stanko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: