Uploaded image for project: 'Use Case Analysis'
  1. Use Case Analysis
  2. UCA-17

Demo vFW env parameters are not overriding defaults during preload

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Low Low
    • None
    • None
    • None

      20170724: lowering priority as the existing behavior makes more sense (preload overrides env settings) - for multiple vFW instances.


      When preloading another vFW VF - noticed in the output that the defaults are always being used regardless of overrides in the env file

      It turns out that the sample parameters look like they are being applied without override in all cases (When the vFW env settings are ignored – we get an expected set of conflicts)

         If you check the existing demo (the demofwl01fwl VM for example) you will see that the defaults in the base_vfw like vsn_private_ip_1=10.1.0.3 are running with the sample values from sample_preload_parameters.py = 10.1.0.13

      In the yaml section for one of the ports - the vfw_private_ip_2 variable

        vfw_private_2_port:
          type: OS::Neutron::Port
          properties:
            network: { get_param: ecomp_private_net_id }
            fixed_ips: [{"subnet": { get_param: ecomp_private_subnet_id }, "ip_address": { get_param: vfw_private_ip_2 }}]

      is redefined in the env as

        ecomp_private_subnet_id: ec0fbfdf-6217-4c6f-8d6b-e199d74504e4
        vfw_private_ip_2: 10.1.0.21

      but the sample defaults still come through

      oam_ecomp_OZmD 10.1.0.11

       

       use

      root@vm1-robot:/opt/testsuite/properties# docker  exec -it openecompete_container bash

      root@4244dac87d10:/# cat /share/logs/demo/PreloadDemo/output.xml

        

       inputs

      base_vfw.env

      parameters:
        vfw_image_name: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
        vfw_flavor_name: 4 GB General Purpose v1
        public_net_id: 00000000-0000-0000-0000-000000000000
        unprotected_private_net_id: zdfw2fwl01_unprotected
        protected_private_net_id: zdfw2fwl01_protected
        ecomp_private_net_id: e69b2c8e-bb65-427f-ba7b-695fb62bba39
        ecomp_private_subnet_id: ec0fbfdf-6217-4c6f-8d6b-e199d74504e4
        unprotected_private_net_cidr: 192.168.210.0/24
        protected_private_net_cidr: 192.168.220.0/24
        ecomp_private_net_cidr: 10.0.0.0/8
        vfw_private_ip_0: 192.168.210.100
        vfw_private_ip_1: 192.168.220.100
        vfw_private_ip_2: 10.1.0.21
        vpg_private_ip_0: 192.168.210.200
        vpg_private_ip_1: 10.1.0.22
        vsn_private_ip_0: 192.168.220.250
        vsn_private_ip_1: 10.1.0.23
        vfw_name_0: zdfw2fwl01fwl01
        vpg_name_0: zdfw2fwl01pgn01
        vsn_name_0: zdfw2fwl01snk01
        vnf_id: vFirewall_demo_app
        vf_module_id: vFirewall
        webserver_ip: 162.242.254.138
        dcae_collector_ip: 10.0.4.102
        dcae_collector_port: 8080
        repo_url: https://ecomp-nexus:8443/repository/raw/org.openecomp.simpledemo
        repo_user: ecomp_os
        repo_passwd: peg64suk
        key_name: vfw_key
        pub_key: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDQXYJYYi3/OUZXUiCYWdtc7K0m5C0dJKVxPG0eI8EWZrEHYdfYe6WoTSDJCww+1qlBSpA5ac/Ba4Wn9vh+lR1vtUKkyIC/nrYb90ReUd385Glkgzrfh5HdR5y5S2cL/Frh86lAn9r6b3iWTJD8wBwXFyoe1S2nMTOIuG4RPNvfmyCTYVh8XTCCE8HPvh3xv2r4egawG1P4Q4UDwk+hDBXThY2KS8M5/8EMyxHV0ImpLbpYCTBA6KYDIRtqmgS6iKyy8v2D1aSY5mc9J0T5t9S2Gv+VZQNWQDDKNFnxqYaAo1uEoq/i1q63XC5AD3ckXb2VT6dp23BQMdDfbHyUWfJN marcoplatania@mt-asa1-1-vpn239.research.att.com

       

       

       

      <msg timestamp="20170524 03:33:56.479" level="TRACE">Arguments: [ 'sdngc' | '/restconf/operations/VNF-API:preload-vnf-topology-operation' | data={'input': {'request-information': {'notification-url': 'openecomp.org', 'order-number': '1', 'order-version': '1', 'request-action': 'PreloadVNFRequest', 'request-id': 'robot12'},
                 'sdnc-request-header': {'svc-action': 'reserve', 'svc-notification-url': 'http://openecomp.org:8080/adapters/rest/SDNCNotify', 'svc-request-id': 'robot12'},
                 'vnf-topology-information': {'vnf-assignments': {'availability-zones': [], 'vnf-networks': [], 'vnf-vms': []},
                                              'vnf-parameters': [{'vnf-parameter-name': 'repo_url_blob', 'vnf-parameter-value': 'https://nexus.onap.org/content/repositories/raw'},
                                                                 {'vnf-parameter-name': 'repo_url_artifacts', 'vnf-parameter-value': 'https://nexus.onap.org/content/groups/staging'},
                                                                 {'vnf-parameter-name': 'demo_artifacts_version', 'vnf-parameter-value': '1.0.0'},
                                                                 {'vnf-parameter-name': 'ecomp_private_net_id', 'vnf-parameter-value': 'oam_ecomp_Rt5j'},
                                                                 {'vnf-parameter-name': 'ecomp_private_subnet_id', 'vnf-parameter-value': 'oam_ecomp_Rt5j'},
                                                                 {'vnf-parameter-name': 'ecomp_private_net_cidr', 'vnf-parameter-value': '10.0.0.0/8'},
                                                                 {'vnf-parameter-name': 'unprotected_private_net_id', 'vnf-parameter-value': 'demofwl_unprotected'},
                                                                 {'vnf-parameter-name': 'protected_private_net_id', 'vnf-parameter-value': 'demofwl_protected'},
                                                                 {'vnf-parameter-name': 'protected_private_net_cidr', 'vnf-parameter-value': '192.168.120.0/24'},
                                                                 {'vnf-parameter-name': 'unprotected_private_net_cidr', 'vnf-parameter-value': '192.168.110.0/24'},
                                                                 {'vnf-parameter-name': 'vfw_private_ip_0', 'vnf-parameter-value': '192.168.110.100'},
                                                                 {'vnf-parameter-name': 'vfw_private_ip_1', 'vnf-parameter-value': '192.168.120.100'},
                                                                 {'vnf-parameter-name': 'vfw_private_ip_2', 'vnf-parameter-value': '10.1.0.11'},
                                                                 {'vnf-parameter-name': 'vpg_private_ip_0', 'vnf-parameter-value': '192.168.110.200'},
                                                                 {'vnf-parameter-name': 'vpg_private_ip_1', 'vnf-parameter-value': '10.1.0.12'},
                                                                 {'vnf-parameter-name': 'vsn_private_ip_0', 'vnf-parameter-value': '192.168.120.250'},
                                                                 {'vnf-parameter-name': 'vsn_private_ip_1', 'vnf-parameter-value': '10.1.0.13'},
                                                                 {'vnf-parameter-name': 'vfw_name_0', 'vnf-parameter-value': 'demofwl01fwl'},
                                                                 {'vnf-parameter-name': 'vpg_name_0', 'vnf-parameter-value': 'demofwl01pgn'},
                                                                 {'vnf-parameter-name': 'vsn_name_0', 'vnf-parameter-value': 'demofwl01snk'},
                                                                 {'vnf-parameter-name': 'dcae_collector_ip', 'vnf-parameter-value': '10.0.4.102'},
                                                                 {'vnf-parameter-name': 'dcae_collector_port', 'vnf-parameter-value': '8080'},
                                                                 {'vnf-parameter-name': 'key_name', 'vnf-parameter-value': 'vfw_keydemo'},
                                                                 {'vnf-parameter-name': 'pub_key',
                                                                  'vnf-parameter-value': 'ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAqqnA9BAiMLtjOPSYBfhzLu4CiBolWoskDg4KVwhTJVTTeB6CqrQNcadlGXxOHhCYuNCKkUmIVF4WTOisVOJ75Z1c4OMoZLL85xVPKSIeH63kgVugwgPYQu55NbbWX+rsbUha3LnElDhNviMM3iTPbD5nnhKixNERAJMTLKXvZZZGqxW94bREknYPQTT2qrk3YRqwldncopp6Nkgv3AnSJz2gc9tjxnWF0poTQnQm/3D6hiJICrzKfAV0EaPN0KdtYjPhKrYoy6Qb/tKOVaaqsvwfKBJGrT9LfcA7D7M/yj292RT1XN63hI84WC383LsaPJ6eWdDTE6zUP1eGTWCoOw== rsa-key-20161026'}],
                                              'vnf-topology-identifier': {'generic-vnf-name': 'DemoVNF', 'generic-vnf-type': 'demoVFW/749f10d5-fe17-4b2b-ad17 1', 'service-type': 'ee0c0569-ce85-4a4c-915d-c43ec32f046e', 'vnf-name': 'DemoModule', 'vnf-type': '749f10d5Fe174b2bAd17..base_vfw..module-0'}}}} | headers={'Accept': 'application/json', 'Content-Type': 'application/json', 'X-FromAppId': 'robot-ete', 'X-TransactionId': 'robot-ete-198cc4fc-fc36-403b-bb69-09d5494322b4'} ]</msg>
      

       

       

       

       

       

      even though I am running with

       

        vfw_private_ip_0: 192.168.210.100
        vfw_private_ip_1: 192.168.220.100
        vfw_private_ip_2: 10.1.0.21
        vpg_private_ip_0: 192.168.210.200
        vpg_private_ip_1: 10.1.0.22
        vsn_private_ip_0: 192.168.220.250
        vsn_private_ip_1: 10.1.0.23
      

       

       

       

      turns out we are running with the sample defaults at all times

      sample_preload_parameters.py

       

      # heat template parameter values for heat template instances created for hands on demo test case
        "Demo" : {
             "vfw_preload.template": {
                 "unprotected_private_net_id" : "demofwl_unprotected",
                 "unprotected_private_net_cidr" : "192.168.110.0/24",
                 "protected_private_net_id" : "demofwl_protected",
                 "protected_private_net_cidr" : "192.168.120.0/24",
                 "vfw_private_ip_0" : "192.168.110.100",
                 "vfw_private_ip_1" : "192.168.120.100",
                 "vfw_private_ip_2" : "10.1.${ecompnet}.11",
                 "vpg_private_ip_0" : "192.168.110.200",
                 "vpg_private_ip_1" : "10.1.${ecompnet}.12",
                 "vsn_private_ip_0" : "192.168.120.250",
                 "vsn_private_ip_1" : "10.1.${ecompnet}.13",
                 'vfw_name_0':'demofwl01fwl',
                 'vpg_name_0':'demofwl01pgn',
                 'vsn_name_0':'demofwl01snk',
      

       

       

       

      redo template will not fix it

       

      will retry with different defaults

      1. heat template parameter values for heat template instances created for hands on demo test case

       

         "Demo" : {
              "vfw_preload.template": {
                  "unprotected_private_net_id" : "demofwl_unprotected",
                  "unprotected_private_net_cidr" : "192.168.110.0/24",
                  "protected_private_net_id" : "demofwl_protected",
                  "protected_private_net_cidr" : "192.168.120.0/24",
                  "vfw_private_ip_0" : "192.168.110.100",
                  "vfw_private_ip_1" : "192.168.120.100",
                  "vfw_private_ip_2" : "10.1.${ecompnet}.11",
                  "vpg_private_ip_0" : "192.168.110.200",
                  "vpg_private_ip_1" : "10.1.${ecompnet}.12",
                  "vsn_private_ip_0" : "192.168.120.250",
                  "vsn_private_ip_1" : "10.1.${ecompnet}.13",
                  'vfw_name_0':'demofwl01fwl',
                  'vpg_name_0':'demofwl01pgn',
                  'vsn_name_0':'demofwl01snk',
              },
       
      in
       
      root@vm1-robot:/opt/testsuite/properties# ls -la
      -rw-r--r-- 1 root root 6198 May 24 02:32 sample_preload_parameters.py
      

       

            michaelobrien michaelobrien
            michaelobrien michaelobrien
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: