Uploaded image for project: 'Test'
  1. Test
  2. TEST-246

Fix heatbridge command

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Guilin Release
    • Frankfurt Release
    • None

      Overview

      Currently when user run heatbridge robot command will be have the error:

      KEYWORD ${server_name_parameter} = ServiceMapping . Get Validate Name Mapping default, ${service}, ${vnf}
      Documentation: 	returns an array of strings that are the names to validate in heatbridge for the vnf. Used by the Heatbridge Validate Query to A&AI to locate the vserver name
      Start / End / Elapsed: 	20200615 11:27:59.661 / 20200615 11:27:59.663 / 00:00:00.002
      11:27:59.661 	TRACE 	Arguments: [ 'default' | 'vFW' | b'' ] 	
      11:27:59.663 	FAIL 	KeyError: '' 	
      11:27:59.663 	DEBUG 	Traceback (most recent call last):
        File "/var/opt/ONAP/robot/library/ONAPLibrary/ServiceMappingKeywords.py", line 67, in get_validate_name_mapping
          return self._service_mapping(alias, service)['GLOBAL_VALIDATE_NAME_MAPPING'][vnf]
      

      Technical details

      The 'Execute Heatbridge' robot tescase (in the heatbridge.robot file) defines 4 input arguments:

      • ${stack_name}
      • ${vnf}
      • ${service}
      • ${ipv4_oam_address}

      In the demo.robot file the 'Run Heatbridge' testcase also uses 4 variables as an input for the 'Execute Heatbridge' testcase:

      • ${HB_STACK}
      • ${HB_VNF}
      • ${HB_SERVICE}
      • ${HB_IPV4_OAM_ADDRESS}

      But the demo-k8s.sh file the HB_VNF variable isn't define, insted the script define HB_SERVICE_INSTANCE_ID var:

      • -v HB_STACK:$1
      • -v HB_SERVICE_INSTANCE_ID:$1
      • -v HB_SERVICE:$1
      • -v HB_IPV4_OAM_ADDRESS:$1

       This can cuse this issue.

            krystian krystian
            krystian krystian
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: