Tacker server can not monitor VNF instance after restarted Tacker server

Bug #1616712 reported by changzhi
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
tacker
Fix Released
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)
description: updated
Changed in tacker:
importance: Undecided → Medium
tags: added: newton
vijayram (vijayram-cbe)
Changed in tacker:
assignee: nobody → vijayram (vijayram-cbe)
Changed in tacker:
status: New → Confirmed
Revision history for this message
Ashish (ashish235) wrote :

Affected by this bug.

Revision history for this message
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.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tacker (master)

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
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tacker (stable/rocky)

Fix proposed to branch: stable/rocky
Review: https://review.openstack.org/625461

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tacker (master)

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
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tacker (stable/rocky)

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
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tacker (stable/queens)

Fix proposed to branch: stable/queens
Review: https://review.openstack.org/630914

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tacker (stable/pike)

Fix proposed to branch: stable/pike
Review: https://review.openstack.org/631108

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tacker 1.0.0.0rc1

This issue was fixed in the openstack/tacker 1.0.0.0rc1 release candidate.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tacker (stable/pike)

Reviewed: https://review.openstack.org/631108
Committed: https://git.openstack.org/cgit/openstack/tacker/commit/?id=4d1e0ec14b864395ef5df7da79785713f18efc80
Submitter: Zuul
Branch: stable/pike

commit 4d1e0ec14b864395ef5df7da79785713f18efc80
Author: bhagyashris <email address hidden>
Date: Tue Jan 15 18:44:37 2019 +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
    (cherry picked from commit 5ae9dd03c7ce43ed8a54b1d4f428231988b471fd)

tags: added: in-stable-pike
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tacker 0.8.2

This issue was fixed in the openstack/tacker 0.8.2 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tacker (stable/queens)

Change abandoned by Hiroyuki Jo (<email address hidden>) on branch: stable/queens
Review: https://review.opendev.org/630914
Reason: Queens is already unmaintained. We should abandon this patch.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tacker rocky-eol

This issue was fixed in the openstack/tacker rocky-eol release.

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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