我是 openstack 的新手,试图使用 Ceilometer python API 从测试台服务器中提取一些数据,但我收到这个错误,我不明白,它需要什么作为端点?
raise exceptions.EndpointNotFound()
keystoneclient.openstack.common.apiclient.exceptions.EndpointNotFound
我的代码很简单,
import ceilometerclient
import ceilometerclient.client
import ceilometerclient.v2 as c_client
OS_USERNAME="myusername"
OS_PASSWORD="mypassword"
OS_TENANT_NAME="myproject"
OS_AUTH_URL="url"
cclient = ceilometerclient.client.get_client(2, os_username=OS_USERNAME, os_password=OS_PASSWORD, os_tenant_name=OS_TENANT_NAME, os_auth_url=OS_AUTH_URL)
samples = cclient.meters.list()
for s in sample:
print s;
print;