Uploaded image for project: 'Integration'
  1. Integration
  2. INT-1929

Xtesting - basic_vm_macro - "ubuntu20_flavor_name" from basic_vm_macro-service.yaml not applied

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Low Low
    • None
    • Istanbul Release
    • None
    • None

      Hi,

      we are facing problems with execution o basic_vm_macro test - in our environment we don't have flavor m1.small, so instead we define flavor in file basic_vm_macro-service.yaml:

      {"name": "ubuntu20_flavor_name",
       "value": "aa.002-0008"
      },
      

       

      Unfortunately it looks like this value is ignored and instead default m1.small is taken from onaptests/templates/heat-files/ubuntu20/ubuntu20agent.zip.

      This can be seen in log file:

      2021-06-08 11:44:03,809 DEBUG 120:onap_service.py(1) - [None][Check 34b04798-de58-46b5-8bbf-fb27e7ee1325 orchestration request status] response: {"request":{"requestId":"34b04798-de58-46b5-8bbf-fb27e7ee1325","startTime":"Tue, 08 Jun 2021 11:33:59 GMT","finishTime":"Tue, 08 Jun 2021 11:43:56 GMT","requestScope":"service","requestType":"createInstance","requestDetails":{"modelInfo":{"modelInvariantId":"37d05bd3-9a16-428d-9153-b8f2b0c21857","modelType":"service","modelName":"basic_vm_macro","modelVersion":"1.0","modelVersionId":"ece46af7-bc9b-4d44-981b-ec6a5cf42091","modelUuid":"ece46af7-bc9b-4d44-981b-ec6a5cf42091","modelInvariantUuid":"37d05bd3-9a16-428d-9153-b8f2b0c21857"},"requestInfo":{"productFamilyId":"1234","source":"VID","instanceName":"basic_macro_92bcea01-5ae9-4186-93e0-c8c2e4c884ad","suppressRollback":false,"requestorId":"demo"},"subscriberInfo":{"globalSubscriberId":"basicvm-customer"},"cloudConfiguration":{"tenantId":"af37c5c66ba942f5acbf0dd4cf5b30ae","tenantName":"onap-wro-VNF","cloudOwner":"basicvm-macro-cloud-owner","lcpCloudRegionId":"RegionOne"},"requestParameters":{"subscriptionServiceType":"basic_vm_macro","userParams":[{"Homing_Solution":"none"},{"service":{"instanceParams":[],"instanceName":"basic_macro_92bcea01-5ae9-4186-93e0-c8c2e4c884ad","resources":{"vnfs":[{"modelInfo":{"modelName":"basic_vm_macro","modelVersionId":"32177584-99d7-46b8-9859-ff325ddf5fa9","modelInvariantUuid":"ba7d041a-00db-4a05-aa3d-d07044679cb8","modelVersion":"1.0","modelCustomizationId":"927698be-f79b-4d70-94b1-db3b9da41eb8","modelInstanceName":"basic_vm_macro"},"cloudConfiguration":{"tenantId":"af37c5c66ba942f5acbf0dd4cf5b30ae","cloudOwner":"basicvm-macro-cloud-owner","lcpCloudRegionId":"RegionOne"},"platform":{"platformName":"basicvm-platform"},"lineOfBusiness":{"lineOfBusinessName":"basicvm-lob"},"productFamilyId":"1234","instanceName":"basic_vm_macro","instanceParams":[{}],"vfModules":[{"modelInfo":{"modelName":"BasicVmMacro..base_ubuntu20..module-0","modelVersionId":"ffabf39d-3c3d-4214-8b67-4133f33c443a","modelInvariantUuid":"ba9c10a1-b549-4b9f-9362-ebca48bc8af5","modelVersion":"1","modelCustomizationId":"0276b60c-3a60-41d8-8d1d-0e0e3478351c"},"instanceName":"basic_macro_92bcea01-5ae9-4186-93e0-c8c2e4c884ad_basic_vm_macro0..BasicVmMacro..base_ubuntu20..module-0","instanceParams":[{"ubuntu20_image_name":"ubuntu-2004","ubuntu20_key_name":"onap-wro-dhn-56-vnf","ubuntu20_pub_key":"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQD4Rv5RhbB0vUImMXukn+ucyYbkkbPxjV95oEBHoRwPTZhok2u5Rf+ersemAPeP+6F6UJiVqBexPNAAXI1llK8o85zUkWhCzkKEGqqVzL6agsh3Rzpdtis77blhW6Y+2T7HT6ODt+kSLj4attgJbyJezAW/t4sf7g97aUFc3nh5d1KfUraQiflyKWGQqiBQIB3JCXBsRuJAcnn/w6ot0hW9sL8gtSiUUOH+Anm+0uKqv3Eho2P/DURR3CzH/kCtpS3E20R8/yp/aI2JtC+6JUcNz5BowCKY0OT2rg9Iksnxov0SAT2puebFDWnKe2VBWoj+2orWljL3PCLxhL9pvxiz Generated-by-Nova","ubuntu20_flavor_name":"aa.002-0008","VM_name":"ubuntu20agent-VM-01","vnf_id":"ubuntu20agent-VNF-instance","vf_module_id":"ubuntu20agent-vfmodule-instance","vnf_name":"ubuntu20agent-VNF","admin_plane_net_name":"onap-net","ubuntu20_name_0":"ubuntu20agent-VNF"}]}]}]},"modelInfo":{"modelVersion":"1.0","modelVersionId":"ece46af7-bc9b-4d44-981b-ec6a5cf42091","modelInvariantId":"37d05bd3-9a16-428d-9153-b8f2b0c21857","modelName":"basic_vm_macro","modelType":"service"}}}],"aLaCarte":false},"project":{"projectName":"basicvm-project"},"owningEntity":{"owningEntityId":"1addbdc4-b464-4c6c-b901-d1c82071ee06","owningEntityName":"basicvm-oe"}},"instanceReferences":{"serviceInstanceId":"479079da-5c54-49d1-8546-630aa0ce2f7e","serviceInstanceName":"basic_macro_92bcea01-5ae9-4186-93e0-c8c2e4c884ad","vnfInstanceId":"9513a9c3-70f0-40b2-a50c-1228bbeacb9d"},"requestStatus":{"requestState":"FAILED","statusMessage":"STATUS: Error Source: OPENSTACK, Error Message: Exception occured during vnf adapter: Exception during create VF 400 Bad Request: The server could not comply with the request since it is either malformed or otherwise incorrect., error.type=StackValidationFailed, error.message=Property error: : resources.Ubuntu20_server_0.properties.flavor: : Error validating value 'm1.small': No Flavor matching {'name': u'm1.small'}. (HTTP 404). FLOW STATUS: All Rollback flows have completed successfully RETRY STATUS: Retries have been exhausted. ROLLBACK STATUS: Rollback has been completed successfully. RESOURCE STATUS: The vf module was not found, thus no vf module was deleted in the cloud via this request","percentProgress":100,"timestamp":"Tue, 08 Jun 2021 11:43:56 GMT"}}}
      2021-06-08 11:44:03,809 ERROR 202:service_macro.py(1) - Service instantiation basic_macro_92bcea01-5ae9-4186-93e0-c8c2e4c884ad failed
      

       

      As a workaround I added parameter Ubuntu20_flavor_name (so there are both of them):

      {"name": "ubuntu20_flavor_name",
       "value": "aa.002-0008"
      },
      {"name": "Ubuntu20_flavor_name",
       "value": "aa.002-0008"
      },
      

      and it seems to solve the issue.

      Changing ubuntu20_flavor_name to Ubuntu20_flavor_name causes another failure (Error validating value '${ubuntu20_flavor_name}': No Flavor matching {'name': u'${ubuntu20_flavor_name}'}. (HTTP 404).).

            michaljagiellotmpl michaljagiellotmpl
            kosewski kosewski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: