Open jberkus opened 8 years ago
I think you found a bug in recent commit. I was able to reproduce this and identify an issue where the backend store handler is failing back to the default (which will have no data).
Store Handler:
...
"register-store-handler": [
{
"name": "commissaire.store.etcdstorehandler",
"protocol": "http",
"host": "192.168.152.101",
"port": 2379,
"models": ["*"]
}
]
...
Log Output:
2016-08-24 20:54:21,260 - store - 1626 - 140113367525120 - DEBUG - > LIST <commissaire.handlers.models.Clusters object at 0x7f6ebdcce850>
2016-08-24 20:54:21,261 - resources - 1626 - 140113367525120 - DEBUG - <class 'etcd.EtcdConnectionFailed'> Connection to etcd failed due to MaxRetryError("HTTPConnectionPool(host='127.0.0.1', port=2379): Max retries exceeded with url: /v2/keys/commissaire/clusters/?recursive=true (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f6ebc1b2110>: Failed to establish a new connection: [Errno 111] Connection refused',))",)
cc @mbarnes
Ah, never mind. It's that the documentation PR hasn't been brought in yet. Or changed from underneath you as we changed the configuration file to use server_url
in an attempt to make it easier to configure. Here is what the format looks like now:
...
"register-store-handler": [
{
"name": "commissaire.store.etcdstorehandler",
"server_url": "http://192.168.152.101:2379",
"models": ["*"]
}
]
...
@ashcrow thanks. when you update the docs, I'll give it another try.
Docs are updated now (in git at least), via #200.
Followed instructions through the end of "getting started". However:
clearly there's more setup required, but it's not documented.