projectatomic / commissaire-mvp

A lightweight REST interface for upgrading, restarting, and bootstrapping new hosts into an existing Container Management cluster.
http://commissaire.readthedocs.org/en/latest/
GNU General Public License v3.0
15 stars 9 forks source link

created commissaire cluster, now what? #197

Open jberkus opened 8 years ago

jberkus commented 8 years ago

Followed instructions through the end of "getting started". However:

[root@ip-172-31-23-112 ~]# commctl cluster list
No object found.
[root@ip-172-31-23-112 ~]# commctl cluster get datacenter1
No object found.

clearly there's more setup required, but it's not documented.

ashcrow commented 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

ashcrow commented 8 years ago

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": ["*"]
    }
    ]
    ...
jberkus commented 8 years ago

@ashcrow thanks. when you update the docs, I'll give it another try.

mbarnes commented 8 years ago

Docs are updated now (in git at least), via #200.