Tacker server can not monitor VNF instance after restarted Tacker server

Bug #1616712 reported by changzhi on 2016-08-25
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
tacker
Medium
Bhagyashri Shewale

Bug Description

===== How to Reproduce =====
1. Create a VNFD with monitor params, such as:

...
        monitoring_policy:
          name: ping
          parameters:
            count: 3
            interval: 10
          actions:
            failure: respawn
...

2. Create a VNF by using the VNFD above.

3. Restart Tacker server.

4. Login the VNF and execute "ifconfig eth0 down"

Finally, the VNF doesn't respawn.

The VNF is active as below:
stack@devstack:~/tacker$ tacker vnf-list
+--------------------------------------+---------+-----------------------+----------------------------+--------+--------------------------------------+------------------------+--------------+
| id | name | description | mgmt_url | status | vim_id | placement_attr | error_reason |
+--------------------------------------+---------+-----------------------+----------------------------+--------+--------------------------------------+------------------------+--------------+
| 274f4c36-c482-488e-b749-aca8c20c7205 | openwrt | OpenWRT with services | {"VDU1": "192.168.120.11"} | ACTIVE | d4eaaaeb-ad2b-4896-8d10-c930bbf25876 | {u'vim_name': u'VIM0'} | |
+--------------------------------------+---------+-----------------------+----------------------------+--------+--------------------------------------+------------------------+--------------+

changzhi (changzhi) on 2016-08-25
description: updated
Changed in tacker:
importance: Undecided → Medium
tags: added: newton
vijayram (vijayram-cbe) on 2016-09-02
Changed in tacker:
assignee: nobody → vijayram (vijayram-cbe)
Changed in tacker:
status: New → Confirmed
Ashish (ashish235) wrote :

Affected by this bug.

Ashish (ashish235) wrote :

Team, can we get a timeline please when we can expect this to be fixed. This bug is huge blocker for using Tacker in production.

Fix proposed to branch: master
Review: https://review.openstack.org/614964

Changed in tacker:
assignee: vijayram (vijayram-cbe) → Bhagyashri Shewale (bhagyashri-shewale)
status: Confirmed → In Progress

Reviewed: https://review.openstack.org/614964
Committed: https://git.openstack.org/cgit/openstack/tacker/commit/?id=5ae9dd03c7ce43ed8a54b1d4f428231988b471fd
Submitter: Zuul
Branch: master

commit 5ae9dd03c7ce43ed8a54b1d4f428231988b471fd
Author: bhagyashris <email address hidden>
Date: Thu Nov 8 10:35:49 2018 +0900

    Add VNF to monitor after restarting tacker service

    If you restart tacker service, it doesn't monitor previously
    created VNFs.

    This patch will read all VNFs from db and add to monitor
    during initialization of VFNM plugin.

    Change-Id: I1d49f9442dbc34794e01fbefb4ef82af21171956
    Closes-Bug: #1616712

Changed in tacker:
status: In Progress → Fix Released

Reviewed: https://review.openstack.org/625461
Committed: https://git.openstack.org/cgit/openstack/tacker/commit/?id=1abe8701e9de1f62c46b316b9c63ceb275361ecc
Submitter: Zuul
Branch: stable/rocky

commit 1abe8701e9de1f62c46b316b9c63ceb275361ecc
Author: bhagyashris <email address hidden>
Date: Thu Nov 8 10:35:49 2018 +0900

    Add VNF to monitor after restarting tacker service

    If you restart tacker service, it doesn't monitor previously
    created VNFs.

    This patch will read all VNFs from db and add to monitor
    during initialization of VFNM plugin.

    Change-Id: I1d49f9442dbc34794e01fbefb4ef82af21171956
    Closes-Bug: #1616712

tags: added: in-stable-rocky
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers