novaclient errors: neutron AttributeError: 'Password' object has no attribute 'rstrip'
I have the following plugin code:
from novaclient import client as novaclient
self._nova_client = novaclient.Client(
"2.1",
config.VROUTER.tenant_admin_name,
config.VROUTER.tenant_admin_password,
config.VROUTER.tenant_id,
auth_url=config.CONF.nova.auth_url)
I got the the following errors:
/opt/stack/logs$ tail q-svc.log
2016-11-23 16:36:14.115 TRACE neutron args, *kwargs)
2016-11-23 16:36:14.115 TRACE neutron File "/usr/local/lib/python2.7/dist-packages/novaclient/v2/client.py", line 209, in __init__
2016-11-23 16:36:14.115 TRACE neutron **kwargs)
2016-11-23 16:36:14.115 TRACE neutron File "/usr/local/lib/python2.7/dist-packages/novaclient/client.py", line 727, in _construct_http_client
2016-11-23 16:36:14.115 TRACE neutron api_version=api_version)
2016-11-23 16:36:14.115 TRACE neutron File "/usr/local/lib/python2.7/dist-packages/novaclient/client.py", line 163, in __init__
2016-11-23 16:36:14.115 TRACE neutron self.auth_url = auth_url.rstrip('/') if auth_url else auth_url
2016-11-23 16:36:14.115 TRACE neutron AttributeError: 'Password' object has no attribute 'rstrip'
2016-11-23 16:36:14.115 TRACE neutron