{"action":"opened","issue":{"url":"https://api.github.com/repos/rackerlabs/mimic/issues/383","labels_url":"https://api.github.com/repos/rackerlabs/mimic/issues/383/labels{/name}","comments_url":"https://api.github.com/repos/rackerlabs/mimic/issues/383/comments","events_url":"https://api.github.com/repos/rackerlabs/mimic/issues/383/events","html_url":"https://github.com/rackerlabs/mimic/issues/383","id":103601386,"number":383,"title":"Prevent IP collision within a tenant","user":{"login":"cyli","id":223200,"avatar_url":"https://avatars.githubusercontent.com/u/223200?v=3","gravatar_id":"","url":"https://api.github.com/users/cyli","html_url":"https://github.com/cyli","followers_url":"https://api.github.com/users/cyli/followers","following_url":"https://api.github.com/users/cyli/following{/other_user}","gists_url":"https://api.github.com/users/cyli/gists{/gist_id}","starred_url":"https://api.github.com/users/cyli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyli/subscriptions","organizations_url":"https://api.github.com/users/cyli/orgs","repos_url":"https://api.github.com/users/cyli/repos","events_url":"https://api.github.com/users/cyli/events{/privacy}","received_events_url":"https://api.github.com/users/cyli/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-27T21:41:48Z","updated_at":"2015-08-27T21:41:48Z","closed_at":null,"body":"Since IPs are randomly generated, they might collide with each other.\r\n\r\nAutoscale is encountering an issue where, because the the tests are generating so many servers, one autoscale group is removing an IP from a CLB that belongs to one of its servers.\r\n\r\nHowever, that IP also belongs to a different server created by a different test, and hence removing it from the CLB breaks the test.\r\n\r\nWe should probably have a function `ensure_unique` or something that takes callable which generates a random value, and compares it to a set of already-generated random values to ensure that it produces a unique value.\r\n\r\nAutoscale only cares about collision within a single tenant, but probably this should be across all tenants to behave more like the cloud."}}