Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

calico_framework should detect if tasks erroneously get the slave IP #69

Open
spikecurtis opened this issue Nov 5, 2015 · 0 comments
Open

Comments

@spikecurtis
Copy link

Mesos can currently fail to assign unique IPs to each container, but still pass the calico_framework.py test.

We need some test that can launch multiple tasks on a single slave and ensure that they have unique IP addresses.

After speaking with @djosborne, we have the following rough outline of how to extend the framework:

Define a method for each test that can examine all the tasks in the test and returns whether the test has failed or not. The scheduler should call this method every time we get a task update for the test. This allows us to write a test that ensures containers on the same slave have unique IP addresses.

The "default" implementation of the method just looks at tasks statuses and fails the test if any task has failed. This allows us to move that logic out of the scheduler, and thus we can also build tests that check specific conditions that should result in tasks failing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant