VNFD User Data containing 'password' str()

Bug #1716755 reported by Rick Donato
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
tacker
Confirmed
Medium
Unassigned

Bug Description

When creating a vnfd param file and adding the following config Tacker reports a HTTP 500 error.
I believe this is also the same if you add it directly to the vnfd.

user_data: |
  #junos-config
  ## Last changed: 2017-09-04 16:07:32 UTC
  version 15.1X49-D100.6;
  system {
    root-authentication {
        encrypted-password "abc";
    }
  }

The issue appears to be parsing the word password. If you escape this out, it works, i.e \p\a\s\s...

Changed in tacker:
status: New → Confirmed
importance: Undecided → Medium
milestone: none → pike-2
Changed in tacker:
milestone: pike-2 → queens-3
Revision history for this message
Yan Xing'an (yanxingan) wrote :

I cannot reappear this bug:

$ tacker vnfd-create --vnfd-file vnfd1_bug_1716755.yaml vnfd1-bug-test
Deprecated: tacker command line is deprecated, will be deleted after Rocky is released.
Created a new vnfd:
+-----------------+--------------------------------------+
| Field | Value |
+-----------------+--------------------------------------+
| created_at | 2018-06-19 06:16:07.995711 |
| description | Demo example |
| id | 223b1a11-28fc-439d-a683-80aeab9b6bf9 |
| name | vnfd1-bug-test |
| service_types | vnfd |
| template_source | onboarded |
| tenant_id | a5346a4d3c464b4f8776ee2f4bfb86af |
| updated_at | |
+-----------------+--------------------------------------+
yanxa@yanxa-ubuntu:~/mytest$ cat vnfd1_bug_1716755.yaml
tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0

description: Demo example

metadata:
  template_name: sample-tosca-vnfd

topology_template:
  node_templates:
    VDU1:
      type: tosca.nodes.nfv.VDU.Tacker
      properties:
        image: cirros-0.3.5-x86_64-disk
        flavor: cirros256
        availability_zone: nova
        mgmt_driver: noop
        config: |
          param0: key1
          param1: key2
        user_data: |
          #junos-config
          ## Last changed: 2017-09-04 16:07:32 UTC
          version 15.1X49-D100.6;
           system {
               root-authentication {
                   encrypted-password "abc";
               }
           }

    CP1:
      type: tosca.nodes.nfv.CP.Tacker
      properties:
        management: true
        order: 0
        anti_spoofing_protection: false
      requirements:
        - virtualLink:
            node: VL1
        - virtualBinding:
            node: VDU1

    VL1:
      type: tosca.nodes.nfv.VL
      properties:
        network_name: net_mgmt
        vendor: Tacker
yanxa@yanxa-ubuntu:~/mytest$

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.