Uploaded image for project: 'Optimization Framework'
  1. Optimization Framework
  2. OPTFRA-598

504 time out error encountered in homing request

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Low Low
    • Frankfurt Release
    • El Alto Release
    • None
    • Windriver open lab

       

      OOF tenant

      oom-nfs: 10.12.5.173 

      oom-k8s-01: 10.12.5.110

      When a request is sent to create a service instance that uses homing, the following error is encountered;

      OOF error logs

      2019-10-03T20:45:49,050+00:00||Thread-26|OOF_OSDF||||ERROR|||Error for 620bd056-9be3-4805-ba33-f53d89782d0d Traceback (most recent call last): File "/opt/osdf/osdf/optimizers/placementopt/conductor/remote_opt_processor.py", line 52, in process_placement_opt placement_response = conductor.request(request_json, osdf_config, policies) File "/opt/osdf/osdf/optimizers/placementopt/conductor/conductor.py", line 68, in request resp, raw_resp = initial_request_to_conductor(rc, conductor_url, conductor_req_json) File "/opt/osdf/osdf/optimizers/placementopt/conductor/conductor.py", line 111, in initial_request_to_conductor raw_resp = rc.request(url=conductor_url, raw_response=True, method="POST", json=conductor_req_json) File "/opt/osdf/osdf/utils/interfaces.py", line 95, in request raise res.raise_for_status() File "/usr/local/lib/python3.5/dist-packages/requests/models.py", line 940, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 504 Server Error: Gateway Time-out for url: https://oof-has-api:8091/v1/plans/
      

      OOF debug logs

      2019-10-03T20:44:49,016+00:00||Thread-26||OOF_OSDF|bbdeca5e-e01b-11e9-b36f-5a6533fd1f3e|DEBUG||10.42.6.14|dev-oof-oof-567c44fd4c-kgvpz||||Payload to Conductor: {"files": {}, "timeout": 600, "name": "620bd056-9be3-4805-ba33-f53d89782d0d", "template": {"parameters": {"service_name": "vFW", "REQUIRED_DISK": "", "customer_long": "97.040443", "service_id": "b3e6a047-7d2d-4a13-a267-dabecfeac177", "REQUIRED_MEM": "", "customer_lat": "32.897480"}, "optimization": {"minimize": {"sum": [{"product": ["100", {"distance_between": ["customer_loc", "HpaVf0"]}]}, {"product": ["200", {"hpa_score": ["HpaVf0"]}]}]}}, "locations": {"customer_loc": {"latitude": {"get_param": "customer_lat"}, "longitude": {"get_param": "customer_long"}}}, "constraints": {"distance-vFW": {"demands": ["HpaVf0"], "type": "distance_to_location", "properties": {"distance": "< 100 km", "location": "customer_loc"}}, "hpa-vFW": {"demands": ["HpaVf0"], "type": "hpa", "properties": {"evaluate": [{"directives": [{"type": "flavor_directives", "attributes": [{"attribute_value": "", "attribute_name": "firewall_flavor_name"}]}], "flavorProperties": [{"mandatory": "True", "hpa-version": "v1", "hpa-feature-attributes": [{"hpa-attribute-key": "numVirtualCpu", "unit": "", "operator": "=", "hpa-attribute-value": "2"}, {"hpa-attribute-key": "virtualMemSize", "unit": "MB", "operator": "=", "hpa-attribute-value": "512"}], "directives": [], "hpa-feature": "basicCapabilities", "architecture": "generic"}, {"mandatory": "True", "hpa-version": "v1", "hpa-feature-attributes": [{"hpa-attribute-key": "memoryPageSize", "unit": "MB", "operator": "=", "hpa-attribute-value": "2"}], "directives": [], "hpa-feature": "hugePages", "architecture": "generic"}, {"mandatory": "True", "hpa-version": "v1", "hpa-feature-attributes": [{"hpa-attribute-key": "diskSize", "unit": "GB", "operator": ">=", "hpa-attribute-value": "10"}], "directives": [], "hpa-feature": "localStorage", "architecture": "generic"}, {"mandatory": "False", "hpa-version": "v1", "hpa-feature-attributes": [{"hpa-attribute-key": "logicalCpuThreadPinningPolicy", "unit": "", "operator": "=", "hpa-attribute-value": "isolate"}, {"hpa-attribute-key": "logicalCpuPinningPolicy", "unit": "", "operator": "=", "hpa-attribute-value": "dedicated"}], "directives": [], "score": "100", "hpa-feature": "cpuPinning", "architecture": "generic"}], "type": "vnfc", "id": "vfw"}, {"directives": [{"type": "flavor_directives", "attributes": [{"attribute_value": "", "attribute_name": "packetgen_flavor_name"}]}], "flavorProperties": [{"mandatory": "True", "hpa-version": "v1", "hpa-feature-attributes": [{"hpa-attribute-key": "numVirtualCpu", "operator": ">=", "hpa-attribute-value": "1"}, {"hpa-attribute-key": "virtualMemSize", "unit": "GB", "operator": ">=", "hpa-attribute-value": "7"}], "directives": [], "hpa-feature": "basicCapabilities", "architecture": "generic"}, {"mandatory": "True", "hpa-version": "v1", "hpa-feature-attributes": [{"hpa-attribute-key": "diskSize", "unit": "GB", "operator": ">=", "hpa-attribute-value": "10"}], "directives": [], "hpa-feature": "localStorage", "architecture": "generic"}], "type": "vnfc", "id": "vgenerator"}, {"directives": [{"type": "flavor_directives", "attributes": [{"attribute_value": "", "attribute_name": "sink_flavor_name"}]}], "flavorProperties": [{"mandatory": "True", "hpa-version": "v1", "hpa-feature-attributes": [], "directives": [], "hpa-feature": "basicCapabilities", "architecture": "generic"}], "type": "vnfc", "id": "vsink"}]}}}, "homing_template_version": "2017-10-10", "demands": {"HpaVf0": [{"service_type": "0c5849fd-30be-41cd-a4c2-3366d5adc5e6", "inventory_type": "cloud", "attributes": {"model-invariant-id": "ddc48ee5-28ed-4fc4-98d6-bc0cdcc57a89", "model-version-id": "76756a3e-ab7d-49df-9002-3d8008233a2b"}, "inventory_provider": "aai", "service_resource_id": "0c5849fd-30be-41cd-a4c2-3366d5adc5e6"}]}}, "num_solution": "1"} 2019-10-03T20:44:49,016+00:00||Thread-26||OOF_OSDF|bbdeca5e-e01b-11e9-b36f-5a6533fd1f3e|DEBUG||10.42.6.14|dev-oof-oof-567c44fd4c-kgvpz||||Requesting URL: https://oof-has-api:8091/v1/plans/ 2019-10-03T20:45:49,050+00:00||Thread-26||OOF_OSDF|bbdeca5e-e01b-11e9-b36f-5a6533fd1f3e|DEBUG||10.42.6.14|dev-oof-oof-567c44fd4c-kgvpz||||Received response [code: 504, headers: {'Connection': 'keep-alive', 'Content-Type': 'text/html', 'Server': 'nginx/1.14.2', 'Date': 'Thu, 03 Oct 2019 20:45:49 GMT', 'Content-Length': '183'}, data: {'url': 'https://oof-has-api:8091/v1/plans/', 'cookies': <RequestsCookieJar[]>, 'connection': <requests.adapters.HTTPAdapter object at 0x7f9cb80ef438>, 'elapsed': datetime.timedelta(0, 60, 17133), 'history': [], '_next': None, 'encoding': 'ISO-8859-1', 'request': <PreparedRequest [POST]>, '_content_consumed': True, '_content': b'<html>\r\n<head><title>504 Gateway Time-out</title></head>\r\n<body bgcolor="white">\r\n<center><h1>504 Gateway Time-out</h1></center>\r\n<hr><center>nginx/1.14.2</center>\r\n</body>\r\n</html>\r\n', 'status_code': 504, 'reason': 'Gateway Time-out', 'raw': <urllib3.response.HTTPResponse object at 0x7f9cb80a09e8>, 'headers': {'Connection': 'keep-alive', 'Content-Type': 'text/html', 'Server': 'nginx/1.14.2', 'Date': 'Thu, 03 Oct 2019 20:45:49 GMT', 'Content-Length': '183'}}] 2019-10-03T20:45:49,051+00:00||Thread-26||OOF_OSDF|bbdeca5e-e01b-11e9-b36f-5a6533fd1f3e|DEBUG||10.42.6.14|dev-oof-oof-567c44fd4c-kgvpz||||Requesting URL: http://so-bpmn-infra.onap:8081/mso/WorkflowMessage/oofResponse/620bd056-9be3-4805-ba33-f53d89782d0d
      

      SO BPMN logs

      Payload: "{\"externalApplicationDetails\": {\"httpMethod\": \"POST\", \"httpStatusCode\": 504, \"responseMessage\": \"<html>\\r\\n<head><title>504 Gateway Time-out</title></head>\\r\\n<body bgcolor=\\\"white\\\">\\r\\n<center><h1>504 Gateway Time-out</h1></center>\\r\\n<hr><center>nginx/1.14.2</center>\\r\\n</body>\\r\\n</html>\\r\\n\", \"url\": \"https://oof-has-api:8091/v1/plans/\"}, \"serviceException\": {\"errorType\": \"InterfaceError\", \"text\": \"A solutio
      n couldn't be determined because an external application returned a HTTP error\"}}"
      --------------------------------------
      2019-10-03T20:45:47.122Z|7628e872-a72d-4ae5-8ac5-e6e2c7d8bc2b|o.o.s.b.c.workflow.service.WorkflowMessageResource - [WORKFLOW-MESSAGE] Received workflow message type='oofResponse' correlator='620bd056-9be3-4805-ba33-f53d89782d0d' conte
      ntType='application/json' message=
      "{\"externalApplicationDetails\": {\"httpMethod\": \"POST\", \"httpStatusCode\": 504, \"responseMessage\": \"<html>\\r\\n<head><title>504 Gateway Time-out</title></head>\\r\\n<body bgcolor=\\\"white\\\">\\r\\n<center><h1>504 Gateway T
      ime-out</h1></center>\\r\\n<hr><center>nginx/1.14.2</center>\\r\\n</body>\\r\\n</html>\\r\\n\", \"url\": \"https://oof-has-api:8091/v1/plans/\"}, \"serviceException\": {\"errorType\": \"InterfaceError\", \"text\": \"A solution couldn'
      t be determined because an external application returned a HTTP error\"}}"
      2019-10-03T20:45:47.122Z|7628e872-a72d-4ae5-8ac5-e6e2c7d8bc2b|o.o.s.b.c.workflow.service.CallbackHandlerService - [WORKFLOW-MESSAGE] receiveWorkflowMessage received message:
      "{\"externalApplicationDetails\": {\"httpMethod\": \"POST\", \"httpStatusCode\": 504, \"responseMessage\": \"<html>\\r\\n<head><title>504 Gateway Time-out</title></head>\\r\\n<body bgcolor=\\\"white\\\">\\r\\n<center><h1>504 Gateway Time-out</h1></center>\\r\\n<hr><center>nginx/1.14.2</center>\\r\\n</body>\\r\\n</html>\\r\\n\", \"url\": \"https://oof-has-api:8091/v1/plans/\"}, \"serviceException\": {\"errorType\": \"InterfaceError\", \"text\": \"A solution couldn'
      t be determined because an external application returned a HTTP error\"}}"
      
      

            snarayanan snarayanan
            itohan itohan
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: