Tacker OpenWRT VNF Changed State to Error when Updating Configurations (Stable/Liberty Branch)

asked 2016-04-17 16:54:25 -0600

anthony.lin gravatar image

Hi Experts,

I have installed DevStack with Tacker (Stable/Liberty) and have downloaded the latest OpenWRT Official Image (Chaos Calmer 15.05.1). Since the OpenWRT template has ping monitoring enabled, I have enabled DHCP on eth0 so that the VM can stay alive. I have tested the ping monitoring and it was working as expected.

I went on to try and update the firewall configurations using the sample template in GitHub, i.e. https://github.com/openstack/tacker/blob/master/devstack/samples/config-openwrt-with-firewall.yaml (https://github.com/openstack/tacker/b...) but it did not work as expected. The VNF error out after I issued the vnf-update command.

ubuntu@ubuntu:~/tacker$ tacker vnf-list
+--------------------------------------+---------+-------------------------------+----------------------------+--------+
| id                                   | name    | description                   | mgmt_url                   | status |
+--------------------------------------+---------+-------------------------------+----------------------------+--------+
| 3fa81192-f809-4626-a0d6-593da287a759 | openwrt | Virtual WRT opensource router | {"vdu1": "192.168.120.64"} | ACTIVE |
+--------------------------------------+---------+-------------------------------+----------------------------+--------+
ubuntu@ubuntu:~/tacker$ tacker vnf-update --config-file ./config-openwrt-with-firewall.yaml 3fa81192-f809-4626-a0d6-593da287a759
Updated vnf: 3fa81192-f809-4626-a0d6-593da287a759
ubuntu@ubuntu:~/tacker$ tacker vnf-list
+--------------------------------------+---------+-------------------------------+----------------------------+--------+
| id                                   | name    | description                   | mgmt_url                   | status |
+--------------------------------------+---------+-------------------------------+----------------------------+--------+
| 3fa81192-f809-4626-a0d6-593da287a759 | openwrt | Virtual WRT opensource router | {"vdu1": "192.168.120.64"} | ERROR  |
+--------------------------------------+---------+-------------------------------+----------------------------+--------+
ubuntu@ubuntu:~/tacker$

I checked through the logs and it seems that there we are missing some file/directory. I might be missing some steps and would like to seek help.

tacker.log:2016-04-17 02:16:41.381 ERROR tacker.vm.plugin_update_device_wait
tacker.log:2016-04-17 02:16:41.381 TRACE tacker.vm.plugin OSError: [Errno 2] No such file or directory
tacker.log:2016-04-17 02:16:45.488 DEBUG tacker.db.vm.vm_db req-4a39a773-7f01-4b87-9ca7-464c25e6be1c admin d70a6c7eee4944508c99848a9067bcaemdevice_db <tacker.db.vm.vm_db.Device[object at 7f4816500e10] {tenant_id=u'd70a6c7eee4944508c99848a9067bcae', id=u'3fa81192-f809-4626-a0d6-593da287a759', template_id=u'9a349804-0092-4f8d-bd79-df504b5e0fea', name=u'openwrt', description=u'Virtual WRT opensource router', instance_id=u'e285e21a-6fe9-4009-8210-fe295ad0e7ea', mgmt_url=u'{"vdu1": "192.168.120.64"}', status=u'ERROR'}>from (pid=14875) _make_device_dict /opt/stack/tacker/tacker/db/vm/vm_db.py:188

Thanks.

/Anthony

edit retag flag offensive close merge delete