openshift / geard

geard is no longer maintained - see OpenShift 3 and Kubernetes
Other
405 stars 80 forks source link

Deployment is not valid #265

Open alessioguglielmo opened 10 years ago

alessioguglielmo commented 10 years ago

I've executed json file at

https://github.com/openshift/geard/blob/master/deployment/fixtures/mongo_deploy_existing.json

and I've got an error:

==> Deploying complesso.json Deployment is not valid: No locator available for this instance (can't resolve from %!s(*string=0xc210088820))

Here my code: (192.168.56.101 and 192.168.56.102 are two vm instances on my virtualbox that i can ping and access with ssh regularly). Which i would implement is an container orchestration system across multiple hosts.

{ "Containers": [ { "Name": "db", "Image": "openshift/ubuntu-mongodb-cluster", "PublicPorts": [ { "Internal": 27017 } ], "Links": [ { "To": "db", "NonLocal": true, "MatchPort": true } ], "Count": 2 } ], "Instances": [ { "Id": "db-1", "Image": "openshift/ubuntu-mongodb-cluster", "From": "db", "On": "localhost", "Ports": [ { "Internal": 27017, "External": 4203, "Target": { "Host": "192.168.56.101", "Port": 27017 } } ] }, { "Id": "db-2", "Image": "openshift/ubuntu-mongodb-cluster", "From": "db", "On": "localhost", "Ports": [ { "Internal": 27017, "External": 4204, "Target": { "Host": "192.168.56.102", "Port": 27017 } } ] } ], "IdPrefix": "dbb", "RandomizeIds": false }