Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

neutron TypeError: Client() takes at least 1 argument (0 given)

I have the following plugin code:

    from novaclient import client as novaclient

     self._nova_client = novaclient.Client(
        username=config.VROUTER.tenant_admin_name,
        api_key=config.VROUTER.tenant_admin_password,
        auth_url=config.CONF.nova.auth_url,
        service_type="compute",
        tenant_id=config.VROUTER.tenant_id)

I got the following errors. I don't understand why "neutron TypeError: Client() takes at least 1 argument (0 given)":

/opt/stack/logs$ tail q-svc.log

2016-11-23 12:10:33.560 TRACE neutron return plugin_class()

2016-11-23 12:10:33.560 TRACE neutron File "/opt/stack/neutron/neutron/services/l3_router/brocade/vyatta/vrouter_neutron_plugin.py", line 71, in __init__

2016-11-23 12:10:33.560 TRACE neutron super(VyattaVRouterPlugin, self).__init__()

2016-11-23 12:10:33.560 TRACE neutron File "/usr/local/lib/python2.7/dist-packages/networking_brocade/vyatta/vrouter/neutron_plugin.py", line 72, in __init__

2016-11-23 12:10:33.560 TRACE neutron self.driver = vrouter_driver.VyattaVRouterDriver()

2016-11-23 12:10:33.560 TRACE neutron File "/usr/local/lib/python2.7/dist-packages/networking_brocade/vyatta/vrouter/driver.py", line 55, in __init__

2016-11-23 12:10:33.560 TRACE neutron tenant_id=config.VROUTER.tenant_id)

2016-11-23 12:10:33.560 TRACE neutron TypeError: Client() takes at least 1 argument (0 given)

2016-11-23 12:10:33.560 TRACE neutron