settingsLogin | Registersettings

[openstack-dev] Tacker

0 votes

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 mgmtcreatepre
2015-10-20 10:33:28.409 TRACE tacker.api.v1.resource devicedict,
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.
mgmtdrivername(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-request@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
asked Oct 27, 2015 in openstack-dev by Ivan_Lozgachev (120 points)   1

1 Response

0 votes

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

[servicevm]

Specify drivers for mgmt

mgmtdriver = 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.mgmtdrivers.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.mgmtdrivers.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 mgmtcreatepre
2015-10-20 10:33:28.409 TRACE tacker.api.v1.resource devicedict,
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.
mgmtdrivername(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-request@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-request@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
responded Oct 27, 2015 by HADDLETON,_Robert_W_ (280 points)  
...