VNFD User Data containing 'password' str()
Bug #1716755 reported by
Rick Donato
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-
}
}
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 |
To post a comment you must log in.
I cannot reappear this bug:
$ tacker vnfd-create --vnfd-file vnfd1_bug_ 1716755. yaml vnfd1-bug-test ------- ----+-- ------- ------- ------- ------- ------- -+ ------- ----+-- ------- ------- ------- ------- ------- -+ 28fc-439d- a683-80aeab9b6b f9 | f8776ee2f4bfb86 af | ------- ----+-- ------- ------- ------- ------- ------- -+ ubuntu: ~/mytest$ cat vnfd1_bug_ 1716755. yaml ns_version: tosca_simple_ profile_ for_nfv_ 1_0_0
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-
| name | vnfd1-bug-test |
| service_types | vnfd |
| template_source | onboarded |
| tenant_id | a5346a4d3c464b4
| updated_at | |
+------
yanxa@yanxa-
tosca_definitio
description: Demo example
metadata:
template_name: sample-tosca-vnfd
topology_template: nfv.VDU. Tacker 0.3.5-x86_ 64-disk
availability_ zone: nova
mgmt_driver: noop
#junos- config
root-authentic ation {
encrypted- password "abc";
node_templates:
VDU1:
type: tosca.nodes.
properties:
image: cirros-
flavor: cirros256
config: |
param0: key1
param1: key2
user_data: |
## Last changed: 2017-09-04 16:07:32 UTC
version 15.1X49-D100.6;
system {
}
}
CP1: nfv.CP. Tacker
anti_spoofing_ protection: false
type: tosca.nodes.
properties:
management: true
order: 0
requirements:
- virtualLink:
node: VL1
- virtualBinding:
node: VDU1
VL1:
network_ name: net_mgmt ubuntu: ~/mytest$
type: tosca.nodes.nfv.VL
properties:
vendor: Tacker
yanxa@yanxa-