Monitoring of VDU's

Asked by Damir Besic on 2017-02-28

I've got the following setup:

VM1:
      type: tosca.nodes.nfv.VDU.Tacker
      properties:
        image: DCM
        flavor: metaswitch.dcm
        availability_zone: nova
        mgmt_driver: noop
        name: "DCM1"
        user_data_format: RAW
        monitoring_policy:
          id: mp_dcm1
          name: ping
          parameters:
            monitoring_delay: 45
            count: 3
            interval: 1
            timeout: 2
          actions:
            failure: respawn
VM2:
      type: tosca.nodes.nfv.VDU.Tacker
      properties:
        image: DCM
        flavor: metaswitch.dcm
        availability_zone: nova
        mgmt_driver: noop
        name: "DCM2"
        user_data_format: RAW
        monitoring_policy:
          id: mp_dcm2
          name: ping
          parameters:
            monitoring_delay: 45
            count: 3
            interval: 1
            timeout: 2
          actions:
            failure: respawn

They are both created successfully, but tacker only pings the 2nd machine. Looking at the bug tracker, this is supposed to be fixed.
Am i doing anything wrong?

Question information

Language:
English Edit question
Status:
Open
For:
tacker Edit question
Assignee:
No assignee Edit question
Last query:
2017-02-28
Last reply:
2017-02-28
yong sheng gong (gongysh) said : #1

can you paste out the entire tosca template?

Damir Besic (dbesic) said : #2

Sure thing:

tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0

description: Template

metadata:
  template_name: ms-pmt-sbc
  ID: kcc-ms-pm-sbc
  version: 0.3
  vendor: MS
topology_template:
  node_templates:
#
# Set up VM1 and connect it to the MGMT network
#
    "VM1":
      type: tosca.nodes.nfv.VDU.Tacker
      properties:
        image: DCM
        flavor: ms.dcm
        availability_zone: nova
        mgmt_driver: noop
        name: "VM1"
        user_data_format: RAW

    CP_VM1:
      type: tosca.nodes.nfv.CP.Tacker
      properties:
        type: vnic
        management: true
        anti_spoofing_protection: true
      requirements:
        - virtualLink:
            node: NET_MGMT
        - virtualBinding:
            node: "VM1"
#
# Set up VM2 and connect it to the MGMT network
#
    "VM2":
      type: tosca.nodes.nfv.VDU.Tacker
      properties:
        image: DCM
        flavor: ms.dcm
        availability_zone: nova
        mgmt_driver: noop
        name: "VM2"
        user_data_format: RAW

    CP_VM2:
      type: tosca.nodes.nfv.CP.Tacker
      properties:
        type: vnic
        management: true
        anti_spoofing_protection: true
      requirements:
        - virtualLink:
            node: NET_MGMT
        - virtualBinding:
            node: "VM2"
#
# Set up PMT1 and connect it to MGMT, HA, INT and EXT
#
# CP types: vnic, sriov
#
    "PMT1":
      type: tosca.nodes.nfv.VDU.Tacker
      properties:
        image: "PMT SBC"
        flavor: ms.pmt
        availability_zone: nova
        name: "PMT1"
        user_data_format: RAW

    CP_PM1_1:
      type: tosca.nodes.nfv.CP.Tacker
      properties:
        order: 2
        type: vnic
        management: false
        anti_spoofing_protection: true
      requirements:
        - virtualLink:
            node: NET_IS
        - virtualBinding:
            node: "PMT1"

    CP_PM1_2:
      type: tosca.nodes.nfv.CP.Tacker
      properties:
        order: 3
        type: vnic
        management: false
        anti_spoofing_protection: true
      requirements:
        - virtualLink:
            node: NET_ES
        - virtualBinding:
            node: "PMT1"

    CP_PM1_3:
      type: tosca.nodes.nfv.CP.Tacker
      properties:
        order: 0
        type: vnic
        management: true
        anti_spoofing_protection: true
      requirements:
        - virtualLink:
            node: NET_MGMT
        - virtualBinding:
            node: "PMT1"

    CP_PM1_4:
      type: tosca.nodes.nfv.CP.Tacker
      properties:
        order: 1
        type: vnic
        management: false
        anti_spoofing_protection: true
      requirements:
        - virtualLink:
            node: NET_HA
        - virtualBinding:
            node: "PMT1"
#
# Set up PMT2 and connect it to MGMT, HA, INT and EXT
#
# CP types: vnic, sriov
#
    "PMT2":
      type: tosca.nodes.nfv.VDU.Tacker
      properties:
        image: "PMT SBC"
        flavor: ms.pmt
        availability_zone: nova
        name: "PMT2"
        user_data_format: RAW

    CP_PM2_1:
      type: tosca.nodes.nfv.CP.Tacker
      properties:
        order: 2
        type: vnic
        management: false
        anti_spoofing_protection: true
      requirements:
        - virtualLink:
            node: NET_IS
        - virtualBinding:
            node: "PMT2"

    CP_PM2_2:
      type: tosca.nodes.nfv.CP.Tacker
      properties:
        order: 3
        type: vnic
        management: false
        anti_spoofing_protection: true
      requirements:
        - virtualLink:
            node: NET_ES
        - virtualBinding:
            node: "PMT2"

    CP_PM2_3:
      type: tosca.nodes.nfv.CP.Tacker
      properties:
        order: 0
        type: vnic
        management: true
        anti_spoofing_protection: true
      requirements:
        - virtualLink:
            node: NET_MGMT
        - virtualBinding:
            node: "PMT2"

    CP_PM2_4:
      type: tosca.nodes.nfv.CP.Tacker
      properties:
        order: 1
        type: vnic
        management: false
        anti_spoofing_protection: true
      requirements:
        - virtualLink:
            node: NET_HA
        - virtualBinding:
            node: "PMT2"
#
# Define networks (pre existing ones)
#
    NET_MGMT:
      type: tosca.nodes.nfv.VL
      properties:
        network_name: net-mgmt
        vendor: KCC

    NET_IS:
      type: tosca.nodes.nfv.VL
      properties:
        network_name: net-internal-signaling
        vendor: KCC

    NET_ES:
      type: tosca.nodes.nfv.VL
      properties:
        network_name: net-external-signaling
        vendor: KCC

    NET_PUBLIC:
      type: tosca.nodes.nfv.VL
      properties:
        network_name: external
        vendor: KCC
#
# Create a HA network between pmts
#
    NET_HA:
      type: tosca.nodes.nfv.VL
      properties:
        network_name: net-pmt-ha
        vendor: KCC
        ip_version: 4
        cidr: '192.168.8.0/24'

Can you help with this problem?

Provide an answer of your own, or ask Damir Besic for more information if necessary.

To post a message you must log in.