post update event creation failed when VNF update failed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tacker |
In Progress
|
Undecided
|
jaff_cheng |
Bug Description
Steps to Reproduce the issue
1. Create a vnfd with following data:
tosca_definitio
description: OpenWRT with services
metadata:
template_name: OpenWRT
topology_template:
node_templates:
VDU1:
type: tosca.nodes.
capabilities:
properties:
image: OpenWRT
config: |
param0: key1
param1: key2
name: ping
count: 3
actions:
CP1:
type: tosca.nodes.
properties:
management: true
order: 0
requirements:
- virtualLink:
node: VL1
- virtualBinding:
node: VDU1
CP2:
type: tosca.nodes.
properties:
order: 1
requirements:
- virtualLink:
node: VL2
- virtualBinding:
node: VDU1
CP3:
type: tosca.nodes.
properties:
order: 2
requirements:
- virtualLink:
node: VL3
- virtualBinding:
node: VDU1
VL1:
type: tosca.nodes.nfv.VL
properties:
vendor: Tacker
VL2:
type: tosca.nodes.nfv.VL
properties:
vendor: Tacker
VL3:
type: tosca.nodes.nfv.VL
properties:
vendor: Tacker
2. Createa a vnf based on above vnfd.
3. Once vnf instance is up completely, do "sudo ifdown eth0" so that ssh will fail
4. Update vnf with any config file
5. vnf update fails and vnfm should create a post update event with an ERROR resource_state as expected but event create failed with a DB ERROR because the timestamp is None and is required.
Fix proposed to branch: master /review. openstack. org/384629
Review: https:/