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

VFC failed to send homing request to OOF

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Highest Highest
    • Dublin Release
    • Dublin Release
    • OSDF

      When VFC tried to send a homing request to OOF, it has got a error response like this:
      httplib2.SSLHandshakeError: [SSL: WRONG_VERSION_NUMBER] wrong version number

      The request looks like this:

      import httplib2
      if _name_ == "_main_":
      h = httplib2.Http(None, disable_ssl_certificate_validation=True)
      headers =

      {'content-type': 'application/json', 'accept': 'application/json', 'Authorization': 'Basic dmZjX3Rlc3Q6dmZjX3Rlc3Rwd'}

      resp, content = h.request('https://oof-osdf.onap:8698/api/oof/v1/placement',method="POST", headers=headers, body='{"requestInfo":

      {"numSolutions": 1, "requestType": "create", "requestId": "0cbc1709-5233-4ffd-bfb2-46803489638f", "timeout": 600, "sourceId": "vfc", "transactionId": "0cbc1709-5233-4ffd-bfb2-46803489638f", "optimizers": ["placement"], "callbackUrl": "http://10.42.9.29:8403/api/nslcm/v1/ns/placevnf"}

      , "placementInfo": {"subscriberInfo":

      {"subscriberName": "", "subscriberCommonSiteId": "", "globalSubscriberId": ""}

      , "requestParameters":

      {"customerLatitude": "32.897480", "customerName": "some_company", "customerLongitude": "97.040443"}

      , "placementDemands": [{"requiredCandidates": [

      {"cloudOwner": "CloudOwner", "identifiers": ["ONAP-POD-01-Rail-07"], "identifierType": "vimId"}

      ], "resourceModelInfo":

      {"modelVersionId": "no-resourceModelVersionId", "modelInvariantId": "no-resourceModelInvariantId"}

      , "serviceResourceId": "12522c1e-50a6-471c-8294-ff11dac792eb", "resourceModuleName": "vgw"}]}, "serviceInfo": {"serviceName": "vcpe1", "modelInfo":

      {"modelVersionId": "ffdddc5d-a44b-45ae-8fc3-e6551cce350f", "odelInvariantId": "c3887fb3-d1b2-477f-86c4-fd641ee9a7cf"}

      , "serviceInstanceId": "d0ecc83f-339f-4621-b565-07eb9090a379"}}')

            ruoyu ruoyu
            ruoyu ruoyu
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: