Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

keystoneclient.exceptions.DiscoveryFailure: Not enough information to determine URL.

I am trying to run to get list of meter from ceilometer, but it is giving error: keystoneclient.exceptions.DiscoveryFailure: . Other client is working file like from nova client to get the list of servers nova.servers.list(). I have installed three clients

  1. *pip install python-keystoneclient
  2. pip install python-novaclient
  3. pip install python-ceilometerclient*

    >>> from ceilometerclient import client as ceilometer_client
    >>> from novaclient import client
    >>> from keystoneclient.auth.identity import v2
    >>> from keystoneclient import session
    >>> auth=v2.Password(auth_url="http://10.0.2.15:5000/v2.0/", username="admin", password="1234", tenant_id='020377f522324546b072af92862e6466')
    >>> sess=session.Session(auth=auth, verify=False)
    >>> token =auth.get_token(sess)
    >>> cclient=ceilometer_client.get_client(2, ceilometer_url="http://10.0.2.15:8777/", token=token, verify=False)
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "/home/vagrant/flaskhorizon/venv/lib/python2.7/site-packages/ceilometerclient/client.py", line 395, in get_client
        return Client(version, endpoint, **kwargs)
      File "/home/vagrant/flaskhorizon/venv/lib/python2.7/site-packages/ceilometerclient/client.py", line 359, in Client
        return client_class(*args, **client_kwargs)
      File "/home/vagrant/flaskhorizon/venv/lib/python2.7/site-packages/ceilometerclient/v2/client.py", line 68, in __init__
        self.alarm_client, aodh_enabled = self._get_alarm_client(**kwargs)
      File "/home/vagrant/flaskhorizon/venv/lib/python2.7/site-packages/ceilometerclient/v2/client.py", line 95, in _get_alarm_client
        kwargs.get('timeout'))
      File "/home/vagrant/flaskhorizon/venv/lib/python2.7/site-packages/ceilometerclient/client.py", line 267, in redirect_to_aodh_endpoint
        ks_session = _get_token_auth_ks_session(**ks_kwargs)
      File "/home/vagrant/flaskhorizon/venv/lib/python2.7/site-packages/ceilometerclient/client.py", line 156, in _get_token_auth_ks_session
        v2_auth_url, v3_auth_url = _discover_auth_versions(ks_session, auth_url)
      File "/home/vagrant/flaskhorizon/venv/lib/python2.7/site-packages/ceilometerclient/client.py", line 33, in _discover_auth_versions
        ks_discover = discover.Discover(session=session, auth_url=auth_url)
      File "/home/vagrant/flaskhorizon/venv/lib/python2.7/site-packages/keystoneclient/utils.py", line 336, in inner
        return func(*args, **kwargs)
      File "/home/vagrant/flaskhorizon/venv/lib/python2.7/site-packages/keystoneclient/discover.py", line 161, in __init__
        _('Not enough information to determine URL. Provide either '
    keystoneclient.exceptions.DiscoveryFailure: Not enough information to determine URL. Provide either auth_url or endpoint
    >>> meters=cclient.meters.list()
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    NameError: name 'cclient' is not defined