Hi Ivan:
    You need to add an entry in /etc/tacker/tacker.conf under servicevm:

[servicevm]
# Specify drivers for mgmt
mgmt_driver = noop
mgmt_driver = openwrt
mgmt_driver = nfvpilot

You will also need to update setup.cfg with an entry point for the driver. This is assuming your object class is called DeviceMgmtNFVPilot:

tacker.servicevm.mgmt.drivers =
    noop = tacker.vm.mgmt_drivers.noop:DeviceMgmtNoop
    openwrt = tacker.vm.mgmt_drivers.openwrt.openwrt:DeviceMgmtOpenWRT
    nfvpilot = tackervm.mgmt_drivers.nfvpilot.nfvpilot:DeviceMgmtNFVPilot

If you are installing into a running devstack, you will need to update the tacker.egg-info/entry_points.txt file with the same information:

tacker.servicevm.mgmt.drivers =
    noop = tacker.vm.mgmt_drivers.noop:DeviceMgmtNoop
    openwrt = tacker.vm.mgmt_drivers.openwrt.openwrt:DeviceMgmtOpenWRT
    nfvpilot = tackervm.mgmt_drivers.nfvpilot.nfvpilot:DeviceMgmtNFVPilot

Then restart the tacker server.

Hope this helps

Bob


On 10/27/2015 1:42 AM, Ivan Lozgachev wrote:
Hello everyone!

Could you please help me implement custom management driver?

At the moment I created directory /opt/stack/tacker/tacker/vm/mgmt_drivers/nfvpilot/ and put there __init__.py and nfvpilot.py driver implementation as it' done for example for OpenWRT driver. But while creating my VNF I always get error

2015-10-20 10:33:28.409 TRACE tacker.api.v1.resource File "/opt/stack/tacker/tacker/vm/plugin.py", line 66, in mgmt_create_pre 2015-10-20 10:33:28.409 TRACE tacker.api.v1.resource device_dict, plugin=self, context=context, device=device_dict) 2015-10-20 10:33:28.409 TRACE tacker.api.v1.resource File "/opt/stack/tacker/tacker/vm/plugin.py", line 62, in _invoke 2015-10-20 10:33:28.409 TRACE tacker.api.v1.resource self._mgmt_driver_name(device_dict), method, **kwargs) 2015-10-20 10:33:28.409 TRACE tacker.api.v1.resource File "/opt/stack/tacker/tacker/common/driver_manager.py", line 74, in invoke 2015-10-20 10:33:28.409 TRACE tacker.api.v1.resource driver = self._drivers[type_]
2015-10-20 10:33:28.409 TRACE tacker.api.v1.resource KeyError: u'nfvpilot'

How do I register my own driver to make it visible?


__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

Reply via email to